/* Gotthard Pilot — Schweizer Gestaltung (D25 A): Weiss, fast Schwarz, Schweizer Rot für die eine Handlung, Grotesk
   (Helvetica/Arial), rechtwinklige Knöpfe und Felder, dünne Linien, viel Weissraum, keine Schatten. Zustandsfarben aus
   der Schweizer Signalisation: Autobahn-Grün = fahren, Hauptstrassen-Blau = Pass, Rot = warten. Hochformat zuerst;
   im Querformat (Tesla, Handy quer, Desktop) zwei Spalten. Keine Fremdmarken (kein Logo, keine Schrift von SWISS). */
:root {
  --weiss: #ffffff;
  --text: #101010;
  --text-weich: #5f5a55;
  --linie: #d9d9d9;
  --linie-stark: #8c8c8c;
  --grau: #f2f2f2;
  --rot: #cc0100;
  --rot-hell: #fdeceb;
  --rot-tief: #a80100;
  --knopf-text: #ffffff;
  --gruen: #00703c;
  --gruen-hell: #e6f2ec;
  --blau: #1f5aa6;
  --blau-hell: #e8eef8;
  --bernstein: #9a5b00;
  --bernstein-hell: #fbf0de;
  --gelaende: #f0eeea;
  --pass-zu: #b3b3b3;
  --schrift: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --mass: 32rem;
  --mass-breit: 78rem;
  --radius: 4px;
  color-scheme: light;
}
/* Dunkel (Nachtmodus im Auto, dunkles Gerät): folgt dem Gerät, ausser die eigene Wahl «Hell» (Cookie gp_thema, data-thema
   schon im HTML, kein Aufblitzen); «Dunkel» erzwingt sie. Rot wird heller, damit Text und Knöpfe lesbar bleiben. */
@media (prefers-color-scheme: dark) {
  :root:not([data-thema="hell"]) {
    --weiss: #121212;
    --text: #f2f2f2;
    --text-weich: #b3ada7;
    --linie: #333333;
    --linie-stark: #6b6b6b;
    --grau: #1e1e1e;
    --rot: #ff6b6b;
    --rot-hell: #3a1414;
    --rot-tief: #ff8f8f;
    --knopf-text: #121212;
    --gruen: #4cc38a;
    --gruen-hell: #12301f;
    --blau: #7aa7e6;
    --blau-hell: #14233a;
    --bernstein: #e0a040;
    --bernstein-hell: #33260f;
    --gelaende: #1c1b19;
    --pass-zu: #5a5a5a;
    color-scheme: dark;
  }
}
:root[data-thema="dunkel"] {
  --weiss: #121212;
  --text: #f2f2f2;
  --text-weich: #b3ada7;
  --linie: #333333;
  --linie-stark: #6b6b6b;
  --grau: #1e1e1e;
  --rot: #ff6b6b;
  --rot-hell: #3a1414;
  --rot-tief: #ff8f8f;
  --knopf-text: #121212;
  --gruen: #4cc38a;
  --gruen-hell: #12301f;
  --blau: #7aa7e6;
  --blau-hell: #14233a;
  --bernstein: #e0a040;
  --bernstein-hell: #33260f;
  --gelaende: #1c1b19;
  --pass-zu: #5a5a5a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--schrift); color: var(--text); background: var(--weiss); line-height: 1.45; }
body > main { flex: 1 0 auto; width: 100%; }
a { color: inherit; }
h1, h2 { font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }

/* Kopf über die ganze Breite mit feiner Linie, Inhalt in einer Spalte */
.kopf-leiste { border-bottom: 1px solid var(--linie); background: var(--weiss); }
.kopf, .inhalt, .fuss { max-width: var(--mass); margin: 0 auto; padding: 0 1rem; }
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.marke { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font-weight: 700; letter-spacing: 0.1em; font-size: 0.9rem; min-height: 44px; }
.marke-zeichen { width: 26px; height: 26px; color: var(--rot); }
.inhalt { padding-top: 1rem; padding-bottom: 2.5rem; }
.fuss-leiste { border-top: 1px solid var(--linie); background: var(--grau); }
.fuss { color: var(--text-weich); font-size: 0.8rem; padding-top: 1.2rem; padding-bottom: 2rem; }
.fuss p { margin: 0.3rem 0; }
.fuss-quelle { color: var(--text); }
/* Gut zu wissen (D46 A): eine kurze Linkzeile, umbrechend, kein eigener Block */
.fuss-wissen { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.9rem; margin: 0.4rem 0 0; }
.fuss-wissen a { display: inline-flex; align-items: center; min-height: 32px; }
.fuss-wissen a[aria-current] { color: var(--text); font-weight: 700; }
.fuss-wissen-titel { color: var(--text); font-weight: 700; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
.fuss-links a { display: inline-flex; align-items: center; min-height: 44px; }
.fuss-sprachen { display: flex; gap: 0.25rem; margin: 0.4rem 0; }
.fuss-sprachen a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; text-decoration: none; }
.fuss-sprachen a[aria-current] { color: var(--text); font-weight: 700; box-shadow: inset 0 -3px 0 var(--rot); }
.fuss-thema { flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; }
.fuss-thema a { min-width: 0; padding: 0 0.3rem; }
.fuss-thema-titel { margin-right: 0.2rem; }
.fuss-build { font-size: 0.7rem; }

/* Start: eine Frage, zwei Antworten */
.start { padding-top: 1.5rem; }
.claim { color: var(--rot); font-weight: 700; margin: 0 0 0.4rem; }
/* Leitsatz D39: ruhig unter dem Claim, die Frage «Wohin fährst du?» bleibt das Grösste. */
.leitsatz { margin: 0 0 0.9rem; color: var(--text-weich); font-size: 0.95rem; }
.start h1 { font-size: 2.1rem; margin: 0 0 1.4rem; }
.richtungen { display: grid; gap: 0.8rem; }
.richtung-karte { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.1rem; min-height: 5.5rem; background: var(--weiss); border: 1px solid var(--linie-stark); text-decoration: none; transition: border-color 0.12s ease, box-shadow 0.12s ease; }
.richtung-karte:hover, .richtung-karte:focus-visible { border-color: var(--text); box-shadow: inset 0 -4px 0 var(--rot); }
.richtung-karte.ist-zuletzt { border-color: var(--text); }
.richtung-pfeil { width: 2.4rem; height: 2.4rem; flex: none; color: var(--rot); }
.richtung-text { display: grid; gap: 0.15rem; }
.richtung-text strong { font-size: 1.35rem; }
.richtung-text span { color: var(--text-weich); font-size: 0.92rem; }
.richtung-zuletzt { position: absolute; top: 0.55rem; right: 0.8rem; font-size: 0.7rem; color: var(--rot); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.hinweis { color: var(--text-weich); font-size: 0.9rem; margin-top: 1.2rem; }
.start-von { background: var(--grau); border-left: 4px solid var(--rot); padding: 0.6rem 0.8rem; font-size: 0.9rem; margin: 0 0 1rem; }

/* Lage: Richtung, eine Empfehlung, drei Werte, Journey */
.richtung-wechsel { display: grid; justify-items: end; text-decoration: none; font-size: 0.82rem; min-height: 44px; align-content: center; }
.richtung-aktuell { font-weight: 700; }
.richtung-wechsel-text { color: var(--rot); }
.modus { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--linie); margin: 0 0 1rem; }
.modus a { display: flex; align-items: center; justify-content: center; min-height: 48px; text-decoration: none; font-size: 0.92rem; color: var(--text-weich); }
.modus a[aria-current] { color: var(--text); font-weight: 700; box-shadow: inset 0 -3px 0 var(--rot); }

.empfehlung { padding: 1.1rem 1.1rem 1rem; background: var(--grau); border-left: 6px solid var(--text-weich); }
.aktion-fahren .empfehlung { background: var(--gruen-hell); border-left-color: var(--gruen); }
.aktion-warten .empfehlung { background: var(--rot-hell); border-left-color: var(--rot); }
.aktion-pruefen .empfehlung { background: var(--bernstein-hell); border-left-color: var(--bernstein); }
.aktion-pass .empfehlung { background: var(--blau-hell); border-left-color: var(--blau); }
.aktion-a13 .empfehlung { background: var(--gruen-hell); border-left-color: var(--gruen); }
.empfehlung-titel { margin: 0; font-size: 1.9rem; text-transform: uppercase; letter-spacing: 0.01em; }
.empfehlung-zusatz { margin: 0.4rem 0 0; font-size: 1rem; }
.empfehlung-besserung { margin: 0.35rem 0 0; font-weight: 700; }

.werte { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr) minmax(0, 0.95fr); gap: 0.5rem; margin: 0.9rem 0 0.3rem; }
.wert { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 0.6rem 0.7rem; }
.wert dt { font-size: 0.72rem; color: var(--text-weich); text-transform: uppercase; letter-spacing: 0.06em; }
.wert dd { margin: 0.15rem 0 0; font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.trend-zunehmend { color: var(--rot); }
.trend-abnehmend { color: var(--gruen); }
.frische { font-size: 0.8rem; color: var(--text-weich); margin: 0.4rem 0 0.6rem; }
.frische-verzoegert { color: var(--bernstein); }
.frische-keine_daten { color: var(--rot); font-weight: 700; }
.frische-quelle { color: var(--text-weich); font-weight: 400; }

/* Journey: schematische Reise, kein Kartenbild */
.journey { margin: 0.5rem 0 0.8rem; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 0.4rem; }
.journey-svg { display: block; width: 100%; height: auto; }
.j-gelaende { fill: var(--gelaende); }
.j-linie { stroke: var(--linie); stroke-width: 3; stroke-linecap: square; }
.j-tunnel { stroke: var(--text); stroke-width: 7; stroke-linecap: square; }
.j-tunnel-gesperrt { stroke: var(--rot); stroke-dasharray: 4 6; }
.j-pass { fill: none; stroke: var(--blau); stroke-width: 2.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.j-pass-gesperrt, .j-pass-wintersperre, .j-pass-unbekannt { stroke: var(--pass-zu); }
.j-kolonne { stroke: var(--rot); stroke-width: 11; stroke-linecap: square; opacity: 0.92; }
.j-knoten { fill: var(--weiss); stroke: var(--text); stroke-width: 2.5; }
.j-ziel { fill: var(--text); stroke: var(--text); }
.j-du { fill: var(--blau); }
.j-text { font-family: var(--schrift); font-size: 14px; fill: var(--text); }
.j-text-ziel { font-weight: 700; }
.j-text-klein { font-size: 12px; fill: var(--text-weich); }
.j-text-kolonne { fill: var(--rot); font-weight: 700; }
.j-text-du { font-weight: 700; fill: var(--blau); }
.j-du-gruppe { transition: transform 0.8s ease; }
.j-du-live .j-du { fill: var(--blau); }

/* Strecke im Detail (E14, D35 A): Ausfahrt wie das grüne Autobahnschild, Halt wie das blaue P, Ampel am Portal.
   Ohne Detail nur Kontext; «an» per Schalter (Cookie gp_strecke), «auto» im Querformat offen (Tesla), hochkant zu. */
.j-ausfahrt-schild { fill: var(--gruen); }
.j-halt-schild { fill: var(--blau); }
.j-halt-empfohlen .j-halt-schild { stroke: var(--text); stroke-width: 2; }
.j-ausfahrt-nummer, .j-halt-p { font-family: var(--schrift); font-weight: 700; fill: var(--knopf-text); }
.j-ausfahrt-nummer { font-size: 9px; }
.j-halt-p { font-size: 10px; }
.j-ausfahrt-kreuz { stroke: var(--rot); stroke-width: 2.5; stroke-linecap: round; }
.j-ampel-kasten { fill: var(--text); }
.j-ampel-rot { fill: var(--rot); }
.j-ampel-gruen { fill: var(--gruen); }
.j-text-mini { font-size: 10.5px; }
.j-kontext-zu { fill: var(--rot); font-weight: 700; }
.j-kontext-zeile2 { font-weight: 400; font-size: 10px; }
.j-kontext-ampel { fill: var(--text-weich); }
.j-detail { display: none; }
.journey[data-strecke="an"] .j-detail { display: inline; }
.strecke { border-top: 1px solid var(--linie); margin-top: 0.4rem; padding: 0 0.4rem 0.3rem; }
.strecke-schalter { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.strecke-verbergen, .strecke-detail { display: none; }
.journey[data-strecke="an"] .strecke-zeigen { display: none; }
.journey[data-strecke="an"] .strecke-verbergen { display: inline-flex; }
.journey[data-strecke="an"] .strecke-detail { display: block; }
.strecke-titel { font-size: 1rem; margin: 0.3rem 0 0.4rem; }
.strecke-liste { list-style: none; margin: 0; padding: 0; }
.strecke-eintrag { display: grid; grid-template-columns: 3.6rem 1.9rem minmax(0, 1fr); gap: 0.55rem; align-items: start; padding: 0.45rem 0; border-bottom: 1px solid var(--linie); font-size: 0.9rem; }
.strecke-km { color: var(--text-weich); font-variant-numeric: tabular-nums; text-align: right; }
.strecke-zeichen { display: inline-flex; align-items: center; justify-content: center; height: 1.15rem; border-radius: 2px; font-size: 0.72rem; font-weight: 700; color: var(--knopf-text); }
.strecke-zeichen-ausfahrt { background: var(--gruen); }
.strecke-zeichen-halt { background: var(--blau); width: 1.15rem; justify-self: center; }
.strecke-zeichen-portal { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--text); justify-self: center; margin-top: 0.2rem; }
.strecke-text > span { display: block; }
.strecke-warnung { color: var(--rot); }
.strecke-dienste { color: var(--text-weich); font-size: 0.85rem; }
.strecke-hinweis { margin: 0.45rem 0 0; }
.strecke-webcams { margin: 0.5rem 0 0.2rem; }
.strecke-webcams a { display: inline-flex; align-items: center; min-height: 44px; }
@media (orientation: landscape) and (min-width: 40rem), (min-width: 64rem) {
  .journey[data-strecke="auto"] .j-detail { display: inline; }
  .journey[data-strecke="auto"] .strecke-detail { display: block; }
  .journey[data-strecke="auto"] .strecke-zeigen { display: none; }
  .journey[data-strecke="auto"] .strecke-verbergen { display: inline-flex; }
}
.j-link { cursor: pointer; }
.j-link:focus-visible { outline: 2px solid var(--blau); }
.j-treffer { fill: transparent; }

/* Aufklappbare Blöcke: dieselbe ruhige Form überall */
.details, .vergleich, .pause, .alarm, .pass-einloesen, .pilot-regeln { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 0 1rem; margin: 0 0 0.8rem; }
.details summary, .vergleich summary, .pause summary, .alarm summary, .pass-einloesen summary, .pilot-regeln summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 700; }
.gruende { margin: 0 0 0.6rem; padding-left: 1.1rem; }
.status-liste { display: grid; gap: 0.2rem; margin: 0 0 0.6rem; }
.status-liste div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--linie); padding: 0.35rem 0; }
.status-liste dd { margin: 0; font-weight: 700; }
.klein { font-size: 0.8rem; color: var(--text-weich); }

/* Knöpfe: rechtwinklig, gross genug für die Fahrt (≥ 48 px); Rot nur für die eine Handlung */
.knopf { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0 1.4rem; border-radius: 0; border: 1px solid var(--rot); background: var(--rot); color: var(--knopf-text); font: inherit; font-weight: 700; cursor: pointer; }
.knopf:hover { background: var(--rot-tief); border-color: var(--rot-tief); }
.knopf:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.knopf-leise { background: var(--weiss); color: var(--text); border-color: var(--text); }
.knopf-leise:hover { background: var(--grau); border-color: var(--text); }
.knopf[aria-busy="true"] { opacity: 0.75; cursor: progress; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Live (J03): eine Karte, wenige grosse Zahlen */
.live { margin: 0.4rem 0 0.8rem; }
.knopf-live { width: 100%; justify-content: flex-start; flex-wrap: wrap; text-align: left; padding: 0.8rem 1rem; }
.knopf-zusatz { flex-basis: 100%; font-weight: 400; font-size: 0.85rem; padding-left: 1.2rem; }
.knopf-punkt { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--knopf-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--knopf-text) 35%, transparent); }
.live-erklaerung, .live-karte { background: var(--weiss); border: 1px solid var(--linie-stark); padding: 0.9rem 1rem; }
.live-erklaerung p { margin: 0; font-size: 0.95rem; }
.live-karte { border-left: 6px solid var(--blau); }
.live-minuten { margin: 0; font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.live-einfahrt { margin: 0.1rem 0 0; font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.live-status { margin: 0.3rem 0 0; color: var(--text-weich); }
.live-werte { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0.5rem 0 0; font-variant-numeric: tabular-nums; }
.live-werte dd { margin: 0; font-weight: 700; }
.live-werte dd:empty { display: none; }
.live-link { word-break: break-all; font-size: 0.85rem; background: var(--grau); padding: 0.5rem 0.7rem; }
.live-fehler { color: var(--rot); font-weight: 700; font-size: 0.9rem; }

/* Routenvergleich (J02) */
.optionen { list-style: none; margin: 0 0 0.6rem; padding: 0; display: grid; gap: 0.5rem; }
.option { display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 0.8rem; padding: 0.6rem 0.7rem; border: 1px solid var(--linie); }
.option-name { font-weight: 700; }
.option-wert { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.option-hinweis { grid-column: 1 / -1; font-size: 0.8rem; color: var(--text-weich); }
.option-zu { opacity: 0.6; }
.option-empfohlen { border-color: var(--text); box-shadow: inset 4px 0 0 var(--rot); }

/* Geteilte Fahrt (J04) */
.geteilt { padding-top: 1.5rem; }
.geteilt h1 { font-size: 1.6rem; margin: 0 0 0.3rem; }
.geteilt-richtung { color: var(--text-weich); margin: 0 0 1rem; }
.geteilt-eta { background: var(--weiss); border: 1px solid var(--linie); border-left: 6px solid var(--blau); padding: 0.8rem 1rem; }
.geteilt-eta p { margin: 0; }
.geteilt-zeit { font-size: 2.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.fortschritt { width: 100%; height: 0.8rem; accent-color: var(--blau); margin-top: 0.8rem; }
.geteilt-selbst { margin-top: 1.5rem; }

/* Formulare: graue Fläche, klarer Rand, rechtwinklig */
.feld { display: grid; gap: 0.3rem; }
.feld label { font-weight: 700; font-size: 0.9rem; }
.feld input, .feld select { min-height: 48px; font: inherit; padding: 0 0.75rem; border: 1px solid var(--linie-stark); border-radius: 0; background: var(--grau); color: var(--text); }
.feld input:focus, .feld select:focus { outline: 2px solid var(--text); outline-offset: 0; background: var(--weiss); }
.feld-fehler input, .feld-fehler select { border-color: var(--rot); box-shadow: inset 0 -2px 0 var(--rot); }
.feld-meldung { margin: 0; color: var(--rot); font-size: 0.85rem; font-weight: 700; }

/* Planer (J05) */
.planer-titel { font-size: 1.6rem; margin: 0.2rem 0 0.8rem; }
.planer-formular { display: grid; gap: 0.8rem; border: 1px solid var(--linie); padding: 1rem; }
.planer-ergebnis { margin-top: 1rem; }
.plan-fenster { background: var(--gruen-hell); border-left: 6px solid var(--gruen); padding: 0.8rem 1rem; }
.plan-fenster p { margin: 0; }
.plan-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-weich); }
.plan-zeit { font-size: 2.1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.plan-meiden { color: var(--rot); margin: 0.7rem 0 0; }
.plan-abfahrt { font-weight: 700; margin: 0.4rem 0 0; }
.plan-balken { display: block; width: 100%; height: auto; margin: 0.8rem 0 0.2rem; background: var(--weiss); border: 1px solid var(--linie); }
.balken { fill: var(--gruen); opacity: 0.6; }
.balken-mittel { fill: var(--bernstein); }
.balken-hoch, .balken-sehr_hoch { fill: var(--rot); }
.balken-bestes { opacity: 1; stroke: var(--text); stroke-width: 1.5; }
.balken-text { font-family: var(--schrift); font-size: 10px; fill: var(--text-weich); }

/* Strategische Pause (J06) */
.pause-satz { font-weight: 700; margin: 0 0 0.6rem; }
.pause-tabelle { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.92rem; }
.pause-tabelle th, .pause-tabelle td { text-align: left; padding: 0.45rem 0.3rem; border-bottom: 1px solid var(--linie); }
.pause-tabelle th { font-size: 0.75rem; color: var(--text-weich); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.pause-empfohlen td { background: var(--gruen-hell); font-weight: 700; }

/* Premium-Hinweis (D7 A): ruhig, ein Weg zum Pass, keine Sackgasse */
.premium { background: var(--grau); border-left: 4px solid var(--rot); padding: 0.9rem 1rem; margin: 0.8rem 0; }
.premium-titel { font-weight: 700; margin: 0 0 0.3rem; }
.premium .knopf { margin-top: 0.6rem; }

/* Alarm (J07) */
.alarm[open] { padding-bottom: 0.9rem; }
.alarm .premium { margin-top: 0; }
.alarm-bedingungen { border: 0; padding: 0; margin: 0 0 0.8rem; display: grid; gap: 0.4rem; }
.alarm-bedingungen legend { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3rem; padding: 0; }
.wahl { display: flex; align-items: center; gap: 0.6rem; min-height: 48px; padding: 0 0.75rem; border: 1px solid var(--linie-stark); cursor: pointer; }
.wahl input { width: 1.1rem; height: 1.1rem; accent-color: var(--rot); margin: 0; }
.wahl:has(input:checked) { border-color: var(--text); box-shadow: inset 4px 0 0 var(--rot); }
.alarm-stand { display: grid; gap: 0.6rem; }
.alarm-stand-text { margin: 0; font-weight: 700; }
.alarm-fehler { margin: 0.6rem 0 0; color: var(--rot); font-weight: 700; font-size: 0.9rem; }

/* Pass (J08) */
.pass h1, .pilot h1, .absicht h1, .api h1, .recht h1 { font-size: 1.75rem; margin: 0.4rem 0 0.6rem; }
.pass h2, .absicht h2 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.pass-lead, .pilot-lead, .absicht-lead, .api-lead { margin: 0 0 1.2rem; font-size: 1.05rem; }
.pass .hinweis { color: var(--text); font-size: 0.92rem; background: var(--bernstein-hell); border-left: 4px solid var(--bernstein); padding: 0.7rem 0.9rem; margin: 0 0 1rem; }
.pass .hinweis-gut { background: var(--gruen-hell); border-left-color: var(--gruen); }
.pass-aktiv { border: 1px solid var(--text); border-left: 6px solid var(--gruen); padding: 0.9rem 1rem; margin: 0 0 1rem; }
.pass-aktiv p { margin: 0 0 0.3rem; }
.pass-aktiv-titel { font-weight: 700; }
.pass-code { font-family: var(--mono); font-size: 1.35rem; font-weight: 700; letter-spacing: 0.06em; margin: 0.4rem 0; user-select: all; }
.pass-vergleich { display: grid; gap: 0.8rem; margin: 0 0 1rem; }
.pass-spalte { border: 1px solid var(--linie); border-radius: var(--radius); padding: 0.9rem 1rem; }
.pass-spalte-premium { border-color: var(--text); box-shadow: inset 0 4px 0 var(--rot); }
.liste-haken { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; font-size: 0.95rem; }
.liste-haken li { padding-left: 1.4rem; position: relative; }
.liste-haken li::before { content: "✓"; position: absolute; left: 0; color: var(--rot); font-weight: 700; }
.pass-kauf { display: grid; gap: 0.9rem; border: 1px solid var(--linie); padding: 1rem; margin: 0 0 1rem; }
.pass-produkte { border: 0; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.pass-produkte legend { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.4rem; padding: 0; }
.pass-produkt { display: grid; grid-template-columns: auto 1fr auto; column-gap: 0.6rem; align-items: center; padding: 0.75rem; border: 1px solid var(--linie-stark); cursor: pointer; }
.pass-produkt input { width: 1.1rem; height: 1.1rem; accent-color: var(--rot); margin: 0; grid-row: span 2; }
.pass-produkt:has(input:checked) { border-color: var(--text); box-shadow: inset 4px 0 0 var(--rot); }
.pass-produkt-name { font-weight: 700; }
.pass-produkt-preis { font-weight: 700; font-variant-numeric: tabular-nums; }
.pass-produkt-text { grid-column: 2 / 4; }
.pass-produkt.ist-aus { opacity: 0.6; cursor: not-allowed; }
.pass-einloesen form { display: grid; gap: 0.7rem; padding-bottom: 0.9rem; }
/* Konto (D10 neu): Feld, Meldung und Knopf mit Abstand wie beim Einlösen */
.konto form { display: grid; gap: 0.7rem; justify-items: start; padding-bottom: 0.6rem; }
.konto form .feld { width: 100%; }
.konto-paesse { padding-left: 1.2rem; }
#pass-code-feld { text-transform: uppercase; letter-spacing: 0.05em; }

/* Suchabsicht-Seiten (J11) */
.absicht-karte { border: 1px solid var(--linie); border-radius: var(--radius); padding: 0.9rem 1rem; margin: 0 0 0.8rem; border-left: 6px solid var(--text-weich); }
.absicht-karte.aktion-warten { border-left-color: var(--rot); }
.absicht-karte.aktion-pruefen { border-left-color: var(--bernstein); }
.absicht-karte.aktion-fahren, .absicht-karte.aktion-a13 { border-left-color: var(--gruen); }
.absicht-karte.aktion-pass { border-left-color: var(--blau); }
.absicht-empfehlung { font-size: 1.3rem; font-weight: 700; text-transform: uppercase; margin: 0 0 0.6rem; }
.absicht-link { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; color: var(--rot); }
.absicht-link::before, .absicht-weitere a::before { content: "▸"; margin-right: 0.4rem; color: var(--rot); }
/* Tabelle Kolonne → Wartezeit (E20) */
.absicht-tabelle { margin: 1.4rem 0 0.4rem; }
.absicht-tabelle table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.absicht-tabelle th, .absicht-tabelle td { text-align: left; padding: 0.45rem 0.4rem; border-bottom: 1px solid var(--linie); }
.absicht-tabelle thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-weich); }
/* Maut und Vignette (E22): Fakten als Liste mit feinen Linien, dann die Wartezeit jetzt mit Knopf in die App */
.maut-titel { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 1.2rem 0 0.4rem; }
.maut-fakten { margin: 0 0 0.6rem; border-top: 1px solid var(--linie); }
.maut-fakten div { padding: 0.55rem 0; border-bottom: 1px solid var(--linie); }
.maut-fakten dt { font-weight: 700; margin: 0 0 0.15rem; }
.maut-fakten dd { margin: 0; }
.maut-weiter { margin: 1.6rem 0 0.4rem; }
.maut-weiter h3 { margin: 0 0 0.3rem; font-size: 1rem; text-transform: uppercase; }
.maut-lage { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.2rem; }
.maut-weiter .knopf { margin-top: 0.4rem; width: 100%; }
/* Antwortkatalog auf den Absichtsseiten (E19): Frage als Zeile, aufklappbar, Sprungmarke #a01 */
.antworten { margin: 1.6rem 0 0.8rem; }
.antwort { border-top: 1px solid var(--linie); scroll-margin-top: 4rem; }
.antwort:last-of-type { border-bottom: 1px solid var(--linie); }
.antwort summary { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; min-height: 44px; padding: 0.7rem 0; cursor: pointer; list-style: none; }
.antwort summary::-webkit-details-marker { display: none; }
.antwort summary::after { content: "+"; font-size: 1.3rem; font-weight: 700; color: var(--rot); }
.antwort[open] summary::after { content: "−"; }
.antwort summary h3 { margin: 0; font-size: 1rem; }
.antwort h4 { margin: 0.8rem 0 0.2rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-weich); }
.antwort p { margin: 0 0 0.5rem; }
.antwort-kurz { font-size: 1.05rem; }
.antwort-quellen a { color: inherit; }
.absicht-tage { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.absicht-tage li { display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 0.6rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--linie); }
.absicht-tage .klein { grid-column: 1 / 3; }
.absicht-richtung { font-weight: 700; }
.druck { font-weight: 700; padding: 0.05rem 0.5rem; font-size: 0.85rem; }
.druck-niedrig { background: var(--gruen-hell); color: var(--gruen); }
.druck-mittel { background: var(--grau); }
.druck-hoch { background: var(--bernstein-hell); color: var(--bernstein); }
.druck-sehr_hoch { background: var(--rot-hell); color: var(--rot); }
.absicht-weitere { margin-top: 1.2rem; }
.absicht-weitere ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.2rem; }
.absicht-weitere a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }

/* Pilot-Bereich (J12) */
.pilot h2, .api h2, .recht h2 { font-size: 1.1rem; margin: 1.4rem 0 0.4rem; }
.pilot-karte { border: 1px solid var(--text); box-shadow: inset 0 4px 0 var(--rot); padding: 1.2rem 1rem; text-align: center; margin: 0 0 0.8rem; }
.pilot-qr { width: 200px; height: 200px; image-rendering: pixelated; }
.pilot-token strong { font-family: var(--mono); font-size: 1.2rem; letter-spacing: 0.08em; }
.pilot-link { font-size: 0.85rem; word-break: break-all; color: var(--text-weich); margin: 0.3rem 0 0; user-select: all; }
.pilot-aufkleber { padding-left: 1.2rem; }
.pilot-aufkleber a { display: inline-flex; min-height: 44px; align-items: center; }
.pilot-regeln { margin-top: 1rem; }
.pilot-regeln ul { padding-left: 1.2rem; font-size: 0.92rem; }

/* API-Seite (J10) */
.api-liste { padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.api code { font-family: var(--mono); font-size: 0.85em; word-break: break-all; }
.api-werkzeuge { display: grid; gap: 0.6rem; margin: 0; }
.api-werkzeuge dt { font-weight: 700; }
.api-werkzeuge dd { margin: 0.1rem 0 0; font-size: 0.9rem; color: var(--text-weich); }
.api-beispiel { background: var(--grau); border: 1px solid var(--linie); padding: 0.8rem; overflow-x: auto; font-size: 0.8rem; white-space: pre-wrap; }

/* Impressum und Datenschutz */
.recht p, .recht li { max-width: 46rem; }
.recht ul { padding-left: 1.2rem; }

@media (min-width: 40rem) {
  .start h1 { font-size: 2.6rem; }
  .empfehlung-titel { font-size: 2.2rem; }
}

/* Querformat und breite Bildschirme (Tesla, Handy quer, Desktop): mehr Breite, zwei Spalten. Auf der Lage steht links
   die Entscheidung (Empfehlung, Werte, Live, Pause, Alarm), rechts die Reise (Journey, Vergleich, Details). */
@media (orientation: landscape) and (min-width: 40rem), (min-width: 64rem) {
  .kopf, .inhalt, .fuss { max-width: var(--mass-breit); padding-left: 1.5rem; padding-right: 1.5rem; }
  .lage-raster { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 0 1.75rem; align-items: start; }
  .lage-seite { position: sticky; top: 0.75rem; }
  .lage-seite .journey { margin-top: 0; }
  .journey-svg { max-height: calc(100vh - 11rem); margin: 0 auto; }
  .richtungen, .pass-vergleich, .absicht-raster { grid-template-columns: 1fr 1fr; }
  .absicht-raster { display: grid; gap: 0 1rem; }
  .pass-produkte { grid-template-columns: repeat(3, 1fr); }
  .pass-produkt { grid-template-columns: auto 1fr; }
  .pass-produkt-preis { grid-column: 2; }
  .pass-produkt-text { grid-column: 1 / 3; }
  .planer { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 0 1.75rem; align-items: start; }
  .planer-titel { grid-column: 1 / -1; }
  .planer .planer-ergebnis, .planer .premium { margin-top: 0; }
  .start { max-width: 56rem; }
  .pass, .pilot, .api, .recht { max-width: 56rem; }
}
/* Querformat mit wenig Höhe (Handy quer): kompakter, damit die Empfehlung ohne Scrollen sichtbar ist */
@media (orientation: landscape) and (max-height: 32rem) {
  .kopf { min-height: 3rem; }
  .inhalt { padding-top: 0.5rem; }
  .modus { margin-bottom: 0.6rem; }
  .modus a { min-height: 44px; }
  .empfehlung { padding: 0.7rem 0.9rem; }
  .empfehlung-titel { font-size: 1.5rem; }
  .werte { margin-top: 0.5rem; }
  .journey-svg { max-height: calc(100vh - 8.5rem); }
}
/* Grosse Bildschirme im Auto (Tesla): grössere Schrift und Ziele, aus einer Armlänge lesbar */
@media (min-width: 64rem) and (orientation: landscape) {
  body { font-size: 1.08rem; }
  .empfehlung-titel { font-size: 2.6rem; }
  .wert dd { font-size: 1.45rem; }
  .knopf, .modus a, .wahl { min-height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Andrang (D26): wer vor dir ist — Schätzung und echte Nutzende, ruhig unter den Werten */
.andrang { margin: 0.5rem 0 0.2rem; font-size: 0.95rem; font-weight: 700; }
.andrang-piloten { font-weight: 400; color: var(--text-weich); }
.live-schneller { margin: 0.3rem 0 0; font-weight: 700; color: var(--gruen); }
.live-schneller:empty { display: none; }

/* Fahrzeug (D27): ruhiger Umschalter unter den Werten, jederzeit änderbar; Tippziele 44 px */
.fahrzeug-wahl { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.4rem; margin: 1rem 0 0.2rem; font-size: 0.88rem; }
.fahrzeug-beschriftung { color: var(--text-weich); margin-right: 0.2rem; }
.fahrzeug-wahl a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.7rem; border: 1px solid var(--linie); color: var(--text); text-decoration: none; }
.fahrzeug-wahl a[aria-current] { border-color: var(--text); font-weight: 700; box-shadow: inset 0 -3px 0 var(--rot); }
.fahrzeug-hinweis { margin: 0.5rem 0 0; font-size: 0.9rem; }
/* Passwetter (D4 A): Winterhinweis bei Pass-Empfehlung mit Schneerisiko, Wetterzeile im Routenvergleich */
.wetter-hinweis { margin: 0.5rem 0 0; font-size: 0.95rem; font-weight: 700; }
.option-wetter { color: var(--text); }

/* Tunnelsperre jetzt oder in den nächsten 24 h: ruhig, in der Live-Karte rot, wenn die eigene Einfahrt hineinfällt */
.sperre-hinweis { margin: 0.5rem 0 0; font-size: 0.95rem; font-weight: 700; }
.sperre-hinweis.ist-warnung { color: var(--rot); }

/* Hinweise der Fahrt oben in der Empfehlung (M38): ein Hinweis je Zeile mit feiner Linie, Warnungen rot; leere Felder
   (Live noch nicht gestartet) und ein leerer Block nehmen keinen Platz. */
.hinweise { margin-top: 0.55rem; }
.hinweise:not(:has(.fahrhinweis:not([hidden]):not(:empty))) { display: none; }
.hinweise .fahrhinweis { margin: 0; padding: 0.45rem 0 0.15rem; border-top: 1px solid var(--linie); font-size: 0.95rem; }
.fahrhinweis { color: var(--text); }
.fahrhinweis:empty { display: none; }
.fahrhinweis-warnung { color: var(--rot); font-weight: 700; }
.fahrhinweis-live { font-weight: 700; }
.hinweise .live-schneller { color: var(--gruen); }
.hinweise .live-ortung, .hinweise [data-feld="ortung"] { font-weight: 400; }

/* Stau Lounge (D11 B): ruhige Liste, grosse Tippziele, Umfrage als <meter> */
.lounge h1 { margin-bottom: 0.3rem; }
.lounge-unterwegs { font-weight: 700; margin: 0.6rem 0 1rem; }
.lounge-block { border-top: 1px solid var(--linie); padding: 1rem 0 0.4rem; }
.lounge-block h2 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.lounge-meldungen, .lounge-umfrage { list-style: none; margin: 0; padding: 0; }
.lounge-meldungen li { padding: 0.45rem 0; border-bottom: 1px solid var(--linie); }
.lounge-anzahl { font-weight: 700; color: var(--rot); }
.lounge-beifahrer { display: flex; gap: 0.5rem; align-items: center; min-height: 44px; margin: 0.4rem 0; }
.lounge-beifahrer input { width: 1.3rem; height: 1.3rem; }
.lounge-arten { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lounge-arten .knopf { min-height: 48px; }
.lounge-umfrage li { display: grid; grid-template-columns: 9rem 1fr 3.5rem; align-items: center; gap: 0.5rem; min-height: 40px; }
.lounge-umfrage meter { width: 100%; height: 0.9rem; }
.lounge-wahl-prozent { text-align: right; font-variant-numeric: tabular-nums; }
.lounge-link { display: flex; margin: 0.8rem 0 0; }

/* Letzter guter Halt (D16 B): kompakt unter «Vor dir» */
.halt { margin: 0.8rem 0 0.2rem; padding: 0.7rem 0.9rem; border-left: 4px solid var(--blau); background: var(--blau-hell); }
.halt-titel { font-size: 1rem; margin: 0 0 0.3rem; }
.halt-name { margin: 0 0 0.2rem; }
.halt-dienste { margin: 0 0 0.3rem; font-size: 0.9rem; }
.live-halt { font-weight: 700; }
.live-ausfahrt { font-size: 0.9rem; }
.live-ausfahrt:empty, .live-halt:empty { display: none; }
/* Ortung (E12): Lücke im Tunnel oder Zufahrt — ruhiger Hinweis unter dem Status */
.live-ortung { margin: 0.2rem 0 0; font-size: 0.9rem; color: var(--text-weich); }
.live-ortung:empty { display: none; }

/* Stauverlauf (E12): Balken der Kolonne, Lücken ohne Daten, Tunnelsperren; drei Reiter 24/48/72 h */
.verlauf .modus { grid-template-columns: repeat(3, 1fr); }
.verlauf-diagramm { margin: 0 0 1rem; }
.verlauf-diagramm svg { display: block; width: 100%; height: auto; }
.v-balken { fill: var(--rot); }
.v-luecke { fill: var(--grau); }
.v-sperre { fill: var(--text); }
.v-raster { stroke: var(--linie); stroke-width: 0.5; }
.v-grund { stroke: var(--text-weich); stroke-width: 0.8; }
.v-achse { font-size: 9px; fill: var(--text-weich); }
.verlauf-legende { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin-top: 0.4rem; font-size: 0.85rem; color: var(--text-weich); }
.legende::before { content: ''; display: inline-block; width: 0.75rem; height: 0.75rem; margin-right: 0.35rem; vertical-align: -0.05rem; }
.legende-stau::before { background: var(--rot); }
.legende-sperre::before { background: var(--text); }
.legende-luecke::before { background: var(--grau); outline: 1px solid var(--linie); }
