/* ============================================================
   LKW-Rechner – Styles
   Zwei Designs: White Mode (html[data-theme="light"]) und Dark Mode
   (html[data-theme="dark"]), Abschnitt „DESIGNS“ am Ende. Die Basisregeln
   darunter liefern Layout, Komponenten und Druck/PDF; ihre Farb-Tokens
   werden am Bildschirm von den beiden Designs überschrieben.
   ============================================================ */

/* ---------- Schrift (Plus Jakarta Sans, OFL, lokal eingebunden) ---------- */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/plus-jakarta-sans-regular.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/plus-jakarta-sans-500.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/plus-jakarta-sans-600.woff2) format("woff2"); }

:root {
  color-scheme: light;

  /* Greenflash-Farbsystem */
  --gf-ultra-dark: #00211e;   /* green-900 – Section-Hintergrund */
  --gf-dark: #073d2b;         /* green-800 – Ergebniskarte, Copytext */
  --gf-dark-flash: #037045;   /* green-700 */
  --gf-balanced: #009e4f;     /* green-600 */
  --gf-flash-hover: #67d645;  /* green-500 */
  --gf-flash: #9ff55d;        /* green-400 – Akzent, Primärbutton */
  --gf-silver-ultra-light: #ebf2f5; /* gray-100 – Formularkarte */
  --gf-silver-light: #dbe6ed; /* gray-200 – Kacheln, Felder */
  --gf-silver: #bacad4;       /* gray-500 – Rahmen */
  --gf-silver-medium: #9aa9b7;/* gray-600 */
  --gf-silver-dark: #566470;  /* Hinweistexte */
  --gf-gray-700: #6b7982;
  --gf-lilac: #5a6bd6;        /* blue-600 – Fokus */
  --gf-lilac-soft: #afc5fa;
  --gf-solar: #f0c846;
  --gf-white-a15: rgba(255, 255, 255, .15);
  --gf-white-a30: rgba(255, 255, 255, .3);

  /* App-Tokens im Kontext der silbernen Karten */
  --brand: var(--gf-dark-flash);
  --brand-ink: #ffffff;
  --brand-soft: color-mix(in srgb, var(--gf-balanced) 12%, transparent);
  --brand-line: var(--gf-balanced);

  --bg: var(--gf-ultra-dark);
  --surface: var(--gf-silver-ultra-light);
  --surface-2: var(--gf-silver-light);
  --border: var(--gf-silver);
  --grid: #d3dfe7;
  --text: var(--gf-dark);
  --text-strong: var(--gf-ultra-dark);
  --text-2: var(--gf-silver-dark);
  --text-3: var(--gf-gray-700);

  --series-d: var(--gf-silver-dark); /* Diesel – Bestandssystem, Silbergrau */
  --series-e: var(--gf-balanced);    /* E-LKW  – Greenflash-Grün           */
  --series-l: var(--gf-lilac);       /* LNG    – Greenflash-Blau           */

  --good: var(--gf-dark-flash); --good-bg: color-mix(in srgb, var(--gf-balanced) 14%, var(--gf-silver-ultra-light));
  --warn: #8a5a00;              --warn-bg: color-mix(in srgb, var(--gf-solar) 30%, var(--gf-silver-ultra-light));
  --bad:  #b3322c;              --bad-bg:  color-mix(in srgb, #e5534b 14%, var(--gf-silver-ultra-light));

  --radius: 20px;
  --radius-sm: .75rem;
  --shadow: none;
  --shadow-md: 0 4px 14px rgba(0, 33, 30, .1), 0 2px 4px rgba(0, 33, 30, .06);
  --focus: 2px solid var(--gf-lilac);
  --ease: cubic-bezier(0, 0, .2, 1);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

/* Dunkle Kontexte (Ergebniskarte, CTA, mobile Leiste) */
.summary, .cta, .mobilebar {
  --surface: var(--gf-dark);
  --surface-2: rgba(255, 255, 255, .1);
  --border: var(--gf-dark-flash);
  --grid: var(--gf-white-a15);
  --text: #ffffff;
  --text-strong: #ffffff;
  --text-2: var(--gf-silver);
  --text-3: var(--gf-silver-medium);
  --brand: var(--gf-flash);
  --series-d: var(--gf-silver);
  --series-e: var(--gf-flash);
  --series-l: var(--gf-lilac-soft);
  --good: var(--gf-flash);  --good-bg: color-mix(in srgb, var(--gf-flash) 16%, transparent);
  --warn: var(--gf-solar);  --warn-bg: color-mix(in srgb, var(--gf-solar) 18%, transparent);
  --bad:  #ff9d8f;          --bad-bg:  color-mix(in srgb, #ff9d8f 16%, transparent);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: #ffffff;
  font: 400 15px/1.5 var(--font); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 { margin: 0; line-height: 1.3; font-weight: 500; letter-spacing: -.005em; }
b, strong { font-weight: 600; }
a { color: var(--brand); text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: var(--focus); outline-offset: 2px; }
.wrap { max-width: calc(1320px + 3rem); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 720px) { .wrap { padding: 0 1.5rem; } }

/* ---------- Topbar ---------- */
.topbar { background: var(--gf-ultra-dark); border-bottom: 1px solid var(--gf-white-a15); position: sticky; top: 0; z-index: 30; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; min-width: 0; }
.brand-logo {
  width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--gf-flash); color: var(--gf-ultra-dark);
  display: grid; place-items: center; font-weight: 600; flex: none; overflow: hidden;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-logo.has-img { background: transparent; width: auto; height: auto; max-width: 160px; border-radius: 0; }
.brand-logo.has-img img { width: auto; height: 24px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: var(--gf-silver); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Mit Bildlogo: Firmenname steckt im Logo, daneben nur der Produktname */
.brand-logo.has-img + .brand-text { border-left: 1px solid var(--gf-white-a30); padding-left: 14px; }
.brand-logo.has-img + .brand-text strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.brand-logo.has-img + .brand-text small { color: #fff; font-size: 14px; font-weight: 500; }
.actions { display: flex; gap: 4px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .375rem; border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 8px 12px; cursor: pointer; background: none; font-weight: 500; font-size: 14px; line-height: 1.2; text-decoration: none;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-ghost { color: var(--gf-silver); }
.btn-ghost:hover { background: var(--gf-white-a15); color: #fff; }
.btn-primary, .cta .btn {
  background: var(--gf-flash); border-color: var(--gf-flash); color: var(--gf-ultra-dark);
  min-height: 3rem; padding: .75rem 1.5rem; font-size: 1rem;
}
.btn-primary:hover, .cta .btn:hover { background: var(--gf-flash-hover); border-color: var(--gf-flash-hover); color: var(--gf-ultra-dark); }
.btn-ghost[aria-expanded="true"] { background: var(--gf-white-a15); color: #fff; }

/* ---------- Aktionen: Desktop nebeneinander, mobil als beschriftetes Menü ---------- */
.actions { align-items: center; }
.act-more { position: relative; }
.act-menu { display: flex; gap: 4px; }
#btnMore { display: none; }
@media (max-width: 640px) {
  #btnMore { display: inline-flex; }
  #btnMore span, .theme-toggle span { display: none; }
  #btnMore, .theme-toggle { padding: 8px; }
  .act-menu {
    display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: 220px;
    flex-direction: column; gap: 2px; padding: 6px; border-radius: var(--radius-sm); border: 1px solid;
  }
  .act-more.open .act-menu { display: flex; }
  .act-menu .btn { justify-content: flex-start; width: 100%; padding: 10px 12px; gap: .625rem; }
}

/* ---------- White/Dark-Umschalter ---------- */
.theme-toggle .ic-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
html[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
html.embed .theme-toggle { display: none; }

/* ---------- Einstieg (bildschirmfüllend: Frage + Pfeil nach unten) ---------- */
.intro {
  min-height: calc(100vh - 65px); min-height: calc(100svh - 65px);
  display: flex; align-items: center; text-align: center; padding: 3rem 0;
}
.intro-inner { width: 100%; display: flex; flex-direction: column; align-items: center; }
.intro .tagline { margin-bottom: 1.5rem; }
.intro h1 {
  color: #fff; font-weight: 500; letter-spacing: -.02em; line-height: 1.08;
  font-size: clamp(2.5rem, 8vw, 5.5rem); max-width: 14ch; text-wrap: balance;
}
.intro-go {
  margin-top: clamp(2.5rem, 8vh, 4.5rem); display: inline-flex; flex-direction: column; align-items: center; gap: .875rem;
  color: var(--gf-silver-ultra-light); text-decoration: none; font-size: 1.0625rem; font-weight: 500;
  transition: color .15s var(--ease);
}
.intro-arrow {
  width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--gf-flash); color: var(--gf-ultra-dark);
  animation: intro-bounce 2s var(--ease) infinite; transition: background-color .15s var(--ease);
}
.intro-arrow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.intro-go:hover { color: var(--gf-flash); }
.intro-go:hover .intro-arrow { background: var(--gf-flash-hover); }
.intro-go:focus-visible { outline-offset: 6px; border-radius: var(--radius-sm); }
@keyframes intro-bounce { 0%, 20%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
html.embed .intro { display: none; }
#rechner { scroll-margin-top: 64px; }

/* ---------- Hero / Intro (wie Section-Intro auf greenflash.de) ---------- */
.hero { padding: 3rem 0 .5rem; }
@media (min-width: 992px) { .hero { padding-top: clamp(2.5rem, 7vh, 4.5rem); } }
.tagline {
  display: inline-flex; align-items: center; gap: 1rem; color: var(--gf-silver); font-size: 1rem; font-weight: 500; margin-bottom: 1.25rem;
}
.tagline::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--gf-flash); flex: none; }
.hero-title { font-size: 1.5rem; line-height: 1.3; letter-spacing: -.005em; font-weight: 500; color: #fff; max-width: 768px; }
@media (min-width: 992px) { .hero-title { font-size: 2rem; } }
.lead { color: var(--gf-silver); max-width: 768px; margin: 1.25rem 0 1rem; font-size: 1rem; line-height: 1.6; }
@media (min-width: 992px) { .lead { font-size: 1.125rem; } }
.steps { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; color: var(--gf-silver); font-size: 14px; }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps span {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 500;
  background: var(--gf-dark); color: var(--gf-flash);
}

/* ---------- Modus-Umschalter ---------- */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; max-width: 640px; margin-top: 1.5rem; }
.mode {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: var(--radius-sm); cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--gf-white-a15); color: #fff;
  transition: border-color .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease);
}
.mode:hover { border-color: var(--gf-white-a30); background: rgba(255, 255, 255, .08); }
.mode[aria-selected="true"] { border-color: var(--gf-silver-ultra-light); background: var(--gf-silver-ultra-light); color: var(--gf-ultra-dark); }
.mode b { display: block; font-size: 15px; font-weight: 500; }
.mode small { display: block; color: var(--gf-silver); font-size: 13px; }
.mode[aria-selected="true"] small { color: var(--gf-silver-dark); }
.mode-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--gf-silver); flex: none; }
.mode[aria-selected="true"] .mode-ic { background: var(--gf-ultra-dark); color: var(--gf-flash); }
.mode-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 480px) { .mode { padding: 10px; gap: 8px; } .mode-ic { display: none; } .mode b { font-size: 14px; } }

body.mode-quick .detail-only, body.mode-detail .quick-only { display: none !important; }

/* ---------- Schnellcheck ---------- */
#quick { display: flex; flex-direction: column; gap: 1rem; }
.quick-card { padding: 0 !important; }
.q { padding: 1.5rem; border-bottom: 1px solid var(--border); }
.q:last-child { border-bottom: 0; }
@media (min-width: 768px) { .q { padding: 2rem; } }
.q-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.q-head h3 { font-size: 1.0625rem; font-weight: 500; color: var(--text); }
@media (min-width: 992px) { .q-head h3 { font-size: 1.125rem; } }
.q-num {
  width: 2rem; height: 2rem; border-radius: 50%; background: var(--gf-ultra-dark); color: var(--gf-flash);
  display: grid; place-items: center; font-size: .8125rem; font-weight: 500; flex: none; font-variant-numeric: tabular-nums;
}
.q-km { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; }
.q-km input[type="range"] { height: 28px; }
.q-km .numbox input { font-size: 1rem; width: 120px; }
.q-split { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .q-split { grid-template-columns: 1.6fr 1fr; } }
.q-years { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; }
.q-years input[type="range"] { height: 28px; }
.q-years output { min-width: 5.5rem; text-align: right; font-weight: 500; font-size: 1rem; color: var(--text); font-variant-numeric: tabular-nums; }
.q-ticks { display: flex; justify-content: space-between; margin-top: .25rem; padding-right: 6.5rem; font-size: 12px; color: var(--text-2); }
.segs { display: grid; gap: .5rem; }
.segs-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fuel-source { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.fuel-reset {
  display: inline-flex; align-items: center; gap: .25rem; flex: none; margin-left: auto;
  border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit;
  font: inherit; font-size: 12px; line-height: 1; padding: .3rem .55rem; cursor: pointer; opacity: .8;
}
.fuel-reset:hover, .fuel-reset:focus-visible { opacity: 1; }
.fuel-reset svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: fill .15s var(--ease), stroke .15s var(--ease); }
.fuel-reset[aria-pressed="true"] svg { fill: var(--gf-balanced); stroke: var(--gf-balanced); }
:where(html.theme-new) .fuel-reset[aria-pressed="true"] svg { fill: var(--n-accent-line); stroke: var(--n-accent-line); }
.charge-options .seg { text-align: left; }
.charge-opt { display: flex; flex-direction: column; padding: .875rem 1rem; }
.charge-opt .charge-price {
  margin-top: auto; padding-top: .625rem; font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
#q-chargeSummary:empty, #hint-depotAnteil:empty { display: none; }
@media (max-width: 560px) { .charge-options { grid-template-columns: 1fr; } }
.segs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.segs-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 560px) { .segs-3 { grid-template-columns: 1fr; } }

/* Auswahl-Kacheln (wie .gfpr__tile) */
.seg, .preset {
  border: 1px solid var(--gf-silver); background: var(--gf-silver-light); color: var(--gf-dark); border-radius: var(--radius-sm);
  padding: .625rem .75rem; cursor: pointer; text-align: left; min-width: 0; min-height: 44px;
  hyphens: auto; overflow-wrap: break-word; line-height: 1.3;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.segs-4 .seg { text-align: center; padding: .625rem .25rem; }
.seg:hover, .preset:hover { border-color: var(--gf-balanced); }
.seg[aria-pressed="true"], .seg[aria-checked="true"], .preset[aria-checked="true"] {
  background: var(--gf-ultra-dark); border-color: var(--gf-ultra-dark); color: var(--gf-silver-ultra-light);
}
.seg b, .preset b { display: block; font-size: 14px; font-weight: 500; }
.seg small, .preset small { display: block; color: var(--gf-silver-dark); font-size: 12.5px; margin-top: 2px; }
.seg[aria-pressed="true"] small, .seg[aria-checked="true"] small, .preset[aria-checked="true"] small { color: var(--gf-silver); }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--gf-silver); border-radius: var(--radius-sm); overflow: hidden; background: var(--gf-silver-light); }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; font-size: 20px; color: var(--gf-dark); transition: background-color .15s var(--ease), color .15s var(--ease); }
.stepper button:hover { background: var(--gf-ultra-dark); color: var(--gf-flash); }
.stepper output { min-width: 56px; text-align: center; font-weight: 500; font-size: 1rem; color: var(--gf-ultra-dark); }

.assume-sum { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.assume-sum::-webkit-details-marker { display: none; }
.assume-sum h2 { font-size: 1.125rem; }
.assume-sum p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.assume-sum .chev { width: 20px; height: 20px; flex: none; transition: transform .2s; stroke: var(--text-2); fill: none; stroke-width: 2; }
.assume[open] > .assume-sum .chev { transform: rotate(180deg); }
.assume-sum:hover h2 { color: var(--gf-dark-flash); }
.assume-body { margin-top: 1rem; }
.assume dl { margin: 0 0 1rem; display: flex; flex-direction: column; }
.as-row { display: grid; grid-template-columns: 1fr 1.1fr 1.4fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.as-row dt { color: var(--text-2); }
.as-row dd { margin: 0; font-weight: 500; color: var(--text-strong); }
.as-head dd { font-weight: 500; font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.fixed-assume .assume-body dl { margin: 0; }
.as-row.as-tri { grid-template-columns: 1fr 1fr 1fr 1.4fr; }
@media (max-width: 560px) { .as-row.as-tri { font-size: 12.5px; gap: 8px; } }
.fixed-assume .as-row { grid-template-columns: 1.2fr 1fr; align-items: center; }
.fixed-assume .as-row dt { display: flex; align-items: center; gap: 6px; }
.fixed-assume .as-row:last-child { border-bottom: 0; }
.as-more { font-size: 13px; color: var(--text-2); margin: 10px 0 14px; }
.btn-outline { border: 1px solid var(--gf-dark); color: var(--gf-dark); background: transparent; min-height: 2.5rem; padding: .5rem .875rem; }
.btn-outline:hover { background: var(--gf-ultra-dark); border-color: var(--gf-ultra-dark); color: var(--gf-silver-ultra-light); }

.vnote { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 500; cursor: pointer; font-size: 13px; text-decoration: underline; text-underline-offset: .25em; }

/* ---------- Abschluss: zentraler Button zur Detailberechnung ---------- */
.finale { text-align: center; padding-top: .5rem; padding-bottom: 3.5rem; display: flex; flex-direction: column; align-items: center; }
.finale h2 { font-size: 1.375rem; font-weight: 600; letter-spacing: -.01em; }
.finale p { margin: .625rem auto 1.5rem; max-width: 560px; font-size: 15px; line-height: 1.6; }
.finale .btn { min-width: 260px; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-top: 1.5rem; padding-bottom: 3rem; }
@media (min-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem; align-items: start; }
}
.inputs, .results-inner, #detailPanel, #groups { display: flex; flex-direction: column; gap: 1rem; }
.inputs > *, .results-inner > * { flex-shrink: 0; } /* Karten im Scrollbereich nicht zusammenstauchen */

/* Silberne Karte (wie .gfpr__form) */
.card {
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem;
}
@media (min-width: 768px) { .card { padding: 2rem; } }
.card h2, .card h3 { color: var(--text-strong); }
.card-head { margin-bottom: 1rem; }
.card-head.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.card-head h2 { font-size: 1.125rem; }
.card-head p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }

/* ---------- Presets ---------- */
.presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
/* Profil mit Fahrzeugklassen (z. B. Verteilerverkehr 26 t / 18 t) */
.preset-vars { display: flex; align-items: center; gap: .5rem .875rem; flex-wrap: wrap; margin-top: .75rem; }
.pv-label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.preset-vars .segs { flex: 1 1 260px; }
.preset { display: flex; gap: 8px; align-items: center; padding: .625rem; }
.preset > span { min-width: 0; }
.preset b { overflow-wrap: anywhere; }
.preset svg { width: 26px; height: 26px; flex: none; color: var(--gf-silver-dark); }
@media (max-width: 420px) { .presets { grid-template-columns: repeat(2, minmax(0, 1fr)); } .preset svg { display: none; } }
.preset[aria-checked="true"] svg { color: var(--gf-flash); }

/* ---------- Groups & Fields ---------- */
.group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.group > summary::-webkit-details-marker { display: none; }
.group > summary h2 { font-size: 1.125rem; display: flex; align-items: center; gap: .75rem; }
.group > summary .num {
  width: 2rem; height: 2rem; border-radius: 50%; background: var(--gf-ultra-dark); color: var(--gf-flash);
  display: grid; place-items: center; font-size: .8125rem; font-weight: 500; flex: none;
}
.group > summary p { margin: 4px 0 0 2.75rem; color: var(--text-2); font-size: 14px; }
.group > summary .chev { width: 20px; height: 20px; flex: none; transition: transform .2s; stroke: var(--text-2); fill: none; stroke-width: 2; }
.group[open] > summary .chev { transform: rotate(180deg); }
.group > summary:hover h2 { color: var(--gf-dark-flash); }
.backgrounds > summary p { margin-left: 0; }
.backgrounds > summary:focus-visible { outline: var(--focus); outline-offset: 6px; border-radius: 4px; }
.backgrounds > summary:hover .chev { stroke: var(--gf-dark-flash); }
.backgrounds-content > .card {
  margin-top: 1.5rem; padding: 1.5rem 0 0; border: 0; border-top: 1px solid var(--border);
  border-radius: 0; box-shadow: none; background: transparent;
}
.wart-body, .range-body { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.range-sum .good { color: var(--good); font-weight: 500; }
.range-sum .warn { color: var(--warn); font-weight: 500; }
.wart-card > summary p b { color: var(--text-strong); font-weight: 600; }
.group .fields { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 1.25rem; }
.subhead { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 500; margin: 6px 0 -6px; }

.field-head { display: flex; align-items: center; gap: 6px; margin-bottom: .5rem; }
.field-head label, .field-head .lbl { font-weight: 500; font-size: 14px; color: var(--gf-dark); }
.info {
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--gf-silver); background: var(--gf-silver-light);
  color: var(--gf-silver-dark); font-size: 11px; font-weight: 600; font-style: italic; font-family: Georgia, serif;
  display: inline-grid; place-items: center; cursor: help; padding: 0; flex: none;
}
.info:hover, .info:focus-visible { border-color: var(--gf-lilac); color: var(--gf-lilac); outline: none; }
/* Feste Breite der Zahlenfelder: alle Regler gleich lang */
.control { display: grid; grid-template-columns: minmax(0, 1fr) 9.5rem; gap: 1rem; align-items: center; }
@media (max-width: 480px) { .control { grid-template-columns: minmax(0, 1fr) 8.5rem; gap: .75rem; } }
.hint { font-size: 13px; color: var(--text-2); margin-top: 6px; line-height: 1.5; }
.hint b { color: var(--text-strong); font-weight: 500; }

/* Eingabefelder (wie .gfpr__input) */
.numbox {
  display: flex; align-items: center; border: 1px solid var(--gf-silver); border-radius: var(--radius-sm); background: var(--gf-silver-light);
  padding: 0 .875rem 0 0; min-width: 0; min-height: 44px; transition: border-color .15s var(--ease);
}
.numbox:hover { border-color: var(--gf-silver-medium); }
.numbox:focus-within { outline: var(--focus); outline-offset: 2px; }
.numbox input {
  width: 92px; border: 0; background: transparent; padding: .625rem .25rem .625rem .875rem; font: inherit; font-size: 1rem; font-weight: 500;
  color: var(--gf-ultra-dark); text-align: right; outline: none; min-width: 0;
}
.numbox.wide input { width: 110px; }
.numbox .unit { color: var(--gf-silver-dark); font-size: 13px; white-space: nowrap; }
.control .numbox input, .control .numbox.wide input { width: 100%; flex: 1 1 auto; }

/* Paired fields */
.pair-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 560px) {
  .pair-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .pair-grid.tri { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .625rem; }
  body.no-lng .pair-grid.tri { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
.pair-grid.tri .side { padding: .75rem; }
.pair-grid.tri .numbox { padding-right: .625rem; }
.pair-grid.tri .numbox input { padding-left: .625rem; }
body.no-lng .side-l, body.no-lng .field.side-l, body.no-lng .lng-only { display: none !important; }
.side { border-radius: var(--radius-sm); padding: .875rem; background: var(--gf-silver-light); border: 0; }
.side .numbox { background: var(--gf-silver-ultra-light); }
.side-tag { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--gf-silver-dark); margin-bottom: 8px; }
.side-unit { display: none; font-weight: 400; }
.side .control { grid-template-columns: 1fr; gap: 10px; }
.side .numbox input { width: 100%; text-align: left; }
/* Mobil: Diesel/LNG/E-LKW als kompakte Zahlenfelder nebeneinander, ohne Regler; Einheit in der Kopfzeile */
@media (max-width: 559px) {
  .pair-grid, .pair-grid.tri { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .5rem; }
  .pair-grid .side, .pair-grid.tri .side { padding: .5rem; display: flex; flex-direction: column; }
  .pair-grid .side-tag { flex: 1; flex-wrap: wrap; align-items: baseline; align-content: flex-start; gap: 0 5px; font-size: 12px; line-height: 1.3; margin-bottom: 6px; }
  .pair-grid .side-unit { display: inline; }
  .pair-grid .side input[type="range"], .pair-grid .side .numbox .unit { display: none; }
  .pair-grid .side .numbox, .pair-grid.tri .numbox { min-height: 40px; padding-right: 0; }
  .pair-grid .side .numbox input, .pair-grid.tri .numbox input { padding: .5rem .375rem; font-size: 14.5px; }
}
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw-d { background: var(--series-d); }
.sw-e { background: var(--series-e); }
.sw-l { background: var(--series-l); }

/* Range slider (wie .gfpr__range) */
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; margin: 0; cursor: pointer;
  --p: 50%; --c: var(--gf-balanced);
}
input[type="range"]:focus { outline: none; }
input[type="range"]::-webkit-slider-runnable-track {
  height: .5rem; border-radius: 999px;
  background: linear-gradient(to right, var(--c) 0 var(--p), var(--gf-silver) var(--p) 100%);
}
input[type="range"]::-moz-range-track { height: .5rem; border-radius: 999px; background: var(--gf-silver); }
input[type="range"]::-moz-range-progress { height: .5rem; border-radius: 999px; background: var(--c); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 1.375rem; height: 1.375rem; border-radius: 50%; background: var(--c);
  border: 3px solid var(--gf-silver-ultra-light); box-shadow: 0 0 0 1px var(--c); margin-top: -.4375rem; cursor: grab; transition: transform .1s;
}
input[type="range"]::-moz-range-thumb {
  width: 1rem; height: 1rem; border-radius: 50%; background: var(--c); border: 3px solid var(--gf-silver-ultra-light); box-shadow: 0 0 0 1px var(--c); cursor: grab;
}
.side input[type="range"]::-webkit-slider-thumb { border-color: var(--gf-silver-light); }
.side input[type="range"]::-moz-range-thumb { border-color: var(--gf-silver-light); }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--c), 0 0 0 4px var(--gf-lilac); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px var(--c), 0 0 0 4px var(--gf-lilac); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.1); cursor: grabbing; }
.side-d input[type="range"] { --c: var(--series-d); }
.side-e input[type="range"] { --c: var(--series-e); }
.side-l input[type="range"] { --c: var(--series-l); }

/* ---------- Ergebnis auf einen Blick (wie .gfpr__result-card) ---------- */
.summary {
  padding: 0 !important; overflow: hidden; border-color: var(--gf-dark-flash);
  --tone: var(--text-3); --tone-bg: var(--surface-2);
}
.summary.good { --tone: var(--good); --tone-bg: var(--good-bg); }
.summary.warn { --tone: var(--warn); --tone-bg: var(--warn-bg); }
.summary.bad  { --tone: var(--bad);  --tone-bg: var(--bad-bg); }
.summary .verdict { padding: 1.5rem 1.5rem 1.25rem; }
@media (min-width: 768px) { .summary .verdict { padding: 2rem 2rem 1.5rem; } }
.summary .verdict .big { color: var(--tone); }
.summary .verdict .vsub { margin-top: 8px; font-size: 14px; }
.summary .vnote { margin: 0; padding: 12px 1.5rem 1.25rem; border-color: var(--gf-dark-flash); color: var(--gf-silver); }
.summary .linkbtn { color: var(--gf-flash); }
@media (min-width: 768px) { .summary .vnote { padding: 14px 2rem 1.5rem; } }

.cmp { padding: 4px 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 768px) { .cmp { padding: 4px 2rem 1.75rem; } }
.cmp-head { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 500; margin-bottom: 2px; }
.cmp-row { display: grid; grid-template-columns: 78px minmax(0, 1fr) 96px; gap: 10px; align-items: center; font-size: 14px; }
.cmp-v small { display: block; font-size: 11.5px; font-weight: 500; color: var(--text-3); line-height: 1.2; }
.cmp-v.win small { color: var(--good); }
/* Reichweitenstatus des E-LKW direkt in der Ergebniskarte */
.sum-range { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 1.5rem; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
@media (min-width: 768px) { .sum-range { padding: 14px 2rem; } }
.sum-range > svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: var(--tone-r); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sum-range b { color: var(--tone-r); font-weight: 600; }
.sum-range.good { --tone-r: var(--good); }
.sum-range.warn { --tone-r: var(--warn); }
.sum-range .linkbtn { margin-left: 4px; white-space: nowrap; }
.cmp-l { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 500; }
.cmp-track { height: .75rem; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.cmp-bar { display: block; height: 100%; border-radius: 999px; transition: width .4s var(--ease); }
.cmp-bar.d { background: var(--series-d); }
.cmp-bar.e { background: var(--series-e); }
.cmp-bar.l { background: var(--series-l); }
.cmp-v { text-align: right; font-weight: 500; color: var(--text); }
.cmp-v.win { color: var(--good); }
.cmp-note { margin: 2px 0 0; font-size: 12.5px; color: var(--text-3); }

/* ---------- Einflussfaktoren ---------- */
.card-head p b { color: var(--text-strong); font-weight: 600; }
.drv-axis, .drv li { display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.drv-axis { font-size: 12px; font-weight: 500; color: var(--text-2); margin: 4px 0 6px; }
.drv-axis span { display: inline-flex; align-items: center; gap: 6px; }
.drv-ax-d { justify-content: flex-end; padding-right: 12px; }
.drv-ax-e { padding-left: 12px; }
.drv { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.drv li { font-size: 14px; min-height: 38px; border-radius: 8px; transition: background .15s; }
.drv li:not(.drv-net):hover { background: var(--surface-2); }
.drv-l { color: var(--text); font-weight: 500; padding-left: 8px; }
.drv-half { display: flex; align-items: center; gap: 8px; height: 100%; min-height: 38px; }
.drv-dside { flex-direction: row-reverse; border-right: 1px solid var(--border); padding-right: 0; }
.drv-eside { padding-left: 0; }
.drv-bar { display: block; height: 16px; flex: none; width: calc((100% - 86px) * var(--w, 0)); }
.drv-dside .drv-bar { border-radius: 6px 0 0 6px; }
.drv-eside .drv-bar { border-radius: 0 6px 6px 0; }
.drv-bar.e { background: var(--series-e); }
.drv-bar.d { background: var(--series-d); }
.drv-bar.l { background: var(--series-l); }
.drv-v { font-weight: 600; white-space: nowrap; font-size: 13.5px; }
.drv-dside .drv-v { color: var(--text-2); }
.drv-eside .drv-v { color: var(--gf-dark-flash); }
.drv .drv-net { margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0; padding-top: 6px; }
.drv-net .drv-l { font-weight: 600; color: var(--text-strong); }
.drv-net .drv-bar { height: 20px; }
.drv-net .drv-v { font-size: 15px; font-weight: 600; }
.drv-note { font-size: 13px; color: var(--text-3); margin: 12px 0 0; }
@media (max-width: 560px) {
  .drv-axis, .drv li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .drv-axis > span:first-child { display: none; }
  .drv li { padding: 6px 0 4px; }
  .drv-l { grid-column: 1 / -1; padding-left: 0; text-align: center; font-size: 13px; color: var(--text-2); }
  .drv-net .drv-l { color: var(--text-strong); }
  .drv-half, .drv li { min-height: 28px; }
  .drv-bar { width: calc((100% - 74px) * var(--w, 0)); }
}
.tips { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.tips h3 { font-size: 14px; }
.tips .reasons { margin-top: 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; padding: .1875rem .625rem; border-radius: 999px;
}
.badge svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.badge.good { background: var(--good-bg); color: var(--good); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad  { background: var(--bad-bg);  color: var(--bad); }
.badge.neutral { background: color-mix(in srgb, var(--series-l) 16%, transparent); color: var(--text); }
.verdict h2 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin: 1rem 0 .25rem; letter-spacing: -.005em; color: var(--text); font-weight: 500; }
.verdict .vsub { color: var(--text-2); margin: 0; }
/* Große Zahl wie .gfpr__number */
.verdict .big { font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 500; letter-spacing: -.005em; margin: .75rem 0 0; line-height: 1.1; }
.verdict .big small { font-size: 1rem; font-weight: 400; color: var(--text-2); letter-spacing: 0; margin-left: 6px; }
.verdict .big .vsep { color: var(--text-3); font-weight: 400; }
.verdict .vsave { margin: .5rem 0 0; font-size: 14px; color: var(--text-2); }
.verdict .big .vpct { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 3px 10px; border-radius: 999px; font-size: 1rem; font-weight: 500; letter-spacing: 0; background: color-mix(in srgb, currentColor 14%, transparent); }
.reasons { margin: 1rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.reasons li { display: flex; gap: 8px; align-items: flex-start; }
.reasons li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); margin-top: 8px; flex: none; }
.reasons li.plus::before { background: var(--good); }
.reasons li.minus::before { background: var(--bad); }
.reasons li.rec { color: var(--text-2); }
.reasons li.rec::before { background: var(--gf-balanced); }

/* ---------- KPIs (Kennzahlenleiste im Ergebnis) ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.kpi { padding: 1rem 1rem 1.25rem 1.5rem; min-width: 0; }
@media (min-width: 768px) { .kpi { padding-left: 2rem; } }
.kpi + .kpi { border-left: 1px solid var(--border); padding-left: 1rem; }
@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr; }
  .kpi + .kpi { border-left: 0; border-top: 1px solid var(--border); padding-left: 1.5rem; }
}
.kpi .k-label { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.kpi .k-value { font-size: 1.375rem; font-weight: 500; margin-top: 4px; letter-spacing: -.005em; line-height: 1.2; color: var(--text); }
.kpi .k-sub { font-size: 12.5px; color: var(--text-2); margin-top: 2px; overflow-wrap: anywhere; hyphens: auto; }
.kpi .k-label { overflow-wrap: anywhere; }
.kpi .k-row { display: flex; align-items: baseline; gap: 6px; }
.kpi .k-row + .k-row { margin-top: 2px; }
.kpi .k-row .k-value { font-size: 1.1875rem; margin: 0; }
.kpi .k-row .sw { margin-right: 2px; }
.kpi .k-rows { margin-top: 4px; }
.summary .info { background: transparent; border-color: var(--gf-white-a30); color: var(--gf-silver); }
.summary .info:hover, .summary .info:focus-visible { border-color: var(--gf-flash); color: var(--gf-flash); }

/* ---------- Legend & Charts ---------- */
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .axis { stroke: var(--border); stroke-width: 1; }
.chart text { fill: var(--text-2); font-size: 11.5px; font-family: var(--font); }
.chart text.strong { fill: var(--text-strong); font-weight: 600; }
.chart text.val { font-size: 11px; }
.chart .line-d { stroke: var(--series-d); }
.chart .line-e { stroke: var(--series-e); }
.chart .fill-d { fill: var(--series-d); }
.chart .fill-e { fill: var(--series-e); }
.chart .line-l { stroke: var(--series-l); }
.chart .fill-l { fill: var(--series-l); }
.chart .ring { stroke: var(--surface); stroke-width: 2; }
.chart .be-line { stroke: var(--text-3); stroke-dasharray: 4 4; }
.chart .cross { stroke: var(--text-3); stroke-width: 1; }
.chart .bar-hit { fill: transparent; cursor: default; }
.chart-tip {
  position: absolute; pointer-events: none; background: var(--gf-ultra-dark); border: 1px solid var(--gf-dark-flash); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); padding: 8px 12px; font-size: 12.5px; min-width: 150px; z-index: 5;
  transform: translate(-50%, calc(-100% - 12px)); white-space: nowrap;
  --text: #fff; --text-2: var(--gf-silver); --series-d: var(--gf-silver); --series-e: var(--gf-flash); --series-l: var(--gf-lilac-soft);
}
.chart-tip .tt-h { font-weight: 500; margin-bottom: 4px; color: var(--text); }
.chart-tip .tt-r { display: flex; align-items: center; gap: 6px; justify-content: space-between; color: var(--text-2); }
.chart-tip .tt-r b { color: var(--text); font-weight: 500; margin-left: 12px; }
.chart-tip .tt-r span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Range check ---------- */
.range-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.range-head h2 { font-size: 1.125rem; }
/* Reichweiten-Straße: je E-LKW eine Spur, LKW fährt bis zur Winterreichweite, Flagge = Tagesstrecke */
.range-intro { font-size: 13.5px; color: var(--text-2); margin: 0; flex: 1 1 320px; }
.road { position: relative; margin: 14px 0 6px; padding-top: 30px; --truck-w: 54px; }
.road-goal { position: absolute; top: 0; bottom: 24px; width: 0; border-left: 2px dashed var(--text-strong); z-index: 1; pointer-events: none;
  transition: left .6s ease, opacity .4s ease; }
.road-goal span { position: absolute; top: 0; left: -1px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 12px; color: var(--text-strong); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px 2px 7px; }
.road-goal.edge-r span { transform: translateX(-100%); }
.road-goal.edge-l span { transform: none; }
.road-goal b { font-weight: 600; }
.road-goal svg { width: 13px; height: 13px; fill: none; stroke: var(--bad); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lane { position: relative; --c: var(--series-e); --c-txt: var(--good); }
.lane-d { --c: var(--series-d); } .lane-l { --c: var(--series-l); } .lane-e { --c: var(--series-e); }
.lane.warn { --c-txt: var(--warn); }
.lane.bad  { --c-txt: var(--bad); }
.lane-name { display: inline-flex; align-items: center; gap: 6px; }
.lane-name .sw { margin: 0; }
.truck-tag { position: absolute; bottom: calc(100% + 3px); right: 0; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; line-height: 1;
  white-space: nowrap; color: var(--surface); background: var(--c); border-radius: 999px; padding: 3px 7px; }
.lane-break { display: none; position: absolute; left: var(--brk, 80%); bottom: -4px; width: 7px; height: 16px; margin-left: -3.5px; z-index: 1;
  background: var(--surface); border-left: 2px solid var(--text-3); border-right: 2px solid var(--text-3); transform: skewX(-18deg); }
/* Bruchzeichen nur dort, wo der Balken über den Bruch hinausreicht, und auf der Achse */
.road.is-broken .lane.far .lane-break { display: block; }
.road-axis .ax-end { transform: translateX(-100%); }
.road-axis .ax-break { position: absolute; left: var(--brk, 80%); top: -6px; width: 7px; height: 12px; margin-left: -3.5px;
  background: var(--surface); border-left: 2px solid var(--text-3); border-right: 2px solid var(--text-3); transform: skewX(-18deg); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.road-legend .lg-break { width: 8px; border-radius: 0; background: var(--surface); border-left: 2px solid var(--text-3); border-right: 2px solid var(--text-3); transform: skewX(-14deg); }
/* Beschriftung steht unter dem eigenen Balken; Trennlinie grenzt die Spuren voneinander ab */
.lane + .lane { margin-top: 12px; border-top: 1px solid var(--border); }
.lane-lbl { position: relative; z-index: 2; margin-top: 7px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 12.5px; color: var(--text-2); line-height: 1.4; }
.lane-lbl > span { background: var(--surface); padding-right: 4px; border-radius: 4px; }
.lane-name b { color: var(--text-strong); font-weight: 600; font-size: 13.5px; }
.lane-km b { color: var(--text-strong); font-weight: 600; }
.lane-lbl > .lane-st { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border-radius: 50%; color: var(--c-txt);
  background: color-mix(in srgb, var(--c-txt) 15%, var(--surface)); cursor: help; }
.lane-st svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lane-track { position: relative; height: 60px; }
.lane-track::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.lane-summer, .lane-fill, .lane-gap { position: absolute; bottom: 0; height: 8px; border-radius: 999px; }
.lane-summer, .lane-fill { left: 0; transition: width .6s ease; }
.lane-summer { background: color-mix(in srgb, var(--c) 28%, transparent); }
.lane-fill { background: var(--c); }
/* Fehlstrecke bis zur Tagesstrecke: ruhige, deckende rote Fläche (liegt über dem Sommeranteil) */
.lane-gap { border-radius: 0 999px 999px 0; z-index: 1; transition: left .6s ease, width .6s ease, opacity .4s ease;
  background: color-mix(in srgb, var(--bad) 30%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 55%, transparent); }
.lane-truck { position: absolute; bottom: 4px; left: max(var(--truck-w), var(--p, 0%)); width: var(--truck-w); transform: translateX(-100%); color: var(--c); z-index: 2;
  transition: left .6s ease; }
.lane-truck svg { display: block; width: 100%; height: auto; overflow: visible; }
.lane-truck svg rect, .lane-truck svg path { fill: color-mix(in srgb, var(--c) 24%, var(--surface)); }
.lane-truck svg circle { fill: var(--surface); }
.road-axis { position: relative; height: 24px; margin-top: 12px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-3); }
.road-axis span { position: absolute; top: 5px; transform: translateX(-50%); white-space: nowrap; }
.road-axis span:first-child { transform: none; }
.road-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--text-2); }
.road-legend span { display: inline-flex; align-items: center; gap: 6px; }
.road-legend i { display: inline-block; width: 18px; height: 8px; border-radius: 999px; }
.road-legend .lg-fill { background: var(--text-3); }
.road-legend .lg-summer { background: color-mix(in srgb, var(--text-3) 28%, transparent); border: 1px solid var(--border); }
.road-legend .lg-gap { background: color-mix(in srgb, var(--bad) 30%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 55%, transparent); }
/* Losfahren: geparkt am Depot, dann gestaffelt bis zur Reichweite */
@media screen {
  .road.parked .lane-fill, .road.parked .lane-summer { width: 0 !important; }
  .road.parked .lane-truck { left: var(--truck-w) !important; }
  .road.parked .lane-gap, .road.parked .road-goal { opacity: 0; }
}
.road.driving .lane-fill, .road.driving .lane-summer, .road.driving .lane-truck {
  transition-duration: 1.7s; transition-timing-function: cubic-bezier(.35, .05, .2, 1); transition-delay: calc(var(--i, 0) * 160ms); }
.road.driving .lane-gap { transition-delay: 1.9s; }
.road.driving .lane-truck svg { animation: truck-bob .16s ease-in-out infinite alternate; }
.road.driving .lane-truck::before { content: ""; position: absolute; right: calc(100% + 2px); top: 30%; width: 16px; height: 9px; opacity: .55;
  background: repeating-linear-gradient(to bottom, var(--c) 0 2px, transparent 2px 4px); animation: truck-wind 2.2s ease-out forwards; }
@keyframes truck-bob { to { transform: translateY(-1.5px); } }
@keyframes truck-wind { 0%, 70% { opacity: .55; } 100% { opacity: 0; } }
.range-text { font-size: 14px; color: var(--text-2); margin: 10px 0 0; line-height: 1.6; }
.range-text b { color: var(--text-strong); font-weight: 500; }
.btn-small {
  font-size: 13px; padding: 6px 12px; border: 1px solid var(--gf-dark); color: var(--gf-dark); border-radius: var(--radius-sm);
  margin-top: 10px; background: none; cursor: pointer; font-weight: 500; transition: background-color .15s var(--ease), color .15s var(--ease);
}
.btn-small:hover { background: var(--gf-ultra-dark); border-color: var(--gf-ultra-dark); color: var(--gf-silver-ultra-light); }

/* ---------- Passendes E-LKW-Modell ---------- */
.mdl { display: flex; flex-direction: column; gap: 1rem; }
.mdl-img { margin: 0; }
.mdl-img img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 55%;
  border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border);
}
.mdl-img figcaption { font-size: 11.5px; color: var(--text-3); margin-top: 4px; text-align: right; }
.mdl-img figcaption a, .mdl-note a { color: inherit; }
.mdl-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mdl-tag {
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .1875rem .625rem;
  border-radius: 999px; border: 1px solid var(--border); color: var(--text-2);
}
.mdl-tag.rec { background: var(--gf-ultra-dark); border-color: var(--gf-ultra-dark); color: var(--gf-flash); }
.mdl-name { font-size: 1.25rem; font-weight: 500; margin: .625rem 0 0; letter-spacing: -.005em; }
.mdl-typ { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }
.mdl-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 1rem 0 0; }
.mdl-specs > div { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .625rem .875rem; background: var(--surface-2); min-width: 0; }
.mdl-specs dt { font-size: 12.5px; color: var(--text-2); }
.mdl-specs dd { margin: 2px 0 0; font-weight: 500; color: var(--text-strong); font-size: 15px; overflow-wrap: anywhere; }
.mdl-specs dd small { display: block; font-weight: 400; font-size: 12px; color: var(--text-2); margin-top: 2px; line-height: 1.4; }
.mdl-specs .mdl-price, .mdl-specs > div:last-child { grid-column: 1 / -1; }
.mdl-specs .mdl-price dd { font-size: 1.375rem; }
@media (max-width: 380px) { .mdl-specs { grid-template-columns: 1fr; } }
.mdl-why { font-size: 14px; color: var(--text-2); line-height: 1.6; margin: .875rem 0 0; }
.mdl-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mdl-actions .linkbtn { margin-top: 10px; }
.mdl-applied { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--good); }
.mdl-applied svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mdl-alt-h { font-size: 14px; margin: 1.5rem 0 .5rem; }
.mdl-alt { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.mdl-alt-btn {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: .5rem; cursor: pointer; font: inherit; color: var(--text);
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm); transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.mdl-alt-btn:hover { border-color: var(--gf-dark-flash); background: var(--surface-2); }
.mdl-alt-btn:focus-visible { outline: var(--focus); outline-offset: 2px; }
.mdl-alt-btn img { width: 84px; height: 63px; object-fit: cover; border-radius: calc(var(--radius-sm) - 4px); flex: none; background: var(--surface-2); }
.mdl-alt-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.mdl-alt-txt b { font-weight: 500; color: var(--text-strong); font-size: 14px; }
.mdl-alt-txt b em { font-style: normal; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--good); margin-left: 4px; }
.mdl-alt-txt small { font-size: 12.5px; color: var(--text-2); }
.mdl-alt-fit.good { color: var(--good); }
.mdl-alt-fit.warn { color: var(--warn); }
.mdl-alt-go { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mdl-note { font-size: 12.5px; color: var(--text-3); line-height: 1.55; margin: 1rem 0 0; }
.mdl-note b { color: var(--text-2); font-weight: 600; }

/* ---------- Wartung & Reparatur: drei Ringdiagramme + Kurzübersicht ---------- */
/* Bestandteil-Farben (Kategorie-Slots, CVD-geprüft für Nachbarsegmente inkl. Ringschluss) */
.wart-card, .pr-wd { --wc1: #2a78d6; --wc2: #eb6834; --wc3: #1baf7a; --wc4: #eda100; --wc5: #e87ba4; }
@media screen { html[data-theme="dark"] .wart-card { --wc1: #3987e5; --wc2: #d95926; --wc3: #199e70; --wc4: #c98500; --wc5: #d55181; } }
.wd-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.wd { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; }
.wd-chart { width: 100%; max-width: 168px; }
.wd-svg { display: block; width: 100%; height: auto; overflow: visible; }
.wd-s { stroke: var(--surface); stroke-width: 2; stroke-linejoin: round; cursor: pointer; transition: opacity .15s var(--ease); outline: none; }
.wd-s:focus-visible { stroke: var(--text-strong); }
#wartBody[data-hl] .wd-s { opacity: .25; }
#wartBody[data-hl="0"] .wd-s[data-i="0"], #wartBody[data-hl="1"] .wd-s[data-i="1"], #wartBody[data-hl="2"] .wd-s[data-i="2"],
#wartBody[data-hl="3"] .wd-s[data-i="3"], #wartBody[data-hl="4"] .wd-s[data-i="4"] { opacity: 1; }
.wd-v { font-size: 22px; font-weight: 600; fill: var(--text-strong); text-anchor: middle; font-family: var(--font); }
.wd-u { font-size: 10.5px; fill: var(--text-3); text-anchor: middle; font-family: var(--font); }
.wd figcaption { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 14px; color: var(--text-strong); }
.wd figcaption .sw { margin-bottom: 4px; }
.wd figcaption b { font-weight: 600; }
.wd figcaption small { font-size: 12.5px; color: var(--text-2); }
.wd-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.wart-tbl tbody td:first-child { white-space: nowrap; cursor: default; }
.wart-tbl tbody tr { transition: background-color .15s var(--ease); }
.wart-tbl tbody tr.hl td { background: var(--surface-2); color: var(--text-strong); }
.wart-tbl th .sw, .wart-ref th .sw { margin-right: 4px; vertical-align: -1px; }
.wart-tbl td, .wart-ref td { font-variant-numeric: tabular-nums; }
.wart-facts { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-2); }
.wart-facts li { padding-left: 14px; position: relative; line-height: 1.45; }
.wart-facts li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.wart-facts b { color: var(--text-strong); font-weight: 600; }
.wart-more { margin-top: 1rem !important; }
.wart-more .mdl-note { margin-top: .5rem; }
.wart-ref td small { display: block; font-size: 11.5px; color: var(--text-3); white-space: normal; }
.wart-ref .wart-own td { background: var(--surface-2); font-weight: 500; color: var(--text-strong); }

/* ---------- Thresholds ---------- */
.thresholds { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .625rem; }
.th { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .875rem 1rem; background: var(--gf-silver-light); }
.th .t-label { font-size: 13px; color: var(--text-2); }
.th .t-value { font-size: 1.125rem; font-weight: 500; margin-top: 2px; color: var(--text-strong); }
.th .t-sub { font-size: 12.5px; color: var(--text-2); margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.th .t-sub.ok { color: var(--good); }
.th .t-sub.no { color: var(--warn); }

/* ---------- Tables ---------- */
details.more { margin-top: 12px; }
details.more:first-child { margin-top: 0; }
details.more > summary { cursor: pointer; font-weight: 500; font-size: 15px; padding: 4px 0; color: var(--text-strong); }
details.more > summary:hover { color: var(--gf-dark-flash); }
details.more > summary::marker { color: var(--gf-balanced); }
/* Horizontal scrollbare Tabellen: Schatten am Rand zeigen, dass es weitergeht */
.table-wrap {
  overflow-x: auto; margin-top: 8px;
  background:
    linear-gradient(to right, var(--surface) 30%, transparent) left center / 40px 100% no-repeat local,
    linear-gradient(to left, var(--surface) 30%, transparent) right center / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, var(--scroll-shadow, rgba(0, 0, 0, .16)), transparent) left center / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, var(--scroll-shadow, rgba(0, 0, 0, .16)), transparent) right center / 12px 100% no-repeat scroll;
}
.tbl thead tr + tr th { text-align: right; }
.tbl th.grp { text-align: center; font-size: 12px; color: var(--text-2); font-weight: 600; }
.tbl .sep { border-left: 1px solid var(--border); }
.tbl .yr-sub { display: block; font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
#yearTable td, #yearTable th { padding: 8px 6px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { padding: 8px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; white-space: normal; }
.tbl thead th { font-size: 12px; color: var(--text-2); font-weight: 500; }
.tbl tfoot td { font-weight: 600; border-bottom: 0; border-top: 2px solid var(--border); color: var(--text-strong); }
.tbl .pos { color: var(--good); }
.tbl .neg { color: var(--bad); }
.tbl th .sw { margin-right: 4px; vertical-align: -1px; }

/* ---------- CTA (dunkelgrüne Karte mit Flash-Button) ---------- */
.cta { background: var(--gf-dark); color: #fff; border: 1px solid var(--gf-dark-flash); }
.cta h2 { font-size: 1.25rem; color: #fff; }
.cta p { margin: .5rem 0 1.25rem; color: var(--gf-silver); font-size: 14px; line-height: 1.6; }
.cta .cta-contact { margin-top: 1rem; font-size: 14px; color: var(--gf-silver); display: flex; gap: 16px; flex-wrap: wrap; }
.cta .cta-contact a { color: var(--gf-silver); }
.cta .cta-contact a:hover { color: var(--gf-flash); }

/* ---------- Footer (auf dunklem Grund) ---------- */
.footer { border-top: 1px solid var(--gf-white-a15); padding: 1.5rem 0 96px; color: var(--gf-silver-medium); font-size: 13px; line-height: 1.6; }
.footer a { color: var(--gf-silver); }
.footer a:hover { color: var(--gf-flash); }
.disclaimer { max-width: 900px; margin: 0 0 10px; }
.foot-links a { color: var(--gf-silver); }
.sources > summary { cursor: pointer; color: var(--gf-silver); font-weight: 500; }
.sources > summary::marker { color: var(--gf-flash); }

/* ---------- Tooltip / Toast ---------- */
.tip {
  position: fixed; z-index: 100; max-width: 320px; background: var(--gf-ultra-dark); color: var(--gf-silver-ultra-light); padding: 10px 12px;
  border: 1px solid var(--gf-dark-flash); border-radius: var(--radius-sm); font-size: 13px; line-height: 1.5; box-shadow: var(--shadow-md);
}
.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(20px); background: var(--gf-flash); color: var(--gf-ultra-dark);
  padding: 10px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: .25s; z-index: 101;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Mobile bar ---------- */
.mobilebar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; align-items: center; gap: 10px;
  background: var(--gf-dark); border: 1px solid var(--gf-dark-flash); border-radius: var(--radius-sm); padding: 10px 14px; text-decoration: none;
  color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.mobilebar .mb-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mobilebar .mb-label { font-size: 12px; color: var(--gf-silver); line-height: 1.35; }
.mobilebar .mb-value { font-weight: 600; font-size: 15px; line-height: 1.3; }
.mobilebar .mb-totals { display: none; font-size: 12.5px; line-height: 1.5; gap: 2px 12px; flex-wrap: wrap; justify-content: flex-end; }
.mobilebar .mb-totals span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.mobilebar .mb-totals b { font-weight: 600; }
.mobilebar .mb-go { font-size: 13px; font-weight: 500; color: var(--gf-flash); white-space: nowrap; }
.mobilebar { transition: opacity .2s, transform .2s, border-color .3s; }
.mobilebar.hidden { opacity: 0; pointer-events: none; transform: translateY(20px); }
.mobilebar.bump { border-color: var(--good); }
/* Desktop: Leiste unter der Ergebnisspalte (Position per JS exakt an der Spalte ausgerichtet) */
@media (min-width: 1080px) {
  .mobilebar {
    left: auto; right: 24px; bottom: 16px; width: min(560px, 42vw); padding: 12px 18px;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main go" "tot tot"; gap: 8px 16px; align-items: center;
  }
  .mobilebar .mb-main { grid-area: main; flex-direction: row; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .mobilebar .mb-value { order: -1; font-size: 16px; }
  .mobilebar .mb-go { grid-area: go; }
  .mobilebar .mb-totals { grid-area: tot; display: flex; justify-content: flex-start; gap: 2px 18px; padding-top: 8px; border-top: 1px solid var(--border); }
}

.print-report { display: none; }
[hidden] { display: none !important; }
input[aria-invalid="true"] { outline: 2px solid var(--bad); background: var(--bad-bg); }
.numbox:has(input[aria-invalid="true"]) { border-color: var(--bad); }
.field-error { display: block; color: var(--bad); font-size: 12.5px; margin-top: 4px; }
.field-error:empty { display: none; }
.model-note { font-size: 13px; color: var(--gf-silver-medium); margin: 0 0 10px; max-width: 768px; line-height: 1.6; }
.sources { font-size: 13px; color: var(--gf-silver-medium); margin: 10px 0; }

/* ---------- Einbettung per iframe (?embed=1 oder automatisch im iframe) ---------- */
html.embed .topbar { position: static; border-bottom: 0; background: transparent; }
html.embed .brand { visibility: hidden; }
html.embed .topbar-inner { min-height: 52px; }
html.embed .hero { padding-top: .5rem; }
html.embed .mobilebar { display: none; }
html.embed .foot-links { display: none; }
html.embed .footer { padding-bottom: 1.5rem; }
html.embed .toast { top: 64px; bottom: auto; transform: translateX(-50%) translateY(-12px); }
html.embed .toast.show { transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cmp-bar, .seg, .preset, .mode, .btn, .toast { transition: none; }
  .intro-arrow { animation: none; }
  .road *, .road *::before { transition: none !important; animation: none !important; }
}

/* ---------- Druck / PDF: eigener A4-Bericht ----------
   Im Druck wird ausschließlich #printReport ausgegeben (aufgebaut in js/app.js → renderPrint):
   je Thema eine A4-Seite statt der umgefärbten Bildschirmkarten. Maße in mm/pt, Inhaltsbreite 182 mm. */
@media print {
  @page {
    size: A4 portrait; margin: 12mm 14mm 13mm;
    @bottom-right { content: "Seite " counter(page) " von " counter(pages); font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif; font-size: 7.5pt; color: #66736f; }
  }
  html, body { background: #fff !important; }
  body { margin: 0; color: #13241f; }
  body > :not(.print-report) { display: none !important; }

  .print-report {
    display: block; color: #13241f; font: 400 9pt/1.45 var(--font); font-variant-numeric: tabular-nums;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
    /* Tokens für die wiederverwendeten Diagrammklassen (.chart …) */
    --surface: #fff; --grid: #e3e9e7; --border: #cfd9d5; --text-2: #5a6a65; --text-3: #66736f; --text-strong: #0a1714;
    --series-d: #6f808b; --series-l: #5a6bd6; --series-e: #009e4f;
  }
  .pr-page { break-after: page; }
  .pr-page.pr-last { break-after: auto; }
  .print-report h1, .print-report h2, .print-report h3 { break-after: avoid; }
  .print-report .sw { width: 2.4mm; height: 2.4mm; border-radius: .6mm; margin-right: 1.4mm; vertical-align: -.15mm; }

  /* Kopfzeile je Seite */
  .pr-head {
    display: flex; align-items: center; gap: 3mm; margin-bottom: 6mm; padding: 2.6mm 4mm;
    background: #00211e; color: #fff; border-radius: 2mm;
  }
  .pr-logo { height: 4.2mm; width: auto; display: block; }
  .pr-logo-txt { font-size: 10pt; }
  .pr-prod { font-size: 8.5pt; color: #bacad4; padding-left: 3mm; border-left: .25mm solid rgba(255, 255, 255, .3); }
  .pr-sec { margin-left: auto; font-size: 8.5pt; font-weight: 600; color: #9ff55d; }

  /* Überschriften und Kleintext */
  .pr-h2 { font-size: 12pt; font-weight: 600; color: #00211e; margin: 7mm 0 1mm; }
  .pr-head + .pr-h2 { margin-top: 0; }
  .pr-h3 { font-size: 9.5pt; font-weight: 600; color: #00211e; margin: 5mm 0 2mm; }
  .pr-sub { margin: 0 0 2.5mm; font-size: 8.5pt; color: #5a6a65; }
  .pr-note { margin: 1.5mm 0 0; font-size: 7.5pt; color: #66736f; }

  /* Seite 1: Titel, Eckdaten, Ergebnis */
  .pr-title h1 { margin: 0 0 1mm; font-size: 18pt; font-weight: 600; letter-spacing: -.01em; color: #00211e; }
  .pr-title p { margin: 0; font-size: 9pt; color: #5a6a65; }
  .pr-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5mm 5mm; margin: 4mm 0 5mm; padding: 3mm 4mm; background: #f3f6f5; border-radius: 2mm; }
  .pr-meta dt { font-size: 7pt; text-transform: uppercase; letter-spacing: .05em; color: #66736f; }
  .pr-meta dd { margin: 0; font-weight: 600; color: #0a1714; }
  .pr-verdict {
    display: flex; align-items: center; justify-content: space-between; gap: 6mm; padding: 4.5mm 5mm;
    background: #073d2b; color: #fff; border-radius: 2.5mm; break-inside: avoid;
  }
  .pr-verdict h2 { margin: 1.8mm 0 0; font-size: 13pt; font-weight: 600; color: #fff; }
  .pr-big { text-align: right; flex: none; }
  .pr-big b { display: block; font-size: 21pt; font-weight: 600; line-height: 1.1; color: #9ff55d; }
  .pr-big span { font-size: 8.5pt; color: #bacad4; }
  .pr-badge { display: inline-block; padding: .5mm 2.2mm; border-radius: 10mm; font-size: 7.5pt; font-weight: 600; background: #e7f6ec; color: #037045; }
  .pr-badge.warn { background: #fdf4d9; color: #8a5a00; }
  .pr-verdict .pr-badge { background: rgba(159, 245, 93, .16); color: #9ff55d; }
  .pr-verdict.warn .pr-badge { background: rgba(240, 200, 70, .18); color: #f0c846; }

  .pr-bars { display: grid; gap: 2.2mm; }
  .pr-bar-row { display: grid; grid-template-columns: 30mm 1fr 25mm 25mm; align-items: center; gap: 3mm; }
  .pr-bar-l { font-weight: 600; color: #0a1714; }
  .pr-bar-row b { text-align: right; font-weight: 600; color: #0a1714; }
  .pr-bar-row small { text-align: right; font-size: 8pt; color: #5a6a65; }
  .pr-bar-row small.good { color: #037045; font-weight: 600; }
  .pr-track { display: block; height: 4mm; background: #edf1f0; border-radius: 1mm; overflow: hidden; }
  .pr-bar { display: block; height: 100%; border-radius: 1mm; }
  .pr-bar.d { background: var(--series-d); }
  .pr-bar.l { background: var(--series-l); }
  .pr-bar.e { background: var(--series-e); }

  .pr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 7mm; }
  .pr-cols > div { min-width: 0; }
  .pr-dcell { text-align: left !important; }
  .pr-dtrack { display: inline-block; width: 20mm; height: 2.6mm; margin-right: 2mm; vertical-align: -.3mm; background: #edf1f0; border-radius: .8mm; overflow: hidden; }
  .pr-range { padding: 3mm; border: .3mm solid #e3e9e7; border-radius: 2mm; break-inside: avoid; }
  .pr-range p { margin: 1.6mm 0 0; font-size: 8pt; color: #3c4b47; }
  .pr-meter { position: relative; height: 3mm; margin-top: 2.5mm; background: #edf1f0; border-radius: 1mm; }
  .pr-m-s, .pr-m-w { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 1mm; background: var(--series-e); }
  .pr-m-s { opacity: .3; }
  .pr-meter i { position: absolute; top: -1mm; bottom: -1mm; width: .5mm; background: #0a1714; transform: translateX(-50%); }
  .pr-tips { margin: 0; padding-left: 4mm; }
  .pr-tips li { margin-bottom: 1.6mm; font-size: 8pt; break-inside: avoid; }

  /* Tabellen */
  .pr-tbl { width: 100%; border-collapse: collapse; font-size: 8.5pt; }
  .pr-tbl th, .pr-tbl td { padding: 1.4mm 2mm; text-align: right; vertical-align: top; white-space: nowrap; border-bottom: .25mm solid #e3e9e7; }
  .pr-tbl th:first-child, .pr-tbl td:first-child { text-align: left; white-space: normal; padding-left: 0; }
  .pr-tbl th:last-child, .pr-tbl td:last-child { padding-right: 0; }
  .pr-tbl thead th { font-size: 7.5pt; font-weight: 600; color: #5a6a65; border-bottom: .4mm solid #cfd9d5; }
  .pr-tbl tfoot td { font-weight: 600; color: #0a1714; border-top: .4mm solid #cfd9d5; border-bottom: 0; }
  .pr-tbl tfoot tr + tr td { border-top: 0; }
  .pr-tbl td small { display: block; font-size: 7pt; font-weight: 400; color: #66736f; }
  .pr-tbl tr { break-inside: avoid; }
  .pr-tbl thead { display: table-header-group; }
  .pr-tbl .pos { color: #037045; }
  .pr-tbl .neg { color: #b3322c; }
  .pr-kpi td:first-child, .pr-cost td:first-child { width: 34%; }
  .pr-cost td { padding-top: 1.8mm; padding-bottom: 1.8mm; }
  .pr-year { font-size: 8pt; }
  .pr-year th, .pr-year td { padding: 1.1mm 1.6mm; }
  .pr-year th.grp { text-align: center; }
  .pr-year thead tr + tr th { text-align: right; }
  .pr-year .sep { border-left: .25mm solid #cfd9d5; }
  .pr-year .yr-sub { display: block; font-size: 6.8pt; color: #66736f; }
  .pr-sens td:first-child { width: 55%; }

  /* Diagramm */
  .pr-legend { display: flex; gap: 5mm; margin-bottom: 1mm; font-size: 8pt; color: #5a6a65; }
  .pr-chart { margin-bottom: 1mm; break-inside: avoid; }
  .pr-chart svg { width: 100%; height: auto; }

  /* Schwellenwerte (Markup aus renderThresholds) */
  .pr-th { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5mm; }
  .pr-th .th { padding: 2.5mm 3mm; background: #f3f6f5; border: .3mm solid #e3e9e7; border-radius: 2mm; break-inside: avoid; }
  .pr-th .t-label { font-size: 7.5pt; color: #5a6a65; }
  .pr-th .t-value { margin-top: .6mm; font-size: 10pt; font-weight: 600; color: #0a1714; }
  .pr-th .t-sub { display: block; margin-top: .6mm; font-size: 7.5pt; color: #5a6a65; }
  .pr-th .t-sub.ok { color: #037045; }
  .pr-th .t-sub.no { color: #8a5a00; }
  .pr-wd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6mm; margin: 2mm 0 4mm; }
  .pr-wd figure { margin: 0; text-align: center; font-size: 8.5pt; }
  .pr-wd svg { width: 34mm; height: 34mm; display: block; margin: 0 auto 1.5mm; }
  .pr-wd .wd-s { stroke: #fff; stroke-width: 2; }
  .pr-wd .wd-v { font-size: 22px; font-weight: 600; fill: #0a1714; text-anchor: middle; }
  .pr-wd .wd-u { font-size: 10.5px; fill: #66736f; text-anchor: middle; }
  .pr-tbl .wd-key { display: inline-block; width: 2.5mm; height: 2.5mm; border-radius: .6mm; margin-right: 1.5mm; vertical-align: -.2mm; }

  /* Annahmen */
  .pr-ass { font-size: 8pt; }
  .pr-ass th, .pr-ass td { padding: .9mm 2mm; text-align: left; }
  .pr-ass td:first-child { width: 40%; }
  .pr-ass td small { display: inline; margin-left: 1mm; }
  .pr-ass .pr-grp th { padding-top: 2.4mm; font-size: 8pt; font-weight: 600; color: #037045; border-bottom: .4mm solid #cfd9d5; }
  .pr-ass .pr-grp { break-after: avoid; }
  .pr-legal { margin-top: 2mm; font-size: 7.5pt; color: #5a6a65; }
  .pr-legal p { margin: 0 0 1.5mm; }
  .pr-legal .pr-h3 { margin-top: 4mm; }
  .pr-contact { display: grid; gap: .6mm; margin-top: 4mm; padding: 3mm 4mm; background: #f3f6f5; border-left: 1mm solid #009e4f; border-radius: 1mm; break-inside: avoid; }
}

/* ============================================================
   DESIGNS: White Mode und Dark Mode (Umschalter oben rechts)
   html[data-theme="light"] = White Mode, html[data-theme="dark"] = Dark Mode; html trägt
   immer die Klasse theme-new. Standard ist die Systemeinstellung, die Wahl wird gespeichert.
   Selektoren mit :where(html.theme-new) behalten die Spezifität der Basisregeln und
   gewinnen über die Reihenfolge. Nur Bildschirm: Druck/PDF nutzt die Druckregeln oben.
   ============================================================ */
@media screen {
  html[data-theme="light"] {
    color-scheme: light;
    --n-bg: #f6f8f7;
    --n-glow: rgba(159, 245, 93, .28);
    --n-surface: #ffffff;
    --n-surface-2: #f3f6f5;
    --n-surface-3: #e9efed;
    --n-track: #dfe6e3;
    --n-border: #e3e9e7;
    --n-border-strong: #cfd9d5;
    --n-text: #13241f;
    --n-text-strong: #0a1714;
    --n-text-2: #5a6a65;
    --n-text-3: #66736f;  /* ≥ 4,5:1 auf Weiß und surface-2 (WCAG AA für Kleingedrucktes) */
    --n-scroll-shadow: rgba(15, 30, 25, .18);
    --n-accent: #037045;
    --n-accent-line: #009e4f;
    --n-accent-soft: #edf9e6;
    --n-flash: #9ff55d;
    --n-flash-hover: #8eea4a;
    --n-flash-ink: #00211e;
    --n-dot: #67d645;
    --n-series-d: #7d8d97;
    --n-series-e: #009e4f;
    --n-series-l: #5a6bd6;
    --n-grid: #edf1f0;
    --n-good: #037045; --n-good-bg: #e7f6ec;
    --n-warn: #8a5a00; --n-warn-bg: #fdf4d9;
    --n-bad: #b3322c;  --n-bad-bg: #fdeceb;
    --n-focus: #5a6bd6;
    --n-topbar: rgba(255, 255, 255, .8);
    --n-shadow-sm: 0 1px 2px rgba(15, 30, 25, .05);
    --n-shadow: 0 1px 2px rgba(15, 30, 25, .04), 0 6px 24px rgba(15, 30, 25, .05);
    --n-shadow-lg: 0 2px 6px rgba(15, 30, 25, .04), 0 18px 48px rgba(15, 30, 25, .1);
    --n-summary-bg: linear-gradient(180deg, #effbe6 0%, #ffffff 58%);
    --n-tip-bg: #ffffff;
  }
  html[data-theme="dark"] {
    color-scheme: dark;
    --n-bg: #0b100f;
    --n-glow: rgba(159, 245, 93, .09);
    --n-surface: #121917;
    --n-surface-2: #19221f;
    --n-surface-3: #222d2a;
    --n-track: #2b3734;
    --n-border: #222d2a;
    --n-border-strong: #34433f;
    --n-text: #e3eae8;
    --n-text-strong: #ffffff;
    --n-text-2: #9cada8;
    --n-text-3: #84958f;
    --n-scroll-shadow: rgba(0, 0, 0, .6);
    --n-accent: #9ff55d;
    --n-accent-line: #67d645;
    --n-accent-soft: rgba(159, 245, 93, .1);
    --n-flash: #9ff55d;
    --n-flash-hover: #b6f982;
    --n-flash-ink: #07130f;
    --n-dot: #9ff55d;
    --n-series-d: #8d9ba5;
    --n-series-e: #9ff55d;
    --n-series-l: #9fb2f5;
    --n-grid: rgba(255, 255, 255, .07);
    --n-good: #9ff55d; --n-good-bg: rgba(159, 245, 93, .12);
    --n-warn: #f0c846; --n-warn-bg: rgba(240, 200, 70, .14);
    --n-bad: #ff9d8f;  --n-bad-bg: rgba(255, 157, 143, .14);
    --n-focus: #afc5fa;
    --n-topbar: rgba(11, 16, 15, .78);
    --n-shadow-sm: none;
    --n-shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --n-shadow-lg: 0 16px 48px rgba(0, 0, 0, .5);
    --n-summary-bg: linear-gradient(180deg, rgba(159, 245, 93, .08) 0%, rgba(159, 245, 93, 0) 60%), #121917;
    --n-tip-bg: #1b2522;
  }

  /* App-Tokens neu belegen – auch in den sonst dunklen Kontexten (auf body, weil --brand inline am html-Element steht) */
  :where(html.theme-new) body,
  :where(html.theme-new) .summary, :where(html.theme-new) .cta,
  :where(html.theme-new) .mobilebar, :where(html.theme-new) .chart-tip {
    --bg: var(--n-bg); --surface: var(--n-surface); --surface-2: var(--n-surface-2);
    --border: var(--n-border); --grid: var(--n-grid);
    --text: var(--n-text); --text-strong: var(--n-text-strong); --text-2: var(--n-text-2); --text-3: var(--n-text-3);
    --brand: var(--n-accent); --brand-soft: var(--n-accent-soft); --brand-line: var(--n-accent-line);
    --series-d: var(--n-series-d); --series-e: var(--n-series-e); --series-l: var(--n-series-l);
    --good: var(--n-good); --good-bg: var(--n-good-bg);
    --warn: var(--n-warn); --warn-bg: var(--n-warn-bg);
    --bad: var(--n-bad);   --bad-bg: var(--n-bad-bg);
    --shadow: var(--n-shadow);
    --focus: 2px solid var(--n-focus);
    --scroll-shadow: var(--n-scroll-shadow);
  }

  /* Grund & Topbar */
  html.theme-new { background: var(--n-bg); }
  :where(html.theme-new) body {
    color: var(--n-text);
    background: radial-gradient(1100px 520px at 8% -160px, var(--n-glow), transparent 70%) no-repeat, var(--n-bg);
  }
  :where(html.theme-new) .topbar {
    background: var(--n-topbar); border-bottom-color: var(--n-border);
    -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  }
  :where(html.theme-new) .brand { color: var(--n-text-strong); }
  :where(html.theme-new) .brand-text small { color: var(--n-text-2); }
  :where(html.theme-new) .brand-logo.has-img + .brand-text { border-left-color: var(--n-border-strong); }
  :where(html.theme-new) .brand-logo.has-img + .brand-text small { color: var(--n-text-strong); }
  :where(html[data-theme="light"]) .brand-logo.has-img img { filter: brightness(0); opacity: .88; }
  :where(html.theme-new) .btn-ghost { color: var(--n-text-2); }
  :where(html.theme-new) .btn-ghost:hover,
  :where(html.theme-new) .btn-ghost[aria-expanded="true"] { background: var(--n-surface-3); color: var(--n-text-strong); }
  :where(html.theme-new) .btn-primary, :where(html.theme-new) .cta .btn {
    background: var(--n-flash); border-color: var(--n-flash); color: var(--n-flash-ink); border-radius: 999px;
  }
  :where(html.theme-new) .btn-primary:hover, :where(html.theme-new) .cta .btn:hover {
    background: var(--n-flash-hover); border-color: var(--n-flash-hover); color: var(--n-flash-ink);
  }

  /* Aktionsmenü (mobil) */
  :where(html.theme-new) .act-menu { background: var(--n-surface); border-color: var(--n-border); box-shadow: var(--n-shadow-lg); }
  @media (min-width: 641px) { :where(html.theme-new) .act-menu { background: none; border: 0; box-shadow: none; } }
  :where(html.theme-new) .act-menu .btn { color: var(--n-text); }

  /* Abschluss */
  :where(html.theme-new) .finale h2 { color: var(--n-text-strong); }
  :where(html.theme-new) .finale p { color: var(--n-text-2); }

  /* Hero */
  :where(html.theme-new) .hero { padding-bottom: 1rem; }
  :where(html.theme-new) .tagline { color: var(--n-text-2); }
  :where(html.theme-new) .tagline::before { background: var(--n-dot); box-shadow: 0 0 0 4px var(--n-accent-soft); }
  :where(html.theme-new) .hero-title { color: var(--n-text-strong); font-weight: 600; letter-spacing: -.02em; }
  @media (min-width: 992px) { :where(html.theme-new) .hero-title { font-size: 2.625rem; line-height: 1.15; } }
  :where(html.theme-new) .intro h1 { color: var(--n-text-strong); font-weight: 600; letter-spacing: -.03em; }
  :where(html.theme-new) .intro-go { color: var(--n-text); }
  :where(html.theme-new) .intro-go:hover { color: var(--n-accent); }
  :where(html.theme-new) .intro-arrow { background: var(--n-flash); color: var(--n-flash-ink); box-shadow: 0 0 0 8px var(--n-accent-soft); }
  :where(html.theme-new) .intro-go:hover .intro-arrow { background: var(--n-flash-hover); }
  :where(html.theme-new) .lead { color: var(--n-text-2); }
  :where(html.theme-new) .model-note { color: var(--n-text-3); }

  /* Modus-Umschalter */
  :where(html.theme-new) .mode { background: var(--n-surface); border-color: var(--n-border); color: var(--n-text); box-shadow: var(--n-shadow-sm); border-radius: 16px; }
  :where(html.theme-new) .mode:hover { background: var(--n-surface); border-color: var(--n-border-strong); }
  :where(html.theme-new) .mode[aria-selected="true"] {
    background: var(--n-accent-soft); border-color: var(--n-accent-line); color: var(--n-text-strong);
    box-shadow: inset 0 0 0 1px var(--n-accent-line);
  }
  :where(html.theme-new) .mode small, :where(html.theme-new) .mode[aria-selected="true"] small { color: var(--n-text-2); }
  :where(html.theme-new) .mode-ic { background: var(--n-surface-2); color: var(--n-text-2); }
  :where(html.theme-new) .mode[aria-selected="true"] .mode-ic { background: var(--n-flash); color: var(--n-flash-ink); }

  /* Karten */
  :where(html.theme-new) .card { border-radius: 24px; }
  :where(html.theme-new) .q-num, :where(html.theme-new) .group > summary .num { background: var(--n-accent-soft); color: var(--n-accent); }

  /* Auswahl-Kacheln, Stepper, Buttons */
  :where(html.theme-new) .seg, :where(html.theme-new) .preset { background: var(--n-surface); border-color: var(--n-border-strong); color: var(--n-text); }
  :where(html.theme-new) .seg:hover, :where(html.theme-new) .preset:hover { border-color: var(--n-accent-line); }
  :where(html.theme-new) .seg[aria-pressed="true"], :where(html.theme-new) .seg[aria-checked="true"], :where(html.theme-new) .preset[aria-checked="true"] {
    background: var(--n-accent-soft); border-color: var(--n-accent-line); color: var(--n-text-strong);
    box-shadow: inset 0 0 0 1px var(--n-accent-line);
  }
  :where(html.theme-new) .seg small, :where(html.theme-new) .preset small,
  :where(html.theme-new) .seg[aria-pressed="true"] small, :where(html.theme-new) .seg[aria-checked="true"] small, :where(html.theme-new) .preset[aria-checked="true"] small { color: var(--n-text-2); }
  :where(html.theme-new) .preset svg { color: var(--n-text-3); }
  :where(html.theme-new) .preset[aria-checked="true"] svg { color: var(--n-accent); }
  :where(html.theme-new) .stepper { border-color: var(--n-border-strong); background: var(--n-surface); }
  :where(html.theme-new) .stepper button { color: var(--n-text); }
  :where(html.theme-new) .stepper button:hover { background: var(--n-accent-soft); color: var(--n-accent); }
  :where(html.theme-new) .stepper output { color: var(--n-text-strong); }
  :where(html.theme-new) .btn-outline, :where(html.theme-new) .btn-small { border-color: var(--n-border-strong); color: var(--n-text); }
  :where(html.theme-new) .btn-outline:hover, :where(html.theme-new) .btn-small:hover {
    background: var(--n-surface-3); border-color: var(--n-border-strong); color: var(--n-text-strong);
  }
  :where(html.theme-new) .assume-sum:hover h2, :where(html.theme-new) .group > summary:hover h2,
  :where(html.theme-new) details.more > summary:hover { color: var(--n-accent); }
  :where(html.theme-new) .backgrounds > summary:hover .chev { stroke: var(--n-accent); }
  :where(html.theme-new) details.more > summary::marker { color: var(--n-accent-line); }

  /* Felder */
  :where(html.theme-new) .field-head label, :where(html.theme-new) .field-head .lbl { color: var(--n-text); }
  :where(html.theme-new) .info { border-color: var(--n-border-strong); background: var(--n-surface-2); color: var(--n-text-2); }
  :where(html.theme-new) .info:hover, :where(html.theme-new) .info:focus-visible { border-color: var(--n-focus); color: var(--n-focus); }
  :where(html.theme-new) .numbox { border-color: var(--n-border-strong); background: var(--n-surface); }
  :where(html.theme-new) .numbox:hover { border-color: var(--n-text-3); }
  :where(html.theme-new) .numbox input { color: var(--n-text-strong); }
  :where(html.theme-new) .numbox .unit { color: var(--n-text-2); }
  :where(html.theme-new) .side { background: var(--n-surface-2); }
  :where(html.theme-new) .side .numbox { background: var(--n-surface); }
  :where(html.theme-new) .side-tag { color: var(--n-text-2); }

  /* Schieberegler */
  :where(html.theme-new) input[type="range"] { --c: var(--n-accent-line); }
  :where(html.theme-new) input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--c) 0 var(--p), var(--n-track) var(--p) 100%); }
  :where(html.theme-new) input[type="range"]::-moz-range-track { background: var(--n-track); }
  :where(html.theme-new) input[type="range"]::-webkit-slider-thumb { border-color: var(--n-surface); }
  :where(html.theme-new) input[type="range"]::-moz-range-thumb { border-color: var(--n-surface); }
  :where(html.theme-new) .side input[type="range"]::-webkit-slider-thumb { border-color: var(--n-surface-2); }
  :where(html.theme-new) .side input[type="range"]::-moz-range-thumb { border-color: var(--n-surface-2); }
  :where(html.theme-new) input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--c), 0 0 0 4px var(--n-focus); }
  :where(html.theme-new) input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px var(--c), 0 0 0 4px var(--n-focus); }

  /* Ergebnis auf einen Blick */
  :where(html.theme-new) .summary { background: var(--n-summary-bg); border-color: var(--n-border); box-shadow: var(--n-shadow-lg); }
  :where(html.theme-new) .summary .vnote { border-color: var(--n-border); color: var(--n-text-2); }
  :where(html.theme-new) .summary .linkbtn { color: var(--n-accent); }
  :where(html.theme-new) .summary .info { background: transparent; border-color: var(--n-border-strong); color: var(--n-text-2); }
  :where(html.theme-new) .summary .info:hover, :where(html.theme-new) .summary .info:focus-visible { border-color: var(--n-accent); color: var(--n-accent); }
  :where(html.theme-new) .cmp-track { background: var(--n-surface-3); }

  /* Ergebnisbereich */
  :where(html.theme-new) .drv-eside .drv-v { color: var(--n-good); }
  :where(html.theme-new) .lane-track::before { background: var(--n-surface-2); }
  :where(html.theme-new) .mdl-tag.rec { background: var(--n-accent-soft); border-color: var(--n-accent-line); color: var(--n-accent); }
  :where(html.theme-new) .road-goal { border-left-color: var(--n-text-strong); }
  :where(html.theme-new) .th { background: var(--n-surface-2); border-color: var(--n-border); }
  :where(html.theme-new) .chart-tip { background: var(--n-tip-bg); border-color: var(--n-border); box-shadow: var(--n-shadow-lg); }
  :where(html.theme-new) .tip { background: var(--n-tip-bg); color: var(--n-text); border-color: var(--n-border); box-shadow: var(--n-shadow-lg); }

  /* CTA */
  :where(html.theme-new) .cta { background: var(--n-accent-soft); color: var(--n-text); border-color: var(--n-border); }
  :where(html.theme-new) .cta h2 { color: var(--n-text-strong); }
  :where(html.theme-new) .cta p, :where(html.theme-new) .cta .cta-contact, :where(html.theme-new) .cta .cta-contact a { color: var(--n-text-2); }
  :where(html.theme-new) .cta .cta-contact a:hover { color: var(--n-accent); }

  /* Footer, Toast, mobile Leiste */
  :where(html.theme-new) .footer { border-top-color: var(--n-border); color: var(--n-text-3); }
  :where(html.theme-new) .footer a, :where(html.theme-new) .foot-links a, :where(html.theme-new) .sources > summary { color: var(--n-text-2); }
  :where(html.theme-new) .footer a:hover { color: var(--n-accent); }
  :where(html.theme-new) .sources { color: var(--n-text-3); }
  :where(html.theme-new) .sources > summary::marker { color: var(--n-accent-line); }
  :where(html.theme-new) .toast { box-shadow: var(--n-shadow-lg); }
  :where(html.theme-new) .mobilebar { background: var(--n-surface); border-color: var(--n-border); color: var(--n-text); box-shadow: var(--n-shadow-lg); }
  :where(html.theme-new) .mobilebar .mb-label, :where(html.theme-new) .mobilebar .mb-totals { color: var(--n-text-2); }
  :where(html.theme-new) .mobilebar .mb-totals b { color: var(--n-text-strong); }
  :where(html.theme-new) .mobilebar.bump { border-color: var(--n-accent-line); }
  :where(html.theme-new) .mobilebar .mb-go { color: var(--n-accent); }
}

/* ============================================================
   FAHRZEUGVERGLEICH: Kachel am Seitenende + eigene Ansicht (#market)
   Nutzt die App-Tokens (in den Designs auf body umbelegt), --n-* nur mit Rückfallwert.
   ============================================================ */
@media screen {
  /* Abschlusszeile: „Genauer rechnen?“ und Fahrzeugvergleich nebeneinander */
  .finale-row { display: grid; gap: 1.25rem; padding-bottom: 3.5rem; align-items: stretch; }
  .finale-row .finale { padding-bottom: 0; }
  @media (min-width: 860px) {
    .finale-row { grid-template-columns: 1fr 1fr; max-width: 1080px; }
    body.mode-detail .finale-row { grid-template-columns: minmax(0, 560px); justify-content: center; }
  }
  .finale-row > .finale:not(.mk-tile) { justify-content: center; padding: 1.75rem 1.25rem; }

  .mk-tile {
    position: relative; overflow: hidden; padding: 1.75rem 1.5rem; border-radius: var(--radius);
    background: var(--n-summary-bg, var(--surface)); border: 1.5px solid var(--brand-line);
    box-shadow: 0 0 0 6px var(--brand-soft), var(--n-shadow-lg, var(--shadow-md));
  }
  .mk-tile::before {
    content: "Neu"; position: absolute; top: 14px; right: 14px; padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    background: var(--n-flash, var(--gf-flash)); color: var(--n-flash-ink, #00211e);
  }
  .mk-tile-ic {
    display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: .75rem; border-radius: 18px;
    background: var(--brand-soft); color: var(--brand);
  }
  .mk-tile-ic svg { width: 40px; height: 28px; }
  .mk-tile h2 { color: var(--text-strong); }
  .mk-tile-pts { list-style: none; margin: .75rem 0 1.5rem; padding: 0; display: grid; gap: .45rem; font-size: 15px; color: var(--text-2); }
  .finale-row .mk-tile { padding-bottom: 1.75rem; }
  .mk-tile-pts li::before { content: ""; display: inline-block; vertical-align: middle; margin: -2px .5rem 0 0; width: 7px; height: 7px; border-radius: 50%; background: var(--n-dot, var(--gf-flash-hover)); }
  .mk-tile-pts b { color: var(--text-strong); font-weight: 600; }

  /* Ansicht: ersetzt den Rechner, Kopfzeile bleibt */
  body.mk-open > :not(.topbar):not(#market):not(.tip):not(.toast):not(script) { display: none !important; }
  .market { padding-top: 1.25rem; padding-bottom: 4rem; min-height: 80vh; }
  .market[hidden] { display: none; }
  .market :focus-visible { outline: var(--focus); outline-offset: 2px; }

  .mk-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
  .mk-back {
    display: inline-flex; align-items: center; gap: .35rem; padding: .55rem 1rem .55rem .7rem; border-radius: 999px;
    border: 1px solid var(--n-border-strong, var(--border)); background: var(--surface); color: var(--text);
    font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  }
  .mk-back:hover { border-color: var(--brand-line); color: var(--brand); }
  .mk-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .mk-title h2 { margin: 0; font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; color: var(--text-strong); }
  .mk-title p { margin: .15rem 0 0; font-size: 14px; color: var(--text-2); }

  .mk-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--n-dot, var(--gf-flash-hover)); box-shadow: 0 0 0 3px var(--brand-soft); flex: none; }

  /* Klassen-Tabs mit Fahrzeugsymbol */
  .mk-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1rem; }
  .mk-tab {
    position: relative; display: flex; align-items: center; justify-content: center; gap: .55rem; padding: .5rem .6rem; cursor: pointer;
    font: inherit; font-size: 13.5px; font-weight: 500; color: var(--text-2); text-align: center;
    background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px;
    transition: border-color .15s var(--ease), color .15s var(--ease);
  }
  .mk-tab-ic svg { display: block; width: 30px; height: 20px; }
  .mk-tabs { margin-bottom: .75rem; }
  .mk-bar2 { margin-bottom: .9rem; }
  .mk-head { margin-bottom: 1rem; }
  .mk-tab:hover { color: var(--text-strong); border-color: var(--n-border-strong, var(--border)); }
  .mk-tab.on { color: var(--text-strong); border-color: var(--brand-line); background: var(--brand-soft); }
  .mk-tab.on .mk-tab-ic { color: var(--brand); }
  .mk-tab .mk-dot { position: absolute; top: 9px; right: 9px; }

  .mk-bar2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-bottom: 1.25rem; }
  .mk-segs { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); }
  .mk-seg-btn {
    padding: .45rem .95rem; border: 0; border-radius: 999px; background: none; cursor: pointer;
    font: inherit; font-size: 13.5px; font-weight: 500; color: var(--text-2);
  }
  .mk-seg-btn.on { background: var(--surface); color: var(--text-strong); box-shadow: var(--n-shadow, 0 1px 3px rgba(0,0,0,.12)); }
  .mk-ctx { display: inline-flex; align-items: center; gap: .55rem; font-size: 13px; color: var(--text-2); }

  /* Podest: Top 3 */
  /* Plätze als Zeilen übereinander: Bild links, Kennzahlen rechts untereinander */
  .mk-podium { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
  /* rechte Seite: große Ersparnis, darunter drei Kacheln */
  .mk-p .mk-stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; margin: 1rem 0 0; padding: 0; background: none; }
  .mk-hero-kpi { display: flex; flex-direction: column; gap: 1px; padding: .85rem 1.1rem; border-radius: 14px; background: var(--surface-2); }
  .mk-hero-kpi small { font-size: 12.5px; color: var(--text-2); }
  .mk-p .mk-hero-kpi b { font-size: 24px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; color: var(--text-strong); font-variant-numeric: tabular-nums; }
  .mk-hero-kpi.good { background: var(--good-bg); } .mk-hero-kpi.good b { color: var(--good); }
  .mk-hero-kpi.bad { background: var(--bad-bg); } .mk-hero-kpi.bad b { color: var(--bad); }
  .mk-p.mk-p1 .mk-hero-kpi b { font-size: 28px; }
  .mk-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
  .mk-p .mk-st { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: .7rem .85rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); min-width: 0; }
  .mk-p .mk-st svg { margin: 0 0 5px; width: 18px; height: 18px; stroke: var(--brand); }
  .mk-p .mk-st b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .mk-p .mk-st small { font-size: 12px; color: var(--text-2); }
  @media (min-width: 700px) {
    .mk-p .mk-card { flex-direction: row; }
    .mk-p .mk-img { flex: 0 0 34%; aspect-ratio: auto; min-height: 190px; }
    .mk-p1 .mk-img { flex-basis: 38%; min-height: 230px; }
    .mk-p .mk-body { padding: .9rem 1.2rem; min-width: 0; }
  }
  /* kompakt: Ersparnis + drei Kacheln in einer Reihe */
  @media (min-width: 1000px) {
    .mk-p .mk-stats { grid-template-columns: minmax(0, 1.25fr) minmax(0, 3fr); align-items: stretch; }
  }
  .mk-podium { gap: .75rem; }
  .mk-p .mk-stats { margin-top: .7rem; gap: .5rem; }
  .mk-p .mk-hero-kpi { padding: .6rem .85rem; justify-content: center; }
  .mk-p .mk-hero-kpi small { font-size: 12px; }
  .mk-p .mk-tiles { gap: .5rem; }
  .mk-p .mk-st { padding: .5rem .7rem; }
  .mk-p .mk-st svg { width: 16px; height: 16px; margin-bottom: 3px; }
  .mk-p .mk-cta { padding-top: .7rem; }
  .mk-p .mk-more { padding: .45rem .95rem; }
  @media (max-width: 699px) {
    .mk-p .mk-img { aspect-ratio: 16 / 9; }
    .mk-tiles { gap: .4rem; } .mk-p .mk-st { padding: .55rem .6rem; } .mk-p .mk-st b { font-size: 14px; }
  }
  .mk-top { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
  .mk-top .mk-more { margin-left: auto; }
  .mk-drv { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text); }
  .mk-drv .sw { width: 8px; height: 8px; }
  .mk-best { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: .5rem .9rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
  .mk-best small { font-size: 12px; color: var(--text-2); }
  .mk-best b { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 600; color: var(--text-strong); }
  @media (max-width: 699px) { .mk-best { margin-left: 0; align-items: flex-start; width: 100%; } }
  .mk-seg-btn .sw { width: 8px; height: 8px; margin-right: 6px; vertical-align: 0; }
  .mk-seg-btn small { margin-left: 5px; font-size: 11.5px; color: var(--text-3); }
  .mk-bar2 { justify-content: flex-start; }
  .mk-ctx { margin: -.5rem 0 1rem; }
  .mk-ring.sm small { font-size: 9.5px; margin-top: 0; }
  .mk-row-nm small .sw { width: 7px; height: 7px; margin-right: 5px; vertical-align: 1px; }
  .mk-tags .mk-drv { padding: 3px 10px; }
  .mk-p1 .mk-card { border: 2px solid var(--brand-line); box-shadow: 0 0 0 5px var(--brand-soft), var(--n-shadow-lg, var(--shadow-md)); }
  .mk-p1 .mk-name { font-size: 21px; }
  .mk-medal {
    display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none;
    font-size: 14px; font-weight: 700; background: var(--surface-2); color: var(--text-strong);
  }
  .mk-p1 .mk-medal { background: var(--n-flash, var(--gf-flash)); color: var(--n-flash-ink, #00211e); }
  .mk-flag { padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--warn-bg); color: var(--warn); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .mk-rank { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
  .mk-p1 .mk-rank { color: var(--brand); }
  .mk-nm { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .2rem; }
  .mk-nm > span:first-child { display: flex; flex-direction: column; min-width: 0; }
  .mk-ring.sm { width: 54px; height: 54px; }
  .mk-ring.sm b { font-size: 16px; }
  .mk-ring.sm small { font-size: 8px !important; letter-spacing: .01em; }
  .mk-p1 .mk-ring.sm { width: 60px; height: 60px; }
  .mk-p1 .mk-ring.sm b { font-size: 19px; }
  .mk-p .mk-nm { margin-top: .1rem; }
  .mk-p1 .mk-name { font-size: 19px; }
  .mk-st { display: flex; flex-direction: column; align-items: center; gap: 1px; }
  .mk-st svg { width: 18px; height: 18px; fill: none; stroke: var(--text-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 2px; }
  .mk-st small { font-size: 11.5px; color: var(--text-3); }
  .mk-cta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: 1rem; }
  .mk-cta .mk-you { margin: 0; }
  .mk-more { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--brand); }
  .mk-p .mk-more { padding: .55rem 1.1rem; border-radius: 999px; background: var(--brand-soft); transition: background .15s var(--ease); }
  .mk-p1 .mk-more { background: var(--n-flash, var(--gf-flash)); color: var(--n-flash-ink, #00211e); }
  .mk-p .mk-card:hover .mk-more { background: var(--n-flash-hover, var(--gf-flash-hover)); color: var(--n-flash-ink, #00211e); }

  /* Kompakte Übersicht: nur Top 3, kleinere Bilder und Abstände */
  .mk-bar2.compact { margin-bottom: .75rem; }
  .mk-podium { gap: .6rem; }
  .mk-p .mk-body { padding: .7rem 1rem; }
  .mk-p .mk-stats { margin-top: .5rem; }
  .mk-p .mk-hero-kpi { padding: .45rem .75rem; }
  .mk-p .mk-hero-kpi b, .mk-p.mk-p1 .mk-hero-kpi b { font-size: 20px; }
  .mk-p .mk-st { padding: .4rem .6rem; }
  .mk-p .mk-st b { font-size: 14.5px; }
  .mk-p .mk-more { padding: .35rem .85rem; }
  .mk-p1 .mk-name { font-size: 18px; }
  .mk-p1 .mk-ring.sm { width: 54px; height: 54px; }
  .mk-p1 .mk-ring.sm b { font-size: 16px; }
  @media (min-width: 700px) {
    .mk-p .mk-img { flex-basis: 26%; min-height: 140px; }
    .mk-p1 .mk-img { flex-basis: 28%; min-height: 160px; }
  }
  @media (max-width: 699px) { .mk-p .mk-img { aspect-ratio: 2 / 1; } }

  .mk-srcbox > summary { cursor: pointer; font-size: 13px; color: var(--text-3); }
  .mk-srcbox .mk-src { margin-top: .5rem; }

  .mk-card {
    display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: left; cursor: pointer; overflow: hidden;
    font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
    box-shadow: var(--n-shadow, var(--shadow)); transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
  }
  .mk-card:hover { transform: translateY(-3px); border-color: var(--brand-line); box-shadow: var(--n-shadow-lg, var(--shadow-md)); }
  .mk-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
  .mk-img img, .mk-img .mk-ph { position: absolute; inset: 0; }
  .mk-img img, .mk-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .mk-fig img { height: auto; }
  .mk-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--text-3); }
  .mk-ph svg { width: 34%; height: auto; opacity: .55; }
  .mk-body { display: flex; flex-direction: column; gap: 2px; padding: 1rem 1.1rem 1.1rem; flex: 1; }
  .mk-brand { font-size: 12px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; color: var(--text-3); }
  .mk-name { font-size: 17px; font-weight: 600; color: var(--text-strong); letter-spacing: -.01em; }
  .mk-typ { font-size: 13px; color: var(--text-2); }
  .mk-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin: .9rem 0 0; padding: .6rem .25rem; border-radius: 12px; background: var(--surface-2); }
  .mk-stats b { font-size: 15px; font-weight: 600; color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .mk-you { align-self: flex-start; margin-top: .7rem; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .mk-you.good { color: var(--good); background: var(--good-bg); }
  .mk-you.bad { color: var(--bad); background: var(--bad-bg); }
  .mk-you.neutral { color: var(--text-2); background: var(--surface-2); font-weight: 500; }
  .mk-empty { color: var(--text-2); }
  .mk-src, .mk-mini { margin: 1.25rem 0 0; font-size: 12.5px; line-height: 1.55; color: var(--text-3); }
  .mk-mini { margin-top: .75rem; }
  .mk-src a { color: inherit; }

  /* Detail */
  .mk-det { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
  .mk-det > *, .mk-hero > *, .mk-two > * { min-width: 0; }
  .market [tabindex="-1"]:focus { outline: none; }
  .mk-hero.noimg { grid-template-columns: minmax(0, 1fr) !important; padding: 1.5rem; }
  .mk-hero { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--n-shadow, var(--shadow)); }
  @media (min-width: 860px) { .mk-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); padding: 1.25rem; gap: 2rem; align-items: center; } }
  .mk-fig { margin: 0; }
  .mk-fig img, .mk-fig .mk-ph { aspect-ratio: 4 / 3; border-radius: 14px; background: var(--surface-2); }
  .mk-fig figcaption { margin-top: .4rem; font-size: 11.5px; color: var(--text-3); }
  .mk-fig figcaption a { color: inherit; }
  .mk-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
  .mk-tag { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--text-2); background: var(--surface-2); }
  .mk-dname { margin: .1rem 0 .15rem; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.1; font-weight: 600; letter-spacing: -.025em; color: var(--text-strong); }
  .mk-dname:focus { outline: none; }
  .mk-hk { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.25rem; flex-wrap: wrap; }
  .mk-ring {
    --c: var(--good); position: relative; display: grid; place-items: center; align-content: center; width: 104px; height: 104px; border-radius: 50%; flex: none;
    background: radial-gradient(closest-side, var(--surface) 80%, transparent 81%), conic-gradient(var(--c) calc(var(--p) * 1%), var(--n-track, var(--surface-2)) 0);
  }
  .mk-ring.mid { --c: var(--text-strong); } .mk-ring.lo { --c: var(--warn); }
  .mk-ring b { font-size: 30px; font-weight: 600; line-height: 1; color: var(--text-strong); font-variant-numeric: tabular-nums; }
  .mk-ring small { font-size: 11px; color: var(--text-3); margin-top: 2px; }
  .mk-pr { display: flex; flex-direction: column; gap: 2px; }
  .mk-pr small { font-size: 13px; color: var(--text-2); }
  .mk-pr b { font-size: 28px; font-weight: 600; color: var(--text-strong); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
  .mk-conf { align-self: flex-start; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; }
  .mk-conf.c-hoch { color: var(--good); background: var(--good-bg); }
  .mk-conf.c-mittel { color: var(--text-2); background: var(--surface-2); }
  .mk-conf.c-niedrig { color: var(--warn); background: var(--warn-bg); }
  .mk-kurz { margin: 1.1rem 0 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }

  .mk-sec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--n-shadow, var(--shadow)); }
  .mk-sec h3 { margin: 0 0 1rem; font-size: 1.125rem; font-weight: 600; color: var(--text-strong); }
  .mk-sec-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: 1rem; }
  .mk-sec-h h3 { margin: 0; }
  .mk-sec-h p { margin: 0; font-size: 13px; color: var(--text-2); }
  .mk-yours { border: 1.5px solid var(--brand-line); background: var(--n-summary-bg, var(--surface)); }
  .mk-other { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; }
  .mk-other p { margin: 0; color: var(--text-2); max-width: 520px; }

  .mk-kpis { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  @media (min-width: 860px) { .mk-kpis { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
  .mk-kpi { display: flex; flex-direction: column; gap: 3px; padding: .9rem 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); min-width: 0; }
  .mk-kpi small { font-size: 12.5px; color: var(--text-2); }
  .mk-kpi b { font-size: 20px; font-weight: 600; color: var(--text-strong); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
  .mk-kpi.big b { font-size: 28px; }
  .mk-kpi.good b { color: var(--good); } .mk-kpi.bad b { color: var(--bad); } .mk-kpi.warn b { color: var(--warn); }
  .mk-kpi.big.good { background: var(--good-bg); border-color: transparent; }
  .mk-kpi.big.bad { background: var(--bad-bg); border-color: transparent; }
  @media (max-width: 859px) { .mk-kpi.big { grid-column: 1 / -1; } }
  .mk-chart { margin-top: 1.25rem; }
  .mk-chart svg { width: 100%; height: auto; display: block; }
  .mk-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .35rem; font-size: 12.5px; color: var(--text-2); }
  .mk-legend span { display: inline-flex; align-items: center; gap: 6px; }
  .mk-h4 { margin: 1.5rem 0 .6rem; font-size: 14px; font-weight: 600; color: var(--text-strong); }
  .mk-conds { display: grid; gap: .6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  @media (min-width: 860px) { .mk-conds { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  .mk-cond { display: flex; flex-direction: column; gap: 2px; padding: .65rem .85rem; border-radius: 12px; background: var(--surface-2); min-width: 0; }
  .mk-cond small { font-size: 12px; color: var(--text-2); }
  .mk-cond b { font-size: 15px; font-weight: 600; color: var(--text-strong); font-variant-numeric: tabular-nums; }
  .mk-cond.good b { color: var(--good); } .mk-cond.bad b { color: var(--bad); }
  .mk-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }
  .mk-assume { margin: 0; font-size: 13px; color: var(--text-2); }
  .mk-foot .mdl-applied { margin: 0; }

  .mk-two { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
  @media (min-width: 860px) { .mk-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
  .mk-sec-h p, .mk-assume, .mk-kurz { overflow-wrap: anywhere; }
  .mk-rates { display: grid; gap: .7rem; }
  .mk-rate { display: grid; grid-template-columns: 6.5rem 1fr auto; align-items: center; gap: .75rem; font-size: 14px; }
  .mk-rate b { font-size: 13px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
  .mk-seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .mk-seg i { height: 8px; border-radius: 4px; background: var(--n-track, var(--surface-2)); }
  .mk-seg i.on { background: var(--series-e); }
  .mk-specs { margin: 0; display: grid; gap: .6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-specs div { padding: .65rem .8rem; border-radius: 12px; background: var(--surface-2); min-width: 0; }
  .mk-specs dt { font-size: 12px; color: var(--text-2); }
  .mk-specs dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--text-strong); overflow-wrap: anywhere; }
  .mk-specs dd small { display: block; font-size: 12px; font-weight: 400; color: var(--text-3); margin-top: 1px; }
  .mk-pc { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  .mk-pc li { display: flex; align-items: center; gap: .6rem; font-size: 14px; }
  .mk-pc svg { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
  .mk-pc .pro svg { color: var(--good); background: var(--good-bg); }
  .mk-pc .con svg { color: var(--bad); background: var(--bad-bg); }

  @media (max-width: 560px) {
    .mk-title h2 { font-size: 1.4rem; }
    .mk-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mk-segs { width: 100%; overflow-x: auto; scrollbar-width: none; } .mk-segs::-webkit-scrollbar { display: none; }
    .mk-seg-btn { flex: 1 0 auto; white-space: nowrap; padding: .45rem .7rem; font-size: 12.5px; }
    .mk-ring { width: 88px; height: 88px; } .mk-ring b { font-size: 26px; }
    .mk-specs { grid-template-columns: 1fr; }
    .mk-foot .btn { width: 100%; }
  }
  @media (prefers-reduced-motion: reduce) { .mk-card { transition: none; } .mk-card:hover { transform: none; } }
}

/* ---------- Infokarte „Antriebe“ (Topbar): Vor- und Nachteile Diesel / LNG / E-LKW ---------- */
@media screen {
  .fuel-info { position: relative; }
  .fuel-card {
    position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: min(760px, calc(100vw - 2rem));
    background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--n-shadow-lg, var(--shadow-md)); padding: 1.125rem 1.25rem 1rem;
    animation: fc-in .16s var(--ease);
  }
  .fuel-card[hidden] { display: none; }
  @keyframes fc-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
  .fc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .875rem; }
  .fc-head h2 { font-size: 1.0625rem; font-weight: 600; color: var(--text-strong); }
  .fc-head p { margin: .125rem 0 0; font-size: 13px; color: var(--text-2); }
  .fc-close { flex: none; border: 0; background: none; padding: 6px; border-radius: 999px; cursor: pointer; color: var(--text-2); display: grid; place-items: center; }
  .fc-close:hover { background: var(--surface-2); color: var(--text-strong); }
  .fc-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

  .fc-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
  .fc-col { --c: var(--series-d); background: var(--surface-2); border-radius: var(--radius-sm); padding: .875rem .875rem .75rem; border-top: 3px solid var(--c); }
  .fc-l { --c: var(--series-l); }
  .fc-e { --c: var(--series-e); }
  .fc-col h3 { display: flex; align-items: center; gap: .5rem; font-size: 1rem; font-weight: 600; color: var(--text-strong); }
  .fc-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none;
    background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
  .fc-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .fc-what { margin: .375rem 0 .625rem; font-size: 12.5px; line-height: 1.4; color: var(--text-2); min-height: 2.8em; }

  .fc-rate { margin: 0 0 .75rem; display: grid; gap: .3rem; }
  .fc-rate > div { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
  .fc-rate dt { font-size: 12.5px; color: var(--text); }
  .fc-rate dd { margin: 0; display: flex; gap: 3px; }
  .fc-rate i { width: 14px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--text-2) 22%, transparent); }
  .fc-rate dd[data-r="1"] i:nth-child(-n+1), .fc-rate dd[data-r="2"] i:nth-child(-n+2),
  .fc-rate dd[data-r="3"] i:nth-child(-n+3), .fc-rate dd[data-r="4"] i:nth-child(-n+4),
  .fc-rate dd[data-r="5"] i { background: var(--c); }

  .fc-pc { list-style: none; margin: 0; padding: .625rem 0 0; border-top: 1px solid var(--border); display: grid; gap: .375rem; }
  .fc-pc li { position: relative; padding-left: 1.5rem; font-size: 12.5px; line-height: 1.4; }
  .fc-pc li::before {
    position: absolute; left: 0; top: .05em; width: 16px; height: 16px; border-radius: 50%;
    display: grid; place-items: center; font-size: 12px; font-weight: 600; line-height: 1;
  }
  .fc-pc .pro::before { content: "+"; color: var(--good); background: var(--good-bg); }
  .fc-pc .con::before { content: "\2212"; color: var(--bad); background: var(--bad-bg); }
  .fc-foot { margin: .75rem 0 0; font-size: 12px; color: var(--text-3); }

  @media (max-width: 640px) {
    #btnFuelInfo span { display: none; }
    #btnFuelInfo { padding: 8px; }
    .fuel-card { position: fixed; left: .75rem; right: .75rem; top: 72px; width: auto; max-height: calc(100dvh - 84px); overflow-y: auto; padding: 1rem; }
    .fc-cols { grid-template-columns: 1fr; }
    .fc-what { min-height: 0; }
  }
  @media (prefers-reduced-motion: reduce) { .fuel-card { animation: none; } }
}
