/* RoutenKino – Webseite
   Farben aus der App: Kartengrün, Asphalt, Mittellinie. Keine externen Schriften oder Dienste. */

@font-face {
  font-family: "Oswald";
  src: url("fonts/Oswald.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}

:root {
  --asphalt: #2b3036;
  --asphalt-hell: #4a525a;
  --papier: #f2f4f0;
  --flaeche: #ffffff;
  --gruen: #1f7a43;
  --gruen-hell: #dcebdd;
  --linie: #f2c200;
  --wasser: #a9cfe0;
  --text: #22272c;
  --text-leise: #59626b;
  --rand: #d5dbd4;
  --karte: #eef1ea;
  --karte-gruen: #d6e6d1;
  --karte-strasse: #ffffff;
  --platzhalter: #fff3b0;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier: #1d2125;
    --flaeche: #262b30;
    --gruen: #5cc287;
    --gruen-hell: #23392b;
    --text: #e8ebe6;
    --text-leise: #a9b1b8;
    --rand: #3a4148;
    --karte: #dfe5da;
    --platzhalter: #5c4f10;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

img { max-width: 100%; height: auto; }

a { color: var(--gruen); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--linie); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 {
  font-family: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
}

.huelle { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

/* Kopf */
.kopf {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rand);
}
.kopf .huelle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wortmarke {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.wortmarke img { border-radius: 8px; }
.wortmarke span { color: var(--gruen); margin-left: -0.55rem; }
.kopf nav { display: flex; gap: 1.4rem; font-size: 0.95rem; }
.kopf nav a { color: var(--text-leise); text-decoration: none; white-space: nowrap; }
.kopf nav a:hover, .kopf nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

/* Held */
.held { padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; }
.held h1 {
  font-size: clamp(2.6rem, 7.5vw, 5.4rem);
  font-weight: 700;
  max-width: 14ch;
  margin-bottom: 0.35em;
}
.held h1 .zeile { display: block; }
.held .einleitung { font-size: 1.15rem; max-width: 52ch; color: var(--text-leise); margin: 0 0 1.6rem; }
.bald {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  background: var(--asphalt); color: #fff;
  font-weight: 600;
}
.bald strong { white-space: nowrap; }
.bald small { font-weight: 400; opacity: 0.8; white-space: nowrap; }

/* Leinwand: die Karte mit Filmrand */
.leinwand {
  margin-top: 2.6rem;
  background: var(--asphalt);
  border-radius: 14px;
  padding: 22px 14px;
  position: relative;
  box-shadow: 0 18px 40px -22px rgba(20, 25, 30, 0.6);
}
.leinwand::before, .leinwand::after {
  /* Perforation eines Filmstreifens */
  content: "";
  position: absolute; left: 14px; right: 14px; height: 8px;
  background: radial-gradient(circle at 6px 4px, #6a737c 0 3.5px, transparent 4px) 0 0 / 22px 8px repeat-x;
  opacity: 0.8;
}
.leinwand::before { top: 7px; }
.leinwand::after { bottom: 7px; }
.leinwand svg { display: block; width: 100%; height: auto; border-radius: 6px; background: var(--karte); }

.route-hell { stroke: #ffffff; }
.route { stroke: #1f7a43; }
.route-hell, .route {
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.fahrer { offset-path: var(--pfad); offset-rotate: 0deg; offset-distance: 100%; }

@media (prefers-reduced-motion: no-preference) {
  .route-hell, .route { animation: einzeichnen 4.2s cubic-bezier(.45,.05,.35,1) 0.4s both; }
  .fahrer { animation: fahren 4.2s cubic-bezier(.45,.05,.35,1) 0.4s both; }
  .ziel-foto { animation: auftauchen 0.6s ease-out 4.5s both; }
}
@keyframes einzeichnen { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fahren { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes auftauchen { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
.ziel-foto { transform-box: fill-box; transform-origin: 50% 100%; }

/* Abschnitte */
.abschnitt { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.abschnitt h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.abschnitt .absatz { max-width: 60ch; color: var(--text-leise); }

/* Ablauf in drei Schritten (echte Reihenfolge) */
.schritte { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1.8rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: schritt; }
.schritte li { counter-increment: schritt; padding-top: 0.2rem; }
.schritte li::before {
  content: counter(schritt);
  display: block;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 700; font-size: 3.2rem; line-height: 1;
  color: var(--gruen);
  margin-bottom: 0.4rem;
}
.schritte h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.schritte p { margin: 0; color: var(--text-leise); max-width: 34ch; }

/* Gruppe auf der Straße */
.gruppe { background: var(--flaeche); border-block: 1px solid var(--rand); }
.strasse {
  margin-top: 2rem;
  position: relative;
  padding: 1.4rem 0 1.1rem;
  background: var(--asphalt);
  border-radius: 10px;
  overflow: hidden;
}
.strasse::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px;
  background: repeating-linear-gradient(90deg, var(--linie) 0 34px, transparent 34px 64px);
  opacity: 0.85;
}
.strasse .kolonne { position: relative; z-index: 1; display: flex; justify-content: center; gap: clamp(0.4rem, 3vw, 2.4rem); flex-wrap: nowrap; }
.strasse img { width: clamp(64px, 14vw, 128px); }

/* Fahrzeuge */
.fahrzeuge { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 1.8rem; }
.fahrzeuge figure { margin: 0; text-align: center; }
.fahrzeuge img { height: 100px; width: auto; object-fit: contain; }
.fahrzeuge figcaption { font-weight: 600; margin-top: 0.4rem; }

.merkmale { margin: 1.6rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.9rem 2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.merkmale li { padding-left: 1.2rem; position: relative; }
.merkmale li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--gruen); }

.versprechen { font-size: 1.15rem; max-width: 58ch; }

/* Fuß */
.fuss { border-top: 1px solid var(--rand); padding: 2rem 0 2.6rem; color: var(--text-leise); font-size: 0.92rem; }
.fuss .huelle { display: flex; flex-wrap: wrap; gap: 0.8rem 1.6rem; justify-content: space-between; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.fuss a { color: var(--text-leise); }

/* Rechtstexte */
.text { padding: 2.5rem 0 3.5rem; }
.text .huelle { max-width: 72ch; }
.text h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.text h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.text h3 { font-size: 1.15rem; margin-top: 1.4rem; }
.text .stand { color: var(--text-leise); }
.text address { font-style: normal; }
.hinweis {
  border-left: 4px solid var(--linie);
  background: var(--flaeche);
  padding: 0.9rem 1.1rem;
  margin: 1.4rem 0;
  border-radius: 0 8px 8px 0;
}
.platzhalter { background: var(--platzhalter); padding: 0 0.2em; border-radius: 3px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .kopf nav { gap: 1rem; font-size: 0.9rem; }
  .kopf .nur-breit { display: none; }
  .bald { flex-wrap: wrap; row-gap: 0.1rem; }
  .leinwand { padding: 14px 6px; border-radius: 10px; margin-inline: -0.5rem; }
  .leinwand::before, .leinwand::after { left: 6px; right: 6px; height: 6px; background-size: 16px 6px;
    background-image: radial-gradient(circle at 4px 3px, #6a737c 0 2.5px, transparent 3px); }
  .leinwand::before { top: 4px; }
  .leinwand::after { bottom: 4px; }
}
