/* =========================================================
   DenRetteBil.dk – mockup
   Mobile first: basisstilarter er til mobil, og større skærme
   bygges op med min-width-breakpoints (640 / 900 / 1200).
   ========================================================= */

/* ---------- Skrifttyper ----------
   Geist og Geist Mono (SIL Open Font License) ligger på sitet selv – ingen ekstra forbindelse til Google Fonts før
   siden kan vises. Variable skrifter (alle vægte i én fil), kun latin (dækker æ, ø, å, –, € m.m.).
   ?v= giver et års cache (Program.cs); skift tallet, hvis filerne skiftes. Geist forudindlæses i _Layout. */
@font-face {
  font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/geist-latin.woff2?v=1') format('woff2');
}
@font-face {
  font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/geist-mono-latin.woff2?v=1') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --bg: #f5f6f2;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef1ea;
  --surface-3: #e4e9e1;
  --ink: #0d120f;
  --ink-2: #47514b;
  --ink-3: #636d67;          /* mindst 4,5:1 mod --bg og --surface-2 (AA for små tekster) */
  --line: #e0e5dd;
  --line-strong: #c9d1c5;

  --brand: #2db84c;          /* logoets grønne */
  --brand-hi: #a6ea5e;       /* lys top i fluebenet */
  --brand-ink: #127a31;      /* grøn tekst på lys baggrund (AA) */
  --brand-soft: #e2f5e5;
  --brand-contrast: #ffffff;
  --warn: #b25e09;
  --warn-soft: #fdf0dd;
  --danger: #c2303b;

  --chart-grid: #e6eae3;
  --chart-dot: #22a344;

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow-s: 0 1px 2px rgb(16 24 18 / .06), 0 1px 1px rgb(16 24 18 / .04);
  --shadow: 0 1px 2px rgb(16 24 18 / .05), 0 8px 24px -6px rgb(16 24 18 / .10);
  --shadow-l: 0 2px 4px rgb(16 24 18 / .04), 0 24px 60px -12px rgb(16 24 18 / .18);
  --glass: rgb(255 255 255 / .72);

  --header-h: 60px;
  --nav-h: 64px;
  --gutter: 16px;
  --maxw: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0e0c;
    --bg-elev: #111613;
    --surface: #121815;
    --surface-2: #19211d;
    --surface-3: #212b26;
    --ink: #edf2ee;
    --ink-2: #aab5ae;
    --ink-3: #7c8781;
    --line: #232c27;
    --line-strong: #34403a;
    --brand: #3fd164;
    --brand-ink: #6ae38a;
    --brand-soft: #143020;
    --brand-contrast: #06210f;
    --warn: #f0a24a;
    --warn-soft: #33240f;
    --chart-grid: #222a26;
    --chart-dot: #4bd96e;
    --shadow-s: 0 1px 2px rgb(0 0 0 / .4);
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 30px -8px rgb(0 0 0 / .5);
    --shadow-l: 0 30px 70px -14px rgb(0 0 0 / .65);
    --glass: rgb(14 19 16 / .72);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0e0c;
  --bg-elev: #111613;
  --surface: #121815;
  --surface-2: #19211d;
  --surface-3: #212b26;
  --ink: #edf2ee;
  --ink-2: #aab5ae;
  --ink-3: #7c8781;
  --line: #232c27;
  --line-strong: #34403a;
  --brand: #3fd164;
  --brand-ink: #6ae38a;
  --brand-soft: #143020;
  --brand-contrast: #06210f;
  --warn: #f0a24a;
  --warn-soft: #33240f;
  --chart-grid: #222a26;
  --chart-dot: #4bd96e;
  --shadow-s: 0 1px 2px rgb(0 0 0 / .4);
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 30px -8px rgb(0 0 0 / .5);
  --shadow-l: 0 30px 70px -14px rgb(0 0 0 / .65);
  --glass: rgb(14 19 16 / .72);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

.shell { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.ico { width: 20px; height: 20px; flex: none; }

/* Grid-elementer må krympe under deres indholds min-bredde (undgår vandret overflow) */
:is(.hero-grid, .bento, .car-grid, .list-layout, .model-hero, .panels, .specs, .keystats, .winners, .trust, .results, .calc-result, .charge-facts) > * { min-width: 0; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex; align-items: baseline;
  font-weight: 700; font-size: 22px; letter-spacing: -0.035em; line-height: 1;
  color: var(--ink); white-space: nowrap; padding-top: 10px;
}
.logo-check { width: 1.5em; height: 1.5em; margin: 0 -0.26em -0.07em -0.08em; flex: none; filter: drop-shadow(0 2px 3px rgb(22 144 58 / .25)); }
.logo-dot { width: .22em; height: .22em; border-radius: 50%; background: var(--brand); margin: 0 .05em 0 .06em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.header-inner .logo { margin-right: auto; }
.top-nav { display: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.94); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

/* ---------- Bundnavigation (mobil) ---------- */
.bottom-nav {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--glass);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-top: 1px solid var(--line);
}
.bottom-nav a {
  position: relative; display: grid; place-items: center; align-content: center; gap: 3px;
  font-size: 11px; font-weight: 500; color: var(--ink-3);
}
.bottom-nav a .ico { width: 22px; height: 22px; }
.bottom-nav a[aria-current="page"] { color: var(--ink); }
.bottom-nav a[aria-current="page"]::before {
  content: ""; position: absolute; top: 8px; width: 44px; height: 30px; border-radius: 999px;
  background: var(--brand-soft); z-index: -1;
}
.nav-badge {
  position: absolute; top: 6px; left: calc(50% + 6px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: var(--brand-contrast); background: var(--brand);
  border: 2px solid var(--bg);
}
.nav-badge:empty { display: none; }

/* ---------- Knapper, chips, badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { box-shadow: var(--shadow); }
.btn-brand { background: var(--brand); color: var(--brand-contrast); box-shadow: 0 6px 20px -6px color-mix(in oklab, var(--brand) 70%, transparent); }
.btn-brand:hover { filter: brightness(1.04); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn.is-added { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; box-shadow: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.chip .ico { width: 16px; height: 16px; }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line);
}
.badge-new { background: var(--ink); color: var(--bg); border-color: transparent; }
.badge-brand { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.badge .ico { width: 12px; height: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-2);
}
/* Ringen skaleres med transform/opacity (grafikkortet) – en animeret box-shadow tegner om i hvert billede */
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand); opacity: .6; animation: pulse 2.4s infinite; will-change: transform, opacity; }
@keyframes pulse { 70%, 100% { transform: scale(3.5); opacity: 0; } }

/* ---------- Sektioner ---------- */
.section { padding-block: 40px 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-size: 24px; font-weight: 650; }
.section-head p { color: var(--ink-2); margin-top: 6px; font-size: 15px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; }
.link-more .ico { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-more:hover .ico { transform: translateX(3px); }

/* ---------- Hero ---------- */
/* Kun vandret beskåret, og over indholdet nedenunder, så søgeforslagene kan folde sig ud over resten af siden.
   Lysskæret i baggrunden beskæres af .hero-bg selv. */
.hero { position: relative; z-index: 2; overflow-x: clip; padding: 14px 0 36px; isolation: isolate; }
/* Søgefeltets forslag skal ligge over bilkort-reklamen ved siden af/nedenunder.
   Bilkort-reklamen er sin egen stablingskontekst (isolation), så søgekolonnen løftes eksplicit.
   Ingen indgangsanimation her: toppen skal stå færdig med det samme (det tæller i Googles Speed Index) */
.hero-copy { position: relative; z-index: 2; }
/* Mobil: lidt mindre tekst over overskriften (desktop: 12 px) */
.hero-copy > .eyebrow { font-size: 11px; letter-spacing: .03em; gap: 7px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-bg::before, .hero-bg::after {
  /* Ingen filter: blur – lysskæret er en blød gradient i sig selv, og en stor sløret flade er dyr at tegne på en telefon */
  content: ""; position: absolute; border-radius: 50%; opacity: .5;
}
.hero-bg::before { width: 640px; height: 640px; right: -240px; top: -260px; background: radial-gradient(closest-side, var(--brand-hi), color-mix(in oklab, var(--brand-hi) 45%, transparent) 45%, transparent); }
.hero-bg::after { width: 540px; height: 540px; left: -260px; bottom: -280px; background: radial-gradient(closest-side, color-mix(in oklab, var(--brand) 60%, #7fd4ff), transparent); opacity: .3; }
.hero-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.hero h1 { font-size: clamp(40px, 11vw, 76px); font-weight: 700; letter-spacing: -0.045em; line-height: .98; margin: 14px 0 16px; }
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; color: var(--brand-ink); }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .12em; border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), var(--brand-hi)); opacity: .5;
}
.hero .lead { font-size: 17px; color: var(--ink-2); max-width: 34em; }

.search-xl { position: relative; margin-top: 22px; max-width: 560px; }
.search-xl .field {
  display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 6px 0 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s;
}
.search-xl .field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 18%, transparent), var(--shadow); }
.search-xl .field > .ico { color: var(--ink-3); }
.search-xl input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 16px; outline: none; }
.search-xl input::placeholder { color: var(--ink-3); }
.search-xl .btn { height: 46px; }
.search-xl .btn span { display: none; }

.typeahead {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40;
  list-style: none; margin: 0; padding: 6px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-l); max-height: min(480px, 70dvh); overflow: auto;
}
.typeahead[hidden] { display: none; }
/* Mens forslagene er åbne, ligger hele hero'en øverst – over header, bundmenu, sammenlign-baren og alt andet */
.hero:has(.typeahead:not([hidden])) { z-index: 1000; }
.typeahead a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; }
.typeahead a:hover, .typeahead a.is-active { background: var(--surface-2); }
.typeahead .ta-art { width: 64px; flex: none; }
.typeahead .ta-name { font-weight: 600; font-size: 15px; }
.typeahead .ta-meta { font-size: 13px; color: var(--ink-3); }
.typeahead .ta-empty { padding: 12px; color: var(--ink-3); font-size: 14px; }

.quick-chips { display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin-inline: -2px; }
.quick-chips::-webkit-scrollbar { display: none; }

/* Datalinjen over forsidens overskrift: altid én linje; på smalle skærme kortere og mindre */
.hero-meta { white-space: nowrap; max-width: 100%; }
.hero-meta .pulse { flex: none; }
@media (max-width: 520px) {
  .hero-meta { font-size: 10.5px; letter-spacing: .02em; gap: 7px; }
  .hero-meta .hide-sm { display: none; }
}

/* Reklamen for "Spil bilkort": tre bilkort i en vifte og en knap, hvis link dækker hele flisen */
.hero-game {
  position: relative; display: grid; gap: 18px; padding: 22px 20px 22px; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-l); border: 1px solid var(--line); box-shadow: var(--shadow-l);
  background:
    radial-gradient(90% 60% at 50% 0%, color-mix(in oklab, var(--brand) 16%, transparent), transparent 70%),
    var(--surface);
}
.hg-deck { position: relative; height: 300px; pointer-events: none; }
.hg-card {
  /* Kortet tegnes i normal størrelse (så teksten har plads) og skaleres ned i viften */
  --s: .58; position: absolute; left: 50%; bottom: 6px; width: 300px; margin-left: -150px;
  transform-origin: 50% 110%; transition: transform .5s var(--ease);
}
.hg-card .tcard { filter: drop-shadow(0 14px 22px rgb(10 30 18 / .18)); }
.hg-card:nth-child(1) { transform: translateX(-74px) rotate(-13deg) scale(calc(var(--s) * .92)); }
.hg-card:nth-child(2) { transform: translateX(74px) rotate(11deg) scale(calc(var(--s) * .92)); }
.hg-card:nth-child(3) { transform: translateX(6px) rotate(3deg) scale(var(--s)); z-index: 2; }
/* Det øverste kort er på vej til højre – som når man swiper ja */
.hg-stamp {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px 7px 10px;
  border-radius: 999px; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: -0.01em;
  box-shadow: 0 10px 24px -8px rgb(0 0 0 / .45); transition: transform .5s var(--ease), opacity .5s;
}
.hg-stamp .ico { width: 16px; height: 16px; }
.hg-stamp.is-yes { top: 38px; left: calc(50% - 64px); background: #17913a; transform: rotate(-9deg); }
.hg-stamp.is-no { top: 92px; right: calc(50% - 150px); background: #d63440; transform: rotate(9deg) scale(.85); opacity: 0; }
.hero-game:hover .hg-card:nth-child(3) { transform: translateX(34px) rotate(8deg) scale(var(--s)); }
.hero-game:hover .hg-stamp.is-yes { transform: rotate(-9deg) scale(1.08); }

.hg-copy { position: relative; z-index: 1; text-align: center; }
.hg-copy .eyebrow { justify-content: center; color: var(--brand-ink); }
.hg-copy .eyebrow .ico { width: 15px; height: 15px; }
.hg-copy h2 { margin-top: 8px; font-size: clamp(24px, 5.6vw, 30px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
.hg-copy p { max-width: 400px; margin: 8px auto 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.hg-cta { margin-top: 16px; }
.hg-cta::after { content: ""; position: absolute; inset: -1000px; z-index: 1; } /* hele flisen er klikbar */
.hero-game { cursor: pointer; }
.hero-game:has(.hg-cta:focus-visible) { outline: 2px solid var(--brand); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .hg-card, .hg-stamp { transition: none; } }
/* Ingen hover på touch-skærme: kortet skal ikke hoppe, når man trykker */
@media (hover: none) {
  .hero-game:hover .hg-card:nth-child(3) { transform: translateX(6px) rotate(3deg) scale(var(--s)); }
  .hero-game:hover .hg-stamp.is-yes { transform: rotate(-9deg); }
}
/* Mobil: en lav flise – en lille vifte til venstre, titel og knap centreret i pladsen til højre.
   Kortene står stille (ingen hover-bevægelse, når man trykker) */
@media (max-width: 639px) {
  .hero-game { grid-template-columns: 124px minmax(0, 1fr); align-items: center; gap: 34px; padding: 12px 16px 12px 20px; }
  .hg-deck { height: 150px; }
  .hg-card { --s: .34; bottom: 8px; transform-origin: 50% 100%; transition: none; }
  .hg-card:nth-child(1) { transform: translateX(-15px) rotate(-10deg) scale(calc(var(--s) * .9)); }
  .hg-card:nth-child(2) { transform: translateX(15px) rotate(8deg) scale(calc(var(--s) * .9)); }
  .hg-card:nth-child(3), .hero-game:hover .hg-card:nth-child(3) { transform: translateX(2px) rotate(3deg) scale(var(--s)); }
  .hg-stamp { display: none; }
  .hg-copy { text-align: center; }
  .hg-copy .eyebrow { justify-content: center; font-size: 11px; }
  .hg-copy h2 { margin-top: 4px; font-size: 19px; }
  .hg-copy p { display: none; }
  .hg-cta { margin-top: 10px; max-width: 100%; height: 40px; padding: 0 14px; font-size: 14px; }
  .hg-cta .ico:last-child { display: none; }
}

.win-check { width: 18px; height: 18px; flex: none; }

/* ---------- Tal-strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 8px; }
.stat-strip div { background: var(--surface); padding: 14px 16px; }
.stat-strip b { display: block; font-size: 26px; font-weight: 650; letter-spacing: -0.03em; }
.stat-strip span { font-size: 13px; color: var(--ink-3); }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 12px; }
.tile {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: 20px; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
a.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tile-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tile-ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); }
.tile-head h3 { font-size: 17px; font-weight: 650; }
.tile-head p { font-size: 13px; color: var(--ink-3); }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rank a { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 8px 8px; margin: 0 -8px; border-radius: 12px; }
.rank a:hover { background: var(--surface-2); }
.rank .pos { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.rank .nm { font-weight: 600; font-size: 14.5px; line-height: 1.2; }
.rank .nm small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
.rank .vl { font-weight: 650; font-size: 15px; text-align: right; }
.rank .bar { grid-column: 2 / -1; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: -2px; }
.rank .bar i { display: block; height: 100%; border-radius: 4px; background: var(--brand); }

.tile-guide {
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in oklab, var(--brand-hi) 55%, transparent), transparent 55%), linear-gradient(160deg, #0f2a19, #0b1a11);
  color: #eaf7ee; border-color: transparent; display: flex; flex-direction: column; min-height: 280px;
}
.tile-guide h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.035em; max-width: 12em; }
.tile-guide p { color: #b6d6c0; margin-top: 10px; max-width: 26em; }
.tile-guide .btn { margin-top: auto; align-self: flex-start; background: #fff; color: #0b1a11; }
.tile-guide .big-check { position: absolute; right: -24px; bottom: -36px; width: 200px; height: 200px; opacity: .9; transform: rotate(-6deg); pointer-events: none; }
.tile-guide .big-check .logo-check { width: 100%; height: 100%; margin: 0; filter: drop-shadow(0 20px 40px rgb(0 0 0 / .35)); }
.tile-guide > *:not(.big-check) { position: relative; z-index: 1; }
.tile-guide .steps-mini { display: flex; gap: 6px; margin: 18px 0 22px; flex-wrap: wrap; }
.tile-guide .steps-mini span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .12); color: #d5ecdc; }

/* Diagram */
.tile-chart { padding-bottom: 12px; }
.chart-wrap { position: relative; margin: 0 -6px; }
.chart-wrap svg { overflow: visible; }
.chart-wrap .ax text { font-size: 11px; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.chart-wrap .ax line { stroke: var(--chart-grid); stroke-width: 1; }
.chart-wrap .dot { fill: var(--chart-dot); stroke: var(--surface); stroke-width: 2; transition: r .15s; }
.chart-wrap .dot.is-hot { r: 7; }
.chart-wrap .anno { font-size: 11.5px; fill: var(--ink-2); font-weight: 600; }
.chart-wrap .anno-line { stroke: var(--line-strong); stroke-width: 1; }
.chart-tip {
  position: absolute; z-index: 5; pointer-events: auto; min-width: 180px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-l);
  padding: 10px 12px; font-size: 13px; transform: translate(-50%, calc(-100% - 14px));
}
.chart-tip[hidden] { display: none; }
.chart-tip b { display: block; font-size: 14px; }
.chart-tip .tip-rows { display: grid; grid-template-columns: auto auto; gap: 2px 14px; margin: 6px 0 8px; color: var(--ink-2); }
.chart-tip .tip-rows span:nth-child(even) { text-align: right; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-tip a { font-weight: 600; color: var(--brand-ink); display: inline-flex; align-items: center; gap: 4px; }
.chart-tip a .ico { width: 14px; height: 14px; }
.chart-note { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }

/* ---------- Bilkort ---------- */
.car-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
/* Listen kan have 170+ kort: dem uden for skærmen tegnes ikke, før man ruller hen til dem (højden huskes, når de er vist) */
.more-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.more-nav:empty { display: none; }
.more-nav small { font-weight: 500; opacity: .75; }
.more-nav [aria-busy="true"] { opacity: .6; pointer-events: none; }
.car-grid > .car-card { content-visibility: auto; contain-intrinsic-size: auto 470px; }
.car-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.car-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.car-card > a { display: flex; flex-direction: column; flex: 1; }
.art {
  --art-bg: radial-gradient(90% 80% at 50% 100%, color-mix(in oklab, var(--paint) 26%, var(--surface)) 0%, color-mix(in oklab, var(--paint) 8%, var(--surface-2)) 60%, var(--surface-2) 100%);
  position: relative; background: var(--art-bg);
}
.car-card .art { padding: 22px 18px 8px; aspect-ratio: 16 / 8.2; display: grid; place-items: end center; }
.car-card .art .car-svg { width: 100%; transition: transform .5s var(--ease); }
.car-card:hover .art .car-svg { transform: translateX(-6px) scale(1.02); }
.art-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.car-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cc-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.cc-brand { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.cc-name { font-size: 21px; font-weight: 650; letter-spacing: -0.03em; }
.cc-price { text-align: right; white-space: nowrap; }
.cc-price small { display: block; font-size: 12px; color: var(--ink-3); }
.cc-price b { font-size: 16px; font-weight: 650; }
.cc-specs { display: grid; margin: 0; padding: 4px 12px; background: var(--surface-2); border-radius: 14px; }
.cc-specs div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; min-width: 0; }
.cc-specs div + div { border-top: 1px solid color-mix(in oklab, var(--line) 80%, transparent); }
.cc-specs dt { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.cc-specs dt .ico { width: 14px; height: 14px; color: var(--ink-3); }
.cc-specs dd { margin: 0; font-weight: 650; font-size: 14px; letter-spacing: -0.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cc-meta { font-size: 13px; color: var(--ink-3); }
.compare-toggle {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px;
  border-radius: 999px; border: 1px solid color-mix(in oklab, var(--line) 80%, transparent);
  /* Ingen backdrop-filter: knappen sidder på hvert kort, og en sløring pr. kort får rulningen til at hakke på mobil */
  background: color-mix(in oklab, var(--surface) 90%, transparent);
  font-size: 13px; font-weight: 600; color: var(--ink);
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.compare-toggle .ico { width: 16px; height: 16px; }
.compare-toggle:active { transform: scale(.95); }
.compare-toggle.is-added { background: var(--brand); color: var(--brand-contrast); border-color: transparent; }
/* Smalle kort: knappen bliver til et ikon, så den ikke dækker badges */
.car-card { container-type: inline-size; }
@container (max-width: 330px) {
  .compare-toggle { width: 34px; padding: 0; justify-content: center; }
  .compare-toggle span { display: none; }
}

/* Horisontal scroller */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }
/* Slider med pile: pilene vises kun, når der er mere at se i den retning (site.js), og kun hvor man har en mus */
.slider { position: relative; }
.slider-btn { position: absolute; top: 96px; z-index: 3; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.slider-btn.is-prev { left: -12px; }
.slider-btn.is-next { right: -12px; }
.slider-btn[hidden] { display: none; }
@media (hover: none) { .slider-btn { display: none; } }
.slider-links { margin-top: 14px; }

/* Populære sammenligninger */
.vs-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 14px; transition: transform .3s var(--ease), box-shadow .3s; }
.vs-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.vs-arts { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.vs-arts .art { border-radius: 14px; padding: 12px 8px 4px; }
.vs-arts .vs { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; border: 3px solid var(--surface); }
.vs-card h3 { font-size: 15.5px; font-weight: 600; margin-top: 12px; letter-spacing: -0.015em; }
.vs-card p { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* Mærker */
.brand-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-cloud .chip b { font-weight: 600; color: var(--ink); }
.brand-cloud .chip span { color: var(--ink-3); font-size: 12px; }

/* Trust */
.trust { display: grid; gap: 12px; }
.trust > div { display: flex; gap: 14px; align-items: start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.trust .t-ico { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.trust h3 { font-size: 16px; font-weight: 650; }
.trust p { font-size: 14px; color: var(--ink-2); margin-top: 4px; }

/* ---------- Liste + filtre ---------- */
.page-head { padding: 24px 0 12px; }
.page-head h1 { font-size: clamp(30px, 7vw, 46px); font-weight: 700; letter-spacing: -0.04em; }
.page-head p { color: var(--ink-2); margin-top: 8px; }
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-3); padding-top: 16px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }

.list-layout { display: grid; gap: 20px; padding-bottom: 32px; }
/* Næsten uigennemsigtig i stedet for sløret – en sløring, der skal regnes om under hele rulningen, koster på mobil */
.list-toolbar { position: sticky; top: var(--header-h); z-index: 20; display: flex; gap: 8px; align-items: center; padding: 10px 0; background: color-mix(in oklab, var(--bg) 96%, transparent); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.list-toolbar .search-sm { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.list-toolbar .search-sm input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 15px; }
.list-toolbar .search-sm .ico { color: var(--ink-3); width: 18px; height: 18px; }
.filter-btn { position: relative; }
.filter-btn .count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--brand); color: var(--brand-contrast); font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.filter-btn .count:empty { display: none; }
.select {
  appearance: none; height: 42px; padding: 0 34px 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737d77' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  font-size: 14px; font-weight: 500; max-width: 100%;
}
.result-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); margin: 4px 0 12px; }
.select-sm { height: 36px; font-size: 13.5px; }
#r-count { white-space: nowrap; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.active-filters:empty { display: none; }
.active-filters .chip { height: 30px; font-size: 13px; padding: 0 8px 0 12px; }
.active-filters .chip .ico { width: 14px; height: 14px; }

.filters {
  position: fixed; inset: auto 0 0 0; z-index: 80; max-height: 88dvh; overflow: auto;
  background: var(--bg-elev); border-radius: 24px 24px 0 0; box-shadow: var(--shadow-l);
  padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .35s var(--ease); visibility: hidden;
}
.filters.is-open { transform: none; visibility: visible; }
.filters .grabber { width: 40px; height: 5px; border-radius: 9px; background: var(--line-strong); margin: 4px auto 10px; }
.filters-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; }
.filters-head h2 { font-size: 20px; font-weight: 650; }
.scrim { position: fixed; inset: 0; z-index: 70; background: rgb(5 10 7 / .45); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.is-on { opacity: 1; pointer-events: auto; }
.fgroup { padding: 16px 0; border-top: 1px solid var(--line); }
.fgroup:first-child { border-top: 0; }
.fgroup > label, .fgroup > .flabel { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 14.5px; margin-bottom: 10px; }
.fgroup output { font-weight: 600; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchips .chip { height: 34px; font-size: 13.5px; }
.filters-foot { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); display: flex; gap: 8px; padding: 12px 0 calc(16px + env(safe-area-inset-bottom)); background: var(--bg-elev); }
.filters-foot .btn { flex: 1; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; --p: 50%; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 9px; background: linear-gradient(90deg, var(--brand) var(--p), var(--surface-3) var(--p)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 9px; background: linear-gradient(90deg, var(--brand) var(--p), var(--surface-3) var(--p)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 1px solid var(--line-strong); box-shadow: 0 2px 8px rgb(0 0 0 / .18); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid var(--line-strong); box-shadow: 0 2px 8px rgb(0 0 0 / .18); }
.range-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 2px; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14.5px; font-weight: 500; cursor: pointer; padding: 4px 0; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 99px; background: var(--surface-3); position: relative; transition: background .2s; flex: none; cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .25s var(--ease); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(18px); }
.switch small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12.5px; }

.empty {
  text-align: center; padding: 48px 20px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-l); color: var(--ink-2);
}
.empty h3 { font-size: 20px; margin-bottom: 8px; color: var(--ink); }
.empty .btn { margin-top: 16px; }

/* ---------- Modelside ---------- */
.model-hero { display: grid; gap: 20px; padding-top: 12px; }
.model-art { border-radius: var(--radius-l); padding: 28px 12px 12px; overflow: hidden; display: grid; place-items: end center; min-height: 220px; position: relative; }
.model-art .car-svg { width: 100%; max-width: 760px; }
.model-art .floor { position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, color-mix(in oklab, var(--paint) 10%, transparent)); pointer-events: none; }
.model-info .cc-brand { font-size: 14px; }
.model-info h1 { font-size: clamp(34px, 9vw, 56px); font-weight: 700; letter-spacing: -0.045em; margin-top: 2px; }
.model-info .tagline { color: var(--ink-2); margin-top: 10px; font-size: 16.5px; }
.model-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.price-block { margin-top: 18px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-block b { font-size: 32px; font-weight: 700; letter-spacing: -0.035em; }
.price-block span { color: var(--ink-3); font-size: 13px; }
.variant-picker { margin-top: 16px; }
.variant-picker .flabel { font-size: 13px; color: var(--ink-3); font-weight: 500; margin-bottom: 8px; display: block; }
.seg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 550; white-space: nowrap; color: var(--ink-2); transition: all .2s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.model-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.official-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.official-link .ico { width: 16px; height: 16px; flex: none; }

.keystats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
/* Hver flise deler rækker med naboerne (subgrid): de store tal står på linje, selvom en overskrift fylder to linjer */
.kstat { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 6px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kstat .k-lbl { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.kstat .k-lbl .ico { flex: none; width: 15px; height: 15px; margin-top: 1px; }
.kstat b { display: block; font-size: 28px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.kstat b small { font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-left: 2px; }
.kstat .k-sub { font-size: 12.5px; color: var(--ink-3); }
.kstat .k-sub.good { color: var(--brand-ink); }

.panels { display: grid; gap: 12px; margin-top: 12px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 20px; }
.panel h2 { font-size: 19px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.panel h2 .ico { width: 20px; height: 20px; color: var(--brand-ink); }
.panel .panel-sub { color: var(--ink-3); font-size: 13.5px; margin-top: 4px; }

.range-bars { display: grid; gap: 14px; margin-top: 18px; }
.rb-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.rb-row .rb-l { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.rb-row .rb-l .ico { width: 15px; height: 15px; color: var(--ink-3); }
.rb-row .rb-v { font-weight: 650; font-variant-numeric: tabular-nums; }
.rb-track { grid-column: 1 / -1; height: 10px; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.rb-track i { display: block; height: 100%; border-radius: 10px; background: var(--brand); transform-origin: left; animation: grow .9s var(--ease) both; }
.rb-row.muted .rb-track i { background: color-mix(in oklab, var(--brand) 55%, var(--surface-3)); }
.rb-row.cold .rb-track i { background: #6aa8d8; }
@keyframes grow { from { transform: scaleX(0); } }

.charge-hero { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 16px; }
.charge-hero b { font-size: 44px; font-weight: 700; letter-spacing: -0.04em; color: var(--brand-ink); line-height: 1; white-space: nowrap; }
.charge-hero span { color: var(--ink-2); }
.batt { position: relative; height: 40px; border-radius: 12px; border: 2px solid var(--line-strong); margin: 18px 6px 8px 0; padding: 3px; }
.batt::after { content: ""; position: absolute; right: -8px; top: 11px; width: 5px; height: 14px; border-radius: 0 4px 4px 0; background: var(--line-strong); }
/* Glimtet flyttes med transform (grafikkortet) – en animeret background-position ville tegne fladen om i hvert billede */
.batt-fill { position: absolute; top: 3px; bottom: 3px; left: calc(3px + 10% * .97); width: calc(70% * .97); border-radius: 8px; overflow: hidden; background: linear-gradient(90deg, var(--brand), var(--brand-hi)); }
.batt-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .45), transparent); transform: translateX(-100%); animation: charge 2.6s linear infinite; will-change: transform; }
.batt-base { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(10% * .97); border-radius: 8px 0 0 8px; background: var(--surface-3); }
@keyframes charge { to { transform: translateX(100%); } }
.batt-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); font-family: var(--mono); }
.charge-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.charge-facts div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.charge-facts small { display: block; font-size: 12px; color: var(--ink-3); }
.charge-facts b { font-size: 16px; font-weight: 650; }

.calc { display: grid; gap: 16px; margin-top: 16px; }
.calc-result { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.calc-result div { border-radius: 14px; padding: 12px 14px; background: var(--surface-2); }
.calc-result div.hl { background: var(--brand-soft); }
.calc-result small { display: block; font-size: 12px; color: var(--ink-3); }
.calc-result b { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.calc-result .hl b { color: var(--brand-ink); }
.calc-note { font-size: 12px; color: var(--ink-3); }

.specs { display: grid; gap: 12px; margin-top: 12px; }
.spec-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.spec-group summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; font-weight: 650; font-size: 16.5px; cursor: pointer; }
.spec-group summary::-webkit-details-marker { display: none; }
.spec-group summary .ico { transition: transform .25s var(--ease); color: var(--ink-3); }
.spec-group[open] summary .ico { transform: rotate(180deg); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td { padding: 11px 20px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { font-weight: 400; color: var(--ink-2); }
.spec-table td { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.spec-table .hint { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; }
.yes { color: var(--brand-ink); display: inline-flex; align-items: center; gap: 4px; }
.yes .ico, .no .ico { width: 16px; height: 16px; }
.no { color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }

.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 10px); z-index: 55;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-l);
}
.sticky-cta small { display: block; font-size: 11.5px; opacity: .7; }
.sticky-cta b { font-size: 15.5px; }
.sticky-cta .btn { height: 42px; }

/* ---------- Sammenligningsbakke ---------- */
.tray {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 10px); z-index: 56;
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 999px;
  background: var(--ink); color: var(--bg); box-shadow: var(--shadow-l);
  transition: transform .35s var(--ease), opacity .35s;
}
.tray[hidden] { display: flex; transform: translateY(140%); opacity: 0; pointer-events: none; }
.tray-thumbs { display: flex; flex: 1; min-width: 0; }
.tray-thumb { width: 52px; height: 36px; border-radius: 999px; background: var(--art-bg); display: grid; place-items: center; border: 2px solid var(--ink); margin-left: -10px; overflow: hidden; position: relative; }
.tray-thumb:first-child { margin-left: 0; }
.tray-thumb .car-svg { width: 48px; }
.tray-thumb.empty-slot { background: transparent; border: 2px dashed color-mix(in oklab, var(--bg) 35%, transparent); }
.tray-text { font-size: 13px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: none; }
.tray .btn { height: 42px; flex: none; }
.tray-clear { color: var(--bg); opacity: .6; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: transparent; border: 0; }
.tray-clear:hover { opacity: 1; }
/* På modelsiden (mobil) overtager den faste købsbjælke bakkens rolle */
.has-sticky-cta .tray { display: none; }
.has-tray #app, .has-sticky-cta #app { padding-bottom: 76px; }

/* ---------- Sammenlign ---------- */
.cmp-page { padding-bottom: 40px; }
.cmp-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 16px; }
.cmp-tools .switch { padding: 0 14px 0 0; height: 42px; border-radius: 999px; }
/* Hoved og rækker deler samme kolonnebredder. På mobil scroller de vandret
   sammen (synkroniseret i JS), og rækkelabels bliver hængende til venstre. */
.cmp {
  --colmin: 96px; --gap: 10px; --row-px: 14px;
  --minw: calc(var(--n) * var(--colmin) + (var(--n) - 1) * var(--gap) + 2 * var(--row-px) + 2px);
}
/* Når hovedet hænger fast, låser site.js dets højde, og kun indholdet bliver kompakt – derfor sidder
   baggrunden på indholdet, og resten af boksen er gennemsigtig og lader klik gå igennem. */
.cmp-head-wrap { position: sticky; top: var(--header-h); z-index: 20; margin-inline: calc(var(--gutter) * -1); pointer-events: none; overflow-anchor: none; }
.cmp-head-wrap > .cmp-scroll { pointer-events: auto; background: color-mix(in oklab, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 10px; border-bottom: 1px solid var(--line); }
.cmp-scroll { overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.cmp-scroll::-webkit-scrollbar { display: none; }
.cmp-head-wrap .cmp-scroll { margin-inline: 0; }
.cmp-grid { display: grid; grid-template-columns: repeat(var(--n), minmax(var(--colmin), 1fr)); column-gap: var(--gap); }
.cmp-head-grid { padding-inline: calc(var(--row-px) + 1px); min-width: var(--minw); align-items: start; }
.cmp-body { min-width: var(--minw); }
.cmp-label-cell, .cmp-add-col { display: none; }
.cmp-car { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cmp-car .art { border-radius: 14px; padding: 10px 6px 2px; }
.cmp-car .cc-brand { font-size: 12px; line-height: 1.2; }
.cmp-car h3 { font-size: 16px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
.cmp-car h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cmp-car .select { height: 34px; font-size: 13px; padding: 0 28px 0 10px; background-position: right 8px center; width: 100%; }
.cmp-remove { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line); color: var(--ink-2); }
.cmp-remove .ico { width: 14px; height: 14px; }
.cmp-add { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 140px; border: 1.5px dashed var(--line-strong); border-radius: 14px; color: var(--ink-2); font-weight: 600; font-size: 14px; background: transparent; }
.cmp-add:hover { color: var(--ink); border-color: var(--ink-3); background: var(--surface); }
.cmp-add .plus { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.is-stuck .cmp-car .art { padding: 2px 6px 0; }
.is-stuck .cmp-car .art .car-svg { max-height: 44px; margin-inline: auto; width: auto; }
.is-stuck .cmp-car .cmp-price-sm, .is-stuck .cmp-car .cc-brand, .is-stuck .cmp-car .select, .is-stuck .cmp-remove { display: none; }
.is-stuck .cmp-car h3 { font-size: 14px; }
.cmp-variant-sm { display: none; }
.is-stuck .cmp-variant-sm { display: block; font-size: 12px; color: var(--ink-2); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-stuck .cmp-add { min-height: 60px; flex-direction: row; }
.is-stuck .cmp-add .plus { width: 28px; height: 28px; }
.is-stuck .cmp-label-cell > span { display: none; }
.cmp-head-grid .cmp-add.cmp-add-col { display: none; }
.cmp-price-sm { font-size: 13px; color: var(--ink-2); font-weight: 600; }
/* Din nuværende bil som kolonne */
.cmp-mine-car[hidden], .cv-mine[hidden] { display: none; }
/* Samme størrelse som fotoene af de andre biler (16:10) */
.cmp-mine-art { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 14px; border: 1.5px dashed var(--line-strong); padding: 6px; }
.cmp-mine-art .car-svg { width: 100%; }
.cmp-mine-edit { font-size: 13px; font-weight: 600; color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.is-stuck .cmp-mine-art { aspect-ratio: auto; height: 44px; padding: 2px 6px; }
.is-stuck .cmp-mine-art .car-svg { max-height: 38px; margin-inline: auto; width: auto; }
.is-stuck .cmp-mine-edit { display: none; }
.cmp .tco-mine { scroll-margin-top: calc(var(--header-h) + 180px); }

.winners { display: grid; gap: 10px; margin: 18px 0 8px; }
.winner-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 16px 18px; }
.winner-card h2 { font-size: 17px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.winner-card h2 .ico { color: var(--brand-ink); }
.score-bars { display: grid; gap: 10px; margin-top: 14px; }
.score-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14px; }
.score-row .sr-v { font-weight: 650; font-variant-numeric: tabular-nums; }
.score-row .sr-track { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.score-row .sr-track i { display: block; height: 100%; border-radius: 8px; background: var(--ink-3); animation: grow .9s var(--ease) both; }
.score-row.lead .sr-track i { background: var(--brand); }
.verdicts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.verdicts li { display: flex; gap: 10px; align-items: start; font-size: 14.5px; }
.verdicts li .v-ico { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.verdicts li .v-ico .ico { width: 16px; height: 16px; }
.verdicts b { font-weight: 650; }

.cmp-group { margin-top: 24px; }
.cmp-group > h2 { position: sticky; left: var(--gutter); width: max-content; font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 500; padding: 0 0 8px; }
.cmp-rows { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; }
.cmp-row { padding: 12px var(--row-px); border-top: 1px solid var(--line); }
.cmp-row:first-child { border-top: 0; }
.cmp-row .cmp-grid { align-items: start; }
.cmp-row .rl { grid-column: 1 / -1; position: sticky; left: calc(var(--gutter) + var(--row-px) + 1px); font-size: 13px; color: var(--ink-2); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; width: max-content; max-width: calc(100vw - 2 * var(--gutter) - 2 * var(--row-px)); }
.cmp-row .rl .hint-i { color: var(--ink-3); width: 14px; height: 14px; }
.cv { min-width: 0; }
.cv .v { display: flex; align-items: center; gap: 4px; font-weight: 650; font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: -0.015em; }
.cv .v .win-check { width: 16px; height: 16px; flex: none; }
.cv.best .v { color: var(--brand-ink); }
.cv .vbar { height: 4px; border-radius: 4px; background: var(--surface-2); margin-top: 7px; overflow: hidden; }
.cv .vbar i { display: block; height: 100%; border-radius: 4px; background: var(--line-strong); }
.cv.best .vbar i { background: var(--brand); }
.cmp-row.same .v { color: var(--ink-2); font-weight: 500; }
.only-diff .cmp-row.same { display: none; }
.only-diff .cmp-group.all-same { display: none; }

.picker-dialog { border: 0; padding: 0; border-radius: 24px; width: min(560px, calc(100vw - 24px)); max-height: min(80dvh, 720px); background: var(--bg-elev); color: var(--ink); box-shadow: var(--shadow-l); }
.picker-dialog::backdrop { background: rgb(5 10 7 / .5); backdrop-filter: blur(3px); }
.picker-head { position: sticky; top: 0; background: var(--bg-elev); padding: 18px 18px 12px; border-bottom: 1px solid var(--line); z-index: 1; }
.picker-head h2 { font-size: 19px; font-weight: 650; display: flex; justify-content: space-between; align-items: center; }
.picker-head .search-sm { display: flex; align-items: center; gap: 8px; height: 44px; margin-top: 12px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.picker-head .search-sm input { flex: 1; border: 0; outline: none; background: transparent; min-width: 0; }
.picker-list { list-style: none; margin: 0; padding: 8px; }
.picker-list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; border: 0; background: transparent; text-align: left; }
.picker-list button:hover { background: var(--surface-2); }
.picker-list .art { width: 76px; border-radius: 10px; padding: 4px 4px 0; flex: none; }
.picker-list b { display: block; font-size: 15px; }
.picker-list small { color: var(--ink-3); font-size: 13px; }

/* ---------- Guide ---------- */
.guide { max-width: 760px; margin-inline: auto; padding: 20px 0 40px; }
.guide-progress { display: flex; gap: 6px; margin-bottom: 22px; }
.guide-progress span { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-3); position: relative; overflow: hidden; }
.guide-progress span.done::after, .guide-progress span.current::after { content: ""; position: absolute; inset: 0; background: var(--brand); border-radius: 6px; }
.guide-progress span.current::after { animation: grow .5s var(--ease) both; }
.guide-step-meta { font-family: var(--mono); font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.guide :is(h1, .g-title) { font-size: clamp(28px, 7vw, 42px); font-weight: 700; letter-spacing: -0.04em; margin: 8px 0 8px; }
.guide .g-help { color: var(--ink-2); }
.g-options { display: grid; gap: 10px; margin-top: 22px; }
.g-opt { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--surface); text-align: left; transition: border-color .2s, background .2s, transform .2s var(--ease); width: 100%; }
.g-opt:hover { border-color: var(--line-strong); }
.g-opt:active { transform: scale(.99); }
.g-opt .g-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.g-opt .g-ico .ico { width: 22px; height: 22px; }
.g-opt b { display: block; font-size: 16px; font-weight: 600; }
.g-opt small { display: block; color: var(--ink-3); font-size: 13.5px; margin-top: 2px; }
.g-opt .g-tick { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; color: transparent; transition: all .2s; }
.g-opt .g-tick .ico { width: 16px; height: 16px; }
.g-opt[aria-pressed="true"] { border-color: var(--brand); background: color-mix(in oklab, var(--brand-soft) 70%, var(--surface)); }
.g-opt[aria-pressed="true"] .g-ico { background: var(--brand); color: var(--brand-contrast); }
.g-opt[aria-pressed="true"] .g-tick { background: var(--brand); border-color: var(--brand); color: var(--brand-contrast); }
.g-sub { margin-top: 26px; font-weight: 650; font-size: 16px; }
.g-budget { margin-top: 26px; padding: 22px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.g-budget output { display: block; font-size: 44px; font-weight: 700; letter-spacing: -0.04em; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.g-budget .g-count { font-size: 14px; color: var(--ink-2); margin-top: 12px; display: flex; align-items: center; gap: 6px; }
.g-budget .g-count b { color: var(--brand-ink); }
.guide-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; }
.guide-nav .btn-brand { margin-left: auto; }

/* "Spil bilkort": pris og rækkevidde som store skydere (guidens budget-skyder), resten under "Avanceret",
   og "Start spillet" altid synlig nederst */
.bilkort-start { max-width: 760px; margin-inline: auto; padding: 20px 0 0; }
.bk-head .eyebrow { color: var(--brand-ink); }
.bk-head .eyebrow .ico { width: 15px; height: 15px; }
.bk-head h1 { margin-top: 8px; font-size: clamp(28px, 7vw, 42px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
.bk-head p { margin-top: 8px; color: var(--ink-2); }
.bk-slider { margin-top: 14px; padding: 18px 22px 16px; }
.bk-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bk-label { font-weight: 650; font-size: 15px; color: var(--ink-2); }
.bilkort-start .bk-slider output { margin: 0; font-size: clamp(26px, 6vw, 34px); white-space: nowrap; }
.bk-q-short { display: none; }

.bk-advanced { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.bk-advanced summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; }
.bk-advanced summary::-webkit-details-marker { display: none; }
.bk-adv-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); }
.bk-adv-ico .ico { width: 20px; height: 20px; }
.bk-adv-text { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.bk-adv-text b { font-size: 16px; font-weight: 650; }
.bk-adv-text small { font-size: 13px; color: var(--ink-3); }
.bk-advanced summary > .ico { width: 20px; height: 20px; color: var(--ink-3); transition: transform .2s var(--ease); }
.bk-advanced[open] summary > .ico { transform: rotate(180deg); }
.bk-filters { padding: 0 18px 4px; border-top: 1px solid var(--line); }
.bk-filters > .fgroup:first-child { border-top: 0; }

/* Start-knappen svæver altid i bunden af skærmen – over bundmenuen på mobil. Formularen får plads under
   indholdet, så knappen aldrig dækker det sidste */
.bilkort-start { padding-bottom: calc(56px + 40px); }
.bk-start {
  position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 14px); z-index: 65; /* over sammenlign-bakken og bundmenuen – må aldrig dækkes */
  display: flex; justify-content: center; padding-inline: var(--gutter); pointer-events: none;
}
.bk-start .btn { pointer-events: auto; }
/* Sammenlign-bakken vises ikke her – den lå oven på "Start spillet" */
.js:has(.bilkort-start) .tray { display: none !important; }
.bk-start .btn { width: min(100%, 420px); height: 56px; gap: 10px; font-size: 17px; box-shadow: 0 14px 30px -12px color-mix(in oklab, var(--brand) 80%, transparent); }
.bk-start .btn .ico { width: 20px; height: 20px; }
.bk-start .btn small { padding: 3px 9px; border-radius: 999px; background: rgb(255 255 255 / .2); font-size: 13px; font-weight: 600; }
.bk-start .btn small b { font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .bk-start { bottom: 24px; } }

/* Mobil: det hele skal kunne ses på én skærm – også på små telefoner. Kort tekst, label og værdi på én linje,
   mindre luft og skrift */
@media (max-width: 639px) {
  .bilkort-start { padding-top: 12px; }
  .bk-head .eyebrow { display: none; }
  .bk-head h1 { margin-top: 0; font-size: clamp(22px, 6.4vw, 28px); }
  .bk-head p { margin-top: 4px; font-size: 13.5px; line-height: 1.4; }
  .bilkort-start .g-budget { margin-top: 10px; padding: 12px 14px 10px; border-radius: var(--radius); }
  .bk-q { display: none; }
  .bk-q-short { display: inline; }
  .bk-label { margin: 0; font-size: 14px; }
  .bilkort-start .bk-slider output { font-size: clamp(20px, 6vw, 26px); }
  .bk-slider input[type="range"] { margin-top: 2px; }
  .bk-slider .range-ends { display: none; }
  .bk-slider .g-count { margin-top: 2px; font-size: 12.5px; }
  .bk-slider .g-count .ico { width: 14px; height: 14px; }
  .bk-advanced { margin-top: 10px; border-radius: var(--radius); }
  .bk-advanced summary { gap: 10px; padding: 10px 14px; }
  .bk-adv-ico { width: 32px; height: 32px; border-radius: 10px; }
  .bk-adv-ico .ico { width: 17px; height: 17px; }
  .bk-adv-text b { font-size: 15px; }
  .bk-adv-text small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bk-filters { padding-inline: 14px; }
  .bilkort-start { padding-bottom: calc(50px + 28px); }
  .bk-start { bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 10px); }
  .bk-start .btn { height: 50px; font-size: 16px; }
}
/* Lave skærme (små telefoner, eller med browserens værktøjslinjer): forklaringen og tallene under skyderne væk */
@media (max-width: 639px) and (max-height: 600px) {
  .bk-head p { display: none; }
  .bk-slider .g-count { display: none; }
}

.results { display: grid; gap: 12px; margin-top: 22px; }
.match {
  display: grid; grid-template-columns: 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden;
}
.match.top { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 18%, transparent); }
.match .art { padding: 18px 16px 6px; position: relative; }
.match-body { padding: 16px 18px 18px; }
.match-top { display: flex; align-items: center; gap: 14px; }
.ring { --v: 80; width: 60px; height: 60px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--brand) calc(var(--v) * 1%), var(--surface-3) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); }
.ring span { position: relative; font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.ring span small { font-size: 10px; }
.match h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.03em; }
.match .m-variant { font-size: 13.5px; color: var(--ink-3); }
.reasons { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; }
.reasons li { display: flex; gap: 8px; align-items: start; font-size: 14.5px; }
.reasons li .ico { width: 18px; height: 18px; margin-top: 1px; flex: none; }
.reasons li.pro .ico { color: var(--brand-ink); }
.reasons li.con { color: var(--ink-2); }
.reasons li.con .ico { color: var(--warn); }
.match-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.rank-pill { position: absolute; top: 12px; left: 12px; }
.guide-summary { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.guide-summary .chip { height: 30px; font-size: 13px; }
.notice { display: flex; gap: 10px; align-items: start; padding: 12px 14px; border-radius: 14px; background: var(--warn-soft); color: var(--ink); font-size: 14px; margin-top: 16px; }
.notice .ico { color: var(--warn); margin-top: 1px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 48px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: grid; gap: 24px; padding-block: 32px 28px; }
.footer-inner p { color: var(--ink-2); font-size: 14px; margin-top: 10px; max-width: 30em; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.footer-cols .footer-h { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.footer-cols a { display: block; font-size: 14px; color: var(--ink-2); padding: 3px 0; }
.footer-cols a:hover { color: var(--ink); }
.footer-bottom { font-size: 12.5px; color: var(--ink-3); padding-bottom: 24px; display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; top: calc(var(--header-h) + 14px); z-index: 90; transform: translate(-50%, -12px); opacity: 0; pointer-events: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-l); transition: all .3s var(--ease); white-space: nowrap; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast .ico { color: var(--brand); width: 18px; height: 18px; }

/* ---------- View Transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s ease both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease) both; }
::view-transition-group(car-hero) { animation-duration: .45s; animation-timing-function: var(--ease); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
.reveal { animation: reveal .6s var(--ease) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =========================================================
   ≥ 640px – store telefoner / små tablets
   ========================================================= */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .car-grid { grid-template-columns: repeat(2, 1fr); }
  .scroller { grid-auto-columns: 46%; }
  .stat-strip { grid-template-columns: repeat(4, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-chart { grid-column: 1 / -1; }
  .search-xl .btn span { display: inline; }
  .trust { grid-template-columns: repeat(3, 1fr); }
  .keystats { grid-template-columns: repeat(4, 1fr); }
  .g-options.cols-2 { grid-template-columns: 1fr 1fr; }
  .match { grid-template-columns: 240px 1fr; }
  .match .art { display: grid; place-items: center; padding: 16px; }
  .winners { grid-template-columns: 1fr 1fr; }
  .tray { left: 50%; right: auto; transform: translateX(-50%); width: min(560px, calc(100vw - 32px)); }
  .tray[hidden] { transform: translate(-50%, 140%); }
  .tray-text { display: block; }
  .footer-cols { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   ≥ 900px – desktop
   ========================================================= */
@media (min-width: 900px) {
  :root { --header-h: 72px; --gutter: 32px; }
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .logo { font-size: 26px; }
  .top-nav { display: flex; align-items: center; gap: 4px; margin-right: 8px; }
  .top-nav a { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .2s, background .2s; }
  .top-nav a:hover { color: var(--ink); background: var(--surface-2); }
  .top-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
  .top-nav .nav-badge { position: static; border: 0; margin-left: 2px; }
  .header-search-btn { display: none; }

  .hero { padding: 56px 0 56px; }
  .hero-copy > .eyebrow { font-size: 12px; letter-spacing: .04em; gap: 8px; }
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 56px; }
  .hero .lead { font-size: 19px; }
  .hero-game { padding: 28px 28px 30px; }
  .hg-deck { height: 330px; }
  .hg-card { --s: .66; }
  .hg-card:nth-child(1) { transform: translateX(-96px) rotate(-13deg) scale(calc(var(--s) * .92)); }
  .hg-card:nth-child(2) { transform: translateX(96px) rotate(11deg) scale(calc(var(--s) * .92)); }

  .section { padding-block: 64px 8px; }
  .section-head h2 { font-size: 32px; }

  .bento { grid-template-columns: repeat(12, 1fr); gap: 16px; }
  .bento > .t-range { grid-column: span 4; }
  .bento > .t-charge { grid-column: span 4; }
  .bento > .t-value { grid-column: span 4; }
  .bento > .tile-chart { grid-column: span 8; }
  .bento > .tile-guide { grid-column: span 4; }
  .bento > .t-tow { grid-column: span 4; }
  .bento > .t-family { grid-column: span 4; }
  .bento > .t-cheap { grid-column: span 4; }

  .car-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .scroller { grid-auto-columns: calc((100% - 48px) / 4); margin-inline: 0; padding-inline: 0; }

  .list-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
  .list-toolbar { position: static; margin: 0 0 4px; padding: 0; background: none; backdrop-filter: none; }
  .filter-btn { display: none; }
  .filters {
    position: sticky; top: calc(var(--header-h) + 16px); inset: auto; z-index: 1; transform: none; visibility: visible;
    max-height: calc(100dvh - var(--header-h) - 32px); border-radius: var(--radius-l); box-shadow: none;
    border: 1px solid var(--line); background: var(--surface); padding: 16px 20px;
  }
  .filters .grabber, .filters .close-filters, .filters-foot .btn-primary { display: none; }
  .filters-foot { position: static; padding-top: 4px; }
  .scrim { display: none; }
  .list-layout .car-grid { grid-template-columns: repeat(2, 1fr); }

  .model-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 40px; padding-top: 8px; }
  .model-art { min-height: 380px; padding: 48px 32px 24px; }
  .panels { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
  .specs { grid-template-columns: 1fr 1fr; align-items: start; gap: 16px; }
  .sticky-cta { display: none; }
  .tray { bottom: 24px; }
  .has-sticky-cta .tray { display: flex; }
  .has-sticky-cta .tray[hidden] { display: flex; }
  .has-sticky-cta #app { padding-bottom: 0; }
  .has-tray #app { padding-bottom: 96px; }

  .cmp { --row-px: 20px; --gap: 16px; }
  .cmp-grid { grid-template-columns: 200px repeat(var(--n2), minmax(0, 1fr)); }
  .cmp-head-grid, .cmp-body { min-width: 0; }
  .cmp-label-cell { display: flex; flex-direction: column; justify-content: end; gap: 10px; padding-bottom: 6px; font-size: 13px; color: var(--ink-3); align-self: stretch; }
  .cmp-add-col { display: block; }
  .cmp-head-grid .cmp-add.cmp-add-col { display: grid; }
  .cv .v { font-size: 15.5px; gap: 6px; }
  .cv .v .win-check { width: 18px; height: 18px; }
  .cmp-row .rl { grid-column: auto; position: static; margin: 0; width: auto; max-width: none; font-size: 14px; }
  .cmp-group > h2 { position: static; }
  .cmp-scroll { overflow: visible; margin: 0; padding: 0; }
  .cmp-head-wrap { margin-inline: 0; }
  .winners { grid-template-columns: 1fr 1.4fr; }

  .footer-inner { grid-template-columns: 1.2fr 2fr; }
}

/* =========================================================
   ≥ 1200px – brede skærme
   ========================================================= */
@media (min-width: 1200px) {
  .list-layout .car-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 84px; }
}

/* =========================================================
   Tilføjelser til MVC-versionen (server-renderet HTML,
   rigtige formularfelter og <img>-illustrationer)
   ========================================================= */
img.car-svg { display: block; width: 100%; height: auto; }
.ta-art img { width: 100%; height: auto; }
.tray-thumb img { width: 48px; height: auto; }

/* Valgt/ikke valgt til sammenligning – .is-added sættes af site.js */
[data-compare-toggle]:not(.is-added) .when-on,
[data-compare-state]:not(.is-added) .when-on,
.is-added .when-off,
.is-added.when-off { display: none !important; }
[data-compare-state]:not(.is-added) > .when-on { display: none !important; }

/* Chips og guide-valg bygget på rigtige checkbokse/radioknapper */
.chip { position: relative; cursor: pointer; }
.chip input, .g-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip:has(input:checked) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip:has(input:focus-visible), .g-opt:has(input:focus-visible) { outline: 2.5px solid var(--brand); outline-offset: 2px; }
fieldset.fgroup { border: 0; margin: 0; padding: 16px 0; min-width: 0; border-top: 1px solid var(--line); }
legend.flabel { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 14.5px; }
legend.flabel + .fchips { clear: both; }
.g-opt { cursor: pointer; }
.g-opt:has(input:checked) { border-color: var(--brand); background: color-mix(in oklab, var(--brand-soft) 70%, var(--surface)); }
.g-opt:has(input:checked) .g-ico { background: var(--brand); color: var(--brand-contrast); }
.g-opt:has(input:checked) .g-tick { background: var(--brand); border-color: var(--brand); color: var(--brand-contrast); }
.g-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.g-step legend { padding: 0; }
.g-step + .g-step { margin-top: 48px; }
.js .g-step:not(.is-current) { display: none; }
.js .g-step + .g-step { margin-top: 0; }
.guide-nav [hidden] { display: none; }

/* Variantvalg som links */
.seg a { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 550; white-space: nowrap; color: var(--ink-2); transition: all .2s; }
.seg a:hover { color: var(--ink); border-color: var(--line-strong); }
.seg a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Uden JavaScript vises filtrene som en almindelig blok på mobil */
html:not(.js) .filters { position: static; transform: none; visibility: visible; box-shadow: none; border: 1px solid var(--line); border-radius: var(--radius-l); max-height: none; }
html:not(.js) .filter-btn, html:not(.js) .grabber, html:not(.js) .close-filters { display: none; }

.stars { letter-spacing: 1px; color: var(--ink); }
.stars-off { opacity: .25; }
.spec-sub { color: var(--ink-3); font-weight: 500; }
.sg-title { display: flex; align-items: center; gap: 10px; }
.calc-label { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.empty-ico { display: grid; place-items: center; margin-bottom: 12px; color: var(--ink-3); }
.empty-ico .ico { width: 36px; height: 36px; }
.cmp-car > a.art { display: block; }

.picker-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; text-align: left; }
a.picker-item:hover { background: var(--surface-2); }
.picker-item.is-disabled { opacity: .45; }
.picker-item .art { width: 76px; border-radius: 10px; padding: 4px 4px 0; flex: none; }
.picker-item b { display: block; font-size: 15px; }
.picker-item small { color: var(--ink-3); font-size: 13px; }
.picker-list li[hidden] { display: none; }

/* Dagens benzinpris i strømberegneren */
.fuel-today { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }
.calc-result .fuel-today b { font-size: inherit; letter-spacing: 0; color: var(--ink); font-weight: 650; }
.fuel-today .pulse { flex: none; }

/* =========================================================
   Samlede udgifter (modelside og sammenligning)
   ========================================================= */
:root { --seg-dep: #3e6fb0; --seg-energy: #22a344; --seg-ins: #c98314; --seg-svc: #8559c4; --seg-tax: #c24a6e; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --seg-dep: #6f9ee0; --seg-energy: #4bd96e; --seg-ins: #f0a94a; --seg-svc: #b08ef0; --seg-tax: #f07fa0; }
}
:root[data-theme="dark"] { --seg-dep: #6f9ee0; --seg-energy: #4bd96e; --seg-ins: #f0a94a; --seg-svc: #b08ef0; --seg-tax: #f07fa0; }
.seg-dep { background: var(--seg-dep); }
.seg-energy { background: var(--seg-energy); }
.seg-ins { background: var(--seg-ins); }
.seg-svc { background: var(--seg-svc); }
.seg-tax { background: var(--seg-tax); }

.tco { margin-top: 12px; }
.tco-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 18px; }
.tco-inputs { display: grid; gap: 14px; }
.tco-ins { margin-top: 16px; }
.tco-hint { display: block; font-size: 12px; color: var(--ink-3); margin-top: 6px; }

.money-input { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); margin-top: 8px; }
.money-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 18%, transparent); }
.money-input input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.money-input input::-webkit-outer-spin-button, .money-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.money-input span { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.money-input-sm { height: 34px; padding: 0 8px; margin-top: 0; border-radius: 10px; }
.money-input-sm input { font-size: 14px; }
/* Din pris og værditab: brugerens eget tal markeres, og ✕ giver vores beregning tilbage */
/* Smalle kolonner i sammenligningen: plads til 6 cifre og ✕ – rækkerne er kroner, så "kr." kan undværes */
@media (max-width: 899px) {
  .cmp .money-input-sm { gap: 4px; padding: 0 6px; }
  .cmp .money-input-sm > span { display: none; }
  .cmp .money-input-sm input { font-size: 13px; }
}

.tco-total small { display: block; font-size: 13px; color: var(--ink-3); }
.tco-total b { display: block; font-size: 38px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
.tco-sub { font-size: 14px; color: var(--ink-2); }
.tco-bar { display: flex; gap: 2px; height: 14px; border-radius: 8px; overflow: hidden; margin: 16px 0 6px; background: var(--surface); }
.tco-bar i { display: block; min-width: 0; flex-basis: 0; }
.tco-list { list-style: none; margin: 0; padding: 0; }
.tco-list li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.tco-list li:first-child { border-top: 0; }
.tco-list .sw { width: 12px; height: 12px; border-radius: 4px; }
.tco-list .tl small { display: block; font-size: 12.5px; color: var(--ink-3); }
.tco-list b { font-weight: 650; font-variant-numeric: tabular-nums; }
.tco-fuel { display: grid; gap: 6px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); font-size: 14px; }
.tco-fuel > span > b { color: var(--brand-ink); }
.tco .fuel-today { margin-top: 0; }
.tco .calc-note { margin-top: 12px; }

.tco-box { margin-top: 18px; padding: 18px; border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--surface); }
.tco-box h2 { font-size: 17px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.tco-box h2 .ico { color: var(--brand-ink); }
.tco-box .tco-inputs { margin-top: 14px; }
.cmp-tco .cv:not(.best) .win-check, .cmp-lease .cv:not(.best) .win-check { display: none; }
.cmp-tco .tco-total-row { background: color-mix(in oklab, var(--brand-soft) 45%, var(--surface)); }
.cmp-tco .tco-total-row .v { font-size: 16.5px; }
.cmp-row .rl-sub { display: block; font-size: 12px; color: var(--ink-3); }

/* Din nuværende bil */
.tco-vsmine { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); font-size: 14px; }
.tco-vsmine .ico { flex: none; width: 18px; height: 18px; color: var(--brand-ink); }
.tco-vsmine b { color: var(--brand-ink); }
.tco-mine { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.tco-mine[hidden], .tco-mine [hidden], .tco-vsmine[hidden] { display: none; }
.tco-mine-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 0 12px; }
.tco-mine-head h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 650; }
.tco-mine-head h3 .ico { width: 18px; height: 18px; color: var(--brand-ink); }
.tco-mine-head p { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.tco-mine-btns { display: flex; justify-content: flex-end; gap: 8px; }
.tco-mine-head .btn { flex: none; }
.tco-mine-summary { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.tco-mine-summary .sum-art { flex: none; width: 76px; border-radius: 10px; padding: 4px 4px 0; align-self: center; }
.tco-mine-summary .sum-car { flex: 1 1 0; min-width: 0; display: grid; gap: 1px; align-self: center; }
.tco-mine-summary .sum-car b { font-size: 15px; font-weight: 650; color: var(--ink); }
.tco-mine-summary .sum-cost { flex: none; display: grid; text-align: right; }
.tco-mine-summary .sum-cost b { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; color: var(--ink); }
/* Sammenfoldet på bredere skærme: overskrift | bil … udgift | knapper på én linje */
@media (min-width: 640px) {
  .tco-mine.is-saved .tco-mine-head { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 24px; }
  .tco-mine.is-saved .tco-mine-summary { grid-column: 2; grid-row: 1; align-items: center; margin-top: 0; padding-left: 24px; border-left: 1px solid var(--line); }
  .tco-mine.is-saved .tco-mine-btns { grid-column: 3; grid-row: 1; }
}
.tco-mine-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 4px; }
.tco-mine-actions .tco-hint { margin-top: 0; }
/* Under 900 px er "Ret" og "Fjern" kun ikoner, så overskriften og opsummeringen har plads */
@media (max-width: 899px) {
  .btn-ico-sm { padding: 0 10px; }
  .btn-ico-sm > span { display: none; }
}
.tco-mine-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 16px; }
.tco-mine-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }
.tco-mine fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.tco-mine legend { padding: 0; }
.tco-mine .chip-row { margin-top: 8px; }
.tco-opt { font-weight: 450; color: var(--ink-3); }
.tco-mine-find { margin-top: 16px; max-width: 560px; }
.tco-mine-find .money-input > .ico { flex: none; width: 18px; height: 18px; color: var(--ink-3); }
.tco-mine-hits { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.tco-mine-hits button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 0; border-radius: 12px; background: transparent; text-align: left; }
.tco-mine-hits button:hover, .tco-mine-hits button:focus-visible { background: var(--surface-2); }
.tco-mine-hits .ta-art { width: 64px; flex: none; }
.tco-mine-hits .ta-name { display: block; font-weight: 600; font-size: 15px; }
.tco-mine-hits .ta-meta { display: block; font-size: 13px; color: var(--ink-3); }
.tco-mine-hits .ta-empty { padding: 8px 10px; color: var(--ink-3); font-size: 14px; }
.tco-mine-plus { flex: none; display: grid; place-items: center; width: 64px; height: 36px; border-radius: 10px; border: 1.5px dashed var(--line-strong); color: var(--brand-ink); }
.tco-mine-plus .ico { width: 18px; height: 18px; }

@media (min-width: 640px) {
  .tco-box .tco-inputs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .tco-mine-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
  .tco-mine-wide { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .panels.panels-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tco { margin-top: 16px; padding: 24px; }
  .tco-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; }
  .tco-total b { font-size: 44px; }
  .tco-mine-body { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; }
}

/* =========================================================
   Fotos af modellerne (Wikimedia Commons). Fotoet fylder hele
   billedfeltet; modeller uden foto viser stadig illustrationen.
   ========================================================= */
.car-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-2); }
/* Fotoet dækker hele feltet, så den farvede gradient bag illustrationerne er spildt arbejde her */
.art:has(> .car-photo):not(.hp-car) { padding: 0; overflow: hidden; background: var(--surface-2); }
.car-card .art:has(> .car-photo) { display: block; }
.car-card .art .car-photo { height: 100%; transition: transform .5s var(--ease); }
.car-card:hover .art .car-photo { transform: scale(1.03); }
.hp-car .car-photo { border-radius: calc(var(--radius) - 4px); margin-bottom: 8px; }
.vs-arts .art .car-photo, .cmp-car .art .car-photo { border-radius: inherit; }
/* "Tilføj bil" i sammenligningen fylder det samme som bilernes billeder */
.cmp-head-grid .cmp-add { aspect-ratio: 16 / 10; min-height: 0; }
.is-stuck .cmp-head-grid .cmp-add { aspect-ratio: auto; min-height: 60px; }
.picker-item .art .car-photo, .picker-list .art .car-photo { aspect-ratio: 4 / 3; }
/* Kilden til serviceprisen under feltet i sammenligningen */
.cv-note { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.35; color: var(--ink-3); }

/* Din egen bil øverst i "Tilføj bil" – adskilt fra elbilerne */
.picker-mine { position: sticky; top: 0; z-index: 1; background: var(--bg-elev); padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.picker-mine .picker-item { background: color-mix(in oklab, var(--brand) 8%, var(--surface)); }
.picker-mine .picker-item:hover { background: color-mix(in oklab, var(--brand) 14%, var(--surface)); }
.picker-mine .art { display: grid; place-items: center; }
.is-stuck .cmp-car .art .car-photo { height: 44px; aspect-ratio: auto; }
.match .art:has(> .car-photo) { display: block; }
.tray-thumb img[src*="/img/cars/"], .ta-art img[src*="/img/cars/"] { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ta-art:has(img[src*="/img/cars/"]) { border-radius: 8px; overflow: hidden; }

.model-art:has(> .car-photo), .model-art:has(> .photo-zoom) { display: block; min-height: 0; padding: 0; overflow: hidden; }
/* Fotoet på modelsiden åbner i fuld skærm */
.photo-zoom { display: block; cursor: zoom-in; }
.photo-zoom-hint {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgb(0 0 0 / .5); color: #fff; opacity: 0; transition: opacity .2s;
}
.photo-zoom-hint .ico { width: 18px; height: 18px; }
.photo-zoom:hover .photo-zoom-hint, .photo-zoom:focus-visible .photo-zoom-hint { opacity: 1; }
@media (hover: none) { .photo-zoom-hint { opacity: .85; } }
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fff; overflow: hidden; }
.lightbox::backdrop { background: #000; }
.lightbox-stage { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); width: 100%; height: 100%; background: #000; }
.lightbox img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; cursor: zoom-out; }
.lightbox form { grid-area: 1 / 1; justify-self: end; align-self: start; z-index: 1; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 0 0; }
.lightbox-close {
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgb(255 255 255 / .16); color: #fff; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lightbox-close:hover { background: rgb(255 255 255 / .28); }
.lightbox-credit {
  grid-area: 1 / 1; align-self: end; justify-self: center; margin-bottom: max(12px, env(safe-area-inset-bottom));
  max-width: calc(100% - 24px); padding: 3px 10px; border-radius: 999px; background: rgb(0 0 0 / .55);
  font-size: 12px; line-height: 1.4; color: rgb(255 255 255 / .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lightbox-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.model-art .car-photo { aspect-ratio: 3 / 2; max-height: 520px; }
.photo-credit {
  position: absolute; right: 8px; bottom: 8px; max-width: calc(100% - 16px);
  padding: 3px 8px; border-radius: 999px; background: rgb(0 0 0 / .55); color: #fff;
  font-size: 11px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.photo-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.credits-page h1 { margin-top: 8px; }
.credits-page .lede { max-width: 68ch; color: var(--ink-2); margin-top: 8px; }
.credits-page .lede a { text-decoration: underline; }
.credits-list { list-style: none; padding: 0; margin: 24px 0 48px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.credits-list li { display: flex; gap: 12px; align-items: center; min-width: 0; }
.credits-list .art { width: 96px; flex: none; border-radius: 10px; overflow: hidden; }
.credits-list div { min-width: 0; }
.credits-list b { display: block; font-size: 15px; }
.credits-list small { display: block; color: var(--ink-3); font-size: 13px; overflow-wrap: anywhere; }
.credits-list small a { text-decoration: underline; text-underline-offset: 2px; }

/* Admin-genvej i headeren (kun når man er logget ind i admin) */
.admin-link { color: var(--brand-ink); border-color: color-mix(in oklab, var(--brand) 40%, var(--line)); }

/* ---------- Leasing i "Samlede udgifter" ---------- */
:root { --seg-lease: #2a8c9a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --seg-lease: #5cc6d4; }
}
:root[data-theme="dark"] { --seg-lease: #5cc6d4; }
.seg-lease { background: var(--seg-lease); }
/* Felter, der kun hører til køb eller leasing, skjules med hidden – også når klassen selv sætter display */
.tco [hidden], .cmp-tco [hidden] { display: none !important; }

.tco-fin { border: 0; padding: 0; min-width: 0; }
.fin-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-top: 8px; border-radius: 14px; background: var(--surface-2); }
.fin-toggle label { position: relative; cursor: pointer; }
.fin-toggle input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fin-toggle span { display: grid; place-items: center; height: 40px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--ink-2); transition: background .2s, color .2s, box-shadow .2s; }
.fin-toggle input:checked + span { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-s); }
.fin-toggle input:focus-visible + span { outline: 2.5px solid var(--brand); outline-offset: 2px; }

.tco-lease { margin-top: 14px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: color-mix(in oklab, var(--surface-2) 50%, var(--surface)); }
.tco-lease-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.tco-lease-grid .money-input { margin-top: 6px; }
.tco-lease-wide { grid-column: 1 / -1; }
.tco-lease-incl { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.tco-lease-incl legend { float: left; width: 100%; margin-bottom: 8px; padding: 0; }
.check-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; font-weight: 550; cursor: pointer; }
.check-chip input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); flex: none; }
.check-chip:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.check-chip:has(input:focus-visible) { outline: 2.5px solid var(--brand); outline-offset: 2px; }

.fin-select { width: 100%; }
.lease-incl { display: grid; gap: 5px; }
.check-mini { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.check-mini input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); flex: none; }
.cv .v.cv-included { font-size: 12.5px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }

/* ---------- Er den den rette bil for dig? ---------- */
.fit { margin-top: 16px; }
.fit-lede { margin-top: 8px; font-size: 15.5px; color: var(--ink-2); }
.fit-cols { display: grid; gap: 16px; margin-top: 16px; }
.fit-col h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 8px; }
.fit-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fit-col li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; border-radius: 14px; }
.fit-pros li { background: var(--brand-soft); }
.fit-cons li { background: var(--warn-soft); }
.fit-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); }
.fit-ico .ico { width: 18px; height: 18px; }
.fit-pros .fit-ico { color: var(--brand-ink); }
.fit-cons .fit-ico { color: var(--warn); }
.fit-col b { display: block; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.fit-col small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.fit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
/* Lange modelnavne må gerne bryde knappen i to linjer på en smal skærm */
.fit-actions .btn { white-space: normal; height: auto; min-height: 40px; padding-block: 8px; text-align: left; }
@media (min-width: 900px) { .fit-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }

/* ---------- Spørgsmål om modellen ---------- */
.faq-list { display: grid; gap: 8px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.faq-item summary .ico { flex: none; width: 18px; height: 18px; color: var(--ink-3); transition: transform .2s var(--ease); }
.faq-item[open] summary .ico { transform: rotate(180deg); }
.faq-item p { padding: 0 18px 16px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* ---------- Rettelser fra den responsive test (100 skærmstørrelser, 320–3840 px) ---------- */
/* Listen: antal og sortering skal kunne stå på samme linje på de smalleste telefoner */
#r-count { white-space: normal; min-width: 0; }
.result-meta .select { flex: none; max-width: 60%; }
/* Chips med lange modelnavne ("Cayenne Coupé Electric vs. …") må bryde over to linjer */
.chip-row .chip { white-space: normal; height: auto; min-height: 36px; padding-block: 6px; line-height: 1.3; }
/* Guiden: knapperne under resultatet må gå på to linjer */
.guide-nav { flex-wrap: wrap; }
/* "Din nuværende bil" på de smalleste telefoner: knapperne under overskriften */
@media (max-width: 380px) {
  .tco-mine-head { grid-template-columns: minmax(0, 1fr); }
  .tco-mine-btns { justify-content: flex-start; margin-top: 10px; }
}
/* Trykflader på mindst 24 px (WCAG 2.2) – links, der står alene, får luft over og under */
.link-more, .official-link { min-height: 32px; }
.cmp-car h3 a { display: inline-block; padding-block: 3px; }
.money-input-sm input { align-self: stretch; }
.credits-list b a { display: inline-block; padding-block: 3px; }
/* Den faste sammenlign-bjælke på mobil: navnet på én linje, så bjælken ikke vokser og dækker siden */
.sticky-cta > div { min-width: 0; flex: 1; }
.sticky-cta small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta .btn { flex: none; }
/* Telefoner på langs (lav skærm): menuen flytter op i en lavere header i stedet for bundmenuen,
   så header, bundmenu og sammenlign-bjælke ikke tilsammen dækker halvdelen af skærmen */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 899px) {
  :root { --header-h: 52px; --nav-h: 0px; }
  .bottom-nav, .header-search-btn { display: none; }
  .header-inner .logo { font-size: 19px; }
  .header-inner .icon-btn { width: 36px; height: 36px; }
  .top-nav { display: flex; align-items: center; gap: 2px; margin-right: 2px; }
  .top-nav a { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
  .top-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
  .top-nav .nav-badge { position: static; border: 0; margin-left: 2px; }
  .sticky-cta, .tray { bottom: calc(10px + env(safe-area-inset-bottom)); }
}
/* Lave skærme (små telefoner, telefoner på langs): søgning og filter på listen ruller med i stedet for at klæbe */
@media (max-height: 600px) {
  .list-toolbar { position: static; }
}
/* Hele etiketten er trykfladen for afkrydsningerne i leasing-rækkerne og "Ret dine tal" */
.check-mini { min-height: 28px; }
.cmp-mine-edit { display: inline-block; padding-block: 4px; }

/* ---------- Artikler ---------- */
.article { max-width: 820px; }
.article-head { padding: 20px 0 8px; }
.article-head h1 { font-size: clamp(28px, 6.5vw, 42px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.article-lede { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin-top: 12px; }
.article-lede a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; }
.article-updated { display: block; margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.article-section { padding-top: 32px; }
.article-section > h2 { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 10px; }
.article-section > p { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); margin-bottom: 14px; }
.article-section > p:last-child { margin-bottom: 0; }
.article-points { display: grid; gap: 12px; padding-left: 20px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.article-points b { color: var(--ink); }
.article-cta { display: flex; flex-wrap: wrap; gap: 10px; padding: 32px 0 8px; }
.rank-list { list-style: none; display: grid; gap: 8px; counter-reset: rank; padding: 0; }
.rank-list li { counter-increment: rank; }
.rank-item { display: grid; grid-template-columns: 24px 72px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px 8px 8px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rank-item::before { content: counter(rank); font-weight: 650; font-size: 14px; color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; }
.rank-item:hover { border-color: var(--ink-3); }
.rank-item .art { width: 72px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; display: grid; place-items: end center; }
.rank-item .art .car-svg, .rank-item .art img { width: 100%; height: 100%; object-fit: cover; }
.rank-name { min-width: 0; display: grid; gap: 2px; }
.rank-name b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-name small { font-size: 12.5px; color: var(--ink-3); line-height: 1.35; }
.rank-value { font-weight: 650; font-size: 15px; white-space: nowrap; }
.article-table-wrap { padding: 0; overflow-x: auto; }
.article-table th, .article-table td { padding: 10px 14px; }
.article-table td { white-space: nowrap; }
@media (max-width: 520px) { .article-table { font-size: 13.5px; } .article-table th, .article-table td { padding: 9px 6px; } .article-table th[scope="row"] { min-width: 110px; } }
.article-table thead th { font-size: 12.5px; color: var(--ink-3); border-top: 0; text-align: right; }
.article-table thead th:first-child { text-align: left; }
.article-table-ref th, .article-table-ref td { color: var(--ink-3); }
.article-cards { display: grid; gap: 14px; padding-bottom: 24px; }
.article-card { display: grid; gap: 8px; transition: border-color .2s var(--ease); }
.article-card:hover { border-color: var(--ink-3); }
.article-card h2 { font-size: 19px; font-weight: 650; line-height: 1.3; }
.article-card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.article-card-ico .ico { width: 24px; height: 24px; color: var(--brand-ink); }
@media (min-width: 700px) { .article-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 420px) {
  .rank-item { grid-template-columns: 18px 56px minmax(0, 1fr); }
  .rank-item .art { width: 56px; }
  .rank-value { grid-column: 3; font-size: 14px; }
}

/* ---------- Swipe: bilkort ---------- */
.swipe { padding-block: 14px 28px; }
.swipe-head { text-align: center; }
.swipe-head h1 { font-size: clamp(22px, 5.6vw, 38px); font-weight: 700; letter-spacing: -0.04em; }
.swipe-criteria { display: flex; gap: 6px; margin: 10px calc(var(--gutter) * -1) 0; padding: 2px var(--gutter); overflow-x: auto; scrollbar-width: none; }
.swipe-criteria::-webkit-scrollbar { display: none; }
.swipe-criteria .chip { flex: none; height: 28px; padding: 0 10px; font-size: 12.5px; }
.swipe-criteria a.chip { color: var(--ink); }
.swipe-empty { max-width: 560px; margin: 24px auto 0; }

.swipe-play { margin-top: 12px; }
.swipe-play[hidden], .swipe-done[hidden] { display: none; }
.swipe-progress { width: min(100%, 620px); margin: 0 auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.swipe-progress b { color: var(--ink); font-weight: 650; }
.swipe-bar { flex: 1; height: 5px; border-radius: 9px; background: var(--surface-3); overflow: hidden; }
.swipe-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--brand); transition: width .3s var(--ease); }
.swipe-peek { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink); }
.swipe-peek:hover { border-color: var(--line-strong); }
.swipe-peek .nav-badge { position: static; border: 0; }
.swipe-peek .ico { width: 15px; height: 15px; }
.swipe-bar + .swipe-peek { margin-left: 2px; }
/* Med JavaScript står "Ret krav" i linjen med "Se dine valg"; kravene vises kun, hvis der er nogen */
.js .swipe-edit-nojs { display: none; }
.js .swipe-criteria:not(:has(> .chip:not(.swipe-edit-nojs))) { display: none; }

/* Uden JavaScript: kortene på række */
.swipe-stack { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px var(--gutter) 18px; margin-inline: calc(var(--gutter) * -1); }
.swipe-stack > .tcard { flex: none; width: min(300px, 80vw); scroll-snap-align: center; }
:root:not(.js) :is(.swipe-progress, .swipe-controls, .swipe-keys) { display: none; }

/* Med JavaScript: en bunke – det øverste kort med forsiden op, to bagsider under det.
   Siden er præcis så høj som skærmen (--app-h er den højde, browseren faktisk viser – sat af site.js ud fra
   innerHeight, da vh/dvh ikke passer på alle telefoner). Scenen får det, der er tilbage mellem linjen øverst og
   knapperne, og bunken bliver så stor, som scenen tillader (container-enheder). */
.js .swipe:has(> .swipe-play:not([hidden])) {
  display: flex; flex-direction: column;
  height: max(460px, var(--app-h, 100vh) - var(--header-h) - var(--nav-h) - env(safe-area-inset-bottom));
}
.js .swipe-play:not([hidden]) { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.js .swipe-stage { flex: 1; min-height: 0; container-type: size; display: grid; place-items: center; margin-top: 14px; }
.js .swipe-stack { position: relative; display: block; overflow: visible; width: min(100cqw, 100cqh * .714, 720px); aspect-ratio: 5 / 7; margin: 0; padding: 0; user-select: none; -webkit-user-select: none; }
.js .swipe-stack > .tcard { position: absolute; inset: 0; width: auto; height: auto; aspect-ratio: auto; display: none; }
.js .swipe-stack:not(.is-ready) > .tcard { visibility: hidden; }
.js .swipe-stack > .tcard:is(.is-top, .is-under, .is-leaving) { display: block; }
/* Kortene under ligger lidt skævt hver sin vej, som en bunke på et bord */
.js .swipe-stack > .tcard.is-under { --dir: calc(3 - 2 * var(--i, 1)); z-index: calc(10 - var(--i, 1)); transform: translate(calc(var(--dir) * 4px), calc(var(--i, 1) * 6px)) rotate(calc(var(--dir) * 2deg)); transition: transform .35s var(--ease); }
.js .swipe-stack > .tcard.is-top { z-index: 20; cursor: grab; touch-action: pan-y; transition: transform .35s var(--ease); }
.js .swipe-stack > .tcard.is-dragging { cursor: grabbing; transition: none; }
.js .swipe-stack > .tcard.is-leaving { z-index: 30; pointer-events: none; transition: transform .45s cubic-bezier(.3, .6, .4, 1), opacity .45s ease-in; }
.js .swipe-stack > .tcard.is-under .tcard-inner, .tcard.is-dealing .tcard-inner { transform: rotateY(180deg); }
.tcard.is-dealing .tcard-inner, .tcard.no-flip .tcard-inner { transition: none; }
.js .tcard img { pointer-events: none; -webkit-user-drag: none; }
.js .tcard-more { display: none; }
.is-swiping .tray { display: none !important; }

/* Første gang: kortet vipper blødt frem og tilbage, og en pille forklarer, hvordan man swiper */
.js .swipe-stack > .tcard.is-hinting { transition: transform .6s cubic-bezier(.35, .1, .25, 1); }
.tcard.is-hinting .tcard-stamp { transition: opacity .35s, transform .35s; }
.swipe-hint {
  position: absolute; left: 50%; bottom: 18px; z-index: 25; display: flex; align-items: center; gap: 12px;
  padding: 9px 14px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  background: rgb(13 18 15 / .82); color: #fff; box-shadow: 0 12px 30px -10px rgb(0 0 0 / .5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 14px; font-weight: 600; line-height: 1;
  opacity: 0; transform: translate(-50%, 8px); transition: opacity .3s, transform .3s var(--ease);
}
.swipe-hint.is-on { opacity: 1; transform: translate(-50%, 0); }
.swipe-hint span { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.swipe-hint .no { color: #ff9aa2; }
.swipe-hint .yes { color: #8be3a0; }
.swipe-hint .ico { width: 15px; height: 15px; }
/* Mens man spiller på mobil: fuld fokus – ingen menuer (kun logoet, som vej ud), og bunken får bundmenuens plads.
   På desktop bliver topmenuen stående. Overblikket bagefter viser menuerne igen. */
.js:has(.swipe-play:not([hidden])) .tray { display: none !important; }
@media (max-width: 899px) {
  .js:has(.swipe-play:not([hidden])) { --nav-h: 0px; }
  .js:has(.swipe-play:not([hidden])) :is(.bottom-nav, .top-nav, .header-search-btn, .admin-link, .theme-toggle) { display: none !important; }
}

/* Selve kortet: en grøn ramme med nummer og mærke (som et samlekort), og indeni et lyst panel med foto og tal.
   Rammen er kortets egen farve; panelet følger lys/mørk tilstand. */
.tcard {
  --tc-frame: #13502d; --tc-frame-2: #0a2e19; --tc-lime: #a6ea5e; --tc-on-frame: #f2f7ef;
  --tc-panel: var(--surface); --tc-ink: var(--ink); --tc-ink-2: var(--ink-3); --tc-line: var(--line);
  --tc-accent: var(--brand-ink); --tc-r: 6.4cqi;
  position: relative; aspect-ratio: 5 / 7; container-type: inline-size; perspective: 1600px; color: var(--tc-ink);
}
.tcard-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .55s var(--ease); }
.tcard-face, .tcard-back {
  position: absolute; inset: 0; overflow: hidden; border-radius: var(--tc-r);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 1px 2px rgb(0 0 0 / .16), 0 26px 50px -22px rgb(8 30 16 / .55);
}
.tcard-face {
  display: flex; flex-direction: column; padding: 0 2.2cqi;
  background:
    radial-gradient(120% 60% at 0% 0%, rgb(166 234 94 / .22), transparent 60%),
    linear-gradient(165deg, #1b6a3b, var(--tc-frame) 45%, var(--tc-frame-2));
}
/* Tynd lys kant langs rammen + grøn/rød kant, mens man trækker */
.tcard-face::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14),
    inset 0 0 0 max(3px, 1.1cqi) rgb(46 204 92 / var(--yes, 0)), inset 0 0 0 max(3px, 1.1cqi) rgb(230 60 72 / var(--no, 0));
}

/* Toppen af rammen: nummer, mærke, karrosseri */
.tcard-head { display: flex; align-items: center; gap: 2.2cqi; height: max(30px, 10.6cqi); padding: 0 1.2cqi; color: var(--tc-on-frame); line-height: 1; }
.tcard-no {
  display: grid; place-items: center; flex: none; min-width: max(22px, 7.4cqi); height: max(22px, 7.4cqi); padding: 0 1.4cqi; border-radius: 999px;
  background: var(--tc-lime); color: var(--tc-frame-2); font-weight: 700; font-size: max(11px, 3.6cqi); font-variant-numeric: tabular-nums; letter-spacing: -0.03em;
}
.tcard-brand { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; font-size: max(11px, 3.6cqi); letter-spacing: .14em; text-transform: uppercase; }
.tcard-body {
  padding: max(3px, 1cqi) max(7px, 2.2cqi); border-radius: 999px; background: rgb(255 255 255 / .12); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14);
  font-size: max(10px, 2.9cqi); font-weight: 500; letter-spacing: .02em; white-space: nowrap;
}

/* Panelet indeni rammen */
.tcard-panel {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 2cqi; padding: 1.8cqi 1.8cqi 1.4cqi;
  border-radius: calc(var(--tc-r) - 1.8cqi); background: var(--tc-panel);
  box-shadow: 0 1px 0 rgb(255 255 255 / .06), 0 -1px 0 rgb(0 0 0 / .12);
}
.tcard .tcard-art {
  position: relative; flex: 1 1 auto; min-height: 0; display: grid; place-items: end center; padding: 3cqi 4cqi 1cqi; overflow: hidden;
  border-radius: calc(var(--tc-r) - 3.6cqi);
  background: radial-gradient(90% 80% at 50% 100%, color-mix(in oklab, var(--paint) 26%, #fff) 0%, color-mix(in oklab, var(--paint) 8%, #eef0ec) 65%, #e9ece7 100%);
}
.tcard .tcard-art .car-svg { width: 100%; max-height: 100%; object-fit: contain; }
.tcard .tcard-art:has(> .car-photo) { display: block; padding: 0; }
.tcard .tcard-art .car-photo { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.tcard-match {
  position: absolute; top: 2cqi; right: 2cqi; display: inline-flex; align-items: baseline; gap: .8cqi;
  padding: max(4px, 1.3cqi) max(8px, 2.6cqi); border-radius: 999px; color: #0d120f; background: rgb(255 255 255 / .7);
  -webkit-backdrop-filter: blur(12px) saturate(1.6); backdrop-filter: blur(12px) saturate(1.6); box-shadow: 0 1px 4px rgb(0 0 0 / .12);
  font-weight: 700; font-size: max(11px, 3.4cqi); line-height: 1;
}
.tcard-match small { font-size: .82em; font-weight: 500; opacity: .7; }

.tcard-title { padding: 0 1.6cqi; min-width: 0; }
.tcard-title h2 { font-size: max(19px, 7.2cqi); font-weight: 700; letter-spacing: -0.045em; line-height: 1.04; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard-title p { margin-top: .6cqi; font-size: max(10.5px, 3.1cqi); line-height: 1.3; color: var(--tc-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Tallene på linjer – som på de gamle kort, men luftigere */
.tcard-stats { display: grid; margin: 0 .4cqi; line-height: 1.2; }
.tcard-stats div { display: flex; align-items: center; justify-content: space-between; gap: 2cqi; min-width: 0; padding: max(3.5px, 1.25cqi) 1.2cqi; }
.tcard-stats div + div { border-top: 1px solid var(--tc-line); }
.tcard-stats dt { display: flex; align-items: center; gap: 2cqi; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: max(11px, 3.4cqi); color: var(--tc-ink-2); }
.tcard-stats dt .ico { flex: none; width: max(13px, 3.8cqi); height: max(13px, 3.8cqi); color: var(--tc-accent); }
.tcard-stats dd { margin: 0; font-weight: 650; font-size: max(12px, 3.8cqi); letter-spacing: -0.025em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tcard-stats div:first-child dd { font-size: max(13px, 4.3cqi); font-weight: 700; }

/* Bunden af rammen */
.tcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 2cqi; height: max(24px, 8cqi); padding: 0 1.4cqi; font-size: max(9.5px, 2.8cqi); line-height: 1; color: color-mix(in srgb, var(--tc-on-frame) 78%, transparent); }
.tcard-mark { display: inline-flex; align-items: center; gap: 1.2cqi; font-weight: 600; white-space: nowrap; }
.tcard-mark .logo-check { width: max(11px, 3.2cqi); height: max(11px, 3.2cqi); margin: 0; filter: none; }
.tcard-count { font-family: var(--mono); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.tcard-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--tc-on-frame); }
.tcard-more .ico { width: 14px; height: 14px; }

/* Bagsiden: samme grønne ramme med et fint mønster og logoet */
.tcard-back {
  display: grid; place-items: center; transform: rotateY(180deg); color: var(--tc-on-frame);
  background:
    radial-gradient(70% 50% at 50% 50%, rgb(166 234 94 / .22), transparent 70%),
    repeating-linear-gradient(45deg, rgb(255 255 255 / .045) 0 1.6cqi, transparent 1.6cqi 3.2cqi),
    repeating-linear-gradient(-45deg, rgb(255 255 255 / .045) 0 1.6cqi, transparent 1.6cqi 3.2cqi),
    linear-gradient(165deg, #1b6a3b, var(--tc-frame) 45%, var(--tc-frame-2));
}
.tcard-back::after { content: ""; position: absolute; inset: 2.6cqi; border-radius: calc(var(--tc-r) - 2.6cqi); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); pointer-events: none; }
.tcard-back-inner { display: grid; justify-items: center; gap: 2.4cqi; }
.tcard-back-inner .logo-check { width: 22cqi; height: 22cqi; margin: 0; filter: drop-shadow(0 6px 14px rgb(0 0 0 / .3)); }
.tcard-back-inner b { font-size: 7.4cqi; font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.tcard-back-inner span { font-size: 3cqi; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--tc-lime); }

/* Stemplerne, mens man trækker kortet */
.tcard-stamp {
  position: absolute; top: 18cqi; z-index: 2; display: inline-flex; align-items: center; gap: 1.6cqi;
  padding: 2cqi 4cqi 2cqi 3cqi; border-radius: 999px; color: #fff;
  font-size: max(15px, 5.2cqi); font-weight: 700; letter-spacing: -0.02em; line-height: 1;
  box-shadow: 0 10px 30px -8px rgb(0 0 0 / .4); pointer-events: none;
}
.tcard-stamp .ico { width: 1.15em; height: 1.15em; }
.tcard-stamp.is-yes { left: 6cqi; background: #17913a; transform: rotate(-8deg) scale(calc(.8 + var(--yes, 0) * .2)); opacity: var(--yes, 0); }
.tcard-stamp.is-no { right: 6cqi; background: #d63440; transform: rotate(8deg) scale(calc(.8 + var(--no, 0) * .2)); opacity: var(--no, 0); }

/* Knapperne under bunken: to brede pille-knapper til nej/ja og små runde til fortryd/info */
.swipe-controls { display: flex; align-items: center; justify-content: center; gap: 10px; width: min(100%, 420px); margin: 18px auto 0; }
.swipe-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; height: 60px; padding: 0 22px;
  border: 0; border-radius: 999px; background: var(--surface); color: var(--ink-2);
  font-size: 16px; font-weight: 650; letter-spacing: -0.01em; white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgb(16 24 18 / .06), 0 10px 24px -12px rgb(16 24 18 / .28);
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.swipe-btn .ico { width: 22px; height: 22px; stroke-width: 2.4; }
.swipe-btn:active { transform: scale(.94); }
.swipe-btn:disabled { opacity: .35; cursor: default; box-shadow: inset 0 0 0 1px var(--line); }
.swipe-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* Nej: blød rød flade, bliver fyldt rød ved hover */
.swipe-btn-no {
  flex: 1 1 0; max-width: 170px; color: var(--danger);
  background: color-mix(in oklab, var(--danger) 9%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--danger) 22%, transparent), 0 10px 24px -14px color-mix(in oklab, var(--danger) 60%, transparent);
}
.swipe-btn-no:hover { background: var(--danger); color: #fff; }

/* Ja: fyldt grøn med let gradient og glød */
.swipe-btn-yes {
  flex: 1 1 0; max-width: 170px; color: #fff;
  background: linear-gradient(160deg, color-mix(in oklab, var(--brand) 80%, var(--brand-hi)), var(--brand) 45%, color-mix(in oklab, var(--brand) 70%, #0b4d22));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .28), inset 0 0 0 1px rgb(0 0 0 / .06), 0 12px 26px -10px color-mix(in oklab, var(--brand) 75%, transparent);
  text-shadow: 0 1px 1px rgb(0 0 0 / .12);
}
.swipe-btn-yes:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / .28), 0 16px 32px -10px color-mix(in oklab, var(--brand) 85%, transparent); transform: translateY(-1px); }
.swipe-btn-yes:active { transform: scale(.94); }

/* Fortryd og info */
.swipe-btn-sm { width: 48px; height: 48px; padding: 0; }
.swipe-btn-sm .ico { width: 20px; height: 20px; stroke-width: 2; }
.swipe-btn-sm:not(:disabled):hover { background: var(--surface-2); color: var(--ink); }
.swipe-keys { margin-top: 12px; text-align: center; font-size: 13px; color: var(--ink-3); }
@media (pointer: coarse) { .swipe-keys { display: none; } }

/* Mobil: kortet fylder skærmen – overskriften gemmes visuelt, og bunken får al højden mellem toppen og knapperne */
@media (max-width: 639px) {
  .swipe { padding-block: 8px 10px; overflow-x: clip; }
  .swipe-head h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .swipe-criteria { margin-top: 0; }
  /* Mens man spiller, står kravene ikke over bunken (de kan ses og rettes via "Ret krav") */
  .swipe:has(> .swipe-play:not([hidden])) .swipe-criteria { display: none; }
  .js .swipe:has(> .swipe-play:not([hidden])) { padding-bottom: 16px; }
  .swipe-play { margin-top: 8px; }
  .swipe-progress { position: relative; width: 100%; gap: 6px; padding-inline: 2px; }
  .swipe-progress .num { flex: 1; }
  /* Fremskridtet som en tynd streg under linjen – der er ikke plads til en bjælke ved siden af knapperne */
  .swipe-bar { position: absolute; left: 2px; right: 2px; bottom: -7px; height: 3px; }
  .swipe-peek { padding: 0 10px; }
  /* Scenen går næsten ud til kanten; bunken fylder den, men aldrig bredere end 0,8 × højden (så indholdet
     kan være der) og aldrig højere end 1,6 × bredden */
  .js .swipe-stage { margin: 10px calc(8px - var(--gutter)) 0; }
  .js .swipe-stack { width: min(100cqw, 100cqh * .8); height: min(100cqh, 100cqw * 1.6); aspect-ratio: auto; }
  .js .swipe-stack > .tcard.is-under { transform: translateY(calc(var(--i, 1) * 5px)) scale(calc(1 - var(--i, 1) * .025)); }
  .swipe-controls { margin-top: 14px; gap: 8px; }
  .swipe-btn { height: 56px; padding: 0 16px; }
  .swipe-btn-sm { width: 46px; height: 46px; padding: 0; }
}

/* Desktop: ingen bundmenu, så kortet må bruge mere af højden – og knapperne får luft til bunken nedenunder */
@media (min-width: 900px) {
  .swipe { padding-bottom: 18px; }
  .js .swipe:has(> .swipe-play:not([hidden])) { height: max(460px, var(--app-h, 100vh) - var(--header-h)); }
  .swipe-head h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .swipe-criteria { margin-top: 0; justify-content: center; }
  .js .swipe-stage { margin-top: 18px; }
  .swipe-controls { margin-top: 36px; gap: 14px; }
  .swipe-btn { height: 62px; }
  .swipe-btn-no, .swipe-btn-yes { max-width: 190px; }
  .swipe-btn-sm { width: 50px; height: 50px; }
  .swipe-keys { margin-top: 16px; }
}

/* Overblikket: de kort, man sagde ja til */
.swipe-done { max-width: 1040px; margin: 18px auto 0; }
.swipe-done-head { text-align: center; }
.swipe-done-head h2 { font-size: clamp(24px, 6vw, 34px); font-weight: 700; letter-spacing: -0.035em; }
.swipe-done-head h2:focus { outline: none; }
.swipe-done-head p { margin-top: 6px; color: var(--ink-2); }
.swipe-best { display: grid; gap: 8px; margin-top: 18px; }
.swipe-best[hidden] { display: none; }
.swipe-best-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s; }
.swipe-best-item:hover { border-color: var(--line-strong); }
.swipe-best-item > .ico { color: var(--brand-ink); }
.swipe-best-item span { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.swipe-best-item small { font-size: 12px; color: var(--ink-3); }
.swipe-best-item b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swipe-best-item em { font-style: normal; font-size: 14px; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.swipe-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.swipe-actions [hidden] { display: none; }
.swipe-hand { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; margin-top: 24px; }
.swipe-pick { display: flex; flex-direction: column; gap: 10px; min-width: 0; animation: deal .5s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes deal { from { opacity: 0; transform: translateY(18px) rotate(-3deg) scale(.96); } }
.swipe-pick-card { display: block; border-radius: 12px; transition: transform .25s var(--ease); }
.swipe-pick-card:hover { transform: translateY(-4px) rotate(-1deg); }
.swipe-pick .reasons { margin: 0; gap: 5px; }
.swipe-pick .reasons li { font-size: 13px; line-height: 1.4; }
.swipe-pick .reasons li .ico { width: 15px; height: 15px; }
.swipe-pick-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.swipe-pick-actions .btn { flex: 1 1 auto; padding: 0 10px; font-size: 13px; }
.swipe-nopes { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.swipe-nopes[hidden] { display: none; }
.swipe-nopes summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; font-weight: 600; font-size: 15px; }
.swipe-nopes summary::-webkit-details-marker { display: none; }
.swipe-nopes summary .ico { width: 18px; height: 18px; color: var(--ink-3); transition: transform .2s var(--ease); }
.swipe-nopes[open] summary .ico { transform: rotate(180deg); }
.swipe-nopes ul { list-style: none; margin: 0; padding: 0 18px 12px; display: grid; }
.swipe-nopes li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.swipe-nopes li a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-block: 4px; }
.swipe-nopes li a:hover { text-decoration: underline; }
.swipe-nopes li .btn { flex: none; }

/* Små kort i overblikket: de vigtigste tal og lidt mindre tekst */
.tcard.is-mini .tcard-stats div:nth-child(n+4), .tcard.is-mini .tcard-body, .tcard.is-mini .tcard-stats dt .ico, .tcard.is-mini .tcard-mark { display: none; }
.tcard.is-mini .tcard-head { height: max(24px, 12cqi); }
.tcard.is-mini .tcard-no { min-width: max(18px, 9cqi); height: max(18px, 9cqi); font-size: max(9px, 4.2cqi); }
.tcard.is-mini .tcard-brand { font-size: max(9px, 4cqi); }
.tcard.is-mini .tcard-title h2 { font-size: max(14px, 8cqi); }
.tcard.is-mini .tcard-title p { font-size: max(9px, 3.6cqi); }
.tcard.is-mini .tcard-stats :is(dt, dd), .tcard.is-mini .tcard-stats div:first-child dd { font-size: max(10px, 4.2cqi); }
.tcard.is-mini .tcard-foot { height: max(18px, 9cqi); font-size: max(8.5px, 3.4cqi); justify-content: flex-end; }
.tcard.is-mini .tcard-match { font-size: max(9.5px, 3.8cqi); }

/* Listen: indgangen til swipe over resultaterne – en lille bunke bilkort */
.swipe-cta {
  display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding: 10px 16px 10px 12px;
  border-radius: var(--radius); background: #14482b; color: #f3ecd6; transition: transform .2s var(--ease), box-shadow .2s;
}
.swipe-cta:hover { box-shadow: var(--shadow); }
.swipe-cta:active { transform: scale(.99); }
.swipe-cta-deck { position: relative; flex: none; width: 40px; height: 46px; }
.swipe-cta-deck i {
  position: absolute; inset: 2px 6px; border-radius: 4px; border: 1.5px solid #d9b65c; background: #0b2d1a;
  display: grid; place-items: center; transition: transform .3s var(--ease);
}
.swipe-cta-deck i:nth-child(1) { transform: rotate(-12deg) translateX(-4px); }
.swipe-cta-deck i:nth-child(2) { transform: rotate(-4deg) translateX(-1px); }
.swipe-cta-deck i:nth-child(3) { transform: rotate(6deg) translateX(3px); }
.swipe-cta:hover .swipe-cta-deck i:nth-child(1) { transform: rotate(-18deg) translateX(-7px); }
.swipe-cta:hover .swipe-cta-deck i:nth-child(3) { transform: rotate(12deg) translateX(6px); }
.swipe-cta-deck .logo-check { width: 16px; height: 16px; margin: 0; }
.swipe-cta-text { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.swipe-cta-text b { font-size: 15px; font-weight: 650; }
.swipe-cta-text small { font-size: 12.5px; color: #c9d8c4; }
.swipe-cta > .ico { width: 20px; height: 20px; color: #d9b65c; }

@media (min-width: 640px) {
  .swipe-criteria { flex-wrap: wrap; justify-content: center; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .swipe-hand { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .swipe-best { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .swipe-hand { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .tcard-inner { transition: none; }
}

/* ---------- Privatleasing fra mærket (modelside og sammenligning) ---------- */
.lease { margin-top: 12px; }
.lease-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin-top: 14px; }
.lease-offer { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); display: grid; gap: 8px; align-content: start; min-width: 0; }
.lease-offer.is-current { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.lease-offer header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.lease-offer h3 { font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.lease-offer h3 a { color: inherit; }
.lease-offer .badge { flex: none; background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.lease-price b { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lease-price span { color: var(--ink-3); margin-left: 2px; }
.lease-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0; }
.lease-facts dt { font-size: 12px; color: var(--ink-3); }
.lease-facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.lease-incl { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.lease-incl .ico { width: 16px; height: 16px; flex: none; color: var(--brand-ink); margin-top: 1px; }
.lease-note { font-size: 12.5px; color: var(--ink-3); }
.lease-src { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; }
.lease-src a { color: inherit; text-decoration: underline; }
.cmp-lease .muted { color: var(--ink-3); }
.tco-lease-offer { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); background: var(--brand-soft); border-radius: var(--radius-s); padding: 10px 12px; margin-bottom: 12px; }
.tco-lease-offer .ico { width: 16px; height: 16px; flex: none; color: var(--brand-ink); margin-top: 2px; }
.cc-price .cc-lease { color: var(--brand-ink); font-weight: 600; margin-top: 2px; }
.lease-more summary { cursor: pointer; font-size: 13px; color: var(--brand-ink); font-weight: 600; }
.lease-more table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.lease-more th { text-align: right; font-weight: 500; color: var(--ink-3); padding: 4px 4px; border-bottom: 1px solid var(--line); }
.lease-more td { text-align: right; padding: 4px 4px; border-bottom: 1px solid var(--line); }
.lease-more th:first-child, .lease-more td:first-child { text-align: left; }
.lease-more tr.is-main td { font-weight: 650; color: var(--ink); }
.lease-more { overflow-x: auto; }
.lease-more td { white-space: nowrap; }
@media (max-width: 420px) { .lease-more table { font-size: 11.5px; } .lease-more th, .lease-more td { padding: 4px 2px; } }
/* "Spil bilkort": køb eller leasing øverst */
.bk-fin { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.bk-fin .fin-toggle { margin-top: 0; }
.bk-hint { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.bk-slider[hidden] { display: none; }
.lease-facts .lease-wide { grid-column: 1 / -1; }
/* Leasing, der ikke kan lade sig gøre med mærkets tilbud */
.tco-warn { margin: 8px 0 0; padding: 8px 10px; border-radius: var(--radius-s); background: var(--warn-soft); color: var(--warn); font-size: 12.5px; line-height: 1.4; font-weight: 500; }
.tco-warn[hidden] { display: none; }
/* Leasingfelt, der skal udfyldes fra eget tilbud */
.money-input.is-missing { border-color: var(--warn); box-shadow: 0 0 0 1px var(--warn) inset; }
.money-input.is-missing input::placeholder { color: var(--warn); opacity: 1; }
.lease-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--brand-ink); text-decoration: none; }
.lease-link:hover { text-decoration: underline; }
.lease-link .ico { width: 13px; height: 13px; }
.tco-lease-reset { margin-top: 8px; } .tco-lease-reset[hidden] { display: none; }
/* Sammenligning: simple grupper, hvor detaljerne kan foldes ud */
.cmp-collapse:not(.is-open) .cmp-detail { display: none !important; }
.cmp-toggle-row { padding: 6px var(--row-px); background: var(--surface-2); }
.cmp-toggle { position: sticky; left: calc(var(--gutter) + var(--row-px) + 1px); display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border: 0; background: none; color: var(--brand-ink); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.cmp-toggle .ico { width: 16px; height: 16px; transition: transform .2s; }
.cmp-collapse.is-open .cmp-toggle .ico { transform: rotate(180deg); }
.cmp-toggle .when-open, .cmp-collapse.is-open .cmp-toggle .when-closed { display: none; }
.cmp-collapse.is-open .cmp-toggle .when-open { display: inline; }
/* AI-genererede billeder: mærket synligt, hvor de vises */
.photo-zoom { position: relative; }
.ai-badge { position: absolute; left: 8px; bottom: 8px; z-index: 2; padding: 2px 8px; border-radius: 999px; background: rgb(13 18 15 / .72); color: #fff; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; line-height: 1.6; pointer-events: auto; cursor: help; }
/* Små billeder (populære sammenligninger, "Tilføj bil", toplister): intet mærke – det kan ikke læses i den størrelse */
.picker-list .ai-badge, .rank-list .ai-badge, .vs-arts .ai-badge { display: none; }
.cmp-car .ai-badge { left: 4px; bottom: 4px; padding: 0 5px; font-size: 9px; }
.is-stuck .cmp-car .ai-badge { display: none; }
/* Footer: minimumsforbehold */
.footer-disclaimer { flex-basis: 100%; margin: 0; max-width: 820px; line-height: 1.5; }
.footer-disclaimer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* Om data og ansvar */
.about-page section { margin-top: 28px; max-width: 760px; }
.about-page section h2 { font-size: 19px; font-weight: 650; margin-bottom: 8px; }
.about-page section p { color: var(--ink-2); line-height: 1.6; margin: 0 0 10px; }
.about-contact { display: grid; gap: 6px; margin: 0; }
.about-contact div { display: flex; gap: 12px; }
.about-contact dt { min-width: 80px; color: var(--ink-3); }
.about-contact dd { margin: 0; }
.photo-credit.is-ai { left: 8px; right: 8px; max-width: none; white-space: normal; border-radius: 10px; text-align: left; }
.photo-zoom .ai-badge { display: none; }
.lease-disclaimer { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }

/* ---------- Økonomi på modelsiden ----------
   Øverst det, man vil vide: hvad bilen koster om måneden, og tre nøgletal. Regnestykket, egne tal og mærkets
   leasingtilbud ligger i hver sin fold (.eco-fold). */
.eco-fin { margin-top: 16px; max-width: 360px; }
.eco-fin .fin-toggle { margin-top: 0; }
.eco-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 18px; }
.eco .tco-total b { font-size: 46px; }
.eco-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; }
.eco-facts > div { min-width: 0; padding: 9px 8px; border-radius: 14px; background: var(--surface-2); }
.eco-facts dt { font-size: 12px; color: var(--ink-3); }
.eco-facts dd { margin: 2px 0 0; font-size: 14.5px; font-weight: 650; letter-spacing: -0.02em; white-space: nowrap; }
.eco-facts small { display: block; font-size: 11.5px; color: var(--ink-3); }
.eco-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; font-size: 12.5px; color: var(--ink-2); }
.eco-legend li { display: inline-flex; align-items: center; gap: 6px; }
.eco-legend i { width: 10px; height: 10px; border-radius: 3px; }
.eco-you { align-self: start; padding: 16px; border-radius: var(--radius); background: var(--surface-2); }
.eco-you h3 { font-size: 15px; font-weight: 650; margin-bottom: 12px; }
.eco-folds { display: grid; gap: 8px; margin-top: 20px; }
.eco-fold, .eco-fold.lease { min-width: 0; margin-top: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.eco-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 16px; cursor: pointer; list-style: none; }
.eco-fold > summary::-webkit-details-marker { display: none; }
.eco-fold > summary b { display: block; font-size: 15.5px; font-weight: 650; }
.eco-fold > summary small { display: block; font-size: 13px; color: var(--ink-3); }
.eco-fold > summary > .ico { flex: none; width: 18px; height: 18px; color: var(--ink-3); transition: transform .2s var(--ease); }
.eco-fold[open] > summary { border-bottom: 1px solid var(--line); }
.eco-fold[open] > summary > .ico { transform: rotate(180deg); }
.eco-fold-body { padding: 14px 16px 16px; }
.eco-fold-body > .tco-lease { margin-top: 0; }
.eco-fold-body > .calc-note { margin-top: 12px; }
.eco-adjust { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 20px; }
.eco-adjust > .tco-ins:first-child, .eco-fold-body > .eco-adjust:first-child > .tco-ins { margin-top: 0; }
.eco-adjust > .tco-ins { margin-top: 0; padding-top: 14px; }
.eco .tco-list .eco-sum { border-top: 2px solid var(--line-strong); font-weight: 650; }
.eco-fold .lease-list { margin-top: 0; }
.eco-fold .lease-disclaimer { margin-top: 12px; }
.lease-terms { font-size: 13.5px; color: var(--ink-2); }
.lease-real { padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.lease-real small { display: block; font-size: 12px; color: var(--ink-3); }
.lease-more > * + * { margin-top: 8px; }
.lease-more > summary { min-height: 28px; display: flex; align-items: center; }
@media (min-width: 900px) {
  .eco-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; }
  .eco .tco-total b { font-size: 54px; }
  .eco-facts > div { padding: 10px 14px; }
  .eco-facts dd { font-size: 18px; }
}

/* ---------- Jævn rulning på telefon og tablet ----------
   Sløring af det, der ligger bag sidehoved, bundmenu og andre faste bjælker (backdrop-filter), skal regnes om i hvert
   billede, mens man ruller – det får rulningen til at hakke på telefoner. Uden mus og på smalle skærme er bjælkerne
   derfor næsten dækkende i stedet for slørede. */
@media (hover: none), (max-width: 899px) {
  .site-header, .bottom-nav { background: color-mix(in oklab, var(--bg-elev) 96%, transparent); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .cmp-head-wrap > .cmp-scroll { background: color-mix(in oklab, var(--bg) 97%, transparent); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tcard-match { background: rgb(255 255 255 / .9); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- Bilsidens top: kompakt, så økonomien kommer lige efter billedet ----------
   Pris og variant (rullemenu) på én linje, knapperne og linket til mærket på den næste. På telefon er overskrift og
   tekst mindre, og "Tilføj til sammenligning" udelades – den faste bjælke i bunden har samme knap. */
.model-info h1 { font-size: clamp(28px, 8vw, 56px); margin-top: 0; }
.model-info .tagline { margin-top: 6px; font-size: 14.5px; line-height: 1.4; }
.model-badges { margin-top: 10px; }
.model-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.model-buy .price-block { margin-top: 0; gap: 8px; }
.model-buy .price-block b { font-size: 26px; }
.variant-select { flex: 1 1 180px; min-width: 0; height: 40px; border-radius: 12px; font-weight: 600; text-overflow: ellipsis; }
.model-buy noscript { flex: 1 1 100%; }
.model-actions { align-items: center; gap: 8px 14px; margin-top: 12px; }
.model-actions .official-link { margin-top: 0; }
.model-hero + .eco { margin-top: 16px; }
@media (max-width: 899px) {
  .model-actions > [data-compare-toggle] { display: none; }
  .model-actions .btn { height: 38px; padding: 0 14px; font-size: 14px; }
}
@media (min-width: 900px) {
  .model-info .tagline { margin-top: 10px; font-size: 16.5px; }
  .model-badges { margin-top: 14px; }
  .model-buy { margin-top: 18px; }
  .model-buy .price-block b { font-size: 32px; }
  .variant-select { flex: 0 1 300px; }
  .model-actions { margin-top: 16px; }
}
