/* lp-263 · Bauer Gert, Gestaltungsstudie · Farben aus dem Lager: Regalträger-Orange, Steher-Blau, Fuhrpark-Gelb, Nacht, Zettel-Papier.
   Größen nur aus den Variablen (SCHRIFT.md der Werkstatt). Ecken: 6 px, Schilder 4 px. */
@font-face { font-family: "Red Hat Display"; src: url("../fonts/red-hat-display-var.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-var.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Caveat Brush"; src: url("../fonts/caveat-brush-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --orange: #FF5A14; --blau: #1546D8; --gelb: #FFD21A; --nacht: #0C1130; --papier: #F4EFE2; --tinte: #0C1130; --weiss: #fff;
  --blau-hell: #2F60F2; --orange-tief: #E0440A;
  --rand: clamp(18px, 4.2vw, 72px);
  --g-wort: clamp(3.5rem, min(17vw, 30svh), 19rem);
  --g-zeile: clamp(2.1rem, min(5.2vw, 9svh), 5.4rem);
  --g-ueber: clamp(1.7rem, min(3.2vw, 6.4svh), 3.2rem);
  --g-text: clamp(1.0625rem, 1.05vw, 1.1875rem);
  --g-klein: 0.875rem;
  --g-schild: clamp(1.2rem, 1.55vw, 1.7rem);
  --a1: 8px; --a2: 16px; --a3: 24px; --a4: 40px; --a5: 64px; --a6: 104px; --a7: 168px;
  --r: 6px;
  --anzeige: "Red Hat Display", "Arial Black", Arial, sans-serif;
  --text: "Figtree", "Segoe UI", Arial, sans-serif;
  --hand: "Caveat Brush", "Segoe Print", "Comic Sans MS", cursive;
  --k-bg: var(--tinte); --k-fg: var(--weiss);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nacht); color: var(--tinte); font: 400 var(--g-text)/1.5 var(--text); overflow-x: hidden; }
img, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 3px; }
.rand { width: min(1600px, 100% - 2 * var(--rand)); margin-inline: auto; }
.sprung { position: fixed; left: 12px; top: -80px; z-index: 99; background: var(--gelb); color: var(--tinte); padding: 10px 16px; border-radius: var(--r); font-weight: 700; }
.sprung:focus { top: 12px; }

h1, h2 { font-family: var(--anzeige); font-weight: 850; letter-spacing: -0.025em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: var(--g-zeile); }
h2 { font-size: var(--g-ueber); }
.riese { font: 900 var(--g-wort)/0.8 var(--anzeige); letter-spacing: -0.045em; text-transform: uppercase; white-space: nowrap; pointer-events: none; user-select: none; }

/* Knopf: ein gefüllter Typ, zweite Aktion als Rahmen */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 2px solid var(--k-bg); border-radius: var(--r); background: var(--k-bg); color: var(--k-fg); font: 750 1.0625rem/1 var(--anzeige); letter-spacing: 0.005em; text-decoration: none; cursor: pointer; transition: transform 0.18s cubic-bezier(.2,.8,.2,1), box-shadow 0.18s; box-shadow: 0 5px 0 rgba(12, 17, 48, 0.28); }
.knopf:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(12, 17, 48, 0.28); }
.knopf:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(12, 17, 48, 0.28); }
.knopf-rahmen { background: transparent; color: var(--k-bg); box-shadow: none; }
.knopf-rahmen:hover, .knopf-rahmen:active { box-shadow: none; }
.knopf-klein { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; box-shadow: none; }

/* Kopfleiste: festes Schild, auf jeder Farbe lesbar */
.leiste { position: fixed; z-index: 50; top: 12px; left: calc(var(--rand) - 16px); right: calc(var(--rand) - 16px); max-width: 1632px; margin-inline: auto; height: 56px; display: flex; align-items: center; gap: clamp(10px, 2vw, 28px); padding: 0 6px 0 16px; background: var(--nacht); color: var(--weiss); border-radius: var(--r); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 10px 26px -12px rgba(0, 0, 0, 0.6); --k-bg: var(--gelb); --k-fg: var(--tinte); }
.marke { font: 900 1.1rem/1 var(--anzeige); letter-spacing: 0.01em; text-decoration: none; display: flex; align-items: baseline; gap: 8px; min-height: 44px; align-items: center; }
.marke small { font: 600 0.72rem/1 var(--text); letter-spacing: 0.04em; text-transform: uppercase; background: var(--gelb); color: var(--tinte); padding: 4px 6px 3px; border-radius: 3px; }
.leiste-nav { display: flex; gap: clamp(4px, 1.4vw, 22px); margin-left: auto; }
.leiste-nav a { font: 650 0.95rem/1 var(--text); text-decoration: none; padding: 14px 6px; border-radius: 3px; }
.leiste-nav a:hover { text-decoration: underline; }
.fach-anzeige { display: flex; align-items: center; gap: 8px; font: 650 0.85rem/1 var(--text); min-width: 7.6em; }
.fach-tafel { display: grid; place-items: center; width: 30px; height: 30px; background: var(--gelb); color: var(--tinte); border-radius: 3px; font: 900 1.05rem/1 var(--anzeige); overflow: hidden; }
.fach-tafel b { display: block; transition: transform 0.35s cubic-bezier(.3,1.4,.5,1); }
.fach-tafel.wechsel b { transform: translateY(-110%); transition: none; }

/* Regalträger */
.traeger { position: relative; height: clamp(22px, 2.5vw, 38px); background: linear-gradient(180deg, #ff7d42 0 14%, var(--orange) 14% 78%, var(--orange-tief) 78%); border-radius: 3px; box-shadow: 0 18px 26px -14px rgba(0, 0, 0, 0.55); }
.traeger-tafel { position: absolute; left: 7%; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 1.7em; height: 1.7em; background: var(--gelb); color: var(--tinte); font: 900 clamp(0.85rem, 1.2vw, 1.15rem)/1 var(--anzeige); border-radius: 2px; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }

/* Schild: handbeschrifteter Zettel an der Schnur, pendelt (Winkel --w kommt aus dem Skript) */
.schild { position: relative; display: inline-block; padding-top: 22px; transform-origin: 1.05em 0; rotate: var(--w, 0deg); color: var(--tinte); font: 400 var(--g-schild)/1.05 var(--hand); white-space: nowrap; }
.schild::before { content: ""; position: absolute; left: 1.05em; top: 0; width: 2px; height: calc(22px + 0.5em); background: #20242e; translate: -1px 0; }
.schild-blatt { display: block; position: relative; background: var(--papier); padding: 0.34em 0.75em 0.36em 1.75em; border-radius: 4px; box-shadow: 0 3px 0 rgba(12, 17, 48, 0.22), 0 12px 18px -10px rgba(12, 17, 48, 0.45); }
.schild-blatt::before { content: ""; position: absolute; left: 1.05em; top: 0.5em; width: 0.5em; height: 0.5em; translate: -50% 0; border-radius: 50%; background: #20242e; box-shadow: 0 0 0 0.13em #cfc6ad; }
.schild-gross { font-size: clamp(1.5rem, 2.3vw, 2.4rem); }
.schild-gross .schild-blatt { padding: 0.5em 1em 0.5em 1.9em; }
.schild-gross b { display: block; font: 900 1.25em/1 var(--anzeige); letter-spacing: -0.02em; text-transform: uppercase; margin-bottom: 0.06em; }

/* ============ Fach 5 · Bühne ============ */
.buehne { position: relative; background: var(--orange); color: var(--tinte); }
.buehne-halt { position: relative; padding: 120px 0 var(--a5); display: grid; gap: var(--a4); }
.film, .schilder, .zaehler, .weiter, .riese-zerlegt, .traeger-kopf, .schild-kopf { display: none; }
.steh-motor { width: min(78vw, 560px); margin-inline: auto; }
.steh-motor img { width: 100%; filter: none; }
.kopf h1 { max-width: 13.5em; }
.kopf-zeile { margin-top: var(--a3); font-size: clamp(1.15rem, 1.5vw, 1.45rem); font-weight: 550; max-width: 30em; }
.kopf-fakten { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: var(--a3); font-weight: 600; }
.kopf-fakten b { font: 900 1.5em/1 var(--anzeige); margin-right: 0.25em; }
.kopf-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--a3); }
.kopf-satz { margin-top: 14px; font-weight: 600; }
.kopf-studie { margin-top: var(--a3); font-size: var(--g-klein); max-width: 34em; opacity: 0.86; }
.akte { display: grid; gap: var(--a4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.akt p { margin-top: var(--a2); max-width: 30em; }
.akt p + p { margin-top: var(--a3); }
.steh-zerlegt { width: min(94vw, 900px); margin-inline: auto; }

/* Stehende Fassung am Computer (weniger Bewegung, ohne JavaScript, flaches Fenster): Text links, Motor rechts */
@media (min-width: 901px) {
  html:not(.kino) .buehne-halt { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; column-gap: var(--a5); width: min(1600px, 100% - 2 * var(--rand)); margin-inline: auto; }
  html:not(.kino) .buehne-halt > .rand { width: auto; margin: 0; }
  html:not(.kino) .kopf { grid-area: 1 / 1; }
  html:not(.kino) .steh-motor { grid-area: 1 / 2; width: 100%; }
  html:not(.kino) .akte, html:not(.kino) .steh-zerlegt { grid-column: 1 / -1; }
}

/* Film-Fassung: angeheftete Bühne (Klasse film setzt frueh.js, wenn Bewegung erwünscht und das Fenster hoch genug ist) */
html.kino .buehne { height: 470svh; }
html.kino .buehne-halt { position: sticky; top: 0; height: 100svh; padding: 0; display: block; overflow: clip; --mw: min(45vw, 70svh); --mx: 71vw; --my: 51svh; }
html.kino .film { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
html.kino .steh-zerlegt { display: none; }
html.kino .steh-motor { position: absolute; margin: 0; width: var(--mw); left: calc(var(--mx) - var(--mw) * 0.5); top: calc(var(--my) - var(--mw) * 0.4645); }
html.kino.bereit .steh-motor { visibility: hidden; }
html.kino .traeger-kopf { background: linear-gradient(180deg, #3d6cff 0 14%, var(--blau) 14% 78%, #0d33a8 78%); display: block; position: absolute; left: calc(var(--mx) - var(--mw) * 0.62); right: -3vw; top: calc(var(--my) + var(--mw) * 0.438); border-radius: 3px 0 0 3px; translate: 0 calc(clamp(0, (var(--p, 0) - 0.03) * 7, 1) * 62svh); }
html.kino .traeger-kopf .traeger-tafel { left: 5%; }
html.kino .schild-kopf { display: inline-block; position: absolute; left: calc(var(--mx) + var(--mw) * 0.28); top: calc(var(--my) - var(--mw) * 0.14); opacity: clamp(0, 1 - var(--p, 0) * 22, 1); }
html.kino .kopf { position: absolute; left: 0; right: 0; top: 50%; translate: calc(var(--p, 0) * -46vw) -47%; opacity: clamp(0, 1 - var(--p, 0) * 13, 1); }
html.kino .kopf > * { max-width: min(47%, 700px); }
html.kino .kopf h1 { max-width: min(49%, 12.6em); }
html.kino .akte { position: absolute; left: 0; right: 0; top: 0; height: 100%; display: block; pointer-events: none; }
html.kino .akt { position: absolute; left: 0; top: 50%; translate: 0 -50%; width: min(27%, 400px); opacity: 0; }
html.kino .akt-1 { opacity: clamp(0, min((var(--p, 0) - 0.15) * 14, (0.47 - var(--p, 0)) * 14), 1); translate: 0 calc(-50% + (0.34 - var(--p, 0)) * 60svh * 0.35); }
html.kino .akt-2 { opacity: clamp(0, min((var(--p, 0) - 0.52) * 14, (0.78 - var(--p, 0)) * 14), 1); translate: 0 calc(-50% + (0.65 - var(--p, 0)) * 60svh * 0.35); }
html.kino .akt-3 { opacity: clamp(0, (var(--p, 0) - 0.83) * 14, 1); translate: 0 calc(-50% + (1 - clamp(0, (var(--p, 0) - 0.83) * 8, 1)) * 5svh); }
html.kino .akt-3.da { pointer-events: auto; }
html.kino .riese-zerlegt { display: flex; position: absolute; left: 67vw; top: 53.5svh; translate: -50% -50%; margin: 0; font-size: min(12.4vw, 28svh); color: var(--gelb); opacity: clamp(0, (var(--p, 0) - 0.09) * 9, 1); --auf: clamp(0, (var(--p, 0) - 0.16) * 0.5, 0.17); }
html.kino .riese-zerlegt span { display: block; translate: calc(var(--i) * var(--auf) * 1em) calc(var(--j) * var(--auf) * 0.5em); rotate: calc(var(--j) * var(--auf) * 20deg); }
.riese-zerlegt span:nth-child(1) { --i: -3; --j: 1; } .riese-zerlegt span:nth-child(2) { --i: -2; --j: -1.4; } .riese-zerlegt span:nth-child(3) { --i: -1; --j: 0.7; }
.riese-zerlegt span:nth-child(4) { --i: 0; --j: -0.5; } .riese-zerlegt span:nth-child(5) { --i: 1; --j: 1.2; } .riese-zerlegt span:nth-child(6) { --i: 2; --j: -1; } .riese-zerlegt span:nth-child(7) { --i: 3; --j: 0.8; }
html.kino .schilder { display: block; position: absolute; inset: 0; pointer-events: none; }
html.kino .schilder .schild { position: absolute; left: 0; top: 0; opacity: 0; scale: 0.6; transition: opacity 0.25s, scale 0.35s cubic-bezier(.3,1.5,.5,1); transform-origin: 1.05em 0; font-size: clamp(1.05rem, 1.35vw, 1.5rem); }
html.kino .schilder .schild.da { opacity: 1; scale: 1; }
html.kino .zaehler { display: flex; align-items: baseline; gap: 0.3em; position: absolute; left: var(--rand); bottom: 4svh; font: 600 1.05rem/1 var(--text); opacity: clamp(0, (var(--p, 0) - 0.08) * 10, 1); }
html.kino .zaehler b { font: 900 clamp(2.6rem, 5vw, 5rem)/0.8 var(--anzeige); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
html.kino .weiter { display: block; position: absolute; left: var(--rand); bottom: 3.2svh; font: 650 var(--g-klein)/1 var(--text); opacity: clamp(0, 1 - var(--p, 0) * 16, 1); }
html.kino .weiter::after { content: ""; display: inline-block; width: 2px; height: 22px; margin-left: 10px; vertical-align: middle; background: currentColor; transform-origin: 50% 0; animation: zug 1.8s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes zug { 0% { scale: 1 0; } 55% { scale: 1 1; } 100% { scale: 1 1; opacity: 0; } }
/* Startbild ohne Springen: bis das Skript einmal gezeichnet hat, nur der erste Bildschirm */
html.kino:not(.bereit) .akte, html.kino:not(.bereit) .schilder, html.kino:not(.bereit) .riese-zerlegt, html.kino:not(.bereit) .zaehler { visibility: hidden; }

/* ============ Fach 4 · Lager ============ */
.lager { position: relative; background: var(--gelb); color: var(--tinte); padding: var(--a7) 0 var(--a6); overflow: hidden; transition: color 0.5s 0.15s; }
.lager-licht { position: absolute; inset: 0; background: var(--gelb); }
html.js .lager { background: var(--nacht); }
html.js .lager-licht { clip-path: circle(150vmax at var(--sx, 30%) var(--sy, 420px)); transition: clip-path 1.15s cubic-bezier(.7, 0, .2, 1); }
html.js .lager:not(.an) { color: var(--weiss); --k-bg: var(--gelb); --k-fg: var(--tinte); }
html.js .lager:not(.an) .lager-licht { clip-path: circle(0px at var(--sx, 30%) var(--sy, 420px)); }
.lager-innen { position: relative; }
.lager-kopf { max-width: 44em; }
.lager-kopf h2 { font-size: var(--g-zeile); }
.lager-text { margin-top: var(--a3); font-size: clamp(1.15rem, 1.5vw, 1.4rem); font-weight: 500; max-width: 32em; }
.schalter { display: inline-flex; margin-top: var(--a4); padding: 5px; gap: 5px; border: 2px solid currentColor; border-radius: 9px; }
.schalter-knopf { min-height: 50px; padding: 0 22px; border: 0; border-radius: 5px; background: transparent; color: inherit; font: 800 1.05rem/1 var(--anzeige); cursor: pointer; transition: background 0.25s, color 0.25s; }
.schalter-knopf[aria-pressed="true"] { background: var(--tinte); color: var(--gelb); }
html.js .lager:not(.an) .schalter-knopf[aria-pressed="true"] { background: var(--gelb); color: var(--tinte); }
.lager-stand { margin-top: var(--a2); font-weight: 650; min-height: 1.5em; }
html:not(.js) .schalter, html:not(.js) .lager-stand { display: none; }

.regal { margin-top: var(--a5); display: grid; gap: clamp(26px, 4vw, 64px); }
.fach-reihe { display: flex; align-items: flex-end; justify-content: space-between; gap: 1%; padding: 0 3%; margin-bottom: -0.5%; position: relative; z-index: 1; min-height: clamp(110px, 17vw, 300px); }
.ware { height: auto; flex: 0 0 auto; position: relative; }
.w-motor { width: 17%; } .w-getriebe { width: 22%; } .w-block { width: 14%; } .w-achse { width: 27%; margin-bottom: 0.4%; } .w-kruemmer { width: 11.5%; } .w-welle { width: 16%; } .w-turbo { width: 8.5%; }
.spiegel { scale: -1 1; }
/* Licht aus: die Teile stehen nur schwach im Dunkeln. Die Maus ist eine Taschenlampe (Lage --lx/--ly je Bild, --fx/--fy im Regal). */
html.js .lager:not(.an) .ware { -webkit-mask-image: radial-gradient(circle at var(--lx, -999px) var(--ly, -999px), #000 0, #000 90px, rgba(0, 0, 0, 0.1) 210px); mask-image: radial-gradient(circle at var(--lx, -999px) var(--ly, -999px), #000 0, #000 90px, rgba(0, 0, 0, 0.1) 210px); }
.regal { position: relative; }
.regal::before { content: ""; position: absolute; inset: -30px 0; pointer-events: none; opacity: 0; background: radial-gradient(circle 250px at var(--fx, -999px) var(--fy, -999px), rgba(255, 210, 26, 0.95) 0, rgba(255, 210, 26, 0.75) 40%, rgba(255, 210, 26, 0) 100%); }
html.js .lager:not(.an) .regal::before { opacity: 1; }
html.js .lager.an .ware { animation: hops 0.62s cubic-bezier(.3, 1.5, .5, 1) var(--d, 0s) backwards; }
@keyframes hops { 0% { translate: 0 0; } 45% { translate: 0 -4.5%; } 100% { translate: 0 0; } }
.ware:nth-child(1) { --d: 0.22s; } .ware:nth-child(2) { --d: 0.34s; } .ware:nth-child(3) { --d: 0.46s; } .ware:nth-child(4) { --d: 0.58s; } .ware:nth-child(5) { --d: 0.70s; }
.fach + .fach .ware:nth-child(1) { --d: 0.40s; } .fach + .fach .ware:nth-child(2) { --d: 0.52s; } .fach + .fach .ware:nth-child(3) { --d: 0.64s; } .fach + .fach .ware:nth-child(4) { --d: 0.76s; } .fach + .fach .ware:nth-child(5) { --d: 0.88s; }
.schild-leer { position: absolute; left: 46%; top: 60%; opacity: 0; transition: opacity 0.3s; font-size: clamp(1.3rem, 2vw, 2rem); }
html.js .lager:not(.an) .schild-leer { opacity: 1; }
html:not(.js) .schild-leer { display: none; }

.sorten { margin-top: var(--a6); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--a4) clamp(20px, 4vw, 72px); }
.sorte p { margin-top: var(--a3); max-width: 24em; font-weight: 500; }
.echt { margin-top: var(--a6); --auf: clamp(0, var(--p, 1) * 4 - 0.5, 1); }
.echt-bild { overflow: hidden; border-radius: var(--r); clip-path: inset(0 calc((1 - var(--auf)) * 22%) round 6px); }
.echt-bild img { width: 100%; scale: calc(1.18 - var(--auf) * 0.18); }
.echt figcaption, .tor figcaption { margin-top: var(--a2); font-size: var(--g-klein); font-weight: 500; }

/* Laufband: zwei Zeilen auf dem Träger, gegenläufig am Scroll */
.laufband { background: var(--orange); color: var(--tinte); padding: clamp(14px, 1.8vw, 26px) 0; overflow: hidden; border-block: clamp(5px, 0.6vw, 9px) solid var(--orange-tief); border-top-color: #ff7d42; }
.lauf { display: flex; align-items: center; gap: 0.5em; width: max-content; font: 900 clamp(1.9rem, 5.2vw, 5.2rem)/1 var(--anzeige); letter-spacing: -0.03em; text-transform: uppercase; white-space: nowrap; }
.lauf i { width: 0.42em; height: 0.48em; background: var(--tinte); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); flex: none; }
.lauf-a { translate: calc(var(--p, 0.5) * -34%) 0; }
.lauf-b { translate: calc(-36% + var(--p, 0.5) * 34%) 0; color: var(--nacht); -webkit-text-stroke: 0; opacity: 0.9; margin-top: 0.08em; font-size: clamp(1.3rem, 3.2vw, 3.2rem); }

/* ============ Fach 3 · Fuhrpark ============ */
.fuhrpark { background: var(--blau); color: var(--weiss); --k-bg: var(--gelb); --k-fg: var(--tinte); padding-bottom: var(--a6); }
.strecke-halt { position: relative; padding: var(--a6) 0 var(--a4); }
.van, .riese-l, .mass, .traeger-van { display: none; }
.strecke-text { position: relative; }
.strecke-text p { margin-top: var(--a3); max-width: 28em; font-size: clamp(1.1rem, 1.4vw, 1.35rem); font-weight: 500; }
.strecke-text h2 { font-size: var(--g-zeile); }
.steh-van { width: min(92vw, 900px); margin: var(--a4) auto 0; }
.laengen { display: flex; flex-wrap: wrap; gap: 8px 10px; width: min(1600px, 100% - 2 * var(--rand)); margin: var(--a4) auto 0; }
.laengen li { padding: 10px 14px 9px; border: 2px solid rgba(255, 255, 255, 0.45); border-radius: var(--r); font-weight: 600; font-variant-numeric: tabular-nums; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.laengen b { font: 900 1.15em/1 var(--anzeige); margin-right: 0.3em; }
.laengen li.aktiv { background: var(--gelb); border-color: var(--gelb); color: var(--tinte); }
.mass-hinweis { width: min(1600px, 100% - 2 * var(--rand)); margin: var(--a2) auto 0; font-size: var(--g-klein); opacity: 0.85; }
html.kino .strecke { height: 300svh; }
html.kino .strecke-halt { position: sticky; top: 0; height: 100svh; padding: 0; overflow: clip; }
html.kino .steh-van { display: none; }
html.kino .van { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
html.kino .riese-l { display: block; position: absolute; right: 3vw; top: 13svh; margin: 0; font-size: min(36vw, 58svh); color: var(--blau-hell); }
html.kino .riese-l span { display: inline-block; }
html.kino .riese-l.wechsel span { animation: ziffer 0.45s cubic-bezier(.3,1.4,.5,1); }
@keyframes ziffer { from { translate: 0 0.35em; opacity: 0; } to { translate: 0 0; opacity: 1; } }
html.kino .strecke-text { position: absolute; left: 0; right: 0; top: 12svh; }
html.kino .strecke-text > * { max-width: min(46%, 600px); }
html.kino .traeger-van { display: block; position: absolute; left: -3vw; right: -3vw; top: 76svh; }
html.kino .mass { display: block; position: absolute; left: 0; right: 0; top: calc(76svh + clamp(22px, 2.5vw, 38px) + 12px); }
html.kino .mass-band { height: 18px; margin-left: var(--vx, 8vw); width: var(--vl, 50vw); background: repeating-linear-gradient(90deg, var(--gelb) 0 2px, transparent 2px calc(var(--m, 100px) / 2)) left / 100% 9px no-repeat, repeating-linear-gradient(90deg, var(--gelb) 0 2px, transparent 2px var(--m, 100px)) left / 100% 18px no-repeat; border-right: 2px solid var(--gelb); }
html.kino .mass-wert { position: absolute; left: var(--rand); top: 28px; font: 850 clamp(1.3rem, 2vw, 2rem)/1 var(--anzeige); color: var(--gelb); }
html.kino .mass-wert b { font: 900 var(--g-zeile)/0.9 var(--anzeige); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--gelb); }
html.kino .laengen { position: absolute; right: var(--rand); bottom: 5svh; width: auto; margin: 0; justify-content: flex-end; }
html.kino .mass-hinweis { position: absolute; left: var(--rand); bottom: 3svh; width: auto; margin: 0; }

.hof { padding-top: var(--a6); }
.tor-rahmen { position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 16 / 7; background: #20242e; }
.tor-rahmen img { width: 100%; height: 100%; object-fit: cover; scale: calc(1.12 - var(--t) * 0.12); }
.tor { --t: clamp(0, (var(--p, 1) - 0.2) * 3.4, 1); }
.tor-blatt { position: absolute; inset: 0; display: grid; place-items: center; translate: 0 calc(var(--t) * -101%); background: repeating-linear-gradient(180deg, #d5d9df 0 3px, #bfc5cd 3px 30px, #9aa1ab 30px 33px); box-shadow: 0 14px 0 #6f7680, 0 30px 40px rgba(0, 0, 0, 0.5); }
.tor-blatt span { font: 900 clamp(1.6rem, 6vw, 6rem)/1 var(--anzeige); letter-spacing: -0.02em; text-transform: uppercase; color: #5d646e; }
.hof-fakten { margin-top: var(--a5); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--a4) clamp(20px, 4vw, 72px); }
.hof-fakten b { display: block; font: 900 var(--g-zeile)/0.95 var(--anzeige); letter-spacing: -0.03em; color: var(--gelb); }
.hof-fakten span { display: block; margin-top: var(--a2); max-width: 24em; font-weight: 500; }
.hof-link { margin-top: var(--a5); }

/* ============ Fach 2 · Termin: das große Schild ============ */
.termin { background: var(--blau); padding: var(--a5) 0 var(--a7); overflow: hidden; --ein: clamp(0, var(--p, 1) * 2.6 - 0.25, 1); }
.grossschild { position: relative; max-width: 1180px; margin-inline: auto; background: var(--papier); color: var(--tinte); padding: clamp(64px, 8vw, 120px) clamp(22px, 6vw, 96px) clamp(36px, 6vw, 88px); border-radius: 10px; clip-path: polygon(9% 0, 91% 0, 100% 12%, 100% 100%, 0 100%, 0 12%); transform-origin: 50% -60px; rotate: calc((1 - var(--ein)) * -7deg); translate: 0 calc((1 - var(--ein)) * -70px); }
.grossschild-loch { position: absolute; left: 50%; top: clamp(18px, 2.6vw, 34px); width: clamp(22px, 2.8vw, 38px); aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: var(--blau); box-shadow: 0 0 0 6px #d8ceb4; }
.grossschild h2 { font: 400 clamp(2.4rem, min(6.4vw, 11svh), 6.2rem)/0.95 var(--hand); letter-spacing: 0; position: relative; display: inline-block; }
.strich { position: absolute; left: -2%; bottom: -0.22em; width: 104%; height: 0.3em; overflow: visible; }
.strich path { fill: none; stroke: var(--orange); stroke-width: 9; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--p, 1) - 0.34) * 5, 1)); }
.schritte { counter-reset: schritt; margin-top: var(--a5); display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--a4) clamp(24px, 5vw, 80px); }
.schritte li { counter-increment: schritt; position: relative; padding-left: clamp(52px, 5.4vw, 84px); }
.schritte li::before { content: counter(schritt); position: absolute; left: 0; top: -0.08em; font: 900 clamp(2.6rem, 4.6vw, 4.4rem)/0.9 var(--anzeige); color: var(--orange); }
.schritte b { display: block; font: 850 clamp(1.25rem, 1.9vw, 1.7rem)/1.1 var(--anzeige); letter-spacing: -0.015em; }
.schritte span { display: block; margin-top: 8px; font-weight: 500; }

/* ============ Fach 1 · Betrieb: Zählwerk ============ */
.betrieb { background: var(--nacht); color: var(--weiss); padding: var(--a7) 0; }
.betrieb-raster { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-width: 0; gap: var(--a5) clamp(28px, 6vw, 110px); align-items: center; }
.tacho { display: flex; gap: clamp(4px, 0.7vw, 12px); font: 900 clamp(4.6rem, min(15.5vw, 34svh), 16rem)/1 var(--anzeige); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rolle { display: block; height: 1em; overflow: hidden; background: linear-gradient(180deg, #060918, #1b2350 22% 78%, #060918); border-radius: clamp(5px, 0.8vw, 12px); padding: 0 0.06em; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08); }
.rolle-rot { background: linear-gradient(180deg, #7a2203, var(--orange) 22% 78%, #7a2203); color: var(--tinte); }
.rolle-band { display: block; translate: 0 calc(var(--z, 0) * -10%); transition: translate 1.25s cubic-bezier(.25, 1.15, .35, 1); }
.rolle:nth-child(2) .rolle-band { transition-delay: 0.06s; } .rolle:nth-child(3) .rolle-band { transition-delay: 0.12s; } .rolle:nth-child(4) .rolle-band { transition-delay: 0.18s; }
.rolle:nth-child(1) { --z: 2; } .rolle:nth-child(2) { --z: 0; } .rolle:nth-child(3) { --z: 1; } .rolle:nth-child(4) { --z: 0; }
.betrieb-text h2 { font-size: var(--g-zeile); }
.betrieb-text > p { margin-top: var(--a3); max-width: 32em; font-size: clamp(1.1rem, 1.35vw, 1.3rem); }
.jahre { margin-top: var(--a4); display: grid; gap: 4px; }
.jahre li { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; border-top: 2px solid rgba(255, 255, 255, 0.16); opacity: 0.5; transition: opacity 0.4s, translate 0.4s cubic-bezier(.2,.8,.2,1); }
.jahre li.aktiv, html:not(.js) .jahre li { opacity: 1; }
.jahre li.aktiv { translate: 10px 0; }
.jahre b { font: 900 clamp(1.5rem, 2.2vw, 2rem)/1 var(--anzeige); color: var(--gelb); font-variant-numeric: tabular-nums; }
.jahre span { font-weight: 550; }

/* ============ Fach 0 · Anfrage ============ */
.anfrage { background: var(--orange); color: var(--tinte); padding: var(--a7) 0 var(--a6); overflow: hidden; }
.anfrage-raster { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--a5) clamp(28px, 5vw, 96px); align-items: center; }
.anfrage-bild { position: relative; min-height: min(70svh, 60vw); display: grid; place-items: center; }
.riese-passt { position: absolute; left: 50%; top: 11%; translate: -50% -50%; margin: 0; color: var(--gelb); font-size: min(10.5vw, 22svh); opacity: clamp(0, (var(--p, 1) - 0.34) * 8, 1); scale: calc(0.8 + clamp(0, (var(--p, 1) - 0.34) * 4, 1) * 0.2); }
.film-zwei { display: none; }
.steh-anfrage { position: relative; width: min(70%, 460px); margin-top: 16%; }
html.kino .film-zwei { display: block; position: absolute; left: 50%; top: 59%; translate: -50% -50%; width: 132%; max-width: none; aspect-ratio: 1178 / 1002; height: auto; pointer-events: none; }
html.kino .steh-anfrage { visibility: hidden; }
.anfrage-text { position: relative; }
.anfrage-text h2 { font-size: var(--g-zeile); }
.anfrage-text > p { margin-top: var(--a3); max-width: 30em; font-weight: 500; }
.formular { margin-top: var(--a4); display: grid; gap: var(--a2); max-width: 560px; }
.feld label { display: block; font-weight: 700; margin-bottom: 6px; }
.feld input, .feld textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid var(--tinte); border-radius: var(--r); background: var(--weiss); color: var(--tinte); font: 500 1.0625rem/1.4 var(--text); }
.feld textarea { resize: vertical; }
.feld input:focus-visible, .feld textarea:focus-visible { outline: 3px solid var(--tinte); outline-offset: 2px; }
.feld [aria-invalid="true"] { background: #fff3ec; box-shadow: inset 0 0 0 2px #a01800; }
.feld-fehler { min-height: 0; font-size: var(--g-klein); font-weight: 700; color: #6e1000; }
.feld-fehler:empty { display: none; }
.formular .knopf { justify-self: start; margin-top: 6px; }
.formular-meldung { font-weight: 750; min-height: 1.5em; }
.formular-meldung:focus { outline: none; }
.anfrage-hinweis { margin-top: var(--a3) !important; font-size: var(--g-klein); max-width: 36em; }

/* Fuß */
.fuss { background: var(--nacht); color: var(--weiss); padding: var(--a5) 0 var(--a4); font-size: 0.975rem; }
.fuss-raster { display: grid; grid-template-columns: 1.4fr 1fr auto 1.4fr; gap: var(--a4); align-items: start; }
.fuss a { display: inline-block; padding: 3px 0; }
.zeichen-liste { display: flex; gap: 6px; }
.zeichen-link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); }
.zeichen-link:hover { background: rgba(255, 255, 255, 0.12); }
.zeichen { width: 22px; height: 22px; }
.fuss-klein { font-size: var(--g-klein); opacity: 0.85; }

/* Rechtliches */
.recht { background: var(--papier); color: var(--tinte); min-height: 100vh; padding: 120px 0 var(--a6); }
.recht h1 { font-size: var(--g-ueber); }
.recht h2 { font-size: 1.35rem; margin-top: var(--a4); letter-spacing: -0.01em; }
.recht p, .recht li { margin-top: var(--a2); max-width: 44em; }
.recht ul { list-style: disc; padding-left: 1.2em; }

/* ============ Schmal ============ */
@media (max-width: 900px) {
  .leiste-nav { display: none; }
  .fach-anzeige { margin-left: auto; min-width: 0; }
  .sorten, .hof-fakten { grid-template-columns: 1fr; }
  .betrieb-raster, .anfrage-raster { grid-template-columns: 1fr; }
  .tacho { justify-content: center; font-size: min(27vw, 11rem); }
  .schritte { grid-template-columns: 1fr; }
  .fuss-raster { grid-template-columns: 1fr 1fr; }
  .anfrage-bild { min-height: 78vw; order: 0; }
  html.kino .film-zwei { width: 150%; }
  .riese-passt { font-size: 21vw; top: 9%; }
  .tor-rahmen { aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  html.kino .buehne-halt { --mw: min(70vw, 33svh); --mx: 50vw; --my: 73svh; }
  html.kino .kopf { top: 84px; translate: calc(var(--p, 0) * -90vw) 0; }
  html.kino .kopf > *, html.kino .kopf h1 { max-width: none; }
  .kopf-zeile { margin-top: 12px; font-size: 1.0625rem; }
  .kopf-fakten { margin-top: 12px; font-size: 0.95rem; gap: 2px 18px; }
  .kopf-knoepfe { margin-top: 14px; gap: 8px; }
  .kopf-knoepfe .knopf { min-height: 48px; padding: 0 16px; font-size: 1rem; }
  .kopf-satz { margin-top: 10px; font-size: 0.95rem; }
  html.kino .kopf-studie { display: none; }
  html.kino .traeger-kopf { left: -3vw; }
  html.kino .schild-kopf { left: calc(var(--mx) + var(--mw) * 0.02); top: calc(var(--my) - var(--mw) * 0.52); font-size: 1.1rem; }
  html.kino .akt { top: 88px; translate: 0 0; width: auto; right: 0; }
  html.kino .akt-1, html.kino .akt-2 { translate: 0 0; }
  html.kino .akt-3 { translate: 0 0; }
  html.kino .akt p { margin-top: 10px; font-size: 1rem; }
  html.kino .riese-zerlegt { left: 50vw; top: 63svh; font-size: 19vw; }
  html.kino .schilder .schild { font-size: 0.98rem; }
  html.kino .schilder .schild:nth-child(even) { display: none; }
  html.kino .zaehler { bottom: 2.4svh; }
  html.kino .weiter { display: none; }
  html.kino .strecke-text { top: 92px; }
  html.kino .strecke-text > * { max-width: none; }
  html.kino .riese-l { top: 30svh; right: 2vw; font-size: 52vw; }
  html.kino .laengen { left: var(--rand); right: var(--rand); bottom: 10svh; justify-content: flex-start; gap: 6px; }
  html.kino .traeger-van { top: 62svh; }
  html.kino .mass { top: calc(62svh + 34px); }
  html.kino .laengen li { padding: 8px 9px 7px; font-size: 0.85rem; }
  html.kino .mass-hinweis { bottom: 2.5svh; }
  html.kino .mass-wert { top: 26px; }
  .fuss-raster { grid-template-columns: 1fr; }
  .knopf-klein { padding: 0 12px; }
  .fach-anzeige span:last-child { display: none; }
  .lager { padding-top: var(--a6); }
  .fach-reihe { padding: 0 1%; }
  .w-motor { width: 21%; } .w-getriebe { width: 27%; } .w-block { width: 18%; } .w-motor.spiegel { display: none; }
  .w-achse { width: 33%; } .w-kruemmer { width: 15%; } .w-welle { width: 21%; } .w-turbo { width: 12%; } .w-achse.spiegel { width: 0; display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
