/* ============================================================
   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; } }
.segs { display: grid; gap: .5rem; }
.segs-2 { grid-template-columns: repeat(2, minmax(0, 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;
}
.fit-body { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.fit-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 .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(3, 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; }
.meter { position: relative; height: .75rem; border-radius: 999px; background: var(--gf-silver-light); border: 1px solid var(--border); margin: 26px 0 8px; }
.meter .m-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--series-e); }
.meter .m-mark { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--gf-ultra-dark); border-radius: 2px; }
.meter .m-mark span { position: absolute; bottom: calc(100% + 2px); transform: translateX(-50%); font-size: 11.5px; color: var(--text-strong); white-space: nowrap; font-weight: 500; }
.meter-legend { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); gap: 8px; flex-wrap: wrap; }
.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; }

/* ---------- Welcher LKW passt am besten? (Rangliste mit Passung in %) ---------- */
.fit-list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.fit-row {
  width: 100%; display: grid; grid-template-columns: 24px 72px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  text-align: left; padding: .625rem .875rem .625rem .625rem; 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), box-shadow .15s var(--ease);
}
.fit-row:hover { border-color: var(--gf-dark-flash); }
.fit-row.sel { border-color: var(--gf-dark-flash); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--gf-dark-flash); }
.fit-row:focus-visible { outline: var(--focus); outline-offset: 2px; }
.fit-rank {
  width: 24px; height: 24px; border-radius: 50%; background: var(--gf-ultra-dark); color: var(--gf-flash);
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
}
.fit-thumb { display: block; }
.fit-thumb img, .fit-ic { width: 72px; height: 54px; border-radius: calc(var(--radius-sm) - 4px); display: block; }
.fit-thumb img { object-fit: cover; background: var(--surface-2); }
.fit-ic-d { --c: var(--series-d); } .fit-ic-l { --c: var(--series-l); } .fit-ic-e { --c: var(--series-e); }
.fit-ic, .fit-hero { color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface)); }
.fit-ic { display: grid; place-items: center; }
.fit-ic svg { width: 42px; height: 28px; }
.fit-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fit-txt b { font-weight: 500; color: var(--text-strong); font-size: 14.5px; line-height: 1.3; }
.fit-txt b em { font-style: normal; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--good); margin-left: 4px; white-space: nowrap; }
.fit-kind { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.fit-kind .sw { flex: none; }
.fit-meter { display: block; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--text-3) 22%, transparent); overflow: hidden; margin: 5px 0 3px; }
.fit-fill { display: block; height: 100%; border-radius: 999px; transition: width .4s var(--ease); }
.fit-fill.d { background: var(--series-d); } .fit-fill.l { background: var(--series-l); } .fit-fill.e { background: var(--series-e); }
.fit-why { font-size: 12.5px; color: var(--text-2); }
.fit-why .good { color: var(--good); } .fit-why .warn { color: var(--warn); }
.fit-pct { text-align: right; white-space: nowrap; }
.fit-pct b { display: block; font-size: 1.375rem; font-weight: 600; color: var(--text-strong); line-height: 1.1; letter-spacing: -.01em; }
.fit-pct small { font-size: 11.5px; color: var(--text-3); }
@media (max-width: 480px) {
  .fit-row { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; }
  .fit-rank { display: none; }
  .fit-thumb img, .fit-ic { width: 56px; height: 42px; }
  .fit-ic svg { width: 34px; height: 22px; }
  .fit-pct b { font-size: 1.125rem; }
}
.fit-detail { border-top: 1px solid var(--border); padding-top: 1.25rem; }
.fit-detail .mdl-specs > div:last-child { grid-column: auto; }
.fit-detail .mdl-specs .mdl-price { grid-column: 1 / -1; }
.fit-hero {
  aspect-ratio: 16 / 6; border-radius: var(--radius-sm); border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.fit-hero svg { width: 26%; max-width: 140px; height: auto; }
.fit-hero span { font-size: 12.5px; color: var(--text-2); }
.fit-score { margin: .5rem 0 0; font-size: 13px; color: var(--text-2); }
.fit-score b { color: var(--text-strong); font-weight: 600; }
@media print {
  .mdl-actions, .mdl-alt-go { display: none !important; }
  .mdl-img img, .fit-hero { max-height: 70mm; }
  .fit-row { break-inside: avoid; }
}

/* ---------- 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-only { 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; }
}

/* ---------- Print / PDF ---------- */
@media print {
  @page { size: A4; margin: 14mm; }
  :root, .summary, .cta, .mobilebar {
    --bg: #fff; --surface: #fff; --surface-2: #f2f5f7;
    --text: #073d2b; --text-strong: #00211e; --text-2: #444; --text-3: #555; --border: #ccc; --grid: #ddd;
    --series-d: #566470; --series-e: #009e4f; --series-l: #5a6bd6;
    --good: #037045; --bad: #b3322c; --warn: #8a5a00;
    --good-bg: #e3f3e8; --bad-bg: #fbe9e8; --warn-bg: #fdf2dc;
  }
  html, body { background: #fff; color: #000; }
  body.mode-quick .results .detail-only { display: block !important; }
  body { font-size: 12px; }
  .topbar { position: static; border: 0; background: #fff; }
  .brand, .brand-text small { color: #00211e; }
  .brand-logo.has-img img { filter: brightness(0); }
  .brand-logo.has-img + .brand-text { border-color: #ccc; }
  .tagline, .hero-title { color: #00211e; }
  .actions, .intro, .hero .steps, .modes, .mobilebar, .inputs, .tip, .toast, .cta .btn, .finale, .vnote, .sum-range .linkbtn { display: none !important; }
  .hero { padding: 8px 0 0; }
  .lead, .model-note { display: none; }
  .layout { display: block; padding-top: 8px; }
  .results-inner { position: static; max-height: none; overflow: visible; margin: 0; padding: 0; }
  .card { background: #fff; border-color: #ccc; color: #073d2b; }
  .card, .kpi { break-inside: avoid; box-shadow: none; }
  .backgrounds { break-inside: auto; }
  .backgrounds > summary .chev { display: none; }
  details.more > summary { list-style: none; }
  details.more:not([open]) { display: none; }
  .print-only { display: block; break-before: page; color: #073d2b; }
  .print-only h2 { font-size: 16px; margin: 0 0 8px; }
  .print-only h3 { font-size: 13px; margin: 14px 0 4px; }
  .cta { background: #fff; color: #000; border: 1px solid #ccc; }
  .cta h2 { color: #000; }
  .cta p, .cta .cta-contact, .cta .cta-contact a { color: #444; }
  .footer { color: #444; border-color: #ccc; }
  .footer a { color: #444; }
  .chart-tip { display: none; }
}

/* ============================================================
   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) .meter { background: var(--n-surface-2); }
  :where(html.theme-new) .fit-rank { background: var(--n-accent-soft); color: var(--n-accent); }
  :where(html.theme-new) .fit-row:hover { border-color: var(--n-accent-line); }
  :where(html.theme-new) .fit-row.sel { border-color: var(--n-accent-line); box-shadow: inset 0 0 0 1px var(--n-accent-line); }
  :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) .meter .m-mark { background: 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); }
}
