/*
  Fahrschule Kurvenlage. One road seen from above is the whole page.
  Tokens first, every value with its derivation. Fonts are self-hosted OFL files.
*/

/* Self-hosted OFL faces, fetched with fetch_font.py; licences in fonts/licenses/. */
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-normal-400-700-latin.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }
/* Numerals: Atkinson draws a slashed zero that reads as code in prices and sums, so digits come from Instrument Sans at normal width. */
@font-face { font-family: "Kurve Ziffern"; src: url("fonts/instrument-sans-normal-400-700-latin.woff2") format("woff2"); font-weight: 400 700; font-stretch: 100%; unicode-range: U+0030-0039; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson-hyperlegible-next-normal-200-800-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  /* Ground. Asphalt is bluish because wet Bremen asphalt reads cool; hue 258 is shared by every neutral. */
  --asphalt: oklch(0.27 0.02 258);
  --asphalt-deep: oklch(0.2 0.02 258);
  /* Theory happens in the evening: the same asphalt hue, pushed darker and a little bluer (dusk). */
  --dusk: oklch(0.22 0.045 262);
  /* Pavement and kerb: concrete slab, cooled toward the asphalt hue. Not cream. */
  --beton: oklch(0.935 0.006 250);
  --beton-deep: oklch(0.86 0.009 250);
  --kerb: oklch(0.8 0.008 250);
  /* Road paint in Germany is white; it is slightly cool so it sits on the blue asphalt. */
  --paint: oklch(0.975 0.004 250);
  /* Wegweiser blue (information signs), one step darker than a screen blue so white text keeps 8:1. */
  --sign: oklch(0.4 0.14 258);
  --sign-deep: oklch(0.33 0.12 258);
  /* Warning yellow: the one signal colour. Only the sign-up action and the Haltelinie carry it. */
  --signal: oklch(0.87 0.17 95);
  --signal-shadow: oklch(0.6 0.14 85);
  --on-signal: oklch(0.2 0.02 258);
  --ink: var(--asphalt);
  --muted: oklch(0.42 0.02 258); /* on beton: 7:1 */
  --border-strong: oklch(0.55 0.02 258); /* interactive boundaries on beton, 3:1 */

  --f-display: "Instrument Sans", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Kurve Ziffern", "Atkinson Hyperlegible Next", "Segoe UI", Verdana, sans-serif;

  --space-tight: 0.5rem;
  --space-section: clamp(3.5rem, 7vw, 6rem);
  --space-air: clamp(6rem, 14vw, 11rem);
  --pad: clamp(1.25rem, 6.5vw, 6rem);
  --header-h: 64px;
  --radius: 6px;
  --spine-x: 4.5vw;
  --pad-spine: var(--pad);
  --focus: var(--signal);

  --color-accent: var(--signal);
  --color-bg: var(--asphalt);
  --color-selection-bg: var(--signal);
  --color-selection-fg: var(--on-signal);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--beton); color: var(--ink); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; font-optical-sizing: auto; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: inherit; }
::selection { background: var(--signal); color: var(--on-signal); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 8px; top: -80px; z-index: 100; background: var(--signal); color: var(--on-signal); padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 8px; }
.nb { white-space: nowrap; }
.tab { font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; gap: 1.5rem; padding-inline: var(--pad); background: var(--asphalt-deep); color: var(--paint); --focus: var(--signal); }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name { font-family: var(--f-display); font-stretch: 75%; font-weight: 700; font-size: 1.55rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; }
.brand__place { display: block; font-family: var(--f-body); font-weight: 400; font-size: 0.78rem; letter-spacing: 0; text-transform: none; opacity: 0.8; margin-top: 3px; }
.site-nav { display: flex; gap: 1.6rem; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 0.98rem; padding-block: 0.5rem; background: linear-gradient(currentColor, currentColor) left bottom / 0 2px no-repeat; transition: background-size 0.25s ease-out; }
@media (hover: hover) { .site-nav a:hover { background-size: 100% 2px; } }
.site-nav a[aria-current="true"] { background-size: 100% 2px; }
.head-phone { font-size: 0.92rem; opacity: 0.85; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 52px; padding: 0.7rem 1.5rem; background: var(--signal); color: var(--on-signal); font: 800 1.05rem/1.1 var(--f-body); text-decoration: none; border: 0; border-radius: var(--radius); cursor: pointer; box-shadow: 0 4px 0 var(--signal-shadow); transition: transform 0.16s ease-out, box-shadow 0.16s ease-out; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--signal-shadow); }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--signal-shadow); } .btn:hover:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--signal-shadow); } }
.btn svg { width: 22px; height: 22px; flex: none; transition: transform 0.25s ease-out; }
@media (hover: hover) { .btn:hover svg { transform: translateX(4px); } }
.btn--head { min-height: 42px; padding: 0.4rem 1.05rem; font-size: 0.95rem; white-space: nowrap; box-shadow: 0 3px 0 var(--signal-shadow); }
.link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 0.09em; text-underline-offset: 0.18em; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; height: clamp(600px, calc(100svh - var(--header-h)), 58.06vw); background: var(--asphalt); color: var(--paint); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art--m { display: none; }
.hero-art__ground { fill: var(--asphalt); }
.hero-art__grain { mix-blend-mode: soft-light; opacity: 0.85; }
.hero-art__walk { fill: var(--beton); }
.hero-art__kerb { fill: none; stroke: var(--kerb); }
.hero-art__kerb-shadow { fill: none; stroke: oklch(0.12 0.02 258 / 0.5); transform: translate(0, 0); }
.paint-line { fill: none; stroke: var(--paint); }
.paint-text--2 { letter-spacing: 0.03em; word-spacing: 0.16em; }
.paint-text { font-family: var(--f-display); font-weight: 700; font-stretch: 75%; letter-spacing: 0.015em; fill: var(--paint); }
/* The entrance of the painted lines runs from app.js (Web Animations, fill backwards). Without it the hero is simply fully painted. */
.rv { stroke-dasharray: 1; stroke-dashoffset: 0; }

.hero__front { position: absolute; left: var(--pad); bottom: clamp(1.25rem, 4vh, 2.5rem); width: min(33rem, 42vw); color: var(--ink); z-index: 2; --focus: var(--asphalt); }
.hero__lede { font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.3; font-weight: 600; max-width: 28ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.1rem; }
.hero__facts { margin-top: 1.1rem; font-size: 1.1rem; line-height: 1.45; color: var(--ink); font-weight: 500; }
.hero__facts strong { font-weight: 800; }

/* ---------- The spine: the dashed centre line runs through every stretch ---------- */
.stretch { position: relative; overflow-x: clip; padding-block: var(--space-section); padding-left: var(--pad); padding-right: var(--pad-spine); }
.stretch::before { display: none; }
.stretch--left { padding-left: var(--pad-spine); padding-right: var(--pad); }
.stretch--none { padding-inline: var(--pad); }
.stretch--left::before { right: auto; left: var(--spine-x); margin-right: 0; margin-left: -6px; }
.stretch::after { display: none; }
.stretch--left::after { right: auto; left: var(--spine-x); margin-right: 0; margin-left: -28px; }
.stretch--none::after { display: none; }
.price::after { bottom: var(--bend-h); }
.stretch--none::before { display: none; }
.stretch--light { --spine: var(--asphalt); --spine-a: 0.42; background: var(--beton); color: var(--ink); --focus: var(--asphalt); }
.stretch--dark { background: var(--asphalt); color: var(--paint); }
.stretch--dusk { background: var(--dusk); color: var(--paint); }
.inner { max-width: 76rem; margin-inline: auto; position: relative; }
.h2 { font-family: var(--f-display); font-stretch: 75%; font-weight: 700; font-size: clamp(2.6rem, 6.4vw, 6rem); line-height: 0.95; letter-spacing: 0; word-spacing: 0.12em; max-width: 14ch; }
.h2--wide { max-width: 18ch; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; max-width: 46ch; }
.muted { color: var(--muted); }
.stretch--dark .muted, .stretch--dusk .muted { color: oklch(0.86 0.01 250); }
.ph { font-weight: 500; }

/* Painted lettering on asphalt: paint texture worn away by a procedural mask */
.worn { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.085' numOctaves='2' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 14 0 0 0 -5.3'/%3E%3C/filter%3E%3Crect width='360' height='360' filter='url(%23f)'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.085' numOctaves='2' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 14 0 0 0 -5.3'/%3E%3C/filter%3E%3Crect width='360' height='360' filter='url(%23f)'/%3E%3C/svg%3E"); }

/* ---------- Classes: three lanes, unequal, with painted letters ---------- */
.classes__head { display: grid; gap: 1.25rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.lanes { display: grid; grid-template-columns: 1.55fr 1fr 1fr; background: var(--asphalt); color: var(--paint); position: relative; box-shadow: 0 20px 40px -24px oklch(0.2 0.02 258 / 0.6); }
.lane { position: relative; padding: clamp(1.25rem, 2.4vw, 2.25rem); display: grid; grid-template-rows: auto 1fr auto; gap: 0.6rem; min-height: 27rem; }
.lane__letter { align-self: end; }
.lane__meta { display: grid; gap: 0.5rem; align-content: start; }
.lane--main { grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: clamp(1.5rem, 3vw, 3rem); }
.lane--main .lane__icon { grid-column: 1 / -1; }
.lane--main .lane__meta { align-self: end; padding-bottom: 0.6rem; }
.lane + .lane::before { content: ""; position: absolute; left: -3px; top: 0; bottom: 0; width: 6px; background: repeating-linear-gradient(to bottom, var(--paint) 0 34px, transparent 34px 64px); opacity: 0.9; }
.lane__icon { width: 72px; height: 72px; color: var(--paint); }
.lane__letter { font-family: var(--f-display); font-stretch: 75%; font-weight: 700; font-size: clamp(6rem, 13vw, 12rem); line-height: 0.82; letter-spacing: 0.01em; margin-top: 0.5rem; color: var(--paint); }
.lane--main .lane__letter { font-size: clamp(7rem, 16vw, 15rem); }
.lane__title { font-family: var(--f-display); font-stretch: 75%; font-weight: 700; font-size: 1.85rem; line-height: 1.05; letter-spacing: 0; }
.lane__text { font-size: 1rem; max-width: 30ch; color: oklch(0.9 0.008 250); }
.classes__note { margin-top: 1.25rem; font-size: 1.1rem; font-weight: 500; color: var(--ink); }
.gears { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(2rem, 4vw, 3rem); padding-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 3px solid var(--asphalt); }
.gear { display: grid; grid-template-columns: 72px 1fr; gap: 1.25rem; align-items: start; }
.gear svg { width: 72px; height: 72px; color: var(--asphalt); }
.gear h3 { font-family: var(--f-display); font-stretch: 75%; font-weight: 700; font-size: 2.1rem; line-height: 1; margin-bottom: 0.5rem; }
.gear p { max-width: 40ch; color: var(--muted); }
.gear p + p { margin-top: 0.5rem; }

/* ---------- Zebra crossing between stretches ---------- */
.zebra { position: relative; height: 128px; background: var(--asphalt); overflow: hidden; }
.zebra::before { content: ""; position: absolute; inset: 14px 0; background: repeating-linear-gradient(90deg, var(--paint) 0 44px, transparent 44px 92px); }

/* ---------- Theory ---------- */
.theory__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.dayparts { display: grid; gap: 1.25rem; }
.daypart { position: relative; overflow: hidden; display: grid; grid-template-columns: 104px 1fr; gap: 1.5rem; align-items: center; padding: clamp(1.25rem, 2.6vw, 2.25rem); min-height: 14rem; isolation: isolate; }
.daypart > * { position: relative; z-index: 1; }
.daypart svg { width: 104px; height: 104px; color: var(--paint); }
.daypart h3 { word-spacing: 0.1em; font-family: var(--f-display); font-stretch: 75%; font-weight: 700; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; margin-bottom: 0.6rem; }
.daypart p { max-width: 42ch; }
.daypart__when { margin-top: 0.6rem; color: oklch(0.92 0.01 250); }
/* One stretch of the same road at night: the lamp throws a pool of light on the asphalt. */
.daypart--night { background: radial-gradient(ellipse 26rem 15rem at 88% 50%, oklch(0.9 0.02 240 / 0.34), oklch(0.9 0.02 240 / 0.09) 55%, transparent 75%), url("img/asphalt.webp") center / cover, oklch(0.16 0.04 262); background-blend-mode: normal, soft-light, normal; }
.daypart--night p { max-width: 30ch; }
.lamp { position: absolute !important; right: 4%; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: oklch(0.98 0.01 240); box-shadow: 0 0 0 5px oklch(0.98 0.01 240 / 0.3), 0 0 44px 16px oklch(0.92 0.03 240 / 0.55); z-index: 0 !important; }
/* And the same stretch in daylight: hard, low shadows across the lane. */
.daypart--sun { background: repeating-linear-gradient(112deg, transparent 0 72px, oklch(0.16 0.02 258 / 0.42) 72px 128px), linear-gradient(200deg, oklch(0.88 0.12 92 / 0.28), transparent 60%), url("img/asphalt.webp") center / cover, oklch(0.38 0.02 258); background-blend-mode: normal, normal, soft-light, normal; }
.next { position: relative; align-self: start; background: var(--paint); color: var(--asphalt); border-radius: 16px; padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 1rem; margin-bottom: 6.5rem; box-shadow: 0 0 0 5px var(--asphalt), 0 0 0 8px var(--paint), 0 24px 40px -18px oklch(0.05 0.03 262 / 0.8); --focus: var(--asphalt); }
.next::after { content: ""; position: absolute; left: 50%; top: calc(100% + 8px); width: 14px; height: 5.5rem; margin-left: -7px; background: oklch(0.72 0.008 250); border-bottom: 8px solid oklch(0.55 0.01 250); box-shadow: 0 8px 0 -0px oklch(0.1 0.03 262 / 0.6); }
.next__label { font-family: var(--f-display); font-stretch: 75%; font-weight: 700; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1; word-spacing: 0.1em; }
.next__when { font-size: 1.25rem; line-height: 1.35; font-weight: 700; }
.next__text { color: var(--muted); }
.next .btn { justify-self: start; }

/* ---------- Price: information signs on Wegweiser blue ---------- */
.price { background: var(--sign); color: var(--paint); padding-bottom: 0; --bend-h: clamp(190px, 16vw, 230px); }
.price::before { bottom: var(--bend-h); }
.signs { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 2rem); margin-top: clamp(2rem, 4vw, 3.5rem); }
.wegweiser { position: relative; border: 6px solid var(--paint); border-radius: 22px; background: var(--sign-deep); padding: clamp(1.25rem, 2.6vw, 2.25rem); min-height: 15rem; display: flex; flex-direction: column; justify-content: space-between; box-shadow: inset 0 0 0 4px var(--sign-deep), inset 0 0 0 5px oklch(0.975 0.004 250 / 0.3); }
.wegweiser__num { font-family: var(--f-display); font-stretch: 75%; font-weight: 700; font-size: clamp(5rem, 12vw, 11rem); line-height: 0.85; letter-spacing: 0.005em; font-variant-numeric: tabular-nums; }

.wegweiser__num small { font-size: 0.42em; letter-spacing: 0.02em; margin-left: 0.08em; }
.wegweiser__num .ab { font-size: 0.34em; margin-right: 0.18em; letter-spacing: 0.02em; }
.wegweiser__cap { font-size: 1.1rem; font-weight: 500; margin-top: 1rem; }
.example { display: inline-block; margin-top: 0.5rem; font-size: 1.05rem; font-weight: 700; }
.calc { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; max-width: 76rem; margin-inline: auto; padding-bottom: 0.25rem; }
.calc__label { font-family: var(--f-display); font-stretch: 75%; font-weight: 700; font-size: 1.8rem; line-height: 1; margin-bottom: 0.35rem; display: block; }
.calc__hint { font-size: 1rem; color: oklch(0.92 0.01 250); max-width: 36ch; }
.calc__hint--more { margin-top: 0.75rem; font-size: 0.95rem; }
.calc__sum { word-spacing: 0.1em; font-family: var(--f-display); font-stretch: 75%; font-weight: 700; font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.calc__sum-line { font-size: 1.05rem; margin-top: 0.4rem; font-variant-numeric: tabular-nums; }
.price__more { margin-top: 1.5rem; max-width: 76rem; margin-inline: auto; font-size: 0.98rem; color: oklch(0.92 0.01 250); }
.bend { position: relative; height: var(--bend-h); margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad-spine) * -1); margin-top: 0; }
.bend__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bend__svg--m { display: none; }
.bend__road { fill: none; stroke: var(--asphalt); stroke-width: 64px; vector-effect: non-scaling-stroke; }
.bend__line { fill: none; stroke: var(--paint); stroke-width: 10px; stroke-dasharray: 36 72; vector-effect: non-scaling-stroke; opacity: 0.95; }
.bend__edge { fill: none; stroke: var(--paint); stroke-width: 3px; vector-effect: non-scaling-stroke; opacity: 0.9; }
.bend .car { position: absolute; inset: auto; width: 44px; height: 95px; margin: -47px 0 0 -22px; left: 50%; top: 0; transform: rotate(90deg); pointer-events: none; filter: drop-shadow(0 6px 5px oklch(0.15 0.05 258 / 0.5)); }
.car-label { position: absolute; left: 50%; top: 0; translate: -50% calc(-100% - 46px); padding: 0.3rem 0.7rem; background: var(--paint); color: var(--asphalt); font-weight: 800; font-size: 1rem; line-height: 1.1; white-space: nowrap; border-radius: 4px; pointer-events: none; font-variant-numeric: tabular-nums; }
.car-label::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--paint); }

/* ---------- Team ---------- */
.bays { position: relative; margin-top: clamp(2rem, 4vw, 3rem); background: url("img/asphalt.webp") center / cover, var(--asphalt); background-blend-mode: soft-light, normal; color: var(--paint); padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; column-gap: clamp(1.5rem, 4vw, 4rem); box-shadow: 0 20px 40px -24px oklch(0.2 0.02 258 / 0.6); }
.bays__three { grid-row: 1 / 3; align-self: end; font-family: var(--f-display); font-stretch: 75%; font-weight: 700; font-size: clamp(13rem, 24vw, 22rem); line-height: 0.74; margin: 0 0 0 -0.03em; }
.bays__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; align-self: end; }
.bay-slot { position: relative; height: clamp(13rem, 19vw, 17rem); border: 6px solid var(--paint); border-top: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 1rem; }
.bay-slot + .bay-slot { border-left-width: 0; }
.bay-slot:first-child { border-left-width: 6px; }
.bay-car { position: absolute; left: 50%; top: 14%; width: 60px; height: 129px; margin-left: -30px; filter: drop-shadow(0 8px 6px oklch(0.1 0.02 258 / 0.55)); }
.bay-slot:nth-child(1) .bay-car { transform: rotate(-2.5deg); }
.bay-slot:nth-child(2) .bay-car { transform: rotate(0.5deg); }
.bay-slot:nth-child(3) .bay-car { transform: rotate(2deg); }
.bay-slot__name { font-weight: 700; margin-top: auto; }
.bays__cap { grid-column: 2; margin-top: 0.9rem; color: oklch(0.9 0.008 250); font-size: 0.98rem; }
.who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 5vw, 5rem); margin-top: clamp(2rem, 4vw, 3.5rem); }
.who h3 { word-spacing: 0.1em; font-family: var(--f-display); font-stretch: 75%; font-weight: 700; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; margin-bottom: 0.55rem; }
.who p { max-width: 46ch; color: var(--muted); }
.who > div { border-top: 3px solid var(--asphalt); padding-top: 1.25rem; }

/* ---------- Sign-up: Haltelinie, Parkbucht ---------- */
.signup { padding-top: 0; }
.halt { height: 14px; background: var(--paint); margin-inline: calc(var(--pad) * -1); margin-bottom: var(--space-section); }
.signup__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); grid-template-areas: "head bay" "contact bay"; grid-template-rows: auto 1fr; column-gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.signup__grid > div:first-child { grid-area: head; }
.signup__grid > .bay { grid-area: bay; }
.signup__grid > .contact { grid-area: contact; }
.h2--form { font-size: clamp(2.4rem, 5vw, 4.8rem); max-width: 16ch; }
.contact { margin-top: 2rem; display: grid; gap: 0.5rem; font-size: 1.05rem; }
.contact dt { font-weight: 700; margin-top: 0.75rem; }
.bay { position: relative; border: 6px solid var(--paint); border-radius: 10px; padding: clamp(1.5rem, 3vw, 2.5rem); padding-top: clamp(2rem, 3.5vw, 3rem); background: oklch(0.975 0.004 250 / 0.04); }
.form { display: grid; gap: 1.5rem; --focus: var(--signal); }
.field { display: grid; gap: 0.4rem; }
.field label, .field legend { font-weight: 700; font-size: 1rem; }
.field .hint { font-size: 0.9rem; color: oklch(0.86 0.01 250); font-weight: 400; }
.input { width: 100%; min-height: 52px; padding: 0.7rem 0.9rem; font: 500 1.1rem var(--f-body); color: var(--paint); background: oklch(0.16 0.02 258 / 0.7); border: 2px solid oklch(0.975 0.004 250 / 0.6); border-radius: var(--radius); }
.input::placeholder { color: oklch(0.82 0.01 250); opacity: 1; }
.input:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.input[aria-invalid="true"] { border-color: oklch(0.75 0.17 30); background: oklch(0.25 0.06 30 / 0.55); }
.choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 48px; padding: 0.5rem 1.1rem; border: 3px solid var(--paint); border-radius: var(--radius); font-weight: 700; transition: background-color 0.15s, color 0.15s; }
.choice input:checked + span { background: var(--paint); color: var(--asphalt); }
.choice input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 3px; }
@media (hover: hover) { .choice input:not(:checked):hover + span { background: oklch(0.975 0.004 250 / 0.16); } }
.error { color: oklch(0.85 0.13 30); font-size: 0.95rem; font-weight: 500; min-height: 1.2em; }
.status { min-height: 1.5em; font-weight: 500; }
.consent { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.95rem; }
.consent input { appearance: none; width: 28px; height: 28px; margin: 0; flex: none; border: 3px solid var(--paint); border-radius: var(--radius); background: transparent center / 18px no-repeat; cursor: pointer; }
.consent input:checked { background-color: var(--paint); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%23202730' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.consent input:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.form .btn { justify-self: stretch; min-height: 60px; font-size: 1.15rem; }

/* ---------- Footer ---------- */
.site-foot { background: var(--asphalt-deep); color: oklch(0.9 0.008 250); padding: clamp(2.5rem, 5vw, 4rem) var(--pad); font-size: 0.95rem; }
.site-foot .inner { display: grid; gap: 1rem; }
.site-foot .row { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.foot-demo { font-size: 0.85rem; opacity: 0.8; }
.foot-brand { font-family: var(--f-display); font-stretch: 75%; font-weight: 700; font-size: 1.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paint); }

/* ---------- Mobile ---------- */
@media (max-width: 1020px) {
  .site-nav { display: none; }
  .head-phone { display: none; }
  .theory__grid { grid-template-columns: 1fr; }
  .signup__grid { grid-template-columns: 1fr; grid-template-areas: "head" "bay" "contact"; grid-template-rows: auto; row-gap: 2rem; }
  .who { grid-template-columns: 1fr; }
  .next { margin-bottom: 0; } .next::after { display: none; }
  .calc { grid-template-columns: 1fr; }
  .signs { grid-template-columns: 1fr; }
  .lanes { grid-template-columns: 1fr; }
  .lane { min-height: 0; padding-bottom: 2rem; }
  .lane + .lane::before { left: 0; right: 0; top: -3px; bottom: auto; width: auto; height: 6px; background: repeating-linear-gradient(to right, var(--paint) 0 34px, transparent 34px 64px); }
  .lane--main { grid-template-columns: 1fr; grid-template-rows: auto; }
  .lane--main .lane__letter { font-size: clamp(6rem, 28vw, 10rem); }
  .lane__letter { font-size: clamp(5rem, 22vw, 8rem); }
  .lane { grid-template-rows: auto auto auto; }
  .gears { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --pad: 1.25rem; --spine-x: 4.2vw; --header-h: 60px; }
  .site-head { gap: 0.75rem; }
  .btn--head { font-size: 0.85rem; padding-inline: 0.8rem; width: auto; min-height: 40px; }
  .brand__name { font-size: 1.35rem; }
  .brand__place { display: none; }
  .hero { height: clamp(560px, calc(100svh - var(--header-h)), 900px); }
  .hero-art--d { display: none; }
  .hero-art--m { display: block; }
  .hero__front { width: auto; right: var(--pad); left: var(--pad); bottom: 1.25rem; }
  .hero__lede { font-size: 1.05rem; max-width: 22ch; }
  .hero__facts { font-size: 0.92rem; }
    .stretch { padding-right: calc(var(--pad) + 1.25rem); }
  .stretch--left { padding-right: var(--pad); padding-left: calc(var(--pad) + 1.25rem); }
  .stretch::after { display: none; }
  .stretch--left::after { margin-left: -20px; }
  .halt { margin-right: calc((var(--pad) + 1.25rem) * -1); }

  .price { --bend-h: 200px; }
  .bend .car { width: 40px; height: 86px; margin: -43px 0 0 -20px; }
  .car-label { translate: -50% calc(-100% - 40px); font-size: 0.9rem; }
  .bend__svg--d { display: none; }
  .bend__svg--m { display: block; }
  .bend { --run-y: calc(90 / 200 * var(--bend-h)); }
  .roadslider { left: 12%; right: 9%; }
  .wegweiser { min-height: 11rem; }
  .daypart { grid-template-columns: 64px 1fr; gap: 1rem; }
  .daypart svg { width: 64px; height: 64px; }
  .lamp { right: 6%; }
  .bays { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .bays__three { display: none; }
  .bays__cap { grid-column: 1; }
  .bays__row { grid-template-columns: 1fr; }
  .bay-slot { height: auto; min-height: 5rem; flex-direction: row; justify-content: flex-start; align-items: center; gap: 1.25rem; padding: 0.5rem 1rem; border: 4px solid var(--paint); border-top: 0; }
  .bay-slot:first-child { border-top: 4px solid var(--paint); border-left-width: 4px; }
  .bay-slot + .bay-slot { border-left-width: 4px; }
  .bay-car { position: static; width: 30px; height: 64px; margin: 0; rotate: 90deg; flex: none; }
  .bay-slot:nth-child(n) .bay-car { transform: none; }
  .bay-slot__name { font-size: 1.05rem; margin: 0; }
  .gear { grid-template-columns: 56px 1fr; }
  .gear svg { width: 56px; height: 56px; }
  .zebra { height: 88px; }
  .zebra::before { inset: 10px 0; background: repeating-linear-gradient(90deg, var(--paint) 0 28px, transparent 28px 58px); }
  .btn { width: 100%; }
  .hero__actions .btn { width: auto; }
  .hero__actions { gap: 0.6rem 1.25rem; }
}
@media (max-width: 400px) { .hero__actions .btn { width: 100%; } .brand__mark { display: none; } .btn--head { font-size: 0.8rem; padding-inline: 0.65rem; } .site-head { padding-inline: 1rem; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn svg { transition: none; }
}
@media print {
  .site-head,   body { background: Canvas; color: CanvasText; }
  .stretch, .hero, .price, .stretch--dark, .stretch--dusk { background: Canvas; color: CanvasText; padding-block: 1rem; }
  .stretch::before { display: none; }
}

/* The slider lives on the road: the car is its thumb. */
.bend { --run-y: calc(118 / 230 * var(--bend-h)); }
.roadslider { position: absolute; left: 14%; right: 14%; top: calc(var(--run-y) - 28px); z-index: 2; }
.range { display: block; width: 100%; height: 56px; margin: 0; appearance: none; background: transparent; cursor: grab; }
.range:active { cursor: grabbing; }
.range::-webkit-slider-runnable-track { height: 56px; background: transparent; }
.range::-moz-range-track { height: 56px; background: transparent; }
.range::-webkit-slider-thumb { appearance: none; width: 56px; height: 56px; border: 0; background: transparent; }
.range::-moz-range-thumb { width: 56px; height: 56px; border: 0; background: transparent; }
.range:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 6px; }
.range__ends { display: flex; justify-content: space-between; font-size: 1.05rem; font-weight: 700; margin-top: 1.6rem; }

@media (max-width: 760px) {
  .signup .bay { padding: 1.25rem 1rem 1.5rem; border-width: 4px; }
  .choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .choice span { width: 100%; justify-content: center; }
  .form .btn { width: 100%; font-size: 1.05rem; padding-inline: 1rem; }
  .stretch--none { padding-inline: 1.25rem; }
}


@media (max-width: 760px) {
  .worn { -webkit-mask-size: 220px; mask-size: 220px; }
  .lamp { top: 18px; right: 20px; margin-top: 0; }
}
