/* Fahrschule Schaltfrei – Kundenvorschau */

@font-face { font-family: "Chakra Petch"; src: url("fonts/chakrapetch-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakrapetch-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("fonts/overpass-var.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }

:root {
  /* Marke: per Pixelmessung aus Logo und Fahrzeugfotos */
  --rot: #D10107;        /* Logo: Kulisse, Klammern, Knauf */
  --rot-tief: #690003;   /* Favicon der alten Seite – Hover, Text auf Hell */
  --lack: #1C1C1C;       /* Lack des Hyundai Tucson */
  --grau: #3C3C3C;       /* Schriftzug SCHALTFREI im Logo – Fließtext */
  --grau-2: #5E5E5E;     /* aufgehelltes Logo-Grau – Nebentext */
  --kulisse: #EFEFED;    /* heller Grund */
  --linie: #D9D9D6;
  --weiss: #FFFFFF;

  --display: "Chakra Petch", "Arial Narrow", sans-serif;
  --body: "Overpass", system-ui, sans-serif;

  --rand: clamp(1rem, 4vw, 3.5rem);
  --max: 1240px;
  --ease: cubic-bezier(.65, 0, .35, 1);   /* gleitend: wie ein Automatikgetriebe */
  --aus: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--weiss); color: var(--grau); font: 400 1.0625rem/1.6 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; color: var(--lack); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--weiss); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }

.rahmen { max-width: var(--max); margin: 0 auto; padding: 0 var(--rand); }
.abschnitt { padding: clamp(4rem, 9vw, 7rem) 0; }
.kopfzeile { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.kopfzeile p { color: var(--grau-2); font-size: 1.125rem; margin-top: 1rem; }

/* Knöpfe: Pillen wie der Knauf im Logo */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .75rem 1.5rem;
  background: var(--rot); color: var(--weiss); text-decoration: none; border-radius: 999px; border: 2px solid var(--rot);
  font: 700 1rem/1.1 var(--display); letter-spacing: .02em;
  transition: background-color .3s var(--aus), color .3s var(--aus), border-color .3s var(--aus);
}
.knopf:hover { background: var(--rot-tief); border-color: var(--rot-tief); }
.knopf--rand { background: transparent; color: var(--lack); border-color: var(--lack); }
.knopf--rand:hover { background: var(--lack); color: var(--weiss); border-color: var(--lack); }
.knopf--hell { background: var(--weiss); color: var(--lack); border-color: var(--weiss); }
.knopf--hell:hover { background: var(--rot); color: var(--weiss); border-color: var(--rot); }
.knopf--klein { min-height: 2.5rem; padding: .5rem 1.1rem; font-size: .95rem; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); transition: box-shadow .3s; }
.kopf.ist-gescrollt { box-shadow: 0 1px 0 var(--linie); }
.kopf__innen { max-width: var(--max); margin: 0 auto; padding: .6rem var(--rand); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marke img { width: clamp(150px, 16vw, 190px); height: auto; }
.menu { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(.8rem, 2vw, 1.8rem); }
.menu ul a { text-decoration: none; font: 600 1rem var(--display); color: var(--lack); position: relative; padding: .4rem 0; }
.menu ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rot); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.menu ul a:hover::after { transform: scaleX(1); }
.menuknopf { display: none; }

@media (max-width: 899px) {
  .menuknopf { display: grid; place-items: center; width: 3rem; height: 3rem; background: none; border: 0; cursor: pointer; padding: 0; }
  .menuknopf__striche, .menuknopf__striche::before, .menuknopf__striche::after { display: block; width: 26px; height: 2px; background: var(--lack); position: relative; transition: transform .3s var(--aus), background-color .2s; }
  .menuknopf__striche::before, .menuknopf__striche::after { content: ""; position: absolute; left: 0; }
  .menuknopf__striche::before { top: -8px; } .menuknopf__striche::after { top: 8px; }
  .menuknopf[aria-expanded="true"] .menuknopf__striche { background: transparent; }
  .menuknopf[aria-expanded="true"] .menuknopf__striche::before { transform: translateY(8px) rotate(45deg); }
  .menuknopf[aria-expanded="true"] .menuknopf__striche::after { transform: translateY(-8px) rotate(-45deg); }
  .menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--weiss); flex-direction: column; align-items: flex-start; padding: 1rem var(--rand) 1.6rem; box-shadow: 0 12px 24px rgba(28, 28, 28, .12); display: none; }
  .js .menu.ist-offen { display: flex; }
  .no-js .menu, html:not(.js) .menu { position: static; display: flex; box-shadow: none; }
  .menu ul { flex-direction: column; gap: .3rem; }
  .menu ul a { font-size: 1.2rem; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding-top: clamp(2rem, 5vw, 4rem); background: var(--weiss); }
.hero__raster { max-width: var(--max); margin: 0 auto; padding: 0 var(--rand); display: grid; gap: 2rem; align-items: center; }
.hero__text { position: relative; padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1.2rem, 3vw, 2.8rem); }
.klammer { position: absolute; width: clamp(80px, 14vw, 160px); height: clamp(60px, 9vw, 110px); border: 0 solid var(--rot); }
.klammer--oben { left: 0; top: 0; border-left-width: 6px; border-top-width: 6px; border-top-left-radius: 26px; }
.klammer--unten { right: 0; bottom: 0; border-right-width: 6px; border-bottom-width: 6px; border-bottom-right-radius: 26px; }
.hero__ort { font: 600 1rem var(--display); color: var(--rot); margin-bottom: 1rem; }
.hero__titel { font-size: clamp(2.6rem, 6.2vw, 5.2rem); line-height: .98; letter-spacing: -.02em; max-width: 12ch; margin-bottom: 1.4rem; }
.hero__lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); max-width: 34rem; margin-bottom: 1.8rem; }
.hero__knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__kulisse { justify-self: center; width: min(62vw, 300px); }
.kulisse { width: 100%; height: auto; overflow: visible; }
.kulisse__schlitz { fill: none; stroke: var(--rot); stroke-width: 14; }
.kulisse__raste { fill: none; stroke: var(--rot); stroke-width: 14; }
.kb { font: 700 58px var(--display); fill: var(--linie); text-anchor: middle; transition: fill .3s; }
.kb--d { fill: var(--rot); }
.kulisse__knauf { transform: translateY(279px); }
.kulisse__knauf rect { fill: var(--rot); }
.kulisse__knauf text { font: 600 46px var(--body); fill: var(--weiss); text-anchor: middle; }
.hero__auto { margin: clamp(1rem, 3vw, 2rem) 0 0; position: relative; background: linear-gradient(transparent 45%, var(--kulisse) 45%); }
.hero__auto img { width: min(100%, 1500px); margin: 0 auto; }

@media (min-width: 900px) {
  .hero__raster { grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr); }
  .hero__kulisse { width: min(100%, 300px); }
  .hero__auto { margin-top: 0; }
}
@media (max-width: 899px) {
  .hero__kulisse { display: none; }
}

/* Band */
.band { background: var(--lack); color: var(--weiss); }
.band__liste { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0; padding-top: 1.4rem; padding-bottom: 1.4rem; }
.band__liste li { padding: .6rem 1.2rem .6rem 0; color: #CFCFCF; font-size: .98rem; }
.band__liste strong { display: block; font: 700 1.1rem var(--display); color: var(--weiss); }

/* Signature: Wählhebel */
.automatik { background: var(--kulisse); }
.wahl { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.wahl__hebel { position: relative; border: 0; margin: 0; padding: 0 0 0 1.7rem; display: grid; gap: 1.1rem; min-width: 0; }
.wahl__schlitz { position: absolute; left: 3.3rem; top: .6rem; bottom: .6rem; width: 2.6rem; border: 6px solid var(--rot); border-radius: 999px; transform: translateX(-50%); }
.wahl__stufe { position: relative; display: grid; grid-template-columns: 3.2rem 1fr; align-items: center; column-gap: 1.6rem; padding: .9rem 1rem .9rem 0; cursor: pointer; min-height: 5rem; }
.wahl__stufe input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wahl__kz {
  grid-row: 1 / span 2; justify-self: start; position: relative; z-index: 1;
  display: grid; place-items: center; width: 6.4rem; height: 3.3rem; margin-left: -1.6rem; border-radius: 999px;
  font: 700 1.35rem var(--display); color: var(--grau-2); background: var(--weiss); border: 2px solid var(--linie);
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.wahl__nm { grid-column: 2; padding-left: 2.4rem; font: 600 1.15rem/1.2 var(--display); color: var(--lack); }
.wahl__stufe:hover .wahl__kz { border-color: var(--rot); color: var(--rot); }
.wahl__stufe:has(input:checked) .wahl__kz { background: var(--rot); border-color: var(--rot); color: var(--weiss); transform: translateX(.4rem); }
.wahl__stufe:has(input:focus-visible) .wahl__kz { outline: 3px solid var(--lack); outline-offset: 3px; }

.karte { background: var(--weiss); border-radius: 22px; padding: clamp(1.3rem, 3vw, 2.2rem); box-shadow: 0 1px 0 var(--linie), 0 24px 48px -28px rgba(28, 28, 28, .35); border-top: 6px solid var(--rot); }
.karte__kopf { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.karte__land { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--lack); color: var(--weiss); font: 700 .95rem var(--display); }
.karte__titel { font: 600 .95rem var(--display); color: var(--grau-2); }
.karte__zeile { display: grid; grid-template-columns: auto 1fr; gap: 1px; background: var(--linie); border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; margin: 0 0 1.4rem; }
.karte__zeile div { background: var(--weiss); padding: .6rem .9rem; }
.karte__zeile dt { font-size: .82rem; color: var(--grau-2); }
.karte__zeile dd { margin: 0; font: 700 1.9rem/1.1 var(--display); color: var(--lack); }
.karte__sz { color: var(--rot) !important; }
.karte__sz span, .karte__inhalt { display: none; }
.wahl:has(#w-197:checked) [data-w="197"],
.wahl:has(#w-78:checked) [data-w="78"],
.wahl:has(#w-b:checked) [data-w="b"] { display: block; }
.karte__sz span { display: none !important; }
.wahl:has(#w-197:checked) .karte__sz [data-w="197"],
.wahl:has(#w-78:checked) .karte__sz [data-w="78"],
.wahl:has(#w-b:checked) .karte__sz [data-w="b"] { display: inline !important; }
.karte__inhalt h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin-bottom: .9rem; }
.darf { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.darf li { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .85rem .3rem; border-radius: 999px; font: 600 .95rem var(--display); }
.darf .ja { background: var(--lack); color: var(--weiss); }
.darf .ja::before { content: ""; width: .55rem; height: .9rem; border: solid var(--weiss); border-width: 0 3px 3px 0; transform: rotate(45deg) translateY(-2px); }
.darf .nein { background: transparent; color: var(--rot-tief); border: 2px solid var(--rot); text-decoration: line-through; text-decoration-thickness: 2px; }
.karte .klein { font: 600 .95rem var(--display); color: var(--rot); margin: 0; }
.karte__fuss { margin: 1.3rem 0 0; padding-top: 1rem; border-top: 1px solid var(--linie); font-size: .95rem; color: var(--grau-2); }

/* ohne :has(): alle Varianten zeigen */
@supports not selector(:has(*)) {
  .karte__inhalt { display: block; margin-bottom: 1.4rem; }
  .karte__sz span { display: inline !important; }
  .karte__sz span + span::before { content: " / "; }
}

.mehr { margin-top: clamp(3rem, 6vw, 4.5rem); }
.mehr__titel { margin-bottom: 1.2rem; font-size: 1.5rem; }
.mehr__liste { margin: 0; display: grid; gap: 0; border-top: 2px solid var(--lack); }
.mehr__liste div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--linie); }
.mehr__liste dt { font: 700 1.5rem/1.1 var(--display); color: var(--rot); }
.mehr__liste dd { margin: 0; max-width: 52rem; }

@media (min-width: 900px) {
  .wahl { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .wahl__hebel { padding-top: 1rem; position: sticky; top: 7rem; }
}

/* Ablauf: Knauf gleitet durch die Kulisse */
.weg__raster { display: grid; gap: 1rem; }
.bahn { position: relative; padding-left: clamp(4.5rem, 9vw, 6.5rem); }
.bahn__schlitz { position: absolute; left: clamp(1.1rem, 2.6vw, 1.9rem); top: 0; bottom: 0; width: 1.9rem; border: 5px solid var(--rot); border-radius: 999px; }
.bahn__knauf { display: none; }
.schritte { list-style: none; margin: 0; padding: 0; counter-reset: schritt; }
.schritt { position: relative; counter-increment: schritt; padding: .3rem 0 clamp(2rem, 4.5vw, 3rem); max-width: 40rem; }
.schritt:last-child { padding-bottom: .5rem; }
.schritt::before {
  content: counter(schritt); position: absolute; left: calc(-1 * clamp(4.5rem, 9vw, 6.5rem) + clamp(1.1rem, 2.6vw, 1.9rem) + .95rem); top: .1rem; transform: translateX(-50%);
  width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--rot); color: var(--weiss); font: 700 1.1rem var(--display); z-index: 1;
  transition: background-color .4s var(--ease), color .4s var(--ease), scale .4s var(--ease);
}
.schritt h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: .45rem; padding-top: .3rem; }
.schritt p { margin-bottom: .5rem; }
.unterlagen { margin-top: .6rem; border-left: 3px solid var(--linie); padding-left: 1rem; }
.unterlagen summary { cursor: pointer; font: 600 1rem var(--display); color: var(--rot); }
.unterlagen ul { margin: .7rem 0 0; padding-left: 1.1rem; }
.unterlagen li { margin-bottom: .2rem; }

@media (min-width: 900px) {
  .weg__raster { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; }
  .weg__raster .kopfzeile { position: sticky; top: 7rem; }
}

/* Fahrschule und Bestanden-Fotos */
.fahrschule__raster { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.gross { font: 600 clamp(1.3rem, 2.3vw, 1.65rem)/1.3 var(--display); color: var(--lack); }
.fahrschule__text { max-width: 36rem; }
.fahrschule__text h2 { margin-bottom: 1.2rem; }
.bestanden { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: .7rem; }
.bestanden li { border-radius: 14px; overflow: hidden; background: var(--kulisse); }
.bestanden img { width: 100%; height: 100%; object-fit: cover; }
.b1 { grid-column: 1 / span 4; aspect-ratio: 4 / 2.9; }
.b3 { grid-column: 5 / span 2; grid-row: 1 / span 2; }
.b2 { grid-column: 1 / span 2; aspect-ratio: 4 / 3.4; }
.b4 { grid-column: 3 / span 2; aspect-ratio: 4 / 3.4; }
.b5 { grid-column: 1 / span 6; aspect-ratio: 640 / 300; }
@media (min-width: 900px) { .fahrschule__raster { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }

/* Fahrzeuge */
.flotte { background: var(--kulisse); }
.flotte__raster { display: grid; gap: 1rem; }
.fz { margin: 0; background: var(--weiss); border-radius: 18px; overflow: hidden; }
.fz img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fz--gross img { aspect-ratio: 1600 / 666; background: var(--lack); }
.fz figcaption { padding: .9rem 1.1rem 1rem; color: var(--grau-2); }
.fz figcaption strong { display: block; font: 700 1.15rem var(--display); color: var(--lack); }
.fz--gross img { object-position: 30% 50%; }
@media (min-width: 700px) { .flotte__raster { grid-template-columns: 1fr 1fr; } .fz--gross { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .flotte__raster { grid-template-columns: 1.3fr 1fr 1fr; } .fz--gross { grid-column: auto; } .fz--gross img { aspect-ratio: 4 / 3; } }

/* Preise */
.tarif { display: grid; gap: 1.5rem; }
.tarif__wahl { border: 0; margin: 0; padding: .35rem; display: flex; flex-wrap: wrap; gap: .35rem; background: var(--kulisse); border-radius: 26px; justify-self: start; }
.tarif__wahl label { cursor: pointer; }
.tarif__wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tarif__wahl span { display: block; padding: .6rem 1.1rem; border-radius: 999px; font: 600 .98rem var(--display); color: var(--lack); transition: background-color .35s var(--ease), color .35s var(--ease); }
.tarif__wahl label:hover span { color: var(--rot); }
.tarif__wahl input:checked + span { background: var(--rot); color: var(--weiss); }
.tarif__wahl input:focus-visible + span { outline: 3px solid var(--lack); outline-offset: 2px; }
.tarif__liste { display: none; max-width: 46rem; }
.tarif:has(#t-b:checked) [data-t="b"], .tarif:has(#t-be:checked) [data-t="be"], .tarif:has(#t-a:checked) [data-t="a"], .tarif:has(#t-sonst:checked) [data-t="sonst"] { display: block; }
@supports not selector(:has(*)) { .tarif__wahl { display: none; } .tarif__liste { display: block; margin-bottom: 2rem; } }
.tarif__titel { font-size: 1.15rem; margin-bottom: .6rem; }
.tarif table { width: 100%; border-collapse: collapse; }
.tarif th, .tarif td { padding: .8rem 0; border-bottom: 1px solid var(--linie); text-align: left; font-weight: 400; vertical-align: baseline; }
.tarif td { text-align: right; font: 700 1.25rem var(--display); color: var(--lack); white-space: nowrap; padding-left: 1rem; }
.tarif__dekra th, .tarif__dekra td { color: var(--grau-2); }
.tarif__dekra td { font-size: 1.05rem; }
.tarif__dekra tr:first-child th, .tarif__dekra tr:first-child td { border-top: 2px solid var(--lack); }
.preise__hinweis { margin-top: 1.5rem; color: var(--grau-2); max-width: 46rem; font-size: .98rem; }

/* Kontakt */
.kontakt { background: var(--lack); color: #D6D6D6; }
.kontakt h2, .kontakt h3 { color: var(--weiss); }
.kontakt__raster { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.kontakt__tel { display: inline-block; margin: 1.4rem 0 1.6rem; font: 700 clamp(2rem, 5.4vw, 3.6rem)/1 var(--display); color: var(--weiss); text-decoration: none; background: linear-gradient(var(--rot), var(--rot)) 0 100% / 0 4px no-repeat; transition: background-size .5s var(--ease); padding-bottom: .2rem; }
.kontakt__tel:hover { background-size: 100% 4px; }
.kontakt__wege { list-style: none; margin: 0 0 2rem; padding: 0; }
.kontakt__wege a { display: block; padding: .8rem 0; border-bottom: 1px solid #3A3A3A; text-decoration: none; color: var(--weiss); font-size: 1.1rem; transition: padding-left .3s var(--aus); word-break: break-word; }
.kontakt__wege a:hover { padding-left: .5rem; }
.kontakt__wege span { display: block; font-size: .85rem; color: #A9A9A9; }
.zeiten { background: #262626; border-radius: 22px; padding: clamp(1.3rem, 3vw, 2rem); border-top: 6px solid var(--rot); align-self: start; }
.zeiten h3 { margin-bottom: 1rem; }
.zeiten table { width: 100%; border-collapse: collapse; }
.zeiten th, .zeiten td { padding: .5rem .4rem; text-align: left; font-weight: 400; border-bottom: 1px solid #3A3A3A; }
.zeiten td { text-align: right; color: var(--weiss); }
.zeiten .zu td { color: #9A9A9A; }
.zeiten tr.heute th, .zeiten tr.heute td { color: var(--weiss); font-weight: 700; background: rgba(209, 1, 7, .28); }
.zeiten__jetzt { margin: 1.1rem 0 0; font: 600 1.05rem var(--display); color: var(--weiss); display: flex; align-items: center; gap: .6rem; }
.zeiten__jetzt::before { content: ""; width: .8rem; height: .8rem; border-radius: 50%; background: #9A9A9A; flex: none; }
.zeiten__jetzt.offen::before { background: var(--rot); box-shadow: 0 0 0 4px rgba(209, 1, 7, .35); }
.zeiten__wa { margin: 1rem 0 0; font-size: .95rem; color: #BDBDBD; }
@media (min-width: 900px) { .kontakt__raster { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }

/* Fuß */
.fuss { background: var(--weiss); padding: 2rem 0; border-top: 1px solid var(--linie); }
.fuss__innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.fuss__marke img { width: 150px; }
.fuss p { margin: 0; color: var(--grau-2); font-size: .95rem; }
.fuss nav { display: flex; gap: 1.4rem; }
.fuss nav a { text-decoration: none; font: 600 .98rem var(--display); color: var(--lack); }
.fuss nav a:hover { color: var(--rot); }

/* Rechtsseiten, 404 */
.recht { max-width: 46rem; margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) var(--rand); }
.recht h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 2rem; }
.recht h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
.recht address { font-style: normal; margin-bottom: 1em; }
.recht .offen { background: #FBE9E9; border-left: 4px solid var(--rot); padding: .5rem .8rem; color: var(--rot-tief); }
.fehler { max-width: 44rem; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--rand); }
.fehler .kulisse { width: 120px; margin-bottom: 1.5rem; }
.fehler h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.fehler p { font-size: 1.1rem; margin-bottom: 1.6rem; }

/* ---------- Bewegung (nur mit JS, Klasse .anim) ---------- */
@keyframes knaufgleiten {
  0%, 12% { transform: translateY(0); }
  100% { transform: translateY(279px); }
}
@keyframes buchstabe { 0%, 100% { fill: var(--linie); } 40%, 60% { fill: var(--rot); } }
@keyframes buchstabeD { 0% { fill: var(--linie); } 100% { fill: var(--rot); } }
@keyframes einblenden { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes klammer { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes klammerU { from { clip-path: inset(100% 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes anfahren { from { transform: translateX(-34%); opacity: 0; } 30% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes karte { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes stempel { 0% { transform: scale(1.7) rotate(-6deg); opacity: 0; } 100% { transform: none; opacity: 1; } }

.anim .kulisse__knauf { animation: knaufgleiten 1.9s var(--ease) .25s both; }
.anim .kb--p { animation: buchstabe .7s linear .25s both; }
.anim .kb--r { animation: buchstabe .7s linear .85s both; }
.anim .kb--n { animation: buchstabe .7s linear 1.25s both; }
.anim .kb--d { animation: buchstabeD .4s linear 1.85s both; }
.anim .hero__ort, .anim .hero__titel, .anim .hero__lead, .anim .hero__knoepfe { animation: einblenden .8s var(--aus) both; }
.anim .hero__titel { animation-delay: .08s; }
.anim .hero__lead { animation-delay: .18s; }
.anim .hero__knoepfe { animation-delay: .28s; }
.anim .klammer--oben { animation: klammer 1s var(--ease) .1s both; }
.anim .klammer--unten { animation: klammerU 1s var(--ease) .5s both; }
.anim .hero__auto img { animation: anfahren 1.5s var(--ease) 1.2s both; }
.anim .hero { --hs: 0; }
.anim .hero__auto { translate: calc(var(--hs) * 14%) 0; }
.anim .hero__raster { translate: 0 calc(var(--hs) * -30px); opacity: calc(1 - var(--hs) * .6); }

.anim .karte.ist-neu .karte__inhalt, .anim .karte.ist-neu .darf { animation: karte .45s var(--aus) both; }
.anim .karte.ist-neu .karte__sz span { animation: stempel .45s cubic-bezier(.3, 1.5, .5, 1) both; display: inline-block; }

/* Ablauf: Knauf fährt mit dem Scrollen durch den Schlitz */
.anim .bahn { --weg: 0px; }
.anim .bahn__knauf {
  display: grid; place-items: center; position: absolute; z-index: 2;
  left: calc(clamp(1.1rem, 2.6vw, 1.9rem) + .95rem); top: 0; transform: translate(-50%, var(--weg));
  width: 4.4rem; height: 2.4rem; border-radius: 999px; background: var(--rot); color: var(--weiss);
  font: 600 1.2rem var(--body); box-shadow: 0 6px 16px -6px rgba(105, 0, 3, .6);
}
.anim .schritt::before { background: var(--weiss); color: var(--grau-2); box-shadow: 0 0 0 2px var(--linie); }
.anim .schritt.erreicht::before { background: var(--lack); color: var(--weiss); box-shadow: none; }

.anim .zeigen { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--aus), transform .8s var(--aus); }
.anim .zeigen.ist-da { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
