/* Proinnova GPS · Vorführung. Farben, Schrift und Radien stammen aus dem
   GPS-Portal (/opt/gps-dashboard/static/app.css), damit der Weg von dieser
   Seite ins echte Portal bruchlos wirkt. Die Engine-Dateien bleiben unverändert. */

/* ---------------------------------------------------------------- Schrift -- */
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/dmsans-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/dmsans-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:500;font-display:swap;src:url(assets/fonts/dmsans-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:500;font-display:swap;src:url(assets/fonts/dmsans-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:700;font-display:swap;src:url(assets/fonts/dmsans-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:700;font-display:swap;src:url(assets/fonts/dmsans-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ----------------------------------------------------------------- Tokens -- */
:root {
  --cw-canvas: #0a0e17;
  --cw-surface: #111827;
  --cw-ink: #e8edf5;
  --cw-ink-soft: #95a5c0;
  --cw-accent: #3b82f6;
  --cw-accent-ink: #ffffff;
  --cw-font-display: "DM Sans", system-ui, sans-serif;
  --cw-font-text: "DM Sans", system-ui, sans-serif;
  --cw-font-mono: "DM Sans", system-ui, sans-serif;
  --cw-shadow-color: 222 55% 3%;

  --tafel: #121a29;
  --tafel-hoch: #172238;
  --feld: #0e1522;
  --rand: #233049;
  --rand-stark: #33425f;
  --text-hell: #c3cddd;
  --link: #8ab8fb;
  --knopf: #2563eb;
  --knopf-hover: #1d4ed8;
  --gruen: #10b981;
  --gelb: #f59e0b;
  --rot: #f87171;
  --hof: #64748b;

  /* Kartenpalette leicht aufgehellt, damit die Straßenhierarchie im Tageslicht
     auf Laptops lesbar bleibt (Autobahn > Bundesstraße > Landstraße). */
  --k-land: #101828;
  --k-wald: #142023;
  --k-ort: #1a2436;
  --k-raster: rgba(149, 165, 192, 0.06);
  --k-fluss: #2564a0;
  --k-autobahn: #4e638c;
  --k-bund: #384668;
  --k-str-land: #2a3653;

  --kopf-h: 64px;
  --leiste-b: 244px;
  --r: 12px;
  --r-s: 8px;
  --rand-seite: clamp(1rem, 3.2vw, 3rem);
  color-scheme: dark;
}

body {
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: 0;
}
h1, h2, h3 { font-family: var(--cw-font-display); }

.ic {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.karte-quelle { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.sprung {
  position: fixed; left: 12px; top: 12px; z-index: 200;
  padding: 10px 14px; border-radius: var(--r-s);
  background: var(--knopf); color: #fff; font-weight: 700; text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--cw-d-fast) var(--cw-ease-out);
}
.sprung:focus-visible { transform: none; }

/* Ohne JavaScript steht alles sofort da, nichts wartet auf die Engine. */
.no-js [data-cw-cue], .no-js [data-cw-in], .no-js [data-cw-stagger] > * { opacity: 1 !important; transform: none !important; }

/* ------------------------------------------------------------------ Punkte -- */
.punkt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.punkt--fahrt { background: var(--gruen); }
.punkt--stopp { background: var(--gelb); }
.punkt--hof { background: var(--hof); }
.punkt--blau { background: var(--cw-accent); }

/* ------------------------------------------------------------------ Knöpfe -- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 0; border-radius: var(--r-s);
  background: var(--knopf); color: #fff;
  font: 700 0.9375rem/1 var(--cw-font-text);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: var(--cw-e1), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: background-color var(--cw-d-fast) var(--cw-ease-out), transform 120ms var(--cw-ease-out);
}
.knopf:active { transform: translateY(1px); }
.knopf:disabled { opacity: 0.6; cursor: progress; }
.knopf--voll { width: 100%; }
.knopf--gross { min-height: 52px; padding: 0 24px; font-size: 1.0625rem; }
@media (hover: hover) and (pointer: fine) { .knopf:hover { background: var(--knopf-hover); } }
:focus-visible { outline-color: #60a5fa; }

/* ------------------------------------------------------------------ Tafeln -- */
.tafel {
  background: var(--tafel);
  border: 1px solid var(--rand);
  border-radius: var(--r);
  box-shadow: var(--cw-e2), var(--cw-edge);
}
.tafel__kopf {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rand);
  color: var(--cw-ink-soft);
}
.tafel__titel { margin: 0; font-size: 1.0625rem; font-weight: 700; color: var(--cw-ink); letter-spacing: -0.005em; }
.tafel__titel--gross { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); letter-spacing: -0.02em; }
.tafel__meta { font-size: 0.875rem; color: var(--cw-ink-soft); margin-left: auto; text-align: right; }

.tipp {
  background: var(--tafel-hoch);
  border: 1px solid rgba(96, 165, 250, 0.32);
  border-radius: 14px;
  padding: 24px 26px 26px;
  box-shadow: var(--cw-e3), var(--cw-edge);
}
.tipp__marke { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.875rem; color: var(--link); font-weight: 500; }
.tipp__titel {
  margin: 12px 0 12px; max-width: 17ch;
  font-size: clamp(1.9rem, 1.15rem + 2vw, 3.05rem);
  line-height: 1.06; font-weight: 700; letter-spacing: -0.028em;
  text-wrap: balance;
}
.tipp__text { margin: 0 0 20px; max-width: 44ch; color: var(--text-hell); text-wrap: pretty; }
.tipp__gross { margin: 0; font-size: clamp(1.3rem, 1rem + 0.9vw, 1.7rem); line-height: 1.28; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }

.st { font-size: 0.9375rem; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0.08em; background: currentColor; }
.st--fahrt { color: var(--gruen); }
.st--stopp { color: var(--gelb); }
.st--hof { color: var(--cw-ink-soft); }

/* =============================================================== Chrome ==== */
.leiste {
  position: fixed; inset: 0 auto 0 0; z-index: 70;
  width: var(--leiste-b);
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 14px 18px;
  background: #0c111c;
  border-right: 1px solid var(--rand);
  overflow-y: auto;
}
.marke { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; color: var(--cw-ink); text-decoration: none; }
.marke__text { display: grid; line-height: 1.15; }
.marke__text b { font-size: 1.0625rem; }
.marke__text small { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cw-ink-soft); }
.leiste__zu { display: none; }
.leiste__gruppe { margin: 14px 10px 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #7384a0; }
.leiste__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.leiste__liste a {
  display: flex; align-items: center; gap: 12px;
  min-height: 42px; padding: 0 12px; border-radius: var(--r-s);
  color: var(--text-hell); text-decoration: none; font-size: 0.9688rem; font-weight: 500;
  transition: background-color var(--cw-d-fast) var(--cw-ease-out), color var(--cw-d-fast) var(--cw-ease-out);
}
.leiste__liste a .ic { color: #7384a0; }
.leiste__liste a[aria-current] { background: rgba(59, 130, 246, 0.16); color: #bfdbfe; }
.leiste__liste a[aria-current] .ic { color: #93c5fd; }
@media (hover: hover) and (pointer: fine) { .leiste__liste a:hover { background: #151e2f; color: var(--cw-ink); } }
.leiste__knopf { margin-top: auto; }
.leiste__hinweis { margin: 12px 4px 0; font-size: 0.8125rem; line-height: 1.45; color: var(--cw-ink-soft); }
.leiste__hinweis .punkt { margin-right: 7px; vertical-align: 0.05em; }
.leiste__schleier { position: fixed; inset: 0; z-index: 65; background: rgba(4, 7, 13, 0.62); }

.kopf {
  position: fixed; top: 0; right: 0; left: var(--leiste-b); z-index: 60;
  height: var(--kopf-h);
  display: flex; align-items: center; gap: 18px;
  padding: 0 18px 0 22px;
  background: #0c111c;
  border-bottom: 1px solid var(--rand);
}
.kopf__menue, .kopf__marke { display: none; }
/* Kopf-CTA erst blendbar machen, nachdem der Held-Bereich passiert ist.
   Vorher hat der Held bereits einen prominenten CTA — drei blauen Buttons
   auf einem Bildschirm reichen aus, um überladen zu wirken. */
.kopf__knopf { opacity: 0; pointer-events: none; transition: opacity 300ms var(--cw-ease-out, ease); }
body.ist-gescrollt .kopf__knopf { opacity: 1; pointer-events: auto; }
.kopf__titel { margin: 0; min-width: 8.5rem; font-weight: 700; font-size: 1.0625rem; white-space: nowrap; }

.tag { flex: 1 1 auto; max-width: 30rem; display: flex; align-items: center; gap: 10px; min-width: 0; }
.tag__modus {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 5px;
  color: #6ee7b7; background: rgba(16, 185, 129, 0.14);
}
.tag__modus.ist-verlauf { color: #fcd34d; background: rgba(245, 158, 11, 0.16); }
.tag__modus.ist-feierabend { color: #bfdbfe; background: rgba(59, 130, 246, 0.18); }
.tag__uhr { font-size: 1.1875rem; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 3.1em; }
.tag__uhr.ist-verlauf { color: #fcd34d; }
.tag__leiste { position: relative; flex: 1; height: 34px; min-width: 80px; cursor: pointer; }
.tag__spur, .tag__gelaufen { position: absolute; left: 0; top: 10px; height: 4px; border-radius: 2px; }
.tag__spur { right: 0; background: #1e293d; }
.tag__gelaufen { width: 0; background: rgba(59, 130, 246, 0.6); }
.tag__kopf {
  position: absolute; top: 3px; left: 0; width: 2px; height: 18px; margin-left: -1px;
  background: #93c5fd; border-radius: 1px; pointer-events: none;
  box-shadow: 0 0 0 3px rgba(12, 17, 28, 0.9);
}
.tag__marke { position: absolute; top: 19px; font-size: 0.6875rem; color: #6b7b96; transform: translateX(-50%); pointer-events: none; }
.tag__marke--06 { left: 4%; transform: none; }
.tag__marke--12 { left: 50%; }
.tag__marke--18 { right: 0; transform: none; }
.tag__stempel { list-style: none; margin: 0; padding: 0; }
.tag__stempel button {
  position: absolute; top: 0; width: 24px; height: 24px; margin-left: -12px;
  padding: 0; border: 0; background: transparent; cursor: pointer;
}
.tag__stempel button::before {
  content: ""; position: absolute; left: 7px; top: 7px; width: 10px; height: 10px; border-radius: 50%;
  background: #f59e0b; box-shadow: 0 0 0 2px #0c111c;
}
.tag__stempel button[data-stempel="16:40"]::before { background: var(--rot); }
.tag__stempel button[data-stempel="17:30"]::before,
.tag__stempel button[data-stempel="11:58"]::before { background: var(--gruen); }
.tag__stempel button:not([hidden]) { animation: stempeln 320ms var(--cw-ease-out); }
@keyframes stempeln { from { transform: scale(0.95); opacity: 0; } to { transform: none; opacity: 1; } }
.tag__stempel button:focus-visible { outline-offset: 0; border-radius: 50%; }

.zaehler { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 16px; font-size: 0.9063rem; color: var(--cw-ink-soft); white-space: nowrap; }
.zaehler li { display: flex; align-items: center; gap: 7px; }
.zaehler b { color: var(--cw-ink); font-variant-numeric: tabular-nums; }

.haupt { margin-left: var(--leiste-b); }

/* ============================================================ 1 · Karte ==== */
.buehne { padding-top: var(--kopf-h); }
.akt--karte .buehne { background: var(--k-land); }
.karte { position: absolute; overflow: hidden; background: var(--k-land); }
.karte--haupt { left: 0; right: 0; top: calc(var(--kopf-h) - 44px); bottom: -44px; }
.karte__zeiger, .karte__zoom { position: absolute; inset: 0; }
.karte__zoom { transform: scale(calc(1 + var(--cw-p, 0) * 0.07)); transform-origin: var(--zoom-x, 50%) var(--zoom-y, 60%); }
.karte__svg { display: block; width: 100%; height: 100%; }

.k-raster { fill: none; stroke: var(--k-raster); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.k-wald path { fill: var(--k-wald); }
.k-ort circle { fill: var(--k-ort); }
.k-fluss path { fill: none; stroke: var(--k-fluss); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.k-strasse path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.k-strasse--land path { stroke: var(--k-str-land); stroke-width: 1.5px; }
.k-strasse--bund path { stroke: var(--k-bund); stroke-width: 2.5px; }
.k-strasse--autobahn path { stroke: var(--k-autobahn); stroke-width: 4px; }

/* Einblendungen auf der Karte, in Bildschirm-Pixeln gezeichnet (seite.js) */
.m-ort { fill: #7e8ca5; font: 500 12px var(--cw-font-text); paint-order: stroke; stroke: var(--k-land); stroke-width: 3px; stroke-linejoin: round; }
.m-ort--gross { fill: #aab6ca; font-size: 14px; font-weight: 700; }
.m-hof text { fill: #c3cddd; font: 700 12px var(--cw-font-text); paint-order: stroke; stroke: var(--k-land); stroke-width: 3px; }
.spur { fill: none; stroke: rgba(96, 165, 250, 0.5); stroke-width: 2.5px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.m-fz__grund { stroke: #0a0e17; stroke-width: 1.5px; }
.m-fz use { color: #0a0e17; }
.m-fz--fahrt .m-fz__grund { fill: var(--gruen); }
.m-fz--stopp .m-fz__grund { fill: var(--gelb); }
.m-fz--hof .m-fz__grund { fill: #3b4a63; stroke: #8fa0bb; }
.m-fz--hof use { color: #e8edf5; }
.m-fz--sel .m-fz__grund { stroke: #fff; stroke-width: 2px; }
.m-fz__schild { display: none; }
.m-fz--sel .m-fz__schild { display: inline; }
.m-fz--ohne-schild .m-fz__schild { display: none; }
.m-fz__schild rect { fill: #0c111c; stroke: #93c5fd; stroke-width: 1.2px; }
.m-fz__schild text { fill: #e8edf5; font: 700 11.5px var(--cw-font-text); text-anchor: middle; dominant-baseline: central; }
.route-voll { fill: none; stroke: rgba(96, 165, 250, 0.22); stroke-width: 3px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.route-bisher { fill: none; stroke: #3b82f6; stroke-width: 3.5px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.m-stopp circle { fill: rgba(245, 158, 11, 0.16); stroke: var(--gelb); stroke-width: 2.5px; }
.m-stopp rect { fill: #1b2436; stroke: var(--gelb); stroke-width: 1.5px; }
.m-stopp text { fill: #fde68a; font: 700 13px var(--cw-font-text); dominant-baseline: central; }
.m-stopp { opacity: 0; transition: opacity 240ms var(--cw-ease-out); }
.m-stopp.ist-an { opacity: 1; }

.legende {
  position: absolute; left: 24px; bottom: 24px; z-index: 5;
  display: flex; gap: 16px; padding: 9px 14px;
  background: rgba(12, 17, 28, 0.92); border: 1px solid var(--rand); border-radius: var(--r-s);
  font-size: 0.875rem; color: var(--cw-ink-soft); box-shadow: var(--cw-e1);
}
.legende span { display: flex; align-items: center; gap: 7px; }
.legende b { color: var(--cw-ink); font-variant-numeric: tabular-nums; }

.liste {
  position: absolute; z-index: 6;
  top: calc(var(--kopf-h) + 20px); right: 20px; width: 318px; max-height: calc(100% - var(--kopf-h) - 40px);
  display: flex; flex-direction: column; overflow: hidden;
}
.liste__fz { list-style: none; margin: 0; padding: 4px 0; overflow: hidden; }
.liste__fz li {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid rgba(35, 48, 73, 0.7);
}
.liste__fz li:last-child { border-bottom: 0; }
.liste__fz .nr {
  width: 34px; height: 28px; border-radius: 7px;
  display: grid; place-items: center;
  background: #3b4a63; color: #e8edf5;
  box-shadow: inset 0 0 0 1px rgba(143, 160, 187, 0.55);
}
.fz-ic { width: 24px; height: 24px; }
.liste__fz li.ist-fahrt .nr { background: var(--gruen); color: #0a0e17; box-shadow: none; }
.liste__fz li.ist-stopp .nr { background: var(--gelb); color: #0a0e17; box-shadow: none; }
.liste__fz .fz { display: grid; line-height: 1.25; min-width: 0; }
.liste__fz .fz b { font-size: 0.9375rem; font-weight: 700; }
.liste__fz .fz small { font-size: 0.8125rem; color: var(--cw-ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.liste__fz .st { font-size: 0.8438rem; text-align: right; max-width: 9.5rem; white-space: normal; line-height: 1.3; }
.liste__fz .st::before { display: none; }
.liste__fz li.ist-fahrt .st { color: #6ee7b7; }
.liste__fz li.ist-stopp .st { color: #fcd34d; }
.liste__fz li.ist-hof .st { color: var(--cw-ink-soft); }

.tipp--held {
  position: absolute; z-index: 10;
  top: calc(var(--kopf-h) + 24px); left: 24px;
  width: min(40rem, calc(100% - 318px - 84px));
}
.tipp__titel--held { max-width: none; font-size: clamp(1.9rem, 1.1rem + 1.75vw, 2.65rem); text-wrap: initial; }

/* ======================================================== Flow-Ansichten === */
.ansicht { padding: clamp(4rem, 8vw, 7.5rem) var(--rand-seite); max-width: 82rem; margin: 0 auto; }
.ansicht__kopf { max-width: 48rem; }
.ansicht__titel { margin: 0; font-size: clamp(1.9rem, 1.25rem + 1.9vw, 2.95rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.028em; text-wrap: balance; }
.ansicht__text { margin: 14px 0 0; max-width: 52ch; color: var(--text-hell); font-size: 1.125rem; text-wrap: pretty; }

/* -- 2 · Eingang -- */
.ansicht--eingang { padding-top: clamp(4rem, 7vw, 6rem); }
.ansicht__raster { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.75rem); align-items: center; }
/* „4 offen"-Marke im Eingang: Rückstau ist Aufmerksamkeitssignal, keine
   Fehlermeldung. Deshalb Gelb (--gelb), passend zu den anderen Aufmerksamkeits-
   markern; Rot bleibt für echte Warnungen (Reklamation, Formularfehler). */
.marke-rot { flex: none; font-size: 0.8125rem; font-weight: 700; color: #fde68a; background: rgba(245, 158, 11, 0.18); padding: 3px 8px; border-radius: 6px; }
.eingang .tafel__meta { margin-left: auto; }
.eingang__liste { list-style: none; margin: 0; padding: 0; }
.eingang__liste li {
  display: grid; grid-template-columns: 3.6rem 1fr auto; column-gap: 16px; row-gap: 2px; align-items: start;
  padding: 16px 18px; border-bottom: 1px solid rgba(35, 48, 73, 0.75);
}
.eingang__liste li:last-child { border-bottom: 0; }
.eingang__liste time { grid-row: 1 / 3; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-hell); padding-top: 1px; }
.eingang__liste .von { font-size: 0.875rem; color: var(--cw-ink-soft); }
.eingang__liste q { grid-column: 2; font-size: 1.0938rem; color: var(--cw-ink); quotes: "„" "“"; }
.eingang__liste .offen {
  grid-column: 3; grid-row: 1 / 3; align-self: center;
  font-size: 0.8125rem; font-weight: 700; color: var(--gelb); white-space: nowrap;
  border: 1px solid rgba(245, 158, 11, 0.45); padding: 4px 8px; border-radius: 6px;
}
.tipp--seite { border-color: rgba(248, 113, 113, 0.3); }
.tipp--seite .tipp__text { margin: 14px 0 0; }

/* -- 3 · Antworten -- */
.antworten { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; display: grid; gap: clamp(1.75rem, 3.5vw, 2.75rem); }
.antwort { display: grid; grid-template-columns: minmax(12rem, 0.75fr) minmax(0, 1.5fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: center; }
.antwort__frage { display: grid; gap: 2px; padding-left: 16px; border-left: 1px solid var(--rand-stark); }
.antwort__frage time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--cw-ink-soft); }
.antwort__frage .von { font-size: 0.875rem; color: var(--cw-ink-soft); }
.antwort__frage q { font-size: 1.1875rem; line-height: 1.35; font-weight: 500; quotes: "„" "“"; }
.antwort__blick { padding: 16px 18px 18px; display: grid; gap: 8px; }
.blick__ansicht { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 0.875rem; color: var(--cw-ink-soft); }
.blick__karte { position: relative; height: clamp(170px, 18vw, 230px); border-radius: var(--r-s); overflow: hidden; border: 1px solid var(--rand); background: var(--k-land); }
.blick__zeile { margin: 4px 0 0; font-size: 1.125rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.blick__klein { margin: 0; font-size: 0.9375rem; color: var(--text-hell); }
.blick__alarm { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; padding: 9px 12px; border-radius: var(--r-s); background: rgba(245, 158, 11, 0.1); color: #fde68a; font-size: 0.9375rem; }
.blick__bericht { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--rand); border-radius: var(--r-s); background: var(--feld); }
.blick__bericht b { font-size: 1.125rem; }
.blick__bericht span { color: var(--text-hell); font-size: 0.9688rem; }
.chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 0.8125rem; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--rand-stark); color: var(--text-hell); }
.fs { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fs li span { display: flex; align-items: center; gap: 7px; font-size: 0.9375rem; }
.fs .ok::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 4px; background: var(--gruen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0e17' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.fs .nein { color: #fcd34d; font-weight: 700; }
.fs .nein::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 4px; border: 2px solid var(--gelb); }
.fs .nein::after { content: "offen"; font-weight: 400; font-size: 0.8125rem; color: var(--cw-ink-soft); }
.ruhe { display: flex; align-items: center; gap: 10px; margin: clamp(3rem, 6vw, 4.5rem) 0 0; font-size: 1.1875rem; font-weight: 700; color: #6ee7b7; }
.ruhe .ic { width: 22px; height: 22px; }
.ruhe span { font-weight: 400; color: var(--cw-ink-soft); font-variant-numeric: tabular-nums; }

/* ====================================================== 4 · Historie ====== */
.buehne--historie { padding: calc(var(--kopf-h) + 20px) 20px 20px; background: var(--cw-canvas); }
.historie { height: 100%; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; }
.historie__karte { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.historie__svg { position: relative; flex: 1; min-height: 0; background: var(--k-land); border-radius: 0 0 var(--r) var(--r); overflow: hidden; }
.historie__tabelle { overflow: hidden; align-self: start; }
.historie__tabelle table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.historie__tabelle caption { text-align: left; }
.historie__tabelle th { text-align: left; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #7384a0; padding: 10px 14px 8px; }
.historie__tabelle td { padding: 10px 14px; border-top: 1px solid rgba(35, 48, 73, 0.75); vertical-align: top; transition: opacity 200ms var(--cw-ease-out), background-color 200ms var(--cw-ease-out); }
.historie__tabelle .r { text-align: right; white-space: nowrap; }
.historie__tabelle td:nth-child(2) { white-space: nowrap; }
.historie__tabelle .art { font-size: 0.8125rem; font-weight: 700; }
.historie__tabelle .art--fahrt { color: #6ee7b7; }
.historie__tabelle .art--stopp { color: #fcd34d; }
.historie__tabelle .ort small { display: block; color: var(--cw-ink-soft); font-size: 0.8125rem; }
.historie__tabelle tr.ist-spaeter td { opacity: 0.32; }
.historie__tabelle tr.ist-treffer td { background: rgba(245, 158, 11, 0.13); }
.historie__tabelle tr.ist-treffer td:first-child { box-shadow: inset 2px 0 0 var(--gelb); }

.anruf {
  position: absolute; z-index: 12;
  bottom: 56px; left: 56px;
  width: min(33rem, calc(60% - 80px));
  padding: 22px 24px 24px;
  background: #1a2236; border: 1px solid rgba(248, 113, 113, 0.5); border-radius: 14px;
  box-shadow: var(--cw-e3), var(--cw-edge);
}
.anruf__kopf { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--rot); font-weight: 700; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.anruf__von { margin: 6px 0 12px; color: var(--cw-ink-soft); font-size: 0.9375rem; }
.anruf__zitat { margin: 0; }
.anruf__zitat p { margin: 0; font-size: clamp(1.35rem, 1rem + 1.1vw, 1.85rem); line-height: 1.26; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
.anruf__zitat p::before { content: "„"; }
.anruf__zitat p::after { content: "“"; }

.rueckspul {
  position: absolute; z-index: 12; margin: 0;
  top: calc(var(--kopf-h) + 84px); left: 56px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--r-s);
  background: rgba(23, 34, 56, 0.96); border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde68a; font-weight: 700; box-shadow: var(--cw-e2);
}
.tipp--ergebnis {
  position: absolute; z-index: 12;
  left: 56px; bottom: 56px;
  width: min(33rem, calc(60% - 80px));
  border-color: rgba(245, 158, 11, 0.42);
}
.tipp--ergebnis .tipp__titel { margin-top: 0; font-size: clamp(1.7rem, 1.1rem + 1.6vw, 2.6rem); max-width: 20ch; }
.tipp--ergebnis .tipp__text { margin: 14px 0 0; }
.standzeit { display: flex; align-items: center; gap: 14px; }
.standzeit__balken { flex: 1; height: 10px; border-radius: 5px; background: #22304a; overflow: hidden; }
.standzeit__balken i { display: block; height: 100%; width: 100%; background: var(--gelb); transform-origin: left; transform: scaleX(0); }
.standzeit b { font-size: 1.125rem; font-variant-numeric: tabular-nums; color: #fde68a; min-width: 7.2em; text-align: right; }

/* ======================================================== 5 · Kosten ======= */
.kosten { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr); gap: clamp(1.25rem, 2.5vw, 2rem); align-items: start; }
.rechner { padding-bottom: 20px; }
.rechner .feld { margin: 18px 18px 0; padding: 0; border: 0; min-width: 0; }
.rechner legend, .rechner .feld > label:not(.wahl) { display: block; margin-bottom: 8px; font-weight: 700; font-size: 0.9688rem; padding: 0; }
.zahl { display: grid; grid-template-columns: 48px minmax(0, 9rem) 48px; gap: 8px; }
.zahl button {
  display: grid; place-items: center; height: 48px; border-radius: var(--r-s);
  border: 1px solid var(--rand-stark); background: #182236; color: var(--cw-ink); cursor: pointer;
  transition: background-color var(--cw-d-fast) var(--cw-ease-out), transform 120ms var(--cw-ease-out);
}
.zahl button:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) { .zahl button:hover { background: #1f2b43; } }
.zahl input { text-align: center; font-size: 1.25rem; font-weight: 700; }
.wahl {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 14px; margin-top: 8px;
  border: 1px solid var(--rand); border-radius: var(--r-s); background: var(--feld);
  cursor: pointer; font-size: 0.9688rem; line-height: 1.35; color: var(--text-hell);
  transition: border-color var(--cw-d-fast) var(--cw-ease-out), background-color var(--cw-d-fast) var(--cw-ease-out);
}
.wahl b { color: var(--cw-ink); }
.wahl em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--cw-ink); white-space: nowrap; text-align: right; font-size: 0.9375rem; }
.wahl input { width: 18px; height: 18px; margin: 0; accent-color: var(--cw-accent); }
.wahl:has(input:checked) { border-color: rgba(59, 130, 246, 0.7); background: rgba(59, 130, 246, 0.08); }
.wahl:has(input:focus-visible) { outline: 2px solid #60a5fa; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .wahl:hover { border-color: var(--rand-stark); } }
/* .wahl--fest: nicht wählbare Position (Proinnova-SIM, immer dabei). Statt des Auswahlknopfs
   steht ein Häkchen in derselben Spalte: gleicher Aufbau wie jede andere Zeile, also gleiche
   Textkante am Desktop und dasselbe Handy-Layout. <p> bringt eigene Ränder mit, daher margin. */
.wahl--fest { cursor: default; margin: 8px 0 0; border-color: rgba(59, 130, 246, 0.6); background: rgba(59, 130, 246, 0.06); }
.wahl__immer { display: grid; place-items: center; width: 20px; height: 20px; color: #60a5fa; }
.wahl__immer .ic { width: 18px; height: 18px; stroke-width: 2.5; }
@media (hover: hover) and (pointer: fine) { .wahl--fest:hover { border-color: rgba(59, 130, 246, 0.6); } }

.beleg { padding: 22px 22px 20px; position: sticky; top: calc(var(--kopf-h) + 20px); }
.beleg__titel { margin: 0 0 6px; font-size: 1.0625rem; }
.beleg__posten { margin: 0; padding: 10px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; border-bottom: 1px solid var(--rand); font-size: 0.9688rem; }
.beleg__posten dt { color: var(--text-hell); }
.beleg__posten dt.kopfzeile, .beleg__posten dd.kopfzeile { color: var(--cw-ink-soft); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.beleg__posten dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.beleg__posten dt.summe, .beleg__posten dd.summe { color: var(--cw-ink); font-weight: 700; }
.beleg__summe { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 14px 0 4px; }
.beleg__summe span { font-weight: 700; }
.beleg__summe b { font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.9rem); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.beleg__klein { margin: 6px 0 0; font-size: 0.875rem; color: var(--cw-ink-soft); }
/* Die Folgejahr-Zeile sind die eigentlichen laufenden Kosten. Gleiche große
   Betrag-Schrift wie „Im ersten Jahr", damit sie im Beleg gleichwertig steht,
   aber in Gelb-Akzent statt Rot: Rot wird auf der Seite als Warnfarbe geführt
   (Reklamation, Formularfehler), und der Folgejahr-Wert ist keine Warnung —
   er ist die eigentliche Nachricht. Gelb macht ihn zum Aufmerksamkeitspunkt,
   ohne Alarm auszulösen. */
.beleg__summe--folge { margin-top: 4px; color: var(--gelb); }
.beleg__summe--folge b { color: var(--gelb); }
/* Monatsangabe unter dem Folgejahr-Betrag: deutlich größer als die anderen
   Kleinzeilen (~1,15 rem), in derselben Akzentfarbe wie die Zeile darüber. */
.beleg__klein[data-summe-folge-monat] { margin-top: 2px; font-size: 1.125rem; font-weight: 700; color: var(--gelb); }
/* Fakten stehen jetzt AUSSERHALB des .kosten-Grids, damit der sticky Beleg
   nicht in die Fakten-Zeile hineinragen kann. Volle Sektionsbreite, klar
   abgesetzt durch Abstand nach oben. */
.fakten { margin: clamp(1.5rem, 3vw, 2.5rem) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.25rem, 3vw, 2.5rem); }
.fakten div { padding-top: 16px; border-top: 1px solid var(--rand-stark); }
.fakten dt { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cw-ink-soft); }
.fakten dd { margin: 6px 0 0; color: var(--text-hell); }

/* ========================================================= 6 · Portal ====== */
.buehne--portal { display: flex; flex-direction: column; justify-content: center; gap: clamp(1.25rem, 3.5vh, 2.5rem); background: var(--cw-canvas); }
.portal__kopf { padding: 0 var(--rand-seite); max-width: 62rem; }
.portal__kopf .ansicht__text { margin-top: 10px; }
/* Die Engine misst den Weg gegen die Fensterbreite; die Seitenleiste fehlt der Bühne.
   Ein leeres Abschlusselement in Leistenbreite gleicht das aus (ein Innenabstand zählt
   in Chrome nicht zur Scrollbreite). Der Abstand davor ist der rechte Rand. */
.schiene { align-items: flex-start; gap: clamp(1.5rem, 3vw, 2.75rem); padding: 0 0 0 var(--rand-seite); }
.schiene::after { content: ""; flex: 0 0 calc(var(--leiste-b) + 1px); align-self: stretch; }
.schiene__ende { flex: 0 0 min(23rem, 78vw); display: grid; gap: 22px; justify-items: start; }
.aufnahme { flex: 0 0 auto; margin: 0; width: min(44vw, 660px, calc(46svh * var(--v, 1.4))); }
.aufnahme img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--rand-stark); box-shadow: var(--cw-e3); background: var(--tafel); }
.aufnahme figcaption { margin-top: 12px; font-size: 0.9688rem; color: var(--cw-ink-soft); max-width: 46ch; }
.aufnahme figcaption b { display: block; color: var(--cw-ink); font-size: 1.0625rem; }
.aufnahme--hoch { width: min(17vw, 250px, calc(50svh * 0.487)); }
.schiene__ende { align-self: center; }

/* ====================================================== 7 · Vorführung ===== */
.ansicht--vorfuehrung { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: 2.5rem; }

/* Trust-Chips direkt über dem Anfrageformular. Ein Ruck-Blick-Element
   („Server in DE, DSGVO, keine Bindung"), das die wichtigsten Sorgen
   der Zielgruppe im Kaufmoment abfängt. */
.anfrage__badges {
  list-style: none; padding: 0; margin: 4px 0 18px;
  display: flex; flex-wrap: wrap; gap: 8px 10px;
}
.anfrage__badges li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(34, 197, 94, 0.10); color: #86efac;
  font-size: 0.8438rem; font-weight: 600;
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.anfrage__badges .ic { width: 14px; height: 14px; color: currentColor; }

/* Häufige Fragen: Details-Accordion, ohne JavaScript, ohne Icons-Bibliothek.
   Ein Grid mit zwei Spalten auf Desktop, eine Spalte auf Handy. */
.ansicht--fragen { padding-bottom: 1rem; }
.fragen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; max-width: 62rem; margin: 0 auto; }
.fragen details {
  border: 1px solid var(--rand); border-radius: var(--r-s); background: var(--feld);
  padding: 14px 18px; transition: border-color var(--cw-d-fast) var(--cw-ease-out), background-color var(--cw-d-fast) var(--cw-ease-out);
}
.fragen details[open] { border-color: rgba(59, 130, 246, 0.5); background: rgba(59, 130, 246, 0.06); }
.fragen summary {
  cursor: pointer; list-style: none; font-weight: 700; color: var(--cw-ink);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after {
  content: '+'; flex: none; width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 999px; background: rgba(148, 163, 184, 0.15); font-size: 1.1rem; line-height: 1;
  transition: transform var(--cw-d-fast) var(--cw-ease-out);
}
.fragen details[open] summary::after { content: '−'; }
.fragen p { margin: 10px 0 0; color: var(--text-hell); }
.feierabend { display: flex; align-items: center; gap: 10px; margin: 0 0 clamp(1.5rem, 3vw, 2.25rem); color: var(--cw-ink-soft); font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.feierabend.ist-da { color: #6ee7b7; font-weight: 700; }
.vorfuehrung { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr); gap: clamp(1.25rem, 3vw, 2.75rem); align-items: start; }
.formular { padding: 20px 20px 22px; }
.formular__raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.formular .feld { margin: 0; min-width: 0; }
.feld--breit { grid-column: 1 / -1; }
.formular label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 0.9375rem; }
.pflicht { font-weight: 400; font-size: 0.8125rem; color: var(--cw-ink-soft); margin-left: 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--feld); color: var(--cw-ink);
  border: 1px solid #2d3b58; border-radius: var(--r-s);
  font-size: 1rem; line-height: 1.4;
  transition: border-color var(--cw-d-fast) var(--cw-ease-out);
}
textarea { resize: vertical; min-height: 96px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: #60a5fa; outline: 2px solid rgba(96, 165, 250, 0.55); outline-offset: 1px; }
input[aria-invalid="true"] { border-color: var(--rot); }
.fehler { margin: 6px 0 0; font-size: 0.875rem; color: #fca5a5; }
.feld--versteckt { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.wahl--klein { grid-template-columns: 20px minmax(0, 1fr); font-size: 0.9375rem; margin: 0; }
.wahl--klein[hidden] { display: none; }
.formular__recht { margin: 16px 0 0; font-size: 0.875rem; color: var(--cw-ink-soft); }
.formular__recht a, .fuss a, .ablauf a { color: var(--link); }
.formular__meldung { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r-s); background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(248, 113, 113, 0.45); color: #fecaca; }
.formular .knopf { margin-top: 18px; }
.danke { padding: 26px 22px 28px; }
.danke:focus { outline: none; }
.danke__titel { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 1.3125rem; font-weight: 700; color: #6ee7b7; }
.danke__titel .ic { width: 24px; height: 24px; }
.danke p:last-child { margin: 0; color: var(--text-hell); }

.ablauf { padding-top: 6px; }
.ablauf__titel { margin: 0 0 8px; font-size: 1.25rem; }
.ablauf dl { margin: 0; }
.ablauf dl div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rand); }
.ablauf dt { color: var(--cw-ink-soft); font-size: 0.9375rem; }
.ablauf dd { margin: 0; }
.ablauf__direkt { margin: 24px 0 8px; font-weight: 700; }
.ablauf__kontakt { margin: 0; display: grid; gap: 8px; }
.ablauf__kontakt a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.0625rem; min-height: 32px; }
@media (hover: hover) and (pointer: fine) { .ablauf__kontakt a:hover { text-decoration: underline; } }

.fuss { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 22px; border-top: 1px solid var(--rand); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; font-size: 0.9063rem; color: var(--cw-ink-soft); }
.fuss p { margin: 0; }
.fuss__marke { display: flex; align-items: center; gap: 10px; }
.fuss__marke b { color: var(--cw-ink); }
.fuss__links { display: flex; gap: 18px; }
.fuss__klein { flex-basis: 100%; font-size: 0.8125rem; max-width: 80ch; }

/* ================================================================ Tablet ==== */
@media (max-width: 1180px) {
  .zaehler { display: none; }
}
@media (max-width: 1023px) {
  :root { --leiste-b: 0px; }
  .leiste { width: min(300px, 86vw); transform: translateX(-102%); transition: transform var(--cw-d-base) var(--cw-ease-drawer); box-shadow: var(--cw-e3); }
  .leiste.ist-offen { transform: none; }
  .leiste__zu { display: grid; place-items: center; position: absolute; top: 14px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: var(--r-s); background: transparent; color: var(--cw-ink); cursor: pointer; }
  .kopf { padding: 0 12px; gap: 12px; }
  .kopf__menue { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -4px; border: 0; border-radius: var(--r-s); background: transparent; color: var(--cw-ink); cursor: pointer; }
  .kopf__marke { display: block; flex: none; }
  .kopf__titel { display: none; }
  .tag { max-width: none; }
}

/* ================================================================= Handy ==== */
@media (max-width: 760px) {
  :root { --kopf-h: 58px; }
  body { font-size: 1rem; }
  .kopf { gap: 8px; }
  .kopf__knopf { min-height: 40px; padding: 0 12px; font-size: 0.875rem; }
  .tag { gap: 8px; }
  .tag__modus { display: none; }
  .tag__uhr { font-size: 1.0625rem; }
  /* Die Tagesleiste wird zur feinen Spur unter der ganzen Kopfzeile */
  .tag { flex: 0 0 auto; }
  .tag__leiste { position: absolute; left: 0; right: 0; bottom: -1px; height: 12px; min-width: 0; cursor: default; }
  .tag__spur, .tag__gelaufen { top: 8px; height: 3px; border-radius: 0; }
  .tag__kopf { top: 3px; height: 9px; box-shadow: none; }
  .tag__marke { display: none; }
  .tag__stempel button { top: 2px; width: 10px; height: 10px; margin-left: -5px; pointer-events: none; }
  .tag__stempel button::before { left: 1px; top: 1px; width: 8px; height: 8px; box-shadow: 0 0 0 1.5px #0c111c; }
  .kopf__knopf { margin-left: auto; }

  .karte--haupt { top: calc(var(--kopf-h) - 34px); bottom: auto; height: calc(50% + 34px); }
  .liste { display: none; }
  .legende { left: 12px; right: auto; bottom: auto; top: calc(var(--kopf-h) + 10px); gap: 12px; padding: 7px 10px; font-size: 0.8125rem; }
  .tipp--held { top: auto; left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px 18px 20px; }
  .tipp__titel { font-size: clamp(1.75rem, 1.2rem + 3vw, 2.2rem); margin: 8px 0 8px; }
  .tipp__text { margin-bottom: 16px; font-size: 1rem; }

  .ansicht__raster, .antwort, .kosten, .vorfuehrung, .fragen { grid-template-columns: minmax(0, 1fr); }
  .eingang__liste li { grid-template-columns: 3.2rem 1fr; padding: 14px; }
  .eingang__liste .offen { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 8px; }
  .fs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wahl { grid-template-columns: 20px minmax(0, 1fr); }
  .wahl em { grid-column: 2; text-align: left; white-space: normal; }
  /* .wahl--fest braucht hier keine Sonderregel mehr: das Häkchen füllt die erste Spalte. */
  .beleg { position: static; }
  .fakten { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .formular__raster { grid-template-columns: minmax(0, 1fr); }
  .ablauf dl div { grid-template-columns: 5.5rem 1fr; }

  .buehne--historie { padding: calc(var(--kopf-h) + 10px) 10px 10px; }
  .historie { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 10px; }
  .historie__tabelle table { font-size: 0.875rem; }
  .historie__tabelle th, .historie__tabelle td { padding: 7px 10px; }
  /* Auf schmalem Handy dritte Spalte (Ort) ausblenden — nth-child fasst
     Kopf UND Zelle, sonst schob die „Ort"-Kopfzeile die Dauer-Spalte raus.
     Fixed table-layout, damit sich die verbleibenden drei Spalten teilen. */
  .historie__tabelle table { table-layout: fixed; }
  .historie__tabelle th:nth-child(3), .historie__tabelle td:nth-child(3) { display: none; }
  .anruf { left: 18px; right: 18px; width: auto; bottom: 18px; padding: 18px; }
  .rueckspul { left: 18px; top: calc(var(--kopf-h) + 58px); }
  .tipp--ergebnis { left: 18px; right: 18px; bottom: 18px; width: auto; padding: 18px; }
  .tipp--ergebnis .tipp__titel { font-size: 1.6rem; }

  .aufnahme { width: min(86vw, calc(40svh * var(--v, 1.4))); }
  .aufnahme--hoch { width: min(56vw, calc(44svh * 0.487)); }
  .portal__kopf .ansicht__titel { font-size: 1.65rem; }
  .portal__kopf .ansicht__text { font-size: 1rem; }
  .historie__tabelle .tafel__meta { display: none; }
}
@media (max-width: 380px) {
  .kopf__marke { display: none; }
  .tipp__titel { font-size: 1.62rem; }
  .tipp__text { font-size: 0.9688rem; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .karte--haupt { height: calc(44% + 34px); }
  .tipp--held { padding: 16px 16px 18px; }
  .tipp__marke { display: none; }
  .tipp__titel { margin-top: 0; }
}

/* ======================================================= Weniger Bewegung == */
@media (prefers-reduced-motion: reduce) {
  .karte__zoom { transform: none; }
  .tag__stempel button:not([hidden]) { animation: none; }
  .leiste { transition: none; }
  .m-stopp, .historie__tabelle td { transition: none; }
}
/* Ohne Bewegung liegen am breiten Bildschirm alle Aufnahmen nebeneinander, gleich hoch:
   die Spaltenbreiten folgen den Seitenverhältnissen der Bilder. */
@media (prefers-reduced-motion: reduce) and (min-width: 761px) {
  .buehne--portal .schiene {
    display: grid; grid-template-columns: 1.31fr 1.59fr 0.487fr 1.84fr; align-items: start;
    gap: 16px 20px; padding: 0 var(--rand-seite); transform: none !important;
  }
  .buehne--portal .aufnahme, .buehne--portal .aufnahme--hoch { width: auto; }
  .buehne--portal .aufnahme figcaption { font-size: 0.875rem; }
  .buehne--portal .schiene__ende { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; }
  [data-cw-act="pan"] [data-cw-stage].buehne--portal { overflow-x: clip; }
  .buehne--portal .schiene::after { display: none; }
}
