/* Fahrschule Tempo – Kundenvorschau
   Farben aus dem Original-Logo (logofar.png) und dem alten CSS gemessen. */

@font-face {
  font-family: "Saira";
  src: url("fonts/saira-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
}

:root {
  --rot: #A23D32;        /* „Tempo“ im Logo */
  --rot-tief: #8D2C26;   /* Akzent der alten Website, für kleine Schrift */
  --asphalt: #2A2928;
  --asphalt-hell: #3B3937;
  --fahrbahn: #807E7D;   /* Straßenschwung im Logo */
  --beton: #EDEDEA;
  --kante: #D6D5D1;
  --weiss: #FFFFFF;
  --text: #2A2928;
  --text-leise: #5E5C5A;

  --schmal: 62%;
  --rahmen: 1200px;
  --rand: clamp(1rem, 4vw, 2.5rem);
  --abstand: clamp(4.5rem, 10vw, 8.5rem);
  --kopfhoehe: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kopfhoehe) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Saira", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--weiss);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }
small { font-size: .82em; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; border-radius: 4px; }
.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(--asphalt); color: var(--weiss); padding: .6rem 1rem; border-radius: 6px;
}
.skip:focus { top: 1rem; }

.rahmen { width: 100%; max-width: var(--rahmen); margin: 0 auto; padding: 0 var(--rand); }

.titel {
  font-stretch: var(--schmal);
  font-weight: 800;
  font-size: clamp(2.3rem, 5.2vw, 4.1rem);
  letter-spacing: -.01em;
  line-height: .98;
  color: var(--asphalt);
  text-wrap: balance;
}
.titel--hell { color: var(--weiss); }

.kopfzeile { display: grid; gap: 1.25rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.kopfzeile__text { color: var(--text-leise); max-width: 38rem; font-size: 1.125rem; }
.kopfzeile--hell .kopfzeile__text { color: #C9C7C4; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .7rem 1.5rem;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 1.0625rem; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.knopf--rot { background: var(--rot); color: var(--weiss); }
.knopf--rot:hover { background: var(--rot-tief); }
.knopf--linie { border-color: var(--asphalt); color: var(--asphalt); }
.knopf--linie:hover { background: var(--asphalt); color: var(--weiss); }
.knopf:active { transform: translateY(1px); }

.textlink { color: inherit; font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--rot); }
.textlink:hover { color: var(--rot); }

/* Kopfzeile */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.kopf.ist-gescrollt { border-bottom-color: var(--kante); }
.kopf__innen {
  max-width: var(--rahmen); margin: 0 auto; padding: 0 var(--rand);
  height: var(--kopfhoehe); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.kopf__marke img { width: 92px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav a { text-decoration: none; font-weight: 500; position: relative; padding: .4rem 0; }
.nav a:not(.nav__tel)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--rot); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:not(.nav__tel):hover::after, .nav a.ist-aktiv::after { transform: scaleX(1); }
.nav__tel {
  background: var(--asphalt); color: var(--weiss); border-radius: 999px;
  padding: .55rem 1.1rem !important; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color .2s;
}
.nav__tel:hover { background: var(--rot); }
.menueknopf { display: none; }

@media (max-width: 860px) {
  .menueknopf {
    display: inline-flex; align-items: center; gap: .6rem;
    font: inherit; font-weight: 600; color: var(--asphalt);
    background: none; border: 2px solid var(--asphalt); border-radius: 999px;
    padding: .45rem 1rem; min-height: 44px; cursor: pointer;
  }
  .menueknopf__strich, .menueknopf__strich::before {
    display: block; width: 16px; height: 2px; background: currentColor; position: relative; transition: transform .25s;
  }
  .menueknopf__strich::before { content: ""; position: absolute; top: 5px; }
  .menueknopf__strich { transform: translateY(-2.5px); }
  .menueknopf[aria-expanded="true"] .menueknopf__strich { transform: rotate(45deg); }
  .menueknopf[aria-expanded="true"] .menueknopf__strich::before { transform: translateY(-5px) rotate(-90deg); }
  .nav {
    position: absolute; top: var(--kopfhoehe); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--weiss); border-bottom: 1px solid var(--kante);
    padding: .5rem var(--rand) 1.25rem;
    box-shadow: 0 18px 30px -18px rgba(42, 41, 40, .35);
  }
  .js .nav { display: none; }
  .js .nav.ist-offen { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--beton); font-size: 1.125rem; }
  .nav a::after { display: none; }
  .nav__tel { margin-top: 1rem; text-align: center; border-bottom: 0 !important; }
}

/* Hero */
.hero { position: relative; padding-top: clamp(2rem, 6vw, 4.5rem); background: var(--weiss); overflow: hidden; }
.hero__innen {
  max-width: var(--rahmen); margin: 0 auto; padding: 0 var(--rand);
  display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  position: relative; z-index: 2;
}
.hero__ort { font-weight: 600; color: var(--rot-tief); margin-bottom: 1.25rem; }
.hero__titel {
  font-stretch: var(--schmal); font-weight: 800;
  font-size: clamp(3rem, 6.4vw, 6.4rem); line-height: .9; letter-spacing: -.015em;
  color: var(--asphalt);
}
.hero__titel .zeile { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__titel .zeile > span { display: inline-block; white-space: nowrap; }
.hero__lead { margin: 1.75rem 0 2rem; max-width: 34rem; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--text-leise); }
.hero__knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__bild { position: relative; }
.hero__bild img {
  width: 100%; aspect-ratio: 900 / 994; object-fit: cover;
  border-radius: 200px 200px 28px 28px;
}

.strasse { position: relative; z-index: 3; height: clamp(110px, 15vw, 220px); margin-top: clamp(-120px, -7vw, -50px); pointer-events: none; }
.hero__text { padding-bottom: clamp(1rem, 4vw, 3.5rem); }
.strasse__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.strasse__belag { fill: none; stroke: var(--fahrbahn); stroke-width: 44; vector-effect: non-scaling-stroke; }
.strasse__linie { fill: none; stroke: var(--weiss); stroke-width: 3; stroke-dasharray: 22 18; vector-effect: non-scaling-stroke; }
.strasse__rad {
  position: absolute; width: clamp(54px, 5.4vw, 74px); height: auto;
  right: 6%; top: 18%; transform: translate(50%, -50%);
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .25));
}

.eckdaten {
  max-width: var(--rahmen); margin: clamp(1rem, 3vw, 2rem) auto 0; padding: 0 var(--rand) clamp(3rem, 7vw, 5rem);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.eckdaten > div { border-top: 3px solid var(--asphalt); padding-top: .9rem; }
.eckdaten dt { font-weight: 600; color: var(--fahrbahn); font-size: .95rem; }
.eckdaten dd { margin: .15rem 0 0; font-weight: 600; font-size: 1.2rem; font-stretch: 85%; }

@media (max-width: 860px) {
  .hero__innen { grid-template-columns: 1fr; }
  .hero__bild { max-width: 420px; justify-self: end; width: 78%; }
  .strasse { margin-top: -70px; }
  .eckdaten { grid-template-columns: 1fr; gap: 1rem; }
}

/* Klassen */
.klassen { padding: var(--abstand) 0; background: var(--beton); }
.startfeld { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.4vw, 2rem); counter-reset: platz; }
.startplatz {
  background: var(--weiss); border-radius: 6px 6px 22px 22px; padding: 1.4rem 1.4rem 1.8rem;
  border-top: 6px solid var(--asphalt); position: relative;
}
.startplatz:nth-child(even) { margin-top: 3rem; }
.startplatz__kuerzel {
  display: block; font-stretch: var(--schmal); font-weight: 800;
  font-size: clamp(3.4rem, 6vw, 5rem); line-height: 1; color: var(--rot); margin-bottom: 1rem; letter-spacing: -.01em;
}
.startplatz h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
.startplatz p { color: var(--text-leise); font-size: 1rem; }

.ausserdem {
  margin-top: clamp(2.5rem, 6vw, 4rem); display: grid; grid-template-columns: 12rem 1fr; gap: 1.5rem;
  border-top: 1px solid var(--kante); padding-top: 2rem;
}
.ausserdem__titel { font-stretch: var(--schmal); font-weight: 800; font-size: 1.8rem; }
.ausserdem ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ausserdem li { padding-left: 1.4rem; position: relative; color: var(--text-leise); }
.ausserdem li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: 3px; background: var(--rot); }
.ausserdem strong { color: var(--text); font-weight: 600; }

@media (max-width: 960px) {
  .startfeld { grid-template-columns: repeat(2, 1fr); }
  .ausserdem { grid-template-columns: 1fr; }
  .ausserdem ul { grid-template-columns: 1fr; gap: .9rem; }
}
@media (max-width: 600px) {
  .startfeld { grid-template-columns: 1fr; gap: .9rem; }
  .startplatz, .startplatz:nth-child(even) { margin-top: 0; display: grid; grid-template-columns: 5.6rem 1fr; column-gap: 1rem; padding: 1.1rem 1.1rem 1.3rem; }
  .startplatz:nth-child(even) { margin-left: 1.5rem; }
  .startplatz:nth-child(odd) { margin-right: 1.5rem; }
  .startplatz__kuerzel { grid-row: span 2; font-size: 2.8rem; margin: 0; }
  .startplatz h3 { margin-bottom: .2rem; }
}

/* Probestunde */
.probe { background: var(--rot); color: var(--weiss); }
.probe__innen { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.probe__bild { min-height: 100%; }
.probe__bild img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.probe__text { padding: clamp(3rem, 7vw, 6rem) var(--rand); max-width: 40rem; align-self: center; }
.probe__text .titel { margin-bottom: 1.5rem; }
.probe__text p { font-size: 1.125rem; }
.probe__text .probe__zeit {
  display: grid; grid-template-columns: auto auto; justify-content: start; gap: .2rem 2.5rem;
  margin-top: 2rem !important; padding-top: 1.5rem; border-top: 2px dashed rgba(255, 255, 255, .55);
  font-stretch: var(--schmal); font-weight: 700; font-size: 1.7rem; line-height: 1.2;
}
@media (max-width: 860px) {
  .probe__innen { grid-template-columns: 1fr; }
  .probe__bild img { aspect-ratio: 16 / 9; height: auto; }
}

/* Ablauf – die Straße */
.ablauf { background: var(--asphalt); color: var(--weiss); padding: var(--abstand) 0; overflow: hidden; }
.route { position: relative; padding: 1rem 0 2rem; }
.route__strasse {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 54px; transform: translateX(-50%);
  background: var(--asphalt-hell); border-radius: 27px;
  border-left: 3px solid #5A5856; border-right: 3px solid #5A5856;
}
.route__strasse::before {
  content: ""; position: absolute; left: 50%; top: 12px; bottom: 12px; width: 3px; transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, #F2F1EE 0 18px, transparent 18px 34px);
  opacity: .8;
}
.route__gefahren {
  position: absolute; left: -3px; right: -3px; top: 0; height: 100%;
  border-left: 3px solid var(--rot); border-right: 3px solid var(--rot); border-radius: 27px;
  transform-origin: top; transform: scaleY(1);
}
.route__rad {
  position: absolute; left: 50%; top: 0; width: 62px; height: 62px;
  transform: translate(-50%, 0); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); display: none;
}
.js .route__rad { display: block; }
.js .route__gefahren { transform: scaleY(0); }

.route__halte { counter-reset: halt; position: relative; }
.route__halte li {
  counter-increment: halt; position: relative;
  width: calc(50% - 64px); padding: 1.1rem 0;
}
.route__halte li + li { margin-top: -2.6rem; }
.route__halte li:nth-child(odd) { text-align: right; }
.route__halte li:nth-child(even) { margin-left: auto; }
.route__halte li::before {
  content: counter(halt); position: absolute; top: 1rem;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--asphalt); border: 3px solid #6E6C6A; color: var(--weiss);
  font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums;
  transition: background-color .35s, border-color .35s, transform .35s;
  z-index: 1;
}
.route__halte li:nth-child(odd)::before { right: -84px; }
.route__halte li:nth-child(even)::before { left: -84px; }
.no-js .route__halte li::before, .route__halte li.erreicht::before { background: var(--rot); border-color: var(--rot); }
.route__halte h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-stretch: 80%; font-weight: 700; margin-bottom: .35rem; }
.route__halte p { color: #BDBBB8; font-size: 1rem; max-width: 30rem; }
.route__halte li:nth-child(odd) p { margin-left: auto; }

@media (max-width: 760px) {
  .route__strasse { left: 22px; width: 44px; transform: none; }
  .route__rad { left: 44px; width: 52px; height: 52px; }
  .route__halte li, .route__halte li:nth-child(odd), .route__halte li:nth-child(even) { width: auto; margin-left: 0; padding-left: 84px; text-align: left; }
  .route__halte li + li { margin-top: 0; }
  .route__halte li:nth-child(odd)::before, .route__halte li:nth-child(even)::before { left: 26px; right: auto; width: 36px; height: 36px; }
  .route__halte li:nth-child(odd) p { margin-left: 0; }
}

/* Preise */
.preise { padding: var(--abstand) 0; background: var(--weiss); }
.preise__innen { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.preise .kopfzeile { margin-bottom: 0; position: sticky; top: calc(var(--kopfhoehe) + 2rem); }
.zeitnahme table { width: 100%; border-collapse: collapse; }
.zeitnahme tr { border-bottom: 2px dashed var(--kante); }
.zeitnahme tr:first-child { border-top: 6px solid var(--asphalt); }
.zeitnahme th, .zeitnahme td { padding: 1.15rem 0; vertical-align: middle; }
.zeitnahme th { text-align: left; font-weight: 600; font-size: 1.15rem; padding-right: 1rem; }
.zeitnahme th small { display: block; font-weight: 400; color: var(--text-leise); font-size: .95rem; margin-top: .1rem; }
.zeitnahme td {
  text-align: right; white-space: nowrap;
  font-stretch: var(--schmal); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-variant-numeric: tabular-nums; color: var(--asphalt);
}
.zeitnahme tr:first-child td { color: var(--rot); }
.zeitnahme__fuss { margin-top: 1.5rem; color: var(--text-leise); font-size: .98rem; max-width: 36rem; }
@media (max-width: 860px) {
  .preise__innen { grid-template-columns: 1fr; }
  .preise .kopfzeile { position: static; }
}

/* Über uns */
.team { padding: var(--abstand) 0; background: var(--beton); }
.team__innen { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.team__bild img { width: 100%; border-radius: 28px 28px 200px 200px; aspect-ratio: 577 / 860; object-fit: cover; object-position: 50% 20%; }
.team__text .titel { margin-bottom: 1.75rem; }
.team__text > p { max-width: 38rem; }
.werte { margin: 2rem 0; display: grid; gap: .9rem; max-width: 38rem; }
.werte li { padding: 0 0 .9rem; border-bottom: 1px solid var(--kante); color: var(--text-leise); }
.werte strong { color: var(--rot-tief); font-weight: 700; margin-right: .25rem; }
.sprache {
  display: inline-flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: baseline;
  border: 2px solid var(--asphalt); border-radius: 999px; padding: .45rem 1.1rem; font-size: .98rem;
}
.sprache [lang="ru"] { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; }
@media (max-width: 860px) {
  .team__innen { grid-template-columns: 1fr; }
  .team__bild { max-width: 360px; }
  .sprache { border-radius: 18px; }
}

/* Kontakt */
.kontakt { background: var(--asphalt); color: var(--weiss); padding: var(--abstand) 0; }
.kontakt__lead { margin: 1.5rem 0 clamp(2.5rem, 6vw, 4rem); max-width: 36rem; color: #C9C7C4; font-size: 1.125rem; }
.kontakt__raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.kontakt__block { border-top: 3px solid var(--fahrbahn); padding-top: 1rem; }
.kontakt__block h3 { font-size: 1rem; font-weight: 600; color: #B3B1AE; margin-bottom: .6rem; }
.kontakt__block p, .kontakt__block address { margin-bottom: .6rem; }
.kontakt__block .textlink { display: inline-block; margin-top: .4rem; }
.kontakt__block--direkt { border-top-color: var(--rot); }
.kontakt__gross {
  display: block; text-decoration: none; font-stretch: var(--schmal); font-weight: 800;
  font-size: clamp(2rem, 3vw, 2.4rem); line-height: 1.1; font-variant-numeric: tabular-nums;
}
.kontakt__gross:hover, .kontakt__mail:hover { color: #E7A79F; }
.kontakt__mail { display: inline-block; margin-top: .5rem; font-weight: 600; text-underline-offset: 4px; word-break: break-all; }
.kontakt__klein { color: #A8A6A3; font-size: .95rem; margin-top: .6rem; }
@media (max-width: 1000px) { .kontakt__raster { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .kontakt__raster { grid-template-columns: 1fr; } }

/* Fuß */
.fuss { background: var(--beton); padding: 2.5rem 0; font-size: .95rem; color: var(--text-leise); }
.fuss__innen { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.fuss__innen img { width: 76px; }
.fuss__innen p { margin: 0; flex: 1 1 16rem; }
.fuss nav { display: flex; gap: 1.5rem; }
.fuss nav a { font-weight: 600; text-underline-offset: 4px; }
.fuss nav a:hover, .fuss nav a[aria-current] { color: var(--rot); }

/* Rechtstexte */
.recht { padding: clamp(2.5rem, 6vw, 4.5rem) 0 var(--abstand); }
.recht .rahmen { max-width: 52rem; }
.recht h1 { font-stretch: var(--schmal); font-weight: 800; font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 1.25rem 0 2rem; }
.recht h2 { font-size: 1.2rem; font-weight: 700; margin: 2.2rem 0 .6rem; }
.recht a { color: var(--rot-tief); text-underline-offset: 3px; }
.recht__zurueck { font-weight: 600; }
.recht__stand { margin-top: 2.5rem; color: var(--text-leise); font-size: .95rem; }

/* 404 */
.fehler { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 3rem 0; background: var(--beton); }
.fehler img { width: 220px; margin: 0 auto 2rem; }
.fehler h1 { font-stretch: var(--schmal); font-weight: 800; font-size: clamp(2.6rem, 8vw, 4.5rem); margin-bottom: 1rem; }
.fehler p { color: var(--text-leise); margin-bottom: 2rem; }

/* ===== Bewegung =====
   Nur aktiv, wenn main.js die Klasse .anim setzt (JS an, keine reduzierte Bewegung).
   Ohne JS oder mit prefers-reduced-motion ist alles sofort sichtbar. */
:root { --weich: cubic-bezier(.22, .8, .22, 1); }

/* Hero-Ladesequenz */
.anim .hero__ort,
.anim .hero__lead,
.anim .hero__knoepfe,
.anim .eckdaten > div { opacity: 0; transform: translateY(14px); }
.anim .hero__titel .zeile > span { transform: translateY(108%); }
.anim .hero__bild { clip-path: inset(100% 0 0 0 round 200px 200px 28px 28px); }
.anim .hero__bild img { transform: scale(1.12); }
.anim .strasse__linie { opacity: 0; }

.anim.geladen .hero__ort { opacity: 1; transform: none; transition: opacity .6s var(--weich), transform .6s var(--weich); }
.anim.geladen .hero__titel .zeile > span { transform: none; transition: transform 1s var(--weich); }
.anim.geladen .hero__titel .zeile:nth-child(1) > span { transition-delay: .08s; }
.anim.geladen .hero__titel .zeile:nth-child(2) > span { transition-delay: .18s; }
.anim.geladen .hero__titel .zeile:nth-child(3) > span { transition-delay: .28s; }
.anim.geladen .hero__lead { opacity: 1; transform: none; transition: opacity .7s .5s var(--weich), transform .7s .5s var(--weich); }
.anim.geladen .hero__knoepfe { opacity: 1; transform: none; transition: opacity .7s .62s var(--weich), transform .7s .62s var(--weich); }
.anim.geladen .hero__bild { clip-path: inset(0 0 0 0 round 200px 200px 28px 28px); transition: clip-path 1.2s .2s var(--weich); }
.anim.geladen .hero__bild img { transform: scale(1); transition: transform 1.6s .2s var(--weich); }
.anim.strasse-fertig .strasse__linie { opacity: 1; transition: opacity .6s ease; }
.anim.geladen .eckdaten > div { opacity: 1; transform: none; transition: opacity .7s var(--weich), transform .7s var(--weich); }
.anim.geladen .eckdaten > div:nth-child(1) { transition-delay: 1.1s; }
.anim.geladen .eckdaten > div:nth-child(2) { transition-delay: 1.2s; }
.anim.geladen .eckdaten > div:nth-child(3) { transition-delay: 1.3s; }

/* Hero-Bild bewegt sich beim Scrollen leicht mit */
.hero__bild { will-change: transform; }

/* Überschriften: wischen von links herein */
.anim .titel[data-zeigen] { clip-path: inset(-.1em 100% -.2em 0); transform: translateX(-12px); }
.anim .titel[data-zeigen].sichtbar { clip-path: inset(-.1em -.1em -.2em 0); transform: none; transition: clip-path .9s var(--weich), transform .9s var(--weich); }

/* Fließtext und Blöcke: ruhig einblenden */
.anim [data-zeigen="text"] { opacity: 0; transform: translateY(18px); }
.anim [data-zeigen="text"].sichtbar { opacity: 1; transform: none; transition: opacity .8s var(--weich), transform .8s var(--weich); transition-delay: var(--v, 0s); }

/* Startaufstellung: Kacheln rollen in ihre Startplätze */
.anim .startplatz { opacity: 0; transform: translateY(70px); }
.anim .startfeld.sichtbar .startplatz { opacity: 1; transform: none; transition: opacity .7s var(--weich), transform 1s var(--weich); }
.anim .startfeld.sichtbar .startplatz:nth-child(2) { transition-delay: .12s; }
.anim .startfeld.sichtbar .startplatz:nth-child(3) { transition-delay: .24s; }
.anim .startfeld.sichtbar .startplatz:nth-child(4) { transition-delay: .36s; }
.anim .startplatz__kuerzel { transform: translateX(-10px); opacity: 0; }
.anim .startfeld.sichtbar .startplatz__kuerzel { transform: none; opacity: 1; transition: transform .7s var(--weich), opacity .7s var(--weich); transition-delay: inherit; }
.startplatz { transition: box-shadow .3s ease, translate .3s var(--weich); }
@media (hover: hover) {
  .startplatz:hover { translate: 0 -6px; box-shadow: 0 20px 30px -22px rgba(42, 41, 40, .45); }
}

/* Bilder öffnen sich */
.anim [data-zeigen="bild"] { clip-path: inset(0 0 100% 0); }
.anim [data-zeigen="bild"] img { transform: scale(1.15); }
.anim [data-zeigen="bild"].sichtbar { clip-path: inset(0 0 0 0); transition: clip-path 1.2s var(--weich); }
.anim [data-zeigen="bild"].sichtbar img { transform: scale(1); transition: transform 1.6s var(--weich); }

/* Probestunde: gestrichelte Linie wird gezogen */
.anim .probe__text .probe__zeit { border-top-color: transparent; position: relative; }
.anim .probe__text .probe__zeit::before {
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 0;
  border-top: 2px dashed rgba(255, 255, 255, .55);
  transform: scaleX(0); transform-origin: left;
}
.anim .probe__text .probe__zeit.sichtbar::before { transform: scaleX(1); transition: transform 1.1s .3s var(--weich); }

/* Ablauf: erreichte Halte „blinken“ kurz auf */
@keyframes halt { 0% { transform: scale(1); } 40% { transform: scale(1.28); box-shadow: 0 0 0 8px rgba(162, 61, 50, .3); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(162, 61, 50, 0); } }
.anim .route__halte li.erreicht::before { animation: halt .55s var(--weich); }
.anim .route__halte li { opacity: .45; transition: opacity .5s ease; }
.anim .route__halte li.erreicht { opacity: 1; }

/* Preise: Zeilen fahren ein, Linie oben zieht sich auf */
.anim .zeitnahme tr { opacity: 0; transform: translateX(24px); }
.anim .zeitnahme.sichtbar tr { opacity: 1; transform: none; transition: opacity .6s var(--weich), transform .7s var(--weich); }
.anim .zeitnahme.sichtbar tr:nth-child(2) { transition-delay: .08s; }
.anim .zeitnahme.sichtbar tr:nth-child(3) { transition-delay: .16s; }
.anim .zeitnahme.sichtbar tr:nth-child(4) { transition-delay: .24s; }
.anim .zeitnahme.sichtbar tr:nth-child(5) { transition-delay: .32s; }

/* Kontakt: farbige Oberkanten ziehen sich auf */
.anim .kontakt__block { border-top-color: transparent; position: relative; }
.anim .kontakt__block::before {
  content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 3px; background: var(--fahrbahn);
  transform: scaleX(0); transform-origin: left;
}
.anim .kontakt__block--direkt::before { background: var(--rot); }
.anim .kontakt__raster.sichtbar .kontakt__block::before { transform: scaleX(1); transition: transform .9s var(--weich); }
.anim .kontakt__raster.sichtbar .kontakt__block:nth-child(2)::before { transition-delay: .1s; }
.anim .kontakt__raster.sichtbar .kontakt__block:nth-child(3)::before { transition-delay: .2s; }
.anim .kontakt__raster.sichtbar .kontakt__block:nth-child(4)::before { transition-delay: .3s; }

/* Telefon-Knopf im Kopf: kurzer Hinweis, sobald man scrollt */
@keyframes klingeln { 0%, 100% { transform: none; } 20% { transform: rotate(-3deg); } 40% { transform: rotate(3deg); } 60% { transform: rotate(-2deg); } 80% { transform: rotate(1deg); } }
.anim .kopf.ist-gescrollt .nav__tel { animation: klingeln .7s .2s 1 ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.anim:not(.geladen) .strasse__belag { stroke-dasharray: 1; stroke-dashoffset: 1; }
.anim:not(.geladen) .strasse__rad { opacity: 0; }
