/* ============================================================
   SPUR Fahrschule · Stilbeispiel
   Farbwelt: Kartenpapier, Asphalt, Markierungsgelb.
   Schrift: Overpass (abgeleitet von Autobahn-Beschilderung)
   und Overpass Mono für Codes, Zeiten und Beschriftungen.
   Abstände auf einem 8-px-Raster (--s1 bis --s9).
   ============================================================ */

@font-face {
  font-family: 'Overpass';
  src: url('../fonts/overpass-var-latin.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Overpass Mono';
  src: url('../fonts/overpass-mono-var-latin.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
}

:root {
  --papier: #eef0e8;
  --papier-2: #e4e8db;
  --papier-3: #f8f8f3;
  --karte: #e9ecdf;
  --tinte: #1e252c;
  --tinte-2: #48525b;
  --tinte-3: #5f6870;
  --asphalt: #262b31;
  --asphalt-2: #30363d;
  --gelb: #f2b51d;
  --gelb-tief: #7a5200;
  --gruen: #2a6e4c;
  --rot: #b3261e;
  --blau: #1d5aa3;
  --linie: #cfd4c6;
  --rand-feld: #c3c8ba;

  --s1: .25rem; --s2: .5rem; --s3: 1rem; --s4: 1.5rem; --s5: 2rem; --s6: 3rem; --s7: 4rem; --s8: 6rem; --s9: 8rem;
  --rand: clamp(1rem, 4.5vw, 3rem);
  --kopf-h: 4.5rem;
  --weich: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; overflow-x: clip; scroll-padding-top: calc(var(--kopf-h) + 1rem); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papier); color: var(--tinte);
  font-family: 'Overpass', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.15rem + 3.1vw, 3.45rem); }
h3 { font-size: 1.3rem; font-weight: 760; letter-spacing: -.01em; line-height: 1.2; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nur-vorleser { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: fixed; left: var(--s3); top: var(--s3); z-index: 200; background: var(--asphalt); color: #fbfaf5;
  padding: .7rem 1rem; border-radius: .5rem; font-weight: 700; text-decoration: none; transform: translateY(-160%);
  transition: transform .2s var(--weich);
}
.skip:focus { transform: none; }

.kicker {
  display: flex; align-items: center; gap: .7rem;
  font-family: 'Overpass Mono', ui-monospace, monospace; font-size: .76rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; color: var(--tinte-2); margin: 0 0 var(--s3);
}
.kicker::before {
  content: ''; width: 1.9rem; height: 3px; flex: none;
  background: repeating-linear-gradient(90deg, var(--gelb) 0 .6rem, transparent .6rem .95rem);
}

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .78rem 1.35rem; border-radius: .6rem; border: 2px solid transparent;
  font-weight: 750; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--weich), box-shadow .2s var(--weich);
}
.knopf-gelb { background: var(--gelb); color: var(--tinte); border-color: var(--tinte); box-shadow: 0 3px 0 var(--tinte); }
.knopf-gelb:hover { background: #f8c94a; transform: translateY(-2px); box-shadow: 0 5px 0 var(--tinte); }
.knopf-gelb:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--tinte); }
.knopf-linie { background: transparent; color: var(--tinte); border-color: var(--tinte); }
.knopf-linie:hover { background: var(--tinte); color: var(--papier); }
.knopf-dunkel { background: var(--asphalt); color: #fbfaf5; box-shadow: 0 3px 0 #0f1316; }
.knopf-dunkel:hover { background: #3b434b; transform: translateY(-2px); box-shadow: 0 5px 0 #0f1316; }
.knopf-dunkel:active { transform: translateY(1px); box-shadow: 0 1px 0 #0f1316; }
.knopf-text {
  background: none; padding-inline: .5rem; color: var(--tinte);
  text-decoration: underline; text-decoration-style: dashed; text-underline-offset: .32em; text-decoration-thickness: 1.5px;
}
.knopf-text:hover { text-decoration-style: solid; color: #000; }

/* ============================================================
   Kopfzeile
   ============================================================ */
.kopf {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--kopf-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: 0 var(--rand); background: transparent;
  transition: background-color .35s, box-shadow .35s;
}
body.unter-hero .kopf, body.nav-offen .kopf { background: var(--papier); box-shadow: 0 1px 0 var(--linie); }
.marke { display: inline-flex; align-items: center; gap: .6rem; color: var(--tinte); text-decoration: none; min-height: 44px; }
.marke-zeichen { width: 2.1rem; height: 2.1rem; color: var(--asphalt); flex: none; }
.marke-wort { font-weight: 900; font-size: 1.55rem; letter-spacing: .07em; line-height: 1; padding-top: .14em; }
.marke-zusatz {
  font-family: 'Overpass Mono', monospace; font-size: .6rem; line-height: 1.3; letter-spacing: .11em; text-transform: uppercase;
  color: var(--tinte-2); border-left: 1px solid var(--rand-feld); padding-left: .6rem;
}
.nav { display: flex; align-items: center; gap: clamp(.9rem, 1.6vw, 1.7rem); }
.nav a { position: relative; color: var(--tinte); text-decoration: none; font-weight: 650; font-size: .96rem; padding: .7rem 0; }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .38rem; height: 3px;
  background: repeating-linear-gradient(90deg, var(--gelb) 0 .45rem, transparent .45rem .75rem);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--weich);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.nav a.nav-cta { padding: .62rem 1.15rem; border-radius: .55rem; background: var(--asphalt); color: #fbfaf5; transition: background-color .2s, color .2s, transform .2s var(--weich); }
.nav a.nav-cta::after { display: none; }
.nav a.nav-cta:hover { background: var(--gelb); color: var(--tinte); transform: translateY(-1px); }
.menu-knopf {
  display: none; align-items: center; gap: .6rem; min-height: 44px; padding: .4rem .9rem; border-radius: .55rem;
  border: 2px solid var(--tinte); background: var(--papier-3); cursor: pointer; font-weight: 700;
}
.menu-linien { position: relative; width: 1.15rem; height: .8rem; }
.menu-linien i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .3s var(--weich), top .3s var(--weich); }
.menu-linien i:first-child { top: 0; }
.menu-linien i:last-child { top: calc(100% - 2px); }
body.nav-offen .menu-linien i:first-child { top: calc(50% - 1px); transform: rotate(45deg); }
body.nav-offen .menu-linien i:last-child { top: calc(50% - 1px); transform: rotate(-45deg); }

@media (max-width: 1099px) {
  .menu-knopf { display: inline-flex; }
  .nav {
    position: fixed; top: var(--kopf-h); left: 0; right: 0; bottom: 0; z-index: 59;
    flex-direction: column; align-items: stretch; gap: 0; padding: var(--s4) var(--rand) var(--s7);
    background: var(--papier); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-.75rem);
    transition: opacity .25s, transform .3s var(--weich), visibility 0s .3s;
  }
  body.nav-offen .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--weich); }
  .nav a { font-size: 1.45rem; font-weight: 780; padding: .85rem 0; border-bottom: 1px dashed var(--rand-feld); }
  .nav a::after { bottom: .5rem; right: auto; width: 3rem; }
  .nav a.nav-cta { margin-top: var(--s4); text-align: center; border-bottom: 0; padding: .9rem 1rem; }
}
@media (max-width: 420px) {
  .marke-zusatz { display: none; }
  .menu-text { display: none; }
  .menu-knopf { padding: .4rem .8rem; }
}

/* ============================================================
   Hero: die Fahrt
   ============================================================ */
.hero { position: relative; height: 100vh; height: 100svh; }
.js .hero { height: 420vh; height: 420lvh; }
@media (max-aspect-ratio: 43/50) { .js .hero { height: 380vh; height: 380lvh; } }
body.statisch .hero { height: 100vh; height: 100svh; }
.buehne { position: sticky; top: 0; height: 100vh; height: 100lvh; width: 100%; overflow: hidden; background: var(--karte); }
.szene { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .8s ease; }
.szene.da { opacity: 1; }
.szene .land { position: absolute; display: block; max-width: none; }
.szene .spur-ebene { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; max-width: none; will-change: transform; }
.teil { position: absolute; left: 0; top: 0; }
.teil > svg, .teil .klapp > svg { display: block; width: 100%; height: 100%; max-width: none; }
.auto { will-change: transform; }
.auto .karo { fill: #f8f7f2; }
.auto .dach { fill: #ecebe4; }
.auto.quer .karo { fill: #a3b3c0; }
.auto.quer .dach { fill: #93a5b3; }
.schild .klapp { width: 100%; height: 100%; transform-origin: 50% 100%; will-change: transform, opacity; }
.ampel .an circle { opacity: 0; transition: opacity .16s linear; }
.ampel[data-phase="rot"] .l-rot,
.ampel[data-phase="rotgelb"] .l-rot,
.ampel[data-phase="rotgelb"] .l-gelb,
.ampel[data-phase="gelb"] .l-gelb,
.ampel[data-phase="gruen"] .l-gruen { opacity: 1; }
.karte-schrift { font-family: 'Overpass Mono', monospace; font-size: 13px; letter-spacing: .08em; fill: #66858d; font-weight: 500; }
g.karte-schrift text { fill: #7b8476; font-size: 12px; }
.dach-schrift { font-family: 'Overpass', sans-serif; font-weight: 900; fill: #f2b51d; letter-spacing: .14em; }

/* Die Führerscheinkarte im Hero */
.fs-karte {
  display: flex; flex-direction: column; color: var(--tinte); background: #fbfaf5; border-radius: .6em; overflow: hidden;
  border: 1px solid rgba(30, 37, 44, .14); opacity: 0; transform-origin: 50% 50%; will-change: transform, opacity;
  box-shadow: 0 .9em 1.8em -.6em rgba(30, 37, 44, .38), 0 .15em .4em rgba(30, 37, 44, .16);
}
.fs-kopf { display: flex; align-items: center; gap: .45em; background: var(--gelb); padding: .4em .7em; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; font-size: .76em; line-height: 1.2; }
.fs-mark { width: 1.55em; height: 1.55em; color: var(--asphalt); flex: none; }
.fs-mark svg { display: block; width: 100%; height: 100%; }
.fs-titel { flex: 1; padding-top: .12em; }
.fs-d { font-family: 'Overpass Mono', monospace; border: .12em solid currentColor; border-radius: .3em; padding: .05em .35em 0; }
.fs-mitte { display: flex; gap: .8em; align-items: center; padding: .7em .8em .35em; flex: 1; }
.fs-auto { width: 4.6em; height: auto; flex: none; background: var(--karte); border-radius: .35em; padding: .35em .3em; }
.fs-felder p { margin: 0; font-family: 'Overpass Mono', monospace; font-size: .7em; line-height: 1.55; color: var(--tinte-2); white-space: nowrap; }
.fs-felder span { display: inline-block; min-width: 3em; color: #8a928e; }
.fs-felder .fs-name { font-family: 'Overpass', sans-serif; font-weight: 800; font-size: .98em; color: var(--tinte); letter-spacing: .01em; margin-bottom: .1em; }
.fs-felder .fs-name span { font-family: 'Overpass Mono', monospace; font-weight: 500; font-size: .72em; }
.fs-klassen { display: flex; gap: .32em; padding: .25em .8em .75em; }
.fs-klassen span { font-family: 'Overpass Mono', monospace; font-size: .64em; line-height: 1.5; padding: .12em .45em 0; border-radius: .28em; border: 1px solid #cfd3c7; color: #7b847f; }
.fs-klassen .an { background: var(--asphalt); color: #fbfaf5; border-color: var(--asphalt); font-weight: 700; }
.fs-stempel {
  position: absolute; right: .75em; bottom: .9em; width: 3.9em; height: 3.9em; border-radius: 50%;
  border: .14em solid var(--gruen); color: var(--gruen); display: grid; place-items: center; opacity: 0;
  transform: rotate(-12deg) scale(1.45);
}
.fs-stempel::before { content: ''; position: absolute; inset: .22em; border-radius: 50%; border: .06em solid var(--gruen); }
.fs-stempel span { font-family: 'Overpass Mono', monospace; font-weight: 700; font-size: .5em; letter-spacing: .1em; text-transform: uppercase; }
.szene.ruht .auto, .szene.ruht .schild .klapp, .szene.ruht .fs-karte, .szene.ruht .spur-ebene { will-change: auto; }

/* Schleier hinter dem Text: nur dort, wo die Bänder stehen */
.schleier {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 52% at 22% 40%, rgba(233, 236, 223, .9) 0%, rgba(233, 236, 223, .72) 48%, rgba(233, 236, 223, 0) 78%),
    linear-gradient(180deg, rgba(233, 236, 223, .9) 0, rgba(233, 236, 223, 0) 6.5rem);
}
@media (max-aspect-ratio: 43/50) {
  .schleier {
    background:
      linear-gradient(180deg, rgba(233, 236, 223, .96) 0%, rgba(233, 236, 223, .9) 30%, rgba(233, 236, 223, .55) 40%, rgba(233, 236, 223, 0) 47%);
  }
}

/* Die Textbänder */
.baender { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.band {
  position: absolute; left: var(--rand); top: max(calc(var(--kopf-h) + 2.5rem), 19%);
  width: min(38rem, 41vw); opacity: 0;
}
.js .band.settle { opacity: 0; }
html:not(.js) .band.settle, body.statisch .band.settle { opacity: 1; }
.band-zeile {
  margin: 0; font-weight: 820; font-size: clamp(1.85rem, .95rem + 2.5vw, 3.25rem);
  line-height: 1.06; letter-spacing: -.024em; color: var(--tinte); text-wrap: balance;
}
.band-h1 { font-size: clamp(2.25rem, 1.05rem + 3.5vw, 4.35rem); line-height: 1.01; letter-spacing: -.03em; margin: 0 0 .42em; font-weight: 850; }
.band-sub { font-size: clamp(1.03rem, .92rem + .36vw, 1.2rem); color: var(--tinte-2); max-width: 33rem; margin: 0 0 1.6rem; }
.band-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.band-ctas .knopf-linie { background: var(--papier-3); }
.band-ctas .knopf-linie:hover { background: var(--tinte); }
.band .kicker, .band .band-zeile, .band-h1, .band-sub, .band-ctas { will-change: transform; }
.band .kicker { transform: translate3d(0, calc((1 - var(--k, 1)) * 12px), 0); }
.band-1 .band-zeile { transform: translate3d(0, calc((1 - var(--k, 1)) * 20px), 0); }
.band-2 .band-zeile { transform: translate3d(calc((1 - var(--k, 1)) * -26px), 0, 0); }
.band-3 .band-zeile { transform: translate3d(0, calc((1 - var(--k, 1)) * 16px), 0) scale(calc(.97 + .03 * var(--k, 1))); transform-origin: 0 100%; }
.settle .band-h1 { transform: translate3d(0, calc((1 - var(--k, 1)) * 24px), 0); }
.settle .band-sub { opacity: var(--ks, 1); transform: translate3d(0, calc((1 - var(--ks, 1)) * 14px), 0); }
.settle .band-ctas { opacity: var(--kb, 1); transform: translate3d(0, calc((1 - var(--kb, 1)) * 12px), 0); }
.band.cta-live .band-ctas, html:not(.js) .band.settle .band-ctas, body.statisch .band.settle .band-ctas { pointer-events: auto; }

/* Losfahren: nur bei Touch, statt der Mausrad-Fahrt */
.los {
  display: none; position: relative; margin-top: 1.5rem; align-items: center; gap: .7rem;
  min-height: 3rem; padding: .7rem 1.3rem .7rem 1rem; border-radius: 999px; border: 2px solid var(--tinte);
  background: var(--gelb); color: var(--tinte); font-weight: 800; cursor: pointer;
  transition: opacity .3s, transform .3s var(--weich);
}
.los::before { content: ''; width: .7rem; height: .7rem; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: translateY(-.15rem) rotate(45deg); }
.los-ring { position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--tinte); animation: halo 2.4s var(--weich) infinite; pointer-events: none; }
@keyframes halo { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(1.22, 1.5); opacity: 0; } }
@media (pointer: coarse) {
  .js .los { display: inline-flex; }
  .band-1.los-live .los { pointer-events: auto; }
  body.scrolled .los, .los.weg { opacity: 0; transform: scale(.94); pointer-events: none; }
}
body.statisch .los { display: none !important; }

.scroll-hinweis {
  margin: 1.7rem 0 0; display: flex; align-items: center; gap: .75rem;
  font-family: 'Overpass Mono', monospace; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tinte-2);
  transition: opacity .4s;
}
.scroll-hinweis i { width: 3.2rem; height: 3px; flex: none; background: repeating-linear-gradient(90deg, var(--gelb-tief) 0 8px, transparent 8px 14px); animation: markierung 1.1s linear infinite; }
@keyframes markierung { from { background-position: 0 0; } to { background-position: 14px 0; } }
body.scrolled .scroll-hinweis { opacity: 0; }
html:not(.js) .scroll-hinweis, body.statisch .scroll-hinweis { display: none; }
@media (pointer: coarse) { .scroll-hinweis { display: none; } }

@media (max-aspect-ratio: 43/50) {
  .band { left: var(--rand); right: var(--rand); width: auto; top: calc(var(--kopf-h) + .6rem); }
  .band-zeile { font-size: clamp(1.75rem, 1.05rem + 3.2vw, 2.6rem); }
  .band-h1 { font-size: clamp(2.05rem, 1.2rem + 4vw, 3.4rem); margin-bottom: .35em; }
  .band-sub { margin-bottom: 1.1rem; }
  .band-ctas .knopf { min-height: 2.9rem; padding: .7rem 1.05rem; }
}
@media (max-width: 1180px) and (min-aspect-ratio: 43/50) {
  .band { width: min(38rem, 47vw); top: max(calc(var(--kopf-h) + 2rem), 16%); }
}
@media (max-aspect-ratio: 43/50) and (max-height: 760px) {
  .settle .band-sub { display: none; }
  .band-h1 { margin-bottom: .55em; }
}
@media (max-height: 520px) and (min-aspect-ratio: 43/50) {
  .band { top: calc(var(--kopf-h) + .5rem); }
  .band-zeile { font-size: 1.6rem; }
  .band-h1 { font-size: 1.95rem; }
  .settle .band-sub { display: none; }
}

/* ============================================================
   Abschnitte allgemein
   ============================================================ */
.sek { position: relative; padding: clamp(4.5rem, 9vw, 8rem) 0; }
.rahmen { width: min(1240px, 100% - 2 * var(--rand)); margin-inline: auto; }
.sek-kopf { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sek-kopf h2 { margin-bottom: var(--s4); }
.sek-intro { font-size: 1.125rem; color: var(--tinte-2); max-width: 40rem; margin: 0; }
.sek-kopf-breit { max-width: none; }
.sek-zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); max-width: 62rem; color: var(--tinte-2); font-size: 1.08rem; }
.sek-zwei p { margin: 0; }
@media (max-width: 720px) { .sek-zwei { grid-template-columns: 1fr; gap: var(--s3); } }

/* Überschriften steigen aus einer Kante, der Kicker zieht seine Markierung */
.js .sek-kopf.rev h2 { clip-path: inset(-.3em -1em -.24em -1em); }
.js .sek-kopf.rev h2 > .zeile-innen { display: inline-block; transform: translate3d(0, 125%, 0); transition: transform .95s var(--weich); }
.js .sek-kopf.rev.in h2 > .zeile-innen { transform: none; }
.js .sek-kopf.rev .kicker::before { transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--weich) .1s; }
.js .sek-kopf.rev.in .kicker::before { transform: none; }

/* ============================================================
   1. Klassen: vier Spuren einer Fahrbahn
   ============================================================ */
.spuren {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--papier-2); border-inline: 3px solid var(--tinte); border-radius: 2px;
}
.bahn { position: relative; padding: var(--s5) var(--s4) var(--s5); display: flex; flex-direction: column; gap: var(--s3); overflow: hidden; }
.bahn + .bahn::before {
  content: ''; position: absolute; left: -1px; top: 0; bottom: 0; width: 3px;
  background: repeating-linear-gradient(180deg, var(--tinte-2) 0 1.15rem, transparent 1.15rem 2rem);
  background-size: 3px 2rem;
}
.bahn-kopf { display: flex; align-items: center; gap: .8rem; }
.klasse-code {
  display: inline-grid; place-items: center; min-width: 3.1rem; height: 3.1rem; padding: .18rem .55rem 0; border-radius: .5rem;
  background: var(--asphalt); color: #fbfaf5; font-weight: 900; font-size: 1.55rem; letter-spacing: .02em; line-height: 1; flex: none;
}
.klasse-code-wort { font-family: 'Overpass Mono', monospace; font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.15; text-align: center; max-width: 6rem; padding: .35rem .55rem .25rem; }
.bahn-titel { font-size: 1.32rem; }
.bahn-bild { width: 8.5rem; height: 3.4rem; color: var(--tinte); }
.i-body { fill: #f8f7f2; }
.bahn > p { margin: 0; color: var(--tinte-2); }
.fakten { margin: auto 0 0; display: grid; gap: .55rem; font-size: .95rem; border-top: 1px solid var(--rand-feld); padding-top: var(--s3); }
.fakten div { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); gap: .5rem; }
.fakten dt { font-family: 'Overpass Mono', monospace; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tinte-3); padding-top: .2rem; }
.fakten dd { margin: 0; font-weight: 650; }
.preis-notiz { margin: var(--s5) 0 0; color: var(--tinte-2); max-width: 46rem; }
.preis-notiz a { font-weight: 700; color: var(--tinte); }
/* Auftritt: die Fahrzeuge rollen in ihre Spur, die Markierung zieht nach */
.js .spuren.rev .bahn-bild { transform: translate3d(-3.5rem, 0, 0); opacity: 0; transition: transform 1.1s var(--weich), opacity .6s; }
.js .spuren.rev .bahn + .bahn::before { background-position: 0 -2rem; transition: background-position 1.4s linear; }
.js .spuren.rev .bahn > p, .js .spuren.rev .fakten { opacity: 0; transition: opacity .8s ease .35s; }
.js .spuren.rev.in .bahn-bild { transform: none; opacity: 1; }
.js .spuren.rev.in .bahn + .bahn::before { background-position: 0 0; }
.js .spuren.rev.in .bahn > p, .js .spuren.rev.in .fakten { opacity: 1; }
.js .spuren.rev .bahn:nth-child(2) .bahn-bild { transition-delay: .12s; }
.js .spuren.rev .bahn:nth-child(3) .bahn-bild { transition-delay: .24s; }
.js .spuren.rev .bahn:nth-child(4) .bahn-bild { transition-delay: .36s; }
.bahn:hover .bahn-bild { transform: translate3d(.4rem, 0, 0); transition: transform .5s var(--weich); }
@media (max-width: 1040px) {
  .spuren { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bahn:nth-child(3)::before { display: none; }
  .bahn:nth-child(n+3)::after {
    content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 3px;
    background: repeating-linear-gradient(90deg, var(--tinte-2) 0 1.15rem, transparent 1.15rem 2rem);
  }
}
@media (max-width: 640px) {
  .spuren { grid-template-columns: 1fr; }
  .bahn + .bahn::before { display: none; }
  .bahn + .bahn::after {
    content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 3px;
    background: repeating-linear-gradient(90deg, var(--tinte-2) 0 1.15rem, transparent 1.15rem 2rem);
  }
  .bahn { padding: var(--s4) var(--s3) var(--s5); }
}

/* ============================================================
   2. Ablauf: dunkler Abschnitt, die Straße zeichnet sich
   ============================================================ */
.sek-ablauf { background: var(--asphalt); color: #e4e7e0; }
.sek-ablauf .kicker { color: #bcc3be; }
.sek-ablauf h2 { color: #f4f3ec; }
.sek-ablauf .sek-intro { color: #c3cac5; }
.sek-ablauf :focus-visible { outline-color: var(--gelb); }
.etappen-wrap { position: relative; }
.etappen-strasse { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; max-width: none; }
.str-grund { fill: none; stroke: #343a41; stroke-width: 30; stroke-linecap: round; stroke-linejoin: round; }
.str-linie { fill: none; stroke: #8d949a; stroke-width: 2; stroke-dasharray: 12 11; }
.str-spur { fill: none; stroke: var(--gelb); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.etappen { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; row-gap: clamp(2.5rem, 5vw, 4rem); }
.etappe { position: relative; width: min(25rem, 42%); }
.etappe:nth-child(odd) { justify-self: start; text-align: right; }
.etappe:nth-child(even) { justify-self: end; }
.etappe-punkt {
  position: absolute; top: .15rem; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--asphalt); border: 3px solid #8d949a; transition: background-color .4s, border-color .4s, transform .4s var(--weich);
}
.etappe:nth-child(odd) .etappe-punkt { right: -2.6rem; }
.etappe:nth-child(even) .etappe-punkt { left: -2.6rem; }
.etappe-nr { font-family: 'Overpass Mono', monospace; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gelb); margin: 0 0 .4rem; }
.etappe h3 { color: #f4f3ec; font-size: 1.42rem; margin-bottom: .5rem; }
.etappe p:last-child { margin: 0; color: #c3cac5; }
.etappe.erreicht .etappe-punkt { background: var(--gelb); border-color: var(--gelb); transform: scale(1.15); }
.etappen-ziel {
  position: relative; z-index: 1; margin: clamp(2.5rem, 5vw, 4rem) auto 0; max-width: 34rem; text-align: center;
  color: #e4e7e0; font-size: 1.08rem; padding-top: 3.4rem;
}
.ziel-zeichen {
  position: absolute; left: 50%; top: 0; width: 2.6rem; height: 2.6rem; margin-left: -1.3rem; border-radius: .4rem;
  background: conic-gradient(#f4f3ec 0 25%, #1e252c 0 50%, #f4f3ec 0 75%, #1e252c 0) 0 0 / 50% 50%;
  border: 2px solid #f4f3ec;
}
.js .etappe { opacity: .35; transition: opacity .6s ease; }
.js .etappe.erreicht { opacity: 1; }
@media (max-width: 760px) {
  .etappe, .etappe:nth-child(odd), .etappe:nth-child(even) { width: auto; justify-self: stretch; text-align: left; padding-left: 3.2rem; }
  .etappe:nth-child(odd) .etappe-punkt, .etappe:nth-child(even) .etappe-punkt { left: .45rem; right: auto; }
  .etappen-ziel { text-align: left; margin-left: 0; padding: 0 0 0 3.2rem; }
  .ziel-zeichen { left: 0; top: .1rem; margin-left: 0; width: 2rem; height: 2rem; }
}

/* ============================================================
   3. Ferienkurse: der Kursplan als Zeitleiste
   ============================================================ */
.sek-ferien { background: var(--papier); }
.kursplan { border-top: 3px solid var(--tinte); }
.kursplan-monate, .kurs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) 8.5rem; column-gap: var(--s5); align-items: center; }
.kursplan-monate { padding: .7rem 0; border-bottom: 1px solid var(--rand-feld); }
.monate-reihe { display: grid; grid-template-columns: 16.57fr 17.13fr 17.13fr 15.47fr 17.13fr 16.57fr; }
.monate-reihe span { font-family: 'Overpass Mono', monospace; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tinte-3); border-left: 1px solid var(--linie); padding-left: .4rem; }
.kurse-liste { list-style: none; margin: 0; padding: 0; }
.kurs { padding: var(--s4) 0; border-bottom: 1px solid var(--rand-feld); }
.kurs-text h3 { font-size: 1.18rem; margin-bottom: .3rem; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
.kurs-text p { margin: 0; color: var(--tinte-2); font-size: .98rem; }
.kurs-status { font-family: 'Overpass Mono', monospace; font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tinte-2); border: 1.5px solid var(--tinte-2); border-radius: .3rem; padding: .18rem .4rem .08rem; }
.kurs-zeit {
  position: relative; height: 2.4rem;
  background-image: linear-gradient(var(--linie), var(--linie)), linear-gradient(var(--linie), var(--linie)), linear-gradient(var(--linie), var(--linie)), linear-gradient(var(--linie), var(--linie)), linear-gradient(var(--linie), var(--linie)), linear-gradient(var(--rand-feld), var(--rand-feld));
  background-size: 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 100% 1px;
  background-position: 16.57% 0, 33.7% 0, 50.83% 0, 66.3% 0, 83.43% 0, 0 50%;
  background-repeat: no-repeat;
}
.balken {
  position: absolute; top: 50%; left: var(--von); width: calc(var(--bis) - var(--von)); min-width: .9rem; height: .8rem; margin-top: -.4rem;
  background: var(--gelb); border: 2px solid var(--tinte); border-radius: .4rem; transform-origin: 0 50%;
}
.balken-lauf { background: repeating-linear-gradient(90deg, var(--gelb) 0 .85rem, #f8dd94 .85rem 1.25rem); }
.balken-tupfen { background: radial-gradient(circle, var(--tinte) 0 2.5px, transparent 3px) 0 50% / calc(100% / 7) 100% repeat-x, var(--gelb); }
.kurs-voll .balken { background: repeating-linear-gradient(135deg, #d6d9cd 0 4px, #bfc3b6 4px 8px); border-color: var(--tinte-3); }
.kurs-knopf {
  justify-self: end; display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .55rem 1rem;
  border-radius: .55rem; border: 2px solid var(--tinte); background: transparent; color: var(--tinte); font-weight: 750; font-size: .95rem;
  text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, transform .2s var(--weich);
}
.kurs-knopf:hover { background: var(--gelb); transform: translateY(-1px); }
.kurs-knopf.ist-vorgemerkt { background: var(--asphalt); color: #fbfaf5; }
.kurs-knopf-info { border-style: dashed; color: var(--tinte-2); border-color: var(--tinte-3); cursor: default; font-size: .82rem; font-family: 'Overpass Mono', monospace; text-transform: uppercase; letter-spacing: .05em; }
.kurs-knopf-info:hover { background: transparent; transform: none; }
.js .kursplan.rev .balken { transform: scaleX(0); transition: transform 1s var(--weich); }
.js .kursplan.rev.in .balken { transform: none; }
.js .kursplan.rev .kurs:nth-child(2) .balken { transition-delay: .1s; }
.js .kursplan.rev .kurs:nth-child(3) .balken { transition-delay: .2s; }
.js .kursplan.rev .kurs:nth-child(4) .balken { transition-delay: .3s; }
.js .kursplan.rev .kurs:nth-child(5) .balken { transition-delay: .4s; }
@media (max-width: 860px) {
  .kursplan-monate, .kurs { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s3); }
  .kursplan-monate { display: block; }
  .monate-leer { display: none; }
  .kurs { grid-template-areas: "text knopf" "zeit zeit"; row-gap: .8rem; }
  .kurs-text { grid-area: text; }
  .kurs-zeit { grid-area: zeit; }
  .kurs-knopf { grid-area: knopf; align-self: start; }
}
@media (max-width: 520px) {
  .kurs { grid-template-areas: "text" "zeit" "knopf"; grid-template-columns: 1fr; }
  .kurs-knopf { justify-self: start; }
}

/* ============================================================
   4. Fahrzeuge und Fahrlehrer
   ============================================================ */
.sek-fahrzeuge { background: var(--papier-2); }
.getriebe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.getriebe-karte {
  background: var(--papier-3); border-radius: 1rem; padding: var(--s5); display: grid; grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: var(--s2) var(--s5); align-content: start; box-shadow: 0 1px 0 rgba(30, 37, 44, .06);
}
.getriebe-karte .schaltbild { grid-row: span 2; width: 7.5rem; height: auto; }
.getriebe-karte h3 { align-self: end; }
.getriebe-karte p { margin: 0; color: var(--tinte-2); }
.gasse { fill: none; stroke: var(--tinte); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.gang text { font-family: 'Overpass Mono', monospace; font-size: 14px; font-weight: 700; fill: var(--tinte-2); text-anchor: middle; }
.prnd .gang text { text-anchor: start; }
.knauf { fill: var(--gelb); stroke: var(--tinte); stroke-width: 2.5; }
.js .h-schema.in .knauf { animation: hschalten 3.6s cubic-bezier(.55, 0, .3, 1) .2s 1 both; }
.js .prnd.in .knauf { animation: prnd 2.8s cubic-bezier(.55, 0, .3, 1) .4s 1 both; }
@keyframes hschalten {
  0% { transform: translate(0, 0); } 14% { transform: translate(-36px, 0); } 26% { transform: translate(-36px, -28px); }
  44% { transform: translate(-36px, 28px); } 56% { transform: translate(-36px, 0); } 66% { transform: translate(0, 0); }
  80%, 100% { transform: translate(0, -28px); }
}
@keyframes prnd { 0% { transform: translate(0, 0); } 28% { transform: translate(0, 22px); } 54% { transform: translate(0, 44px); } 84%, 100% { transform: translate(0, 66px); } }
.flotte { margin: var(--s5) 0 0; max-width: 52rem; color: var(--tinte-2); font-size: 1.08rem; }
.flotte strong { color: var(--tinte); }
.team-block { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.team-titel { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); margin-bottom: var(--s4); }
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); border-top: 3px solid var(--tinte); }
.team li { padding-top: var(--s4); }
.team-name { font-weight: 820; font-size: 1.25rem; margin: 0 0 .25rem; line-height: 1.2; }
.team-rolle { font-family: 'Overpass Mono', monospace; font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; color: var(--gelb-tief); margin: 0 0 .8rem; font-weight: 600; }
.team li p:last-child { margin: 0; color: var(--tinte-2); }
.team-notiz { margin: var(--s5) 0 0; font-weight: 650; max-width: 46rem; }
.js .team.rev .team-name { clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--weich); }
.js .team.rev.in .team-name { clip-path: inset(0 0 0 0); }
.js .team.rev li:nth-child(2) .team-name { transition-delay: .12s; }
.js .team.rev li:nth-child(3) .team-name { transition-delay: .24s; }
.js .team.rev li:nth-child(4) .team-name { transition-delay: .36s; }
@media (max-width: 960px) {
  .getriebe { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .getriebe-karte { grid-template-columns: 1fr; padding: var(--s4); }
  .getriebe-karte .schaltbild { grid-row: auto; width: 6.5rem; }
  .team { grid-template-columns: 1fr; gap: 0; }
  .team li { padding: var(--s4) 0; border-bottom: 1px dashed var(--rand-feld); }
}

/* ============================================================
   5. Werkzeug: Klassen-Finder und Anmeldung
   ============================================================ */
.sek-finder { background: var(--papier); }
.werkzeug {
  background: var(--papier-3); border-radius: 1.25rem; padding: clamp(1.1rem, 3vw, 2.5rem);
  box-shadow: 0 0 0 1px rgba(30, 37, 44, .07), 0 24px 48px -30px rgba(30, 37, 44, .45);
}
.weg { list-style: none; margin: 0 0 var(--s5); padding: 0; display: flex; justify-content: space-between; position: relative; }
.weg::before, .weg::after { content: ''; position: absolute; left: 1.1rem; right: 1.1rem; top: 1.1rem; height: 4px; margin-top: -2px; }
.weg::before { background: repeating-linear-gradient(90deg, #c4c9bb 0 .75rem, transparent .75rem 1.25rem); }
.weg::after { background: var(--gelb); right: auto; width: calc((100% - 2.2rem) * var(--weg, 0)); transition: width .6s var(--weich); border-radius: 2px; }
.weg-punkt { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .4rem; color: var(--tinte-3); }
.weg-nr {
  width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--papier-3);
  border: 2px solid #c4c9bb; font-family: 'Overpass Mono', monospace; font-weight: 700; font-size: .85rem; padding-top: .1rem;
  transition: background-color .3s, border-color .3s, color .3s;
}
.weg-name { font-family: 'Overpass Mono', monospace; text-transform: uppercase; letter-spacing: .07em; font-size: .66rem; }
.weg-punkt.aktiv { color: var(--tinte); }
.weg-punkt.aktiv .weg-nr { background: var(--asphalt); border-color: var(--asphalt); color: #fbfaf5; }
.weg-punkt.erledigt .weg-nr { background: var(--gelb); border-color: var(--tinte); color: var(--tinte); }
@media (max-width: 560px) { .weg-name { display: none; } }
.vorgemerkt { margin: calc(-1 * var(--s3)) 0 var(--s4); padding: .65rem .9rem; border-radius: .6rem; background: #fff6d6; border: 1px dashed var(--gelb-tief); font-size: .95rem; }

.werkzeug-raster { display: grid; grid-template-columns: minmax(0, 1fr) 18.5rem; gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.werkzeug-haupt { min-width: 0; }
.schritt { border: 0; margin: 0; padding: 0; min-width: 0; }
.schritt[hidden] { display: none; }
.schritt-frage {
  display: block; float: left; width: 100%; padding: 0; margin: 0 0 var(--s4);
  font-size: clamp(1.45rem, 1.05rem + 1.3vw, 2.05rem); font-weight: 820; letter-spacing: -.016em; line-height: 1.15; outline: none;
}
.schritt-frage:focus-visible { outline: 3px solid var(--blau); outline-offset: 4px; }
.schritt > :not(.schritt-frage) { clear: both; }
.js .schritt.zeigen { animation: schritt-rein .45s var(--weich) both; }
@keyframes schritt-rein { from { opacity: 0; transform: translate3d(0, .75rem, 0); } to { opacity: 1; transform: none; } }

.optionen-karten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.option { position: relative; display: block; cursor: pointer; }
.option input, .wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.option-karte {
  display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); grid-template-rows: auto auto; column-gap: var(--s3); align-items: center;
  min-height: 5.6rem; padding: var(--s3) var(--s4) var(--s3) var(--s3); border-radius: .9rem; background: #fff; border: 2px solid #d3d8ca;
  transition: border-color .2s, background-color .2s, transform .25s var(--weich), box-shadow .25s var(--weich);
}
.option-bild { grid-row: span 2; width: 5.6rem; height: 2.3rem; color: var(--tinte); }
.option-titel { font-weight: 820; font-size: 1.08rem; line-height: 1.2; align-self: end; }
.option-text { font-size: .9rem; color: var(--tinte-2); line-height: 1.35; align-self: start; }
.option:hover .option-karte { border-color: var(--tinte-2); transform: translateY(-2px); box-shadow: 0 6px 16px -10px rgba(30, 37, 44, .4); }
.option input:checked + .option-karte { border-color: var(--tinte); background: #fffbea; box-shadow: 0 4px 0 var(--gelb), 0 0 0 1px var(--tinte); }
.option input:focus-visible + .option-karte { outline: 3px solid var(--blau); outline-offset: 3px; }
@media (max-width: 560px) { .optionen-karten { grid-template-columns: 1fr; } .option-karte { min-height: 4.8rem; } }

.frage-gruppe { border: 0; margin: 0 0 var(--s5); padding: 0; min-width: 0; }
.frage-gruppe > legend { padding: 0; margin-bottom: .7rem; font-weight: 780; font-size: 1.12rem; line-height: 1.3; }
.frage-gruppe[hidden] { display: none; }
.frage-gruppe.nachfragen > legend { color: var(--rot); }
.frage-gruppe.nachfragen .wahl > span { border-color: #d98f89; }
.js .frage-gruppe.nachfragen .optionen { animation: nachfragen .42s var(--weich); }
@keyframes nachfragen { 0%, 100% { transform: none; } 30% { transform: translate3d(-6px, 0, 0); } 65% { transform: translate3d(4px, 0, 0); } }
.optionen-liste { display: grid; gap: .6rem; max-width: 30rem; }
.optionen-zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 9.5rem)); gap: .6rem; }
.optionen-reihe { display: flex; flex-wrap: wrap; gap: .6rem; }
.wahl { position: relative; display: flex; }
.wahl > span {
  display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 3rem; padding: .6rem 1rem .5rem; border-radius: .7rem;
  background: #fff; border: 2px solid #d3d8ca; font-weight: 650; line-height: 1.3; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.wahl > span::before {
  content: ''; width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 2px solid var(--tinte-2); background: #fff; flex: none; margin-top: -.12rem;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.wahl-haken > span::before { border-radius: .3rem; }
.wahl:hover > span { border-color: var(--tinte-2); }
.wahl input:checked + span { border-color: var(--tinte); background: #fffbea; }
.wahl input:checked + span::before { border-color: var(--asphalt); background: var(--asphalt); box-shadow: inset 0 0 0 3px #fff; }
.wahl-haken input:checked + span::before {
  box-shadow: none;
  background: var(--asphalt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3 6-6.6' fill='none' stroke='%23f2b51d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 88% no-repeat;
}
.wahl input:focus-visible + span { outline: 3px solid var(--blau); outline-offset: 2px; }
.wahl input:disabled + span { cursor: not-allowed; background: #f1f2ec; color: var(--tinte-3); border-style: dashed; }
.wahl input:disabled + span::before { border-color: #b9beb2; background: #eceee6; }

.alter-zeile { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.alter-knopf {
  width: 3rem; height: 3rem; border-radius: .7rem; border: 2px solid var(--tinte); background: #fff; font-size: 1.5rem; font-weight: 700; line-height: 1;
  cursor: pointer; display: grid; place-items: center; transition: background-color .2s, color .2s;
}
.alter-knopf:hover { background: var(--asphalt); color: #fbfaf5; }
#alter {
  width: 5.5rem; height: 3.4rem; text-align: center; font: inherit; font-size: 1.7rem; font-weight: 820; padding-top: .2rem;
  border: 2px solid var(--rand-feld); border-radius: .7rem; background: #fff; color: var(--tinte);
}
#alter:focus { border-color: var(--tinte); }
.alter-einheit { font-family: 'Overpass Mono', monospace; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--tinte-2); }
.hilfe { color: var(--tinte-2); font-size: .95rem; margin: .7rem 0 0; max-width: 34rem; }
.frage-gruppe .hilfe { margin: -.3rem 0 .8rem; }
.feld-fehler { color: var(--rot); font-weight: 700; margin: var(--s3) 0 0; min-height: 0; }
.feld-fehler:empty { display: none; }
.schritt-knoepfe { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--s3); margin-top: var(--s5); padding-top: var(--s4); border-top: 1px dashed var(--rand-feld); }
.schritt-knoepfe .knopf-text { margin-right: auto; }

.ergebnis-kopf { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s4); }
.ergebnis-kopf .kicker { margin-bottom: .3rem; }
.ergebnis-kopf .schritt-frage { float: none; margin: 0; }
.klasse-code-gross { min-width: 5rem; height: 5rem; font-size: 2.4rem; border-radius: .7rem; box-shadow: 0 4px 0 var(--gelb); }
.ergebnis-text { font-size: 1.1rem; max-width: 40rem; }
.ergebnis .fakten { margin-top: var(--s4); max-width: 40rem; }
.ergebnis .fakten div { grid-template-columns: 9rem minmax(0, 1fr); }
.ergebnis-hinweis { margin: var(--s4) 0 0; padding: .9rem 1rem; border-radius: .7rem; background: #fff6d6; border-left: 4px solid var(--gelb); max-width: 40rem; }

.block { margin-bottom: var(--s5); }
.block-titel { font-weight: 800; font-size: 1.15rem; margin-bottom: .7rem; padding: 0; }
.kurse-wahl { display: grid; gap: .6rem; }
.kurse-wahl .wahl > span { align-items: flex-start; flex-direction: row; padding-top: .8rem; padding-bottom: .7rem; }
.kurse-wahl .wahl > span::before { margin-top: .12rem; }
.kurs-wahl-text { display: grid; gap: .1rem; }
.kurs-wahl-text b { font-weight: 800; }
.kurs-wahl-text small { font-size: .88rem; font-weight: 500; color: var(--tinte-2); }
.checkliste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (max-width: 620px) { .checkliste { grid-template-columns: 1fr; } }
.felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s4); }
.feld-breit { grid-column: 1 / -1; }
.feld label { display: block; font-weight: 750; font-size: .98rem; margin-bottom: .35rem; }
.optional { font-family: 'Overpass Mono', monospace; font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--tinte-3); margin-left: .35rem; }
.feld input, .feld textarea {
  width: 100%; min-height: 3rem; padding: .72rem .9rem .62rem; font: inherit; font-size: 1rem; color: var(--tinte);
  background: #fff; border: 2px solid var(--rand-feld); border-radius: .6rem; transition: border-color .2s, background-color .2s;
}
.feld textarea { resize: vertical; min-height: 6rem; }
.feld input:focus, .feld textarea:focus, #alter:focus { border-color: var(--tinte); outline: 3px solid rgba(29, 90, 163, .3); outline-offset: 1px; }
.feld.ungueltig input { border-color: var(--rot); background: #fff7f6; }
.feld-meldung { color: var(--rot); font-size: .9rem; font-weight: 650; margin: .3rem 0 0; }
.feld-meldung:empty { display: none; }
@media (max-width: 620px) { .felder { grid-template-columns: 1fr; } }
.minderjaehrig { margin: var(--s4) 0 0; padding: .9rem 1rem; border-radius: .7rem; background: #eef3fa; border-left: 4px solid var(--blau); }
.einwilligung { display: flex; gap: .75rem; align-items: flex-start; margin-top: var(--s4); cursor: pointer; max-width: 40rem; }
.einwilligung input { width: 1.35rem; height: 1.35rem; margin: .1rem 0 0; flex: none; accent-color: var(--asphalt); }
.demo-notiz { margin: var(--s3) 0 0; font-size: .88rem; color: var(--tinte-3); text-align: right; }
.fertig { text-align: left; }
.fertig-zeichen { width: 4rem; height: 4rem; margin-bottom: var(--s4); display: block; }
.fertig .schritt-frage { float: none; }
.fertig-demo { padding: .9rem 1rem; border-radius: .7rem; background: #fff6d6; border-left: 4px solid var(--gelb); max-width: 40rem; }
#fertigText { max-width: 40rem; color: var(--tinte-2); }

.zettel { position: sticky; top: calc(var(--kopf-h) + 1rem); display: grid; gap: var(--s3); }
.zettel-karte { background: #fbfaf5; border-radius: .9rem; overflow: hidden; box-shadow: 0 0 0 1px rgba(30, 37, 44, .1), 0 14px 30px -20px rgba(30, 37, 44, .5); }
.zettel-kopf { display: flex; align-items: center; gap: .55rem; background: var(--gelb); padding: .6rem .9rem .5rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.zettel-marke { width: 1.4rem; height: 1.4rem; color: var(--asphalt); flex: none; margin-top: -.1rem; }
.zettel-klasse { display: flex; align-items: center; gap: .8rem; padding: .9rem; }
.zettel-klasse .klasse-code { transition: transform .4s var(--weich); }
.zettel-klasse .klasse-code.neu { animation: code-neu .5s var(--weich); }
@keyframes code-neu { 0% { transform: scale(.7) rotate(-6deg); } 100% { transform: none; } }
.zettel-klasse-text { font-weight: 750; line-height: 1.25; }
.zettel-daten { margin: 0; padding: 0 .9rem .9rem; display: grid; gap: .35rem; font-size: .92rem; }
.zettel-daten div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-top: 1px dashed #d3d8ca; padding-top: .4rem; }
.zettel-daten dt { font-family: 'Overpass Mono', monospace; text-transform: uppercase; font-size: .68rem; letter-spacing: .09em; color: var(--tinte-3); }
.zettel-daten dd { margin: 0; font-weight: 700; text-align: right; }
.zettel-liste { background: #fff; border-radius: .9rem; padding: .9rem; box-shadow: 0 0 0 1px rgba(30, 37, 44, .08); }
.zettel-liste[hidden] { display: none; }
.zettel-titel { font-family: 'Overpass Mono', monospace; text-transform: uppercase; font-size: .72rem; letter-spacing: .1em; color: var(--tinte-2); margin: 0 0 .5rem; }
#zTodo { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .92rem; line-height: 1.4; }
#zTodo li { position: relative; padding-left: 1.3rem; color: var(--tinte-2); }
#zTodo li::before { content: ''; position: absolute; left: 0; top: .32rem; width: .7rem; height: .7rem; border: 2px solid var(--tinte-2); border-radius: .2rem; }
#zTodo li strong { color: var(--tinte); }
#zTodo li[hidden] { display: none; }
.zettel-fertig { margin: 0; font-weight: 750; color: var(--gruen); }
@media (max-width: 900px) {
  .werkzeug-raster { grid-template-columns: 1fr; }
  .zettel { position: static; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
}

/* ============================================================
   6. Fragen
   ============================================================ */
.sek-fragen { background: var(--papier-2); }
.fragen-raster { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.fragen-raster .sek-kopf { position: sticky; top: calc(var(--kopf-h) + 2rem); }
.fragen-raster .sek-intro a { font-weight: 700; white-space: nowrap; }
.fragen-liste { border-top: 3px solid var(--tinte); }
.frage { border-bottom: 1px solid var(--rand-feld); }
.frage summary {
  list-style: none; cursor: pointer; position: relative; padding: 1.25rem 3.2rem 1.15rem 0; font-weight: 780; font-size: 1.14rem; line-height: 1.35;
  border-radius: 4px; transition: color .2s;
}
.frage summary::-webkit-details-marker { display: none; }
.frage summary::after {
  content: ''; position: absolute; right: .3rem; top: 50%; width: 1.7rem; height: 1.7rem; margin-top: -.85rem; border-radius: 50%;
  background: var(--asphalt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' stroke='%23f2b51d' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 62% no-repeat;
  transition: transform .35s var(--weich), background-color .2s;
}
.frage summary:hover { color: #000; }
.frage summary:hover::after { background-color: #3b434b; }
.frage[open] summary::after { transform: rotate(135deg); }
.antwort { padding: 0 3rem 1.3rem 0; color: var(--tinte-2); }
.antwort p:last-child { margin-bottom: 0; }
.frage[open] .antwort { animation: aufklappen .4s var(--weich); }
@keyframes aufklappen { from { opacity: 0; transform: translate3d(0, -.4rem, 0); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .fragen-raster { grid-template-columns: 1fr; }
  .fragen-raster .sek-kopf { position: static; }
  .antwort { padding-right: 0; }
}

/* ============================================================
   7. Büro und Anfahrt
   ============================================================ */
.sek-buero { background: var(--papier); }
.buero-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.buero-text h2 { margin-bottom: var(--s5); }
.adresse { font-style: normal; font-size: 1.12rem; line-height: 1.65; margin-bottom: var(--s5); }
.adresse a { font-weight: 700; }
.zeiten { width: 100%; border-collapse: collapse; margin-bottom: var(--s3); font-size: 1rem; }
.zeiten caption { text-align: left; font-family: 'Overpass Mono', monospace; text-transform: uppercase; letter-spacing: .11em; font-size: .76rem; color: var(--tinte-2); padding-bottom: .5rem; }
.zeiten th, .zeiten td { padding: .6rem 0 .5rem; border-bottom: 1px dashed var(--rand-feld); text-align: left; vertical-align: top; }
.zeiten th { font-weight: 650; padding-right: 1.2rem; white-space: nowrap; }
.zeiten tr.heute th, .zeiten tr.heute td { font-weight: 820; }
.zeiten tr.heute th::before { content: ''; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--gelb); border: 2px solid var(--tinte); margin: 0 .5rem .1rem 0; }
.zeiten-notiz { color: var(--tinte-2); margin-bottom: var(--s5); }
.anfahrt { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.anfahrt li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .8rem; color: var(--tinte-2); }
.anfahrt-art { font-family: 'Overpass Mono', monospace; font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--tinte); font-weight: 600; padding-top: .2rem; }
.minikarte { margin: 0; position: sticky; top: calc(var(--kopf-h) + 2rem); }
.minikarte svg { display: block; width: 100%; height: auto; border-radius: 1rem; box-shadow: 0 0 0 1px rgba(30, 37, 44, .1), 0 20px 40px -28px rgba(30, 37, 44, .5); }
.minikarte figcaption { margin-top: .7rem; font-size: .9rem; color: var(--tinte-3); }
.mk-fluss { fill: none; stroke: #a9c6cd; stroke-width: 18; stroke-linecap: round; }
.mk-gleis { fill: none; stroke: #7a8288; stroke-width: 2.4; }
.mk-gleis-schwellen { fill: none; stroke: #7a8288; stroke-width: 10; stroke-dasharray: 1.8 7.5; }
.mk-strasse-rand { fill: none; stroke: #c8cdbd; stroke-width: 30; stroke-linecap: round; }
.mk-strasse { fill: none; stroke: #fbfbf6; stroke-width: 24; stroke-linecap: round; }
.mk-nebenstrasse { fill: none; stroke: #fbfbf6; stroke-width: 11; stroke-linecap: round; }
.mk-hof rect { fill: #dcded5; stroke: #bfc4b5; stroke-width: 1.5; }
.mk-p { fill: var(--blau); font-weight: 800; font-size: 20px; font-family: 'Overpass', sans-serif; letter-spacing: 0; }
.mk-spur rect { fill: #fbfaf5; stroke: var(--tinte); stroke-width: 2; }
.mk-spur use { color: var(--asphalt); }
.mk-name { font-weight: 700; fill: var(--tinte); font-size: 13px; }
.mk-weg { fill: none; stroke: var(--gelb); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.mk-halt circle { fill: #f6c51f; stroke: #2a7a4f; stroke-width: 3; }
.mk-halt text { fill: #23663f; font-weight: 900; font-size: 17px; font-family: 'Overpass', sans-serif; }
.mk-nord path { fill: #5f6870; }
.mk-schrift { font-family: 'Overpass Mono', monospace; font-size: 11.5px; letter-spacing: .12em; fill: #4f5961; font-weight: 500; }
.mk-fluss-name { fill: #4d7480; letter-spacing: .3em; }
.mk-richtung { font-size: 10.5px; }
.js .minikarte.rev .mk-weg { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--weich) .3s; }
.js .minikarte.rev.in .mk-weg { stroke-dashoffset: 0; }
.js .minikarte.rev .mk-halt { transform-box: fill-box; transform-origin: 50% 50%; transform: scale(.4); opacity: 0; transition: transform .6s var(--weich), opacity .4s; }
.js .minikarte.rev.in .mk-halt { transform: none; opacity: 1; }
@media (max-width: 900px) {
  .buero-raster { grid-template-columns: 1fr; }
  .minikarte { position: static; }
}

/* ============================================================
   Fußzeile
   ============================================================ */
.fuss { background: var(--asphalt); color: #d9ddd6; padding: clamp(3rem, 6vw, 5rem) 0 4.6rem; }
.fuss a { color: #f4f3ec; }
.fuss :focus-visible { outline-color: var(--gelb); }
.fuss-oben { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s5); padding-bottom: var(--s5); border-bottom: 1px solid #3c434a; }
.marke-fuss, .marke-fuss .marke-zeichen { color: #f4f3ec; }
.marke-fuss .marke-zusatz { color: #b9c1bc; border-color: #4a525a; }
.fuss-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.6rem; }
.fuss-nav a { text-decoration: none; padding: .55rem 0; font-weight: 600; background: linear-gradient(var(--gelb), var(--gelb)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--weich); }
.fuss-nav a:hover { background-size: 100% 2px; }
.fuss-kontakt { margin: var(--s5) 0 var(--s3); font-size: 1rem; }
.fuss-kontakt a { white-space: nowrap; }
.pkt { font-family: 'Overpass Mono', monospace; }
.hinweis { font-size: .86rem; color: #b5bdb8; max-width: 54rem; margin-bottom: var(--s5); }
.fuss-unten { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; padding-top: var(--s4); border-top: 1px solid #3c434a; font-size: .88rem; }
.recht { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.2rem; }
.recht a { text-decoration: none; padding: .5rem 0; color: #d9ddd6; }
.recht a:hover { color: #fff; text-decoration: underline; }
.recht-notiz { color: var(--gelb); font-size: .82rem; }
.recht-notiz:empty { display: none; }
.made { margin-left: auto; font-weight: 700; text-decoration: none; padding: .5rem 0; border-bottom: 2px solid var(--gelb); line-height: 1.2; }
.made:hover { color: var(--gelb); }
@media (max-width: 520px) { .fuss { padding-bottom: calc(2rem + 4.5rem); } }

/* ============================================================
   Statisch: reduzierte Bewegung
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .los-ring, .scroll-hinweis i { animation: none !important; }
}
@media print {
  .kopf, .hero, .ark-demo { display: none !important; }
}
