/* ==========================================================================
   Szillus — Design-System „Werkhalle live"
   Werkhalle bei Tageslicht (hell) / Halle nach Feierabend (dunkel).
   Sichtbeton, verzinkter Stahl, Pulverlack; Szillus-Rot als einziges Signal,
   Blau sparsam für Luft. Fotos bleiben ruhig; Bewegung lebt in erzeugten
   Linien, Typografie-Lagen und den Live-Simulationen (sim.css).
   Eigentümer: Shell. Seitenspezifisches in seite-*.css.
   ========================================================================== */

/* --- Schriften (selbst gehostet, SIL OFL 1.1; Quelle: Google Fonts) ---------
   Barlow Semi Condensed 600/700 (Anzeige), Barlow 400/500/600 + 400 kursiv
   (Text), Martian Mono 400–500 (Daten). */
@font-face {
  font-family: 'Barlow'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/barlow-italic400-latin-ext-5c05dc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/barlow-italic400-latin-d5afcc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/barlow-400-latin-ext-c10e6a.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/barlow-400-latin-1793b6.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/barlow-500-latin-ext-64abfd.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/barlow-500-latin-15bae2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/barlow-600-latin-ext-779269.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/barlow-600-latin-635ba4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/barlowsc-600-latin-ext-60daa2.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/barlowsc-600-latin-809b18.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/barlowsc-700-latin-ext-e3511a.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/barlowsc-700-latin-5debb0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Martian Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(../fonts/martian-normal-latin-ext-400259.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Martian Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(../fonts/martian-normal-latin-256818.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Tokens — Werkhalle bei Tageslicht (hell, Standard)
   Sichtbeton, verzinkter Stahl, Pulverlack. Szillus-Rot ist das einzige
   Signal; das Blau des i-Punkts steht sparsam für Luft/Reinluft.
   Sim-Module lesen diese Namen per token('--rot') (assets/js/sim/kern.js).
   ========================================================================== */
:root {
  color-scheme: light;
  --grund: #e6e7e5;                    /* Seite: heller Sichtbeton */
  --flaeche: #f1f2f1;                  /* abgesetzte Flächen: Pulverlack hell */
  --tafel: rgba(244, 245, 245, .86);   /* milchige Instrumententafel */
  --text: #12181d;                     /* tiefe Tinte */
  --text-leise: #4f585f;
  --linie: rgba(18, 24, 29, .15);
  --mulde: rgba(18, 24, 29, .055);     /* leichte Vertiefung */
  --rot: #e2231a;                      /* Szillus-Rot */
  --blau: #1f7fd0;                     /* Luft / Reinluft */
  --stahl: #aeb7bd;                    /* verzinkt (Wickelfalzrohr) */

  /* Ableitungen */
  --flaeche-2: #dcdedc;                /* zweite Stufe, z. B. Fotogrund */
  --linie-stark: rgba(18, 24, 29, .34);
  --stahl-tief: #7d878e;
  --rot-tief: #b8170f;                 /* Hover auf Rot */
  --rot-text: #bd1a12;                 /* Rot als Schrift auf hellem Grund (≥ 4.5:1) */
  --blau-text: #17649f;
  --auf-rot: #fff;
  --gut: #23704a;
  --fokus: #1f7fd0;
  --staub: #8a7f72;                    /* Schweißrauch/Staub in Szenen */
  --schatten: 0 1px 2px rgba(18, 24, 29, .06), 0 10px 28px rgba(18, 24, 29, .09);
  --fuss-grund: #1a2127;               /* Fuß: anthrazit pulverbeschichtet */
}

/* Halle nach Feierabend: Hallenlicht aus, Notbeleuchtung, tiefes Blaugrau */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --grund: #10171e; --flaeche: #172029; --tafel: rgba(22, 31, 40, .84);
    --text: #e4e9ec; --text-leise: #98a4ad;
    --linie: rgba(228, 233, 236, .13); --mulde: rgba(0, 0, 0, .24);
    --rot: #e2231a; --blau: #3d98e8; --stahl: #7c878f;
    --flaeche-2: #1e2933; --linie-stark: rgba(228, 233, 236, .3); --stahl-tief: #5b666e;
    --rot-tief: #b8170f; --rot-text: #ff6a5e; --blau-text: #74b8f2; --gut: #7fcc9f; --fokus: #74b8f2;
    --staub: #a39886;
    --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .34);
    --fuss-grund: #0a0f14;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --grund: #10171e; --flaeche: #172029; --tafel: rgba(22, 31, 40, .84);
  --text: #e4e9ec; --text-leise: #98a4ad;
  --linie: rgba(228, 233, 236, .13); --mulde: rgba(0, 0, 0, .24);
  --rot: #e2231a; --blau: #3d98e8; --stahl: #7c878f;
  --flaeche-2: #1e2933; --linie-stark: rgba(228, 233, 236, .3); --stahl-tief: #5b666e;
  --rot-tief: #b8170f; --rot-text: #ff6a5e; --blau-text: #74b8f2; --gut: #7fcc9f; --fokus: #74b8f2;
  --staub: #a39886;
  --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .34);
  --fuss-grund: #0a0f14;
}

/* Dunkle Zone innerhalb einer hellen Seite (und der Fuß): immer „nach Feierabend" */
.gegenlicht, .fuss {
  color-scheme: dark;
  --grund: #10171e; --flaeche: #19232c; --tafel: rgba(22, 31, 40, .84);
  --text: #e4e9ec; --text-leise: #9eaab2;
  --linie: rgba(228, 233, 236, .13); --mulde: rgba(0, 0, 0, .24);
  --blau: #3d98e8; --stahl: #8a959d;
  --flaeche-2: #1e2933; --linie-stark: rgba(228, 233, 236, .3); --stahl-tief: #5b666e;
  --rot-text: #ff6a5e; --blau-text: #74b8f2; --gut: #7fcc9f; --fokus: #74b8f2; --staub: #a39886;
}
.gegenlicht { background: var(--grund); color: var(--text); }

/* --- Schrift, Skala, Raum, Bewegung (themenunabhängig) --------------------- */
:root {
  --schrift-anzeige: 'Barlow Semi Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --schrift-text:    'Barlow', -apple-system, 'Segoe UI', Arial, sans-serif;
  --schrift-mono:    'Martian Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --schrift-daten:   var(--schrift-mono);   /* älterer Name */

  --t-mono:   .6875rem;                                  /* Labels in Mono (11 px) */
  --t-xs:     .8125rem;
  --t-sm:     .9375rem;
  --t-md:     1.0625rem;                                 /* Fließtext 17 px */
  --t-lg:     clamp(1.15rem, .98rem + .6vw, 1.4rem);     /* Vorspann */
  --t-xl:     clamp(1.45rem, 1.1rem + 1.3vw, 2.15rem);   /* h3 */
  --t-2xl:    clamp(2.1rem, 1.35rem + 3vw, 3.9rem);      /* h2 */
  --t-3xl:    clamp(2.6rem, 1.4rem + 5vw, 6.4rem);       /* Kapiteltitel */
  --t-4xl:    clamp(3rem, 1.2rem + 7.6vw, 9.6rem);       /* Bühnentitel */
  --t-riesig: clamp(4rem, 15vw, 15rem);                  /* Schrift als Bild */

  --breite:  1400px;
  --schmal:  760px;
  --rand:    clamp(16px, 4.4vw, 64px);       /* seitlicher Rand, nie unter 16 px */
  --abstand: clamp(80px, 10vw, 168px);       /* vertikaler Kapitelabstand */
  --abstand-klein: clamp(48px, 6vw, 96px);
  --spalt:   clamp(20px, 2.4vw, 40px);       /* Rasterfuge */

  --kopf-h:  72px;                           /* Kopfleiste, stets sichtbar (sticky) */

  --r-1: 2px;     /* Kanten, Knöpfe */
  --r-2: 4px;     /* Felder, Karten */
  --r-3: 12px;    /* Instrumententafel */

  --ease:       cubic-bezier(.22, .61, .36, 1);
  --ease-aus:   cubic-bezier(.16, 1, .3, 1);
  --ease-weich: cubic-bezier(.65, 0, .35, 1);
  --dauer:      .45s;
}
@media (max-width: 960px) { :root { --kopf-h: 64px; } }

/* Ältere Namen aus früheren Fassungen — Seiten- und Pflege-CSS dürfen sie weiter nutzen. */
:root, .gegenlicht, .fuss {
  --papier: var(--grund); --papier-2: var(--flaeche); --karton: var(--flaeche);
  --tusche: var(--text); --tusche-2: var(--text-leise); --tusche-3: var(--text-leise);
  --linie-zart: var(--linie); --rot-flaeche: var(--rot); --signal: var(--rot);
  --luft: var(--blau-text); --schleier: var(--grund); --foto-filter: none;
  --schrift-mass: var(--schrift-mono);
}

/* --- Grundlagen ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-h) + 16px); background: var(--grund); }
body {
  margin: 0; min-height: 100vh;
  background: var(--grund); color: var(--text);
  font: 400 var(--t-md)/1.62 var(--schrift-text);
  font-kerning: normal; font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
p, h1, h2, h3, h4, h5, h6, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: color-mix(in srgb, var(--blau) 26%, transparent); color: var(--text); }

h1, h2, h3, h4 {
  font-family: var(--schrift-anzeige); font-weight: 700;
  line-height: 1; letter-spacing: -.012em; color: var(--text);
  text-wrap: balance; hyphens: auto; hyphenate-limit-chars: 10 4 4; overflow-wrap: break-word;
}
h1 { font-size: var(--t-4xl); line-height: .9; letter-spacing: -.018em; }
h2 { font-size: var(--t-2xl); line-height: .96; }
h3 { font-size: var(--t-xl); font-weight: 600; line-height: 1.06; letter-spacing: -.005em; }
h4 { font-size: var(--t-lg); font-weight: 600; line-height: 1.15; letter-spacing: 0; }
p { text-wrap: pretty; }
strong, b { font-weight: 600; }
em, i { font-style: italic; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--rot); }

:focus-visible { outline: 2px solid var(--fokus); outline-offset: 3px; border-radius: var(--r-1); }
:focus:not(:focus-visible) { outline: none; }

/* --- Typo-Helfer ------------------------------------------------------------
   .anzeige         Anzeigeschrift (Hallenbeschilderung)
   .versal          Versalien mit Sperrung, für Schilder
   .mono / .marke / .kapitel__label / .beschriftung   Mono-Labels
   .mass            Messwert/Maß in Mono, Tinte
   .vorspann        Einleitungsabsatz      .leise  zurückgenommene Farbe */
.anzeige { font-family: var(--schrift-anzeige); font-weight: 700; letter-spacing: -.015em; line-height: .9; }
.versal  { text-transform: uppercase; letter-spacing: .02em; }
.schwer  { font-weight: 700; }
.leicht  { font-weight: 400; }
.mono, .marke, .kapitel__label, .beschriftung, .mass {
  font-family: var(--schrift-mono); font-size: var(--t-mono); font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase; line-height: 1.45;
}
.marke, .kapitel__label, .beschriftung { color: var(--text-leise); }
.mass { color: var(--text); letter-spacing: .02em; text-transform: none; font-variant-numeric: tabular-nums; }
.t-riesig { font-size: var(--t-riesig); }
.t-4xl { font-size: var(--t-4xl); } .t-3xl { font-size: var(--t-3xl); } .t-2xl { font-size: var(--t-2xl); }
.vorspann { font-size: var(--t-lg); line-height: 1.5; color: var(--text-leise); max-width: 46ch; }
.leise { color: var(--text-leise); }

/* Label mit Signalquadrat davor — wie eine Betriebsmarke an der Maschine */
.marke, .kapitel__label { display: inline-flex; align-items: center; gap: 12px; }
.marke::before, .kapitel__label::before {
  content: ""; width: 7px; height: 7px; background: var(--rot); flex: none;
}

/* Schild: umrandete Plakette (Achse, Position, Status) */
.schild {
  display: inline-flex; align-items: center; gap: 8px; min-height: 26px; padding: 3px 9px;
  border: 1px solid var(--linie-stark); border-radius: var(--r-1);
  font: 500 var(--t-mono)/1.2 var(--schrift-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--text);
}
/* Statuslampe: kleiner Punkt, rot = in Betrieb. Kein Leuchten, nur Farbe. */
.lampe { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rot); flex: none; }
.lampe--blau { background: var(--blau); }
.lampe--aus { background: var(--stahl); }
.lampe--blinkt { animation: sz-lampe 2.4s steps(1, end) infinite; }
@keyframes sz-lampe { 50% { opacity: .3; } }

/* Verborgen, aber vorlesbar */
.nur-leser, .vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.js .nur-ohne-js { display: none; }
.honigtopf { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.zeig { opacity: 1; }
.skip {
  position: fixed; left: 12px; top: -80px; z-index: 1000;
  padding: 12px 18px; background: var(--text); color: var(--grund);
  font-weight: 600; text-decoration: none; border-radius: var(--r-1);
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

/* --- Hülle, Kapitel, Rhythmus ----------------------------------------------
   .huelle            zentrierter Container, Rand ≥ 16 px
   .huelle--schmal    Lesebreite
   .kapitel           Abschnitt mit großem Abstand   (--dicht, --flaeche, --linie, --raster)
   .kapitel__kopf     Label + Titel + Vorspann eines Abschnitts */
.huelle { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.huelle--schmal { width: min(100% - 2 * var(--rand), var(--schmal)); }
main { display: block; }
main > section { position: relative; }

.kapitel { padding-block: var(--abstand); }
.kapitel--dicht { padding-block: var(--abstand-klein); }
.kapitel--flaeche { background: var(--flaeche); }
.kapitel--linie { border-top: 1px solid var(--linie); }
/* Hallenraster: Stützenachsen als Haarlinien im Hintergrund (nie unter Fotos legen) */
.kapitel--raster {
  background-image: linear-gradient(to right, var(--linie) 1px, transparent 1px);
  background-size: calc((min(100vw - 2 * var(--rand), var(--breite))) / 6) 100%;
  background-position: max(var(--rand), (100vw - var(--breite)) / 2) 0;
}
.kapitel__kopf { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 88px); max-width: 980px; }
.kapitel__kopf h2 { font-size: var(--t-3xl); }
.kapitel__kopf p { max-width: 58ch; color: var(--text-leise); font-size: var(--t-lg); line-height: 1.5; }

/* Zwölfer-Raster für asymmetrische Kompositionen */
.raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--spalt); }
@media (max-width: 860px) { .raster { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* --- Zwei Spalten (Haken der Pflegeleiste: duo--getauscht) -----------------
   duo--umkehr: unter 861 px steht das Bild zuerst. duo--getauscht (von der
   Pflegeleiste gesetzt) tauscht ab 861 px die Spalten. */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 104px); align-items: center; }
.duo > * { min-width: 0; }
.duo--schmal { grid-template-columns: .92fr 1.08fr; }
@media (max-width: 860px) {
  .duo, .duo--schmal { grid-template-columns: 1fr; gap: 32px; }
  .duo--umkehr .duo__bild { order: -1; }
}
@media (min-width: 861px) {
  .duo.duo--getauscht > :first-child { order: 2; }
  .duo.duo--getauscht > :last-child { order: 1; }
}

/* --- Fotos: ruhig, natürliche Farbe, nie animiert --------------------------
   <figure class="foto [foto--hoch|foto--breit]"><img …><figcaption>…</figcaption></figure> */
.foto { position: relative; margin: 0; }
.foto img { width: 100%; height: auto; object-fit: cover; background: var(--flaeche-2); border-radius: var(--r-1); }
.foto--hoch img { aspect-ratio: 3 / 4; }
.foto--breit img { aspect-ratio: 16 / 9; }
.foto figcaption {
  display: flex; gap: 10px; align-items: baseline; padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--linie);
  font: 400 var(--t-mono)/1.6 var(--schrift-mono); letter-spacing: .02em; color: var(--text-leise);
}

/* Zeilen-/Block-Auftritt für Text (nie für Fotos):
     data-enthuellen="zeile"  → steigt aus einer Maske, wenn sichtbar
     .auftritt                → beim Laden, gestaffelt über style="--i: n" */
.sz-bereit [data-enthuellen="zeile"] { clip-path: inset(0 0 0 0); transform: translateY(0); }
.sz-bereit [data-enthuellen="zeile"]:not(.ist-sichtbar) { clip-path: inset(0 0 100% 0); transform: translateY(.35em); }
.sz-bereit [data-enthuellen="zeile"] {
  transition: clip-path .9s var(--ease-aus), transform .9s var(--ease-aus);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.auftritt { animation: sz-auftritt .9s var(--ease-aus) both; animation-delay: calc(100ms + var(--i, 0) * 80ms); }
@keyframes sz-auftritt { from { opacity: 0; transform: translateY(18px); } }

/* --- Knöpfe -----------------------------------------------------------------
   .knopf.knopf--rot   primär, nur für Anfrage-Handlungen
   .knopf.knopf--rand  sekundär, Kontur          .knopf--weiss  Tinte gefüllt
   .knopf--klein       kompakt (Kopf)            .knopf-reihe   Reihe mit Abstand
   .verweis            Text-Link mit Pfeil       [data-magnet]  leichte Zeigerreaktion */
.knopf {
  --mx: 0px; --my: 0px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 22px;
  font: 600 var(--t-sm)/1.1 var(--schrift-text); letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--r-1);
  background: transparent; color: var(--text);
  translate: var(--mx) var(--my);
  transition: translate .5s var(--ease-aus), color .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.knopf::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .35s var(--ease-aus);
}
.knopf:hover::before, .knopf:focus-visible::before { transform: scaleX(1); }
.knopf svg { width: 18px; height: 18px; flex: none; transition: transform .4s var(--ease-aus); }
.knopf:hover svg:last-child:not(:first-child) { transform: translateX(4px); }
.knopf:active { translate: var(--mx) calc(var(--my) + 1px); }

.knopf--rot { background: var(--rot); color: var(--auf-rot); }
.knopf--rot::before { background: var(--rot-tief); }
.knopf--rot:hover { color: var(--auf-rot); }

.knopf--rand, .knopf--hell { border-color: var(--linie-stark); color: var(--text); }
.knopf--rand::before, .knopf--hell::before { background: var(--text); }
.knopf--rand:hover, .knopf--hell:hover, .knopf--rand:focus-visible { color: var(--grund); border-color: var(--text); }
.knopf--weiss { background: var(--text); color: var(--grund); }
.knopf--weiss::before { background: var(--rot); }
.knopf--weiss:hover { color: var(--auf-rot); }

.knopf--klein { min-height: 42px; padding: 0 16px; gap: 10px; font-size: var(--t-xs); }
.knopf--klein svg { width: 15px; height: 15px; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }

.verweis {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; text-decoration: none; color: var(--text);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 3px; transition: background-size .45s var(--ease-aus);
}
.verweis:hover { background-size: 100% 1px; }
.verweis svg { width: 16px; height: 16px; transition: transform .4s var(--ease-aus); }
.verweis:hover svg { transform: translateX(4px); }
/* Textlink im Fließtext */
.textlink { color: var(--text); text-decoration: underline; text-decoration-color: var(--linie-stark); text-underline-offset: .22em; }
.textlink:hover { text-decoration-color: var(--rot); }

/* --- Naht: Wickelfalz als laufendes Band ------------------------------------
   <div class="naht" aria-hidden="true"></div> — dreht sich langsam (Bewegung aus
   erzeugten Linien, nie über Fotos). .naht--blau für Reinluft. */
.naht { position: relative; height: 14px; border-block: 1px solid var(--linie-stark); overflow: hidden; }
.naht::before {
  content: ""; position: absolute; inset: 0 -40px 0 -40px; background: var(--stahl-tief); opacity: .55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14'%3E%3Cpath d='M0 14L20 0' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") 0 0 / 20px 14px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14'%3E%3Cpath d='M0 14L20 0' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") 0 0 / 20px 14px repeat-x;
  animation: sz-naht 7s linear infinite;
}
.naht--blau::before { background: var(--blau); opacity: .5; }
@keyframes sz-naht { to { transform: translateX(20px); } }

/* --- Laufband ----------------------------------------------------------------
   <div class="laufband"><div class="laufband__spur">
     <ul class="laufband__satz">…</ul>
     <ul class="laufband__satz" aria-hidden="true">…(Kopie OHNE data-feld)</ul>
   </div></div>     Tempo: style="--laufband-dauer: 40s" · .laufband--rueckwaerts */
.laufband {
  overflow: hidden; display: flex;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.laufband__spur { display: flex; flex: none; min-width: 100%; animation: sz-laufband var(--laufband-dauer, 48s) linear infinite; }
.laufband--rueckwaerts .laufband__spur { animation-direction: reverse; }
.laufband:hover .laufband__spur { animation-play-state: paused; }
.laufband__satz { display: flex; flex: none; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.laufband__satz > * { flex: none; padding-inline: clamp(18px, 2.4vw, 40px); }
@keyframes sz-laufband { to { transform: translateX(-50%); } }

/* --- Listen, Tabellen, Konsole ---------------------------------------------- */
.haken { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.haken li { position: relative; padding-left: 26px; }
.haken li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; background: var(--text); }
.haken--zwei { grid-template-columns: 1fr 1fr; column-gap: 40px; }
@media (max-width: 640px) { .haken--zwei { grid-template-columns: 1fr; } }
/* Nummerierte Liste mit Mono-Ziffern */
.nummern { list-style: none; padding: 0; margin: 0; counter-reset: nr; display: grid; gap: 14px; }
.nummern > li { counter-increment: nr; display: grid; grid-template-columns: 3.2em 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid var(--linie); }
.nummern > li::before { content: counter(nr, decimal-leading-zero); font: 500 var(--t-mono)/1.9 var(--schrift-mono); color: var(--text-leise); }

.tabelle-huelle { overflow-x: auto; border-top: 2px solid var(--text); }
table.daten { width: 100%; border-collapse: collapse; font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
table.daten caption { text-align: left; padding: 0 0 12px; font: 500 var(--t-mono)/1.4 var(--schrift-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--text-leise); }
table.daten th, table.daten td { padding: 13px 18px 13px 0; text-align: left; border-bottom: 1px solid var(--linie); vertical-align: top; }
table.daten thead th { font: 500 var(--t-mono)/1.3 var(--schrift-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--text-leise); white-space: nowrap; }
table.daten tbody tr { transition: background-color .2s var(--ease); }
table.daten tbody tr:hover { background: var(--mulde); }
table.daten td.zahl, table.daten th.zahl { text-align: right; font-family: var(--schrift-mono); font-size: .8rem; }
.tabelle-scrollhinweis { display: none; margin-top: 10px; font: 400 var(--t-mono)/1.4 var(--schrift-mono); color: var(--text-leise); }
@media (max-width: 700px) { .tabelle-scrollhinweis { display: block; } }

/* --- Formulare -------------------------------------------------------------- */
.formular { display: grid; gap: 22px; }
html:not(.js) .formular { display: none; }
.formular__hinweis { color: var(--text-leise); font-size: var(--t-sm); }
.formular__status { margin: 0; }
.formular__entwurf {
  width: 100%; min-height: 220px; padding: 16px;
  color: var(--text); background: var(--mulde); border: 1px solid var(--linie-stark); border-radius: var(--r-2);
  font: 400 .82rem/1.7 var(--schrift-mono);
}
.feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 620px) { .feld-paar { grid-template-columns: 1fr; } }
.feld { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.feld label { font: 500 var(--t-mono)/1.3 var(--schrift-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--text-leise); }
.feld label .pflicht { color: var(--rot-text); }
.feld input, .feld select, .feld textarea {
  width: 100%; min-height: 52px; padding: 13px 15px;
  font: 400 1rem/1.4 var(--schrift-text); color: var(--text);
  background: var(--flaeche); border: 1px solid var(--linie-stark); border-radius: var(--r-2);
  box-shadow: inset 0 1px 0 var(--mulde);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.feld select { appearance: none; padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.feld textarea { resize: vertical; min-height: 160px; line-height: 1.6; }
.feld input:hover, .feld select:hover, .feld textarea:hover { border-color: var(--text-leise); }
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: none; border-color: var(--blau);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blau) 22%, transparent);
}
.feld small { font-size: .84rem; color: var(--text-leise); }
.feld--haken { flex-direction: row; align-items: flex-start; gap: 12px; }
.feld--haken input { width: 20px; height: 20px; min-height: 0; flex: none; margin: 2px 0 0; accent-color: var(--rot); box-shadow: none; }
.feld--haken label { font: 400 var(--t-sm)/1.55 var(--schrift-text); letter-spacing: 0; text-transform: none; color: var(--text-leise); }
.feld--haken a { color: var(--text); }

/* ==========================================================================
   Kopf — durchgehend sichtbar. Logo, Navigation (Hallenschilder), Aktionen.
   ========================================================================== */
.kopf { position: sticky; top: 0; z-index: 100; height: var(--kopf-h); background: var(--grund); border-bottom: 1px solid var(--linie); }
.kopf__innen { height: 100%; width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; display: flex; background: inherit; align-items: center; gap: 28px; }
.kopf__logo { flex: none; margin-right: auto; display: flex; align-items: center; padding-block: 10px; }
.kopf__logo img { width: 148px; height: auto; }
.nav__liste { display: flex; align-items: center; gap: 4px; list-style: none; counter-reset: nav; }
.nav__liste li { counter-increment: nav; }
.nav__liste a {
  position: relative; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px;
  text-decoration: none; color: var(--text-leise);
  font: 600 .95rem/1 var(--schrift-anzeige); letter-spacing: .04em; text-transform: uppercase;
  transition: color .2s var(--ease);
}
.nav__liste a::before { content: ""; width: 6px; height: 6px; background: currentColor; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s var(--ease-aus); }
.nav__liste a:hover { color: var(--text); }
.nav__liste a:hover::before { opacity: .45; transform: none; }
.nav__liste a[aria-current] { color: var(--text); }
.nav__liste a[aria-current]::before { background: var(--rot); opacity: 1; transform: none; }
.nav__liste a[aria-current]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: calc((var(--kopf-h) - 44px) / -2); height: 2px; background: var(--text); }
.nav__extra { display: none; }
.kopf__aktionen { display: flex; align-items: center; gap: 10px; }
.kopf__anfrage { min-height: 42px; }
.thema {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 11px;
  border: 1px solid var(--linie); background: transparent; color: var(--text); border-radius: 50%;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.thema:hover { border-color: var(--linie-stark); background: var(--mulde); }
.thema svg { width: 20px; height: 20px; transition: transform .5s var(--ease-aus); }
:root[data-theme="dark"] .thema svg { transform: rotate(180deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .thema svg { transform: rotate(180deg); } }
.burger { display: none; }

@media (max-width: 1180px) {
  .kopf__innen { gap: 16px; }
  .nav__liste a { padding: 0 7px; font-size: .9rem; letter-spacing: .03em; }
  .nav__liste a::before { display: none; }
  .nav__liste a[aria-current]::after { left: 7px; right: 7px; }
  .kopf__logo img { width: 132px; }
}
@media (max-width: 960px) {
  .kopf__logo img { width: 128px; }
  .kopf__aktionen { display: none; }
  .burger {
    position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 0 8px 12px;
    border: 0; background: transparent; color: var(--text);
    font: 600 .95rem/1 var(--schrift-anzeige); letter-spacing: .05em; text-transform: uppercase;
  }
  .burger__linien { display: grid; width: 26px; gap: 6px; }
  .burger__linien span { display: block; height: 2px; background: currentColor; transition: transform .25s var(--ease); }
  .burger[aria-expanded="true"] .burger__linien span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] .burger__linien span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .js .nav {
    position: fixed; inset: var(--kopf-h) 0 0; overflow: auto; overscroll-behavior: contain;
    background: var(--grund); padding: 20px var(--rand) 40px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .35s var(--ease-aus), visibility 0s .35s;
  }
  .js .nav[data-offen="true"] { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__liste { display: grid; gap: 0; }
  .nav__liste a {
    min-height: 68px; padding: 0; gap: 16px; border-bottom: 1px solid var(--linie); color: var(--text);
    font: 700 clamp(1.9rem, 7vw, 3rem)/1 var(--schrift-anzeige); letter-spacing: -.005em; text-transform: none;
  }
  .nav__liste a::before {
    display: block; content: counter(nav, decimal-leading-zero); width: 2.4em; height: auto; background: none; opacity: 1; transform: none;
    font: 500 var(--t-mono)/1 var(--schrift-mono); letter-spacing: .06em; color: var(--text-leise);
  }
  .nav__liste a[aria-current]::before { background: none; color: var(--rot-text); }
  .nav__liste a[aria-current]::after { left: auto; right: 0; bottom: auto; top: 50%; width: 10px; height: 10px; margin-top: -5px; background: var(--rot); }
  .nav__extra { display: grid; gap: 14px; margin-top: 32px; }
  .nav__extra a { text-decoration: none; }
  .nav__tel { font: 600 1.35rem/1.2 var(--schrift-anzeige); }
  .nav__mail { color: var(--text-leise); }
  .nav__extra .knopf { margin-block: 6px; }
  .nav__zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--linie); }
  html:not(.js) .kopf { height: auto; position: relative; }
  html:not(.js) .kopf__innen { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .burger { display: none; }
  html:not(.js) .nav { flex-basis: 100%; }
  html:not(.js) .nav__liste { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  html:not(.js) .nav__liste a { font: 600 .95rem/1.5 var(--schrift-anzeige); text-transform: uppercase; min-height: 44px; border: 0; }
  html:not(.js) .nav__liste a::before { display: none; }
  html:not(.js) .nav__extra { display: none; }
}

/* ==========================================================================
   Fuß — Gespräch, Orientierung, dann die Halle: Schriftzug in Lagen und der
   kleine Absaugwagen, der den Staub aufsaugt, den der Zeiger aufwirbelt.
   Immer „nach Feierabend" (dunkle Tokens, siehe .fuss oben).
   ========================================================================== */
.fuss { position: relative; color: var(--text); background: var(--fuss-grund); padding-top: clamp(64px, 7vw, 112px); overflow: clip; }
.fuss a { text-decoration: none; color: var(--text); transition: color .2s var(--ease); }
.fuss a:hover { color: var(--rot-text); }
.fuss__kopf { padding-bottom: clamp(44px, 5vw, 72px); }
.fuss__kopf .kapitel__label { margin-bottom: 28px; }
.fuss__projekt { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; width: 100%; }
.fuss__headline { font: 700 clamp(2.6rem, 7.2vw, 7.6rem)/.9 var(--schrift-anzeige); letter-spacing: -.015em; max-width: 13ch; }
.fuss__pfeil {
  width: clamp(64px, 8vw, 116px); aspect-ratio: 1; display: grid; place-items: center; flex: none;
  color: var(--auf-rot); background: var(--rot); border-radius: var(--r-1);
  transition: transform .35s var(--ease-aus), background-color .25s var(--ease);
}
.fuss__pfeil svg { width: 42%; height: 42%; transform: rotate(-45deg); transition: transform .35s var(--ease-aus); }
.fuss__projekt:hover { color: var(--text) !important; }
.fuss__projekt:hover .fuss__pfeil { background: var(--rot-tief); }
.fuss__projekt:hover .fuss__pfeil svg { transform: rotate(0deg); }
.fuss__direkt { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 30px; font: 400 .9rem/1.4 var(--schrift-mono); letter-spacing: .01em; }
.fuss__direkt a { min-height: 32px; display: inline-flex; align-items: center; color: var(--text-leise); }
.fuss__raster { border-top: 1px solid var(--linie); padding-block: 48px 56px; display: grid; grid-template-columns: 1.5fr 1.2fr 1fr 1.3fr; gap: 36px; }
.fuss__logo { width: 140px; height: auto; margin-bottom: 20px; }
.fuss__firma p { max-width: 32ch; font-size: .95rem; line-height: 1.6; color: var(--text-leise); }
.fuss__titel { display: flex; align-items: center; gap: 10px; font: 500 var(--t-mono)/1.4 var(--schrift-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--text-leise); margin: 0 0 18px; }
.fuss__titel::before { content: ""; width: 6px; height: 6px; background: var(--stahl); flex: none; }
.fuss ul { list-style: none; display: grid; gap: 8px; }
.fuss ul a { font-size: .95rem; min-height: 28px; display: inline-flex; align-items: center; }
.fuss address { font-style: normal; font-size: .95rem; line-height: 1.7; }
.fuss__herkunft { margin-top: 16px; color: var(--text-leise); font: 400 var(--t-mono)/1.5 var(--schrift-mono); letter-spacing: .04em; }
.fuss__unten { border-top: 1px solid var(--linie); display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 16px; color: var(--text-leise); font: 400 var(--t-mono)/1.4 var(--schrift-mono); letter-spacing: .03em; }
.fuss__unten nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.fuss__unten a { color: var(--text-leise); min-height: 36px; display: inline-flex; align-items: center; }
.fuss__anmelden { gap: 6px; }
.fuss__anmelden svg { width: 12px; height: 12px; }

/* Die Halle: drei Lagen — Linienwerk (Canvas), Schriftzug (zwei Lagen), Wesen (Canvas) */
.fuss__halle { position: relative; height: clamp(190px, 21vw, 330px); border-top: 1px solid var(--linie); overflow: hidden; touch-action: pan-y; }
.fuss__linien, .fuss__wesen { position: absolute; inset: 0; width: 100%; height: 100%; }
.fuss__linien { z-index: 0; }
.fuss__wesen { z-index: 3; }
.fuss__wort {
  position: absolute; left: 0; right: 0; bottom: clamp(22px, 2.4vw, 34px); z-index: 1;
  display: grid; justify-items: center; pointer-events: none; user-select: none;
}
.fuss__wort-lage {
  grid-area: 1 / 1; white-space: nowrap; will-change: transform;
  font: 700 clamp(64px, 11.6vw, 200px)/.8 var(--schrift-anzeige); letter-spacing: -.01em; text-transform: uppercase;
}
.fuss__wort-lage--hinten { color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--stahl) 55%, transparent); }
.fuss__wort-lage--vorn { color: color-mix(in srgb, var(--stahl) 13%, var(--fuss-grund)); }
.fuss__wort-lage .rot { color: color-mix(in srgb, var(--rot) 70%, var(--fuss-grund)); -webkit-text-stroke: 0; }
@media (max-width: 960px) { .fuss__raster { grid-template-columns: 1fr 1fr; gap: 40px 32px; } .fuss__firma { grid-column: 1; } }
@media (max-width: 600px) {
  .fuss__projekt { gap: 18px; align-items: flex-start; }
  .fuss__headline { font-size: clamp(2.4rem, 11vw, 3.6rem); }
  .fuss__pfeil { width: 54px; margin-top: 4px; }
  .fuss__direkt { flex-direction: column; gap: 2px; margin-top: 24px; }
  .fuss__raster { padding-block: 36px; gap: 32px 20px; }
  .fuss__firma, .fuss__kontakt { grid-column: 1 / -1; }
  .fuss__unten { align-items: flex-start; flex-direction: column; gap: 4px; }
  .fuss__halle { height: 200px; }
}

/* ==========================================================================
   Bühne der Unterseiten (buehne_klein)
   .buehne-klein__feld ist ein leerer Slot NUR hinter Titel und Vorspann —
   Seitenskripte hängen dort ihre Szene ein (<canvas aria-hidden="true">); bleibt
   er leer, zeichnet site.js ruhiges Hallen-Linienwerk. Das Foto steht immer
   außerhalb der Szene, ruhig und tauschbar (data-bildfeld).
   ========================================================================== */
.buehne-klein { position: relative; padding-bottom: clamp(32px, 4vw, 56px); }
.buehne-klein__szene {
  position: relative; isolation: isolate;
  min-height: clamp(380px, 56svh, 600px);
  display: flex; align-items: flex-end;
  padding-block: clamp(40px, 6vw, 88px) clamp(36px, 4.5vw, 64px);
}
.buehne-klein__feld { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.buehne-klein__feld > canvas, .buehne-klein__feld > svg { width: 100%; height: 100%; }
.buehne-klein__innen { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 28px var(--spalt); align-items: end; }
.buehne-klein__innen .krume { grid-column: 1 / -1; }
.buehne-klein h1 { max-width: 13ch; }
.buehne-klein__text {
  font-size: var(--t-lg); line-height: 1.5; color: var(--text-leise); max-width: 40ch;
  padding-left: 18px; border-left: 2px solid var(--rot);
}
.buehne-klein__foto { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.buehne-klein__foto img { aspect-ratio: 21 / 8; max-height: 600px; }
@media (max-width: 860px) {
  .buehne-klein__innen { grid-template-columns: 1fr; }
  .buehne-klein__szene { min-height: clamp(360px, 62svh, 560px); }
  .buehne-klein__foto img { aspect-ratio: 4 / 3; }
}
/* Schlicht (Impressum): Szene links, kleines Foto rechts — nebeneinander, nie übereinander */
.buehne-klein__rahmen { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--spalt); align-items: end; }
.buehne-klein--schlicht { padding-top: clamp(20px, 3vw, 44px); }
.buehne-klein--schlicht .buehne-klein__szene { min-height: clamp(340px, 46svh, 520px); padding-bottom: 0; padding-top: 120px; }
.buehne-klein--schlicht .buehne-klein__innen { grid-template-columns: 1fr; }
.buehne-klein--schlicht h1 { font-size: var(--t-3xl); max-width: 14ch; }
.buehne-klein--schlicht .buehne-klein__foto { width: auto; margin: 0; }
.buehne-klein--schlicht .buehne-klein__foto img { aspect-ratio: 4 / 5; max-height: 460px; }
@media (max-width: 860px) {
  .buehne-klein__rahmen { grid-template-columns: 1fr; }
  .buehne-klein--schlicht .buehne-klein__szene { min-height: 0; padding-top: 112px; }
  .buehne-klein--schlicht .buehne-klein__foto img { aspect-ratio: 16 / 9; }
}

.krume {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font: 500 var(--t-mono)/1.4 var(--schrift-mono); letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-leise);
}
.krume a { color: var(--text-leise); text-decoration: none; transition: color .2s var(--ease); min-height: 32px; display: inline-flex; align-items: center; }
.krume a:hover { color: var(--text); }
.krume > span:last-child { color: var(--text); }
.krume__trenner { width: 14px; height: 1px; background: currentColor; opacity: .7; }

/* ==========================================================================
   Aufruf — kurzer Projektaufruf, ohne Foto. Oben die laufende Naht.
   ========================================================================== */
.aufruf { position: relative; background: var(--flaeche); padding-block: 0 clamp(64px, 8vw, 120px); border-top: 1px solid var(--linie); }
.aufruf > .naht { margin-bottom: clamp(56px, 7vw, 104px); border-top: 0; }
.aufruf__innen { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px clamp(32px, 6vw, 96px); align-items: end; }
.aufruf__innen > .kapitel__label { grid-column: 1 / -1; }
.aufruf__titel { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5.8rem); line-height: .92; max-width: 15ch; }
.aufruf__text { display: grid; align-content: end; gap: 26px; }
.aufruf__text > p { font-size: var(--t-lg); color: var(--text-leise); max-width: 42ch; }
.aufruf__text .knopf-reihe { gap: 14px 24px; }
@media (max-width: 860px) { .aufruf__innen { grid-template-columns: 1fr; gap: 22px; } .aufruf__titel { max-width: 18ch; } }

/* ==========================================================================
   Ablauf — links die Schritte, rechts das mitlaufende Bild (data-ablauf)
   ========================================================================== */
.ablauf__gitter { display: grid; gap: clamp(28px, 4vw, 72px); }
.ablauf__schritte { position: relative; }
.ablauf__schritt {
  position: relative; display: block; width: 100%; text-align: left;
  padding: 26px 0 30px; background: none; border: 0; border-top: 1px solid var(--linie);
  color: inherit; font: inherit;
}
.ablauf__marke {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px;
  font: 500 var(--t-mono)/1.4 var(--schrift-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--text-leise);
}
.ablauf__nr { font: 700 clamp(2.4rem, 4vw, 3.6rem)/.8 var(--schrift-anzeige); letter-spacing: -.02em; color: var(--text); transition: color .4s var(--ease); }
.ablauf__schritt h3 { font-size: var(--t-xl); transition: color .4s var(--ease); }
.ablauf__schritt p { margin-top: 10px; max-width: 52ch; color: var(--text-leise); }
.ablauf__inline { display: block; margin-top: 20px; }
.ablauf__inline img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: var(--r-1); }
.ablauf__medien { display: none; }
@media (min-width: 900px) {
  .js .ablauf__gitter { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .js .ablauf__schritt { min-height: 36vh; padding-block: 6vh; cursor: pointer; display: flex; flex-direction: column; justify-content: center; }
  .js .ablauf__schritt::before {
    content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%;
    background: var(--rot); transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s var(--ease-aus);
  }
  .js .ablauf__schritt[aria-current="step"]::before { transform: scaleX(1); }
  .js .ablauf__schritt:not([aria-current="step"]) :is(h3, p, .ablauf__nr) { opacity: .5; }
  .js .ablauf__schritt:hover :is(h3, p, .ablauf__nr) { opacity: .85; }
  .js .ablauf__inline { display: none; }
  .js .ablauf__medien { position: sticky; top: calc(var(--kopf-h) + 24px); display: flex; align-items: center; height: calc(100svh - var(--kopf-h) - 48px); }
  .js .ablauf__rahmen { position: relative; display: grid; width: 100%; }
  .js .ablauf__medium { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s linear .6s; }
  .js .ablauf__medium[data-aktiv="true"] { opacity: 1; visibility: visible; transition: opacity .6s var(--ease), visibility 0s; }
  .js .ablauf__medium img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; background: var(--flaeche-2); border-radius: var(--r-1); }
  .js .ablauf__medium figcaption {
    display: flex; align-items: baseline; gap: 12px; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--linie);
    font: 400 var(--t-mono)/1.5 var(--schrift-mono); letter-spacing: .02em; color: var(--text-leise);
  }
  .js .ablauf__medium figcaption .ablauf__nr-klein { color: var(--text); font-weight: 500; }
  .js .ablauf__rahmen::after {
    content: ""; position: absolute; left: 0; top: -14px; height: 2px;
    width: calc(100% * var(--ablauf-fortschritt, 0)); background: var(--text);
    transition: width .8s var(--ease-aus);
  }
}
@media (min-width: 900px) and (max-height: 720px) { .js .ablauf__medien { height: auto; display: block; } }

/* ==========================================================================
   Umschalter (data-wahl) und Reiter mit Konsole (data-reiter) — Segmentschalter
   wie auf der Instrumententafel
   ========================================================================== */
.wahl__leiste, .reiter__leiste {
  display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; margin-bottom: clamp(20px, 3vw, 36px);
  background: var(--mulde); border: 1px solid var(--linie); border-radius: var(--r-2); max-width: 100%;
}
.reiter__leiste { margin-bottom: 12px; }
.wahl__knopf, .reiter__knopf {
  position: relative; min-height: 44px; padding: 10px 16px;
  font: 600 var(--t-sm)/1.1 var(--schrift-text); white-space: nowrap;
  color: var(--text-leise); background: transparent; border: 0; border-radius: 3px;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.wahl__knopf:hover, .reiter__knopf:hover { color: var(--text); }
.wahl__knopf[aria-selected="true"], .reiter__knopf[aria-selected="true"] { color: var(--grund); background: var(--text); }
.wahl__tafeln, .reiter__tafeln { display: grid; }
.wahl__tafel, .reiter__tafel { grid-area: 1 / 1; min-width: 0; }
.js .wahl__tafel, .js .reiter__tafel { opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .3s var(--ease), transform .45s var(--ease-aus), visibility 0s linear .3s; }
.js .wahl__tafel[data-aktiv="true"], .js .reiter__tafel[data-aktiv="true"] { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .45s var(--ease-aus), visibility 0s; }
.wahl__tafel .nur-ohne-js, .reiter__tafel .nur-ohne-js { margin-bottom: 16px; }
html:not(.js) .wahl__leiste, html:not(.js) .reiter__leiste { display: none; }
html:not(.js) .wahl__tafeln, html:not(.js) .reiter__tafeln { display: block; }
html:not(.js) .wahl__tafel + .wahl__tafel, html:not(.js) .reiter__tafel + .reiter__tafel { margin-top: 36px; }

.reiter__tafeln { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-2); box-shadow: inset 0 2px 0 var(--mulde); }
.reiter__tafel { padding: clamp(18px, 2.8vw, 34px); }
.konsole {
  margin: 0; overflow-x: auto;
  font: 400 clamp(.74rem, 1.3vw, .84rem)/1.95 var(--schrift-mono);
  color: var(--text); white-space: pre-wrap; word-break: break-word;
}
.konsole b { color: var(--blau-text); font-weight: 500; user-select: none; }
.reiter__fuss {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--linie);
}
.reiter__fuss small { color: var(--text-leise); font-size: .86rem; }
.kopieren {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 16px;
  font: 500 var(--t-mono)/1 var(--schrift-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--text); background: transparent;
  border: 1px solid var(--linie-stark); border-radius: var(--r-1);
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.kopieren:hover { border-color: var(--text); background: var(--mulde); }
.kopieren svg { width: 14px; height: 14px; flex: none; }
.kopieren[data-fertig="true"] { color: var(--gut); border-color: var(--gut); }
html:not(.js) .kopieren { display: none; }
@media (max-width: 640px) { .reiter__knopf, .wahl__knopf { padding: 10px 12px; font-size: .88rem; } }

/* ==========================================================================
   Kennwerte — große Zahlen wie auf einem Typenschild
   ========================================================================== */
.kennwerte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 2px solid var(--text); }
.kennwert { padding: 18px var(--spalt) 24px 0; min-width: 0; }
.kennwert + .kennwert { padding-left: var(--spalt); border-left: 1px solid var(--linie); }
.kennwert dt { margin-bottom: 16px; font: 500 var(--t-mono)/1.3 var(--schrift-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--text-leise); }
.kennwert dd {
  margin: 0; font: 700 clamp(2.5rem, 4.6vw, 4.4rem)/.86 var(--schrift-anzeige);
  letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text);
}
.kennwert dd i { font: 500 .8rem/1 var(--schrift-mono); font-style: normal; letter-spacing: .02em; color: var(--text-leise); margin-left: 8px; }
.kennwert dd small { display: block; margin-top: 14px; font: 400 var(--t-sm)/1.5 var(--schrift-text); letter-spacing: 0; color: var(--text-leise); }
@media (max-width: 700px) {
  .kennwerte { grid-template-columns: 1fr; }
  .kennwert + .kennwert { padding-left: 0; border-left: 0; border-top: 1px solid var(--linie); }
}

/* --- Druck ------------------------------------------------------------------ */
@media print {
  .kopf, .burger, .knopf-reihe, .aufruf, .fuss__halle, .buehne-klein__feld, .naht { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .sz-bereit [data-enthuellen] img, .sz-bereit [data-enthuellen] { clip-path: none !important; transform: none !important; }
  main > section { padding-block: 16pt; }
  .fuss { background: none; color: #000; }
}

/* --- Reduzierte Bewegung: alles steht fertig da ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .sz-bereit [data-enthuellen] img, .sz-bereit [data-enthuellen] { clip-path: none !important; transform: none !important; }
  .laufband__spur { animation: none !important; flex-wrap: wrap; }
  .naht::before, .lampe--blinkt { animation: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
