/* ============================================================
   ki-preise.info — Design-System v2 „Editorial Ink"
   Surface: Compare (Tabellen zuerst) + Decide (Landing-Teile)
   Type: Newsreader (Display-Serif) · Instrument Sans (UI) ·
         JetBrains Mono (Zahlen, tabellarisch)
   Palette: warmes Papier, Tusche-Grün, Preis-Rot
   v2: Video-Hero, dunkler Footer, feinere Linien, ruhigere Schatten
   ============================================================ */

:root {
  --bg:        #F7F6F1;
  --footer-tint: #F7F6F1;  /* Footer ist IMMER dunkel (pine) → Textfarbe fix hell, sonst im Dark-Mode unlesbar */
  --bg-deep:   #F1EFE8;
  --card:      #FFFFFF;
  --card-2:    #FBFAF6;
  --ink:       #171A17;
  --ink-2:     #3A3E38;
  --muted:     #6A6E66;
  --faint:     #6C7068;
  --line:      #E5E2D8;
  --line-2:    #D6D2C6;
  --accent:    #0A7B45;
  --accent-ink:#066034;
  --accent-bg: #E6F1EA;
  --danger:    #C23B22;
  --danger-bg: #F8E9E5;
  --warn:      #9A6400;
  --warn-bg:   #F7EFDD;
  --gold:      #7A6A1F;
  --pine:      #0D2116;
  --shadow:    0 1px 2px rgba(23, 26, 23, .04), 0 4px 14px rgba(23, 26, 23, .05);
  --shadow-lg: 0 2px 6px rgba(23, 26, 23, .06), 0 14px 44px rgba(23, 26, 23, .09);

  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --r-s: 7px; --r-m: 11px; --r-l: 16px;
  --wrap: 1160px;
  --hdr-h: 60px;
}

[data-theme="dark"] {
  --bg:        #14171A;
  --bg-deep:   #191D21;
  --card:      #1C2025;
  --card-2:    #21252B;
  --ink:       #ECEAE2;
  --ink-2:     #C9C7BD;
  --muted:     #9BA096;
  --faint:     #7A7F76;
  --line:      #2B2F36;
  --line-2:    #383D45;
  --accent:    #3FC17E;
  --accent-ink:#5BD695;
  --accent-bg: #12311F;
  --danger:    #F0705A;
  --danger-bg: #38201B;
  --warn:      #E0A437;
  --warn-bg:   #332815;
  --gold:      #D3BC5E;
  --pine:      #0A130D;
  --shadow:    0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.3);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.4), 0 12px 40px rgba(0,0,0,.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14171A; --bg-deep: #191D21; --card: #1C2025; --card-2: #21252B;
    --ink: #ECEAE2; --ink-2: #C9C7BD; --muted: #9BA096; --faint: #949A90;
    --line: #2B2F36; --line-2: #383D45;
    --accent: #3FC17E; --accent-ink: #5BD695; --accent-bg: #12311F;
    --danger: #F0705A; --danger-bg: #38201B; --warn: #E0A437; --warn-bg: #332815;
    --gold: #D3BC5E; --pine: #0A130D;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.3);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.4), 0 12px 40px rgba(0,0,0,.45);
  }
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--accent-bg); color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
select { max-width: 100%; box-sizing: border-box; }
/* Grid-/Flex-Items dürfen nie über den Container hinauswachsen (Min-Content-Fix) */
.panel, .winners, .winner, .calc-grid > *, .aff-show > *, .aff-s-card, .vend-card, .blog-card, .result-row > *, .idx-card, .method-grid > * { min-width: 0; }
@media (max-width: 760px) {
  .calc-grid, .winners, .method-grid { grid-template-columns: minmax(0, 1fr); }
}
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; gap: 28px; height: var(--hdr-h); }
.brand {
  font-family: var(--font-display);
  font-weight: 600; font-size: 21px; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  display: flex; align-items: baseline; gap: 1px;
}
.brand .dot-tld { color: var(--accent); }
.brand em { font-style: italic; font-weight: 500; color: var(--accent-ink); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  text-decoration: none; padding: 7px 11px; border-radius: var(--r-s);
  transition: background .15s, color .15s;
}
.nav a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent-bg); }
.hdr-tools { display: flex; align-items: center; gap: 8px; }

/* Währungs- und Theme-Umschalter */
.seg {
  display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-s);
  overflow: hidden; background: var(--card); height: 32px;
}
.seg button {
  font: 600 12.5px/1 var(--font-mono); color: var(--muted);
  background: none; border: 0; padding: 0 10px; cursor: pointer;
  transition: background .15s, color .15s;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--accent-bg); color: var(--accent-ink); }
.icon-btn {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: var(--r-s);
  background: var(--card); color: var(--muted); cursor: pointer;
  transition: color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink-2); }
.icon-btn svg { width: 15px; height: 15px; }

/* ---------- Hero (asymmetrisch, linksbündig, Video-Atmosphäre) ---------- */
.hero { position: relative; padding: 64px 0 46px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg img, .hero-bg video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 78% center;
}
.hero-bg video { opacity: .95; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(92deg,
    var(--bg) 20%,
    color-mix(in srgb, var(--bg) 88%, transparent) 40%,
    color-mix(in srgb, var(--bg) 30%, transparent) 68%,
    color-mix(in srgb, var(--bg) 4%, transparent) 100%);
}
@media (prefers-reduced-motion: reduce) { .hero-bg video { display: none; } }
/* Dark Mode: Medien abdunkeln, damit heller Text lesbar bleibt */
[data-theme="dark"] .hero-bg img, [data-theme="dark"] .hero-bg video { filter: brightness(.38) saturate(.75); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-bg img,
  :root:not([data-theme="light"]) .hero-bg video { filter: brightness(.38) saturate(.75); }
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: start; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--accent); }
h1 {
  font-family: var(--font-display); font-weight: 550;
  font-size: clamp(40px, 5.2vw, 64px); line-height: 1.1; letter-spacing: -.022em;
  margin: 0 0 16px; text-wrap: balance;
}
h1 em { font-style: italic; color: var(--accent-ink); }
.lead { font-size: 18.5px; color: var(--ink-2); margin: 0 0 26px; max-width: 56ch; text-wrap: pretty; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 15px/1 var(--font-ui); text-decoration: none;
  padding: 13px 24px; border-radius: var(--r-m); border: 1px solid transparent;
  cursor: pointer; transition: transform .12s, box-shadow .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
[data-theme="dark"] .btn-primary { color: #0B1A11; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #0B1A11; } }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn .arr { font-family: var(--font-mono); font-size: 14px; }

/* Index-Karte (rechts im Hero) */
.idx-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: 22px 24px; box-shadow: var(--shadow-lg);
}
.idx-card h2 {
  font: 600 12.5px/1.3 var(--font-ui); letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px; display: flex; justify-content: space-between; align-items: center;
}
.idx-card h2 .live { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); letter-spacing: .04em; }
.idx-card h2 .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.idx-main { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.idx-main .big { font: 500 44px/1 var(--font-mono); letter-spacing: -.03em; color: var(--ink); }
.idx-main .unit { font-size: 14px; color: var(--muted); }
.idx-sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.idx-rows { display: grid; gap: 9px; border-top: 1px dashed var(--line-2); padding-top: 14px; }
.idx-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.idx-row .k { color: var(--muted); }
.idx-row .v { font-family: var(--font-mono); font-weight: 500; color: var(--ink); text-align: right; }
.idx-row .v .lo { color: var(--accent-ink); }
.idx-row .v .hi { color: var(--danger); }

/* ---------- News-Leiste ---------- */
.news-strip { border-block: 1px solid var(--line); background: var(--card-2); }
.news-in { display: flex; gap: 0; overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x mandatory; }
.news-item {
  flex: 1 1 0; min-width: 300px; scroll-snap-align: start; padding: 22px 26px 22px 0;
  display: block; text-decoration: none; color: inherit;
  border-right: 1px solid var(--line); padding-left: 24px;
}
.news-item:last-child { border-right: 0; }
.news-item .news-t { font-size: 15.5px; line-height: 1.35; display: block; margin-bottom: 3px; }
.news-item:hover .news-t { color: var(--accent-ink); }
.news-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.chip-date { font: 500 11.5px/1 var(--font-mono); color: var(--faint); }
.chip {
  font: 600 10.5px/1 var(--font-ui); letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 7px; border-radius: 4px;
}
.chip.erhoehung { background: var(--danger-bg); color: var(--danger); }
.chip.release { background: var(--accent-bg); color: var(--accent-ink); }
.chip.hinweis { background: var(--warn-bg); color: var(--warn); }
.news-t { font-weight: 600; font-size: 14.5px; line-height: 1.35; transition: color .15s; }
.news-x { font-size: 12.5px; color: var(--muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Sektionen ---------- */
section { padding: 56px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-head h2 {
  font-family: var(--font-display); font-weight: 550; letter-spacing: -.012em;
  font-size: clamp(30px, 3.5vw, 42px); line-height: 1.12; margin: 0;
}
.sec-head .sub { font-size: 14.5px; color: var(--muted); margin: 7px 0 0; max-width: 72ch; text-wrap: pretty; }
.sec-head .aside { font-size: 13px; color: var(--faint); text-align: right; }

/* ---------- Controls (Filter, Suche) ---------- */
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.search {
  position: relative; flex: 0 1 300px; min-width: 220px;
}
.search input {
  width: 100%; height: 40px; padding: 0 14px 0 38px;
  font: 400 14.5px var(--font-ui); color: var(--ink);
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-m);
  transition: border-color .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--faint); pointer-events: none; }
.fchips { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip {
  font: 500 13px/1 var(--font-ui); color: var(--ink-2);
  background: var(--card); border: 1px solid var(--line-2);
  padding: 8px 12px; border-radius: 99px; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.fchip:hover { border-color: var(--ink-2); }
.fchip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="dark"] .fchip[aria-pressed="true"] { color: #0B1A11; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fchip[aria-pressed="true"] { color: #0B1A11; } }
.fchip .cnt { font-family: var(--font-mono); font-size: 11px; opacity: .65; margin-left: 4px; }
.ctrl-note { font-size: 13px; color: var(--faint); margin-left: auto; }

/* ---------- Datentabelle ---------- */
.tbl-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); overflow: hidden; }
.tbl-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data thead th {
  background: var(--card-2);
  font: 600 11px/1.3 var(--font-ui); letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); text-align: left;
  padding: 10px 12px; border-bottom: 1px solid var(--line-2);
  white-space: nowrap; user-select: none;
}
table.data thead th.sortable { cursor: pointer; }
table.data thead th.sortable:hover { color: var(--ink); }
table.data thead th .sort-ind { font-family: var(--font-mono); font-size: 10px; margin-left: 4px; color: var(--accent); }
table.data th.num-col, table.data td.num-col { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
table.data tbody td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background .12s; }
table.data tbody tr:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.m-name { font-weight: 600; letter-spacing: -.005em; }
.m-name .src {
  font: 500 10.5px/1 var(--font-mono); color: var(--faint);
  margin-left: 8px; text-decoration: none; border-bottom: 1px dotted var(--faint);
}
.m-name .src:hover { color: var(--accent-ink); border-color: var(--accent-ink); }
.m-note { font-size: 12px; color: var(--muted); margin-top: 2px; max-width: 40ch; }
.vendor { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.vdot { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 auto; }
.tier {
  font: 600 10.5px/1 var(--font-ui); letter-spacing: .05em; text-transform: uppercase;
  padding: 4.5px 8px; border-radius: 4px; white-space: nowrap;
}
.tier.frontier  { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.tier.balanced  { background: var(--accent-bg); color: var(--accent-ink); }
.tier.value     { background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--muted); }
td.best { position: relative; }
td.best .badge-best {
  display: inline-block; font: 600 9.5px/1 var(--font-ui); letter-spacing: .06em;
  color: var(--accent-ink); background: var(--accent-bg);
  padding: 3px 6px; border-radius: 4px; margin-right: 7px; vertical-align: 1px;
}
.price-hi { color: var(--danger); }
.ctx { color: var(--muted); font-size: 13px; }
.ds-flag {
  display: inline-block; font: 600 9.5px/1 var(--font-ui); color: var(--warn);
  background: var(--warn-bg); padding: 3px 6px; border-radius: 4px; margin-left: 7px; vertical-align: 1.5px;
}
.tbl-foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--card-2); border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--faint);
}
.row-count { font-family: var(--font-mono); }

/* Mobile: Tabelle wird zu Karten */
/* Zahlendämpfung (P2-6): Input/Output zurück, Blended bleibt Prima-Zahl */
table.data td[data-l="Input"], table.data td[data-l="Output"] { color: var(--muted); }

/* Stern-Toggle (P2-13): sanfter Pop beim Merken */
button.star { transition: transform .18s cubic-bezier(.2, 1.6, .4, 1); }
button.star[aria-pressed="true"] { animation: starpop .34s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes starpop {
  0% { transform: scale(1); } 45% { transform: scale(1.45); } 100% { transform: scale(1); }
}
@media (max-width: 760px) {
  .showall-m:not([hidden]) {
    display: block; width: 100%; margin-top: 10px; padding: 11px 14px;
    border: 1px solid var(--line-2); border-radius: 10px;
    background: var(--card); color: var(--ink);
    font: 600 14.5px var(--font-ui); cursor: pointer;
  }
  .showall-m.done { color: var(--accent-ink); border-color: var(--accent); }
  #tblBody tr.m-peek { display: none; }
  #tblBody.showall-on tr.m-peek { display: block; }
}

@media (max-width: 760px) {
  table.data thead { display: none; }
  table.data tbody { display: block; }
  table.data tbody tr {
    display: block; background: var(--card); border: 1px solid var(--line);
    border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow);
  }
  table.data tbody tr:last-child { margin-bottom: 0; }
  table.data tbody td {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    border: 0; padding: 5px 0; width: auto;
  }
  /* Modell-Zeile: eigener Kopfbereich */
  table.data tbody td[data-l="Modell"] {
    display: block; padding: 0 0 8px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
  }
  table.data tbody td[data-l]::before {
    content: attr(data-l);
    font: 600 10.5px/1.3 var(--font-ui); letter-spacing: .05em; text-transform: uppercase;
    color: var(--faint); margin-right: 0; flex: 0 0 auto; max-width: 48%;
  }
  table.data td.num-col { text-align: right; }
  /* Alle Spalten sichtbar (auch Kontext/Klasse) — nichts bleibt versteckt */
  table.data tbody td.m-hide { display: flex; }
  /* Header bricht um: Zeile 1 Marke+Währung, Zeile 2 scrollbarer Nav */
  .hdr-in { flex-wrap: wrap; height: auto; padding: 9px 0 0; gap: 8px 10px; }
  .brand { font-size: 18.5px; }
  .hdr-tools { margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; padding-bottom: 6px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 9px; font-size: 14px; white-space: nowrap; }
  table.data thead th { top: 0; }
  /* News: nächstes Item zu ~60% anzeigen als Swipe-Hinweis */
  .news-item { min-width: 68vw; }
  /* Index-Karte: Label über Wert stapeln statt Kollision */
  .idx-row { flex-direction: column; gap: 1px; }
  .idx-row .v { text-align: left; }
  /* Tabellen-Labels feste Breite -> Werte bilden eine Ausrichtungsspalte */
  table.data tbody td[data-l]::before { display: inline-block; min-width: 82px; }
  /* Hero: Video-Atmosphäre dezenter, Text voll lesbar */
  .hero { padding: 40px 0 26px; }
  .hero-bg video { opacity: .38; }
  .hero-bg::after {
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--bg) 60%, transparent) 0%,
      var(--bg) 74%);
  }
}

/* ---------- Abos ---------- */
.subs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.sub-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.sub-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.sub-top h2, .sub-top h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 0; letter-spacing: -.01em; }
.sub-range { font: 500 15px/1 var(--font-mono); color: var(--accent-ink); white-space: nowrap; }
.sub-meta { font-size: 12px; color: var(--faint); margin-bottom: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.sub-meta .ok { color: var(--accent-ink); }
.plan-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 0; }
.plan-list li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.plan-list li:last-child { border-bottom: 0; }
.plan-n { font-weight: 600; font-size: 14.5px; }
.plan-d { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.plan-p { font: 500 15px/1.3 var(--font-mono); white-space: nowrap; text-align: right; }
.plan-p .per { display: block; font: 400 10.5px/1.3 var(--font-ui); color: var(--faint); }
.plan-p.free { color: var(--accent-ink); }
.sub-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.sub-foot a { color: var(--muted); }
.sub-foot a:hover { color: var(--accent-ink); }

/* ---------- Rechner ---------- */
.alt-grid h3 { font-size: 1em; font-weight: 700; margin: 1.33em 0 0.5em; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 960px) { .calc-grid { grid-template-columns: 1fr; } .hero-grid { grid-template-columns: 1fr; gap: 30px; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 24px; }
.panel h2, .panel h3 { font: 600 12.5px/1.3 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.presets { display: grid; gap: 8px; margin-bottom: 20px; }
.preset {
  text-align: left; background: var(--card-2); border: 1px solid var(--line-2);
  border-radius: var(--r-m); padding: 11px 14px; cursor: pointer;
  transition: border-color .15s, background .15s; font-family: var(--font-ui);
}
.preset:hover { border-color: var(--ink-2); }
.preset[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-bg); }
.preset .p-n { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.preset[aria-pressed="true"] .p-n { color: var(--accent-ink); }
.preset .p-d { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--faint); }
.inp-wrap { position: relative; }
.inp-wrap input {
  width: 100%; height: 42px; padding: 0 44px 0 14px;
  font: 500 15.5px var(--font-mono); color: var(--ink);
  background: var(--card-2); border: 1px solid var(--line-2); border-radius: var(--r-m);
  transition: border-color .15s, box-shadow .15s;
}
.inp-wrap input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.inp-wrap .suffix { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font: 500 12px var(--font-ui); color: var(--faint); pointer-events: none; }
.toggles { display: grid; gap: 10px; padding-top: 4px; }
.tog { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.tog input { position: absolute; opacity: 0; width: 0; height: 0; }
.tog .sw {
  flex: 0 0 auto; width: 36px; height: 21px; border-radius: 99px;
  background: var(--line-2); position: relative; transition: background .18s; margin-top: 1px;
}
.tog .sw::after {
  content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s;
}
.tog input:checked + .sw { background: var(--accent); }
.tog input:checked + .sw::after { transform: translateX(15px); }
.tog input:focus-visible + .sw { outline: 2px solid var(--accent); outline-offset: 2px; }
.tog .t-t { font-weight: 600; color: var(--ink); }
.tog .t-d { font-size: 12.5px; color: var(--muted); }
.calc-note { font-size: 12.5px; color: var(--faint); line-height: 1.5; border-top: 1px dashed var(--line-2); padding-top: 14px; margin-top: 18px; }

.winners { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
@media (max-width: 640px) { .winners { grid-template-columns: 1fr; } }
.winner { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.winner::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); }
.winner.gold::before { background: var(--gold); }
.winner .w-l { font: 600 11px/1.3 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.winner .w-m { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.01em; }
.winner .w-p { font: 500 26px/1.15 var(--font-mono); color: var(--accent-ink); margin-top: 6px; letter-spacing: -.02em; }
.winner .w-p .per { font: 400 13px var(--font-ui); color: var(--faint); letter-spacing: 0; }
.winner .w-d { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.winner.gold .w-p { color: var(--gold); }

.result-row { display: grid; grid-template-columns: 34px minmax(0,1fr) 110px 130px 130px; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.result-row:last-child { border-bottom: 0; }
.result-row:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.result-row .rk { font: 500 13px var(--font-mono); color: var(--faint); text-align: right; }
.result-row .rm { min-width: 0; }
.result-row .rm .n { font-weight: 600; letter-spacing: -.005em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.result-row .cost { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.result-row .cost.main { font-weight: 600; font-size: 15px; }
.result-row .delta { text-align: right; font: 500 12.5px var(--font-mono); color: var(--muted); }
.result-row .delta.cheap { color: var(--accent-ink); }
.result-row .delta.exp { color: var(--danger); }
@media (max-width: 760px) {
  .result-row { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .result-row .cost { white-space: nowrap; min-width: 72px; }
  .result-row { gap: 3px 12px; }
  .result-row .rk { grid-row: 1 / 3; align-self: center; }
  .result-row .rm { grid-row: 1 / 3; }
  .result-row .cost:not(.yr) { grid-column: 3 / 5; text-align: right; font-weight: 600; }
  .result-row .cost.yr { grid-column: 3; text-align: right; font-size: 12.5px; color: var(--muted); }
  .result-row .delta { grid-column: 4; text-align: right; }
}
.result-head { display: grid; grid-template-columns: 34px minmax(0,1fr) 110px 130px 130px; gap: 10px; padding: 9px 14px; background: var(--card-2); border-bottom: 1px solid var(--line-2);
  font: 600 10.5px/1.3 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.result-head span:nth-child(n+3) { text-align: right; }
@media (max-width: 760px) { .result-head { grid-template-columns: 26px 1fr auto; } .result-head span:nth-child(n+4) { display: none; } }

/* Blog-Index: Karten mit Thumbnail */
.blog-card {
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px;
  align-items: center; margin-bottom: 16px; padding: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l);
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .18s, transform .18s;
}
.blog-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.blog-thumb {
  display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--r-m); border: 1px solid var(--line);
}
.blog-card-t { font-family: var(--font-display); font-weight: 600; font-size: 19.5px; letter-spacing: -.01em; margin: 2px 0 4px; }
.blog-card .w-d { margin-top: 4px; }
@media (max-width: 640px) {
  .blog-card { grid-template-columns: 1fr; gap: 12px; }
  .blog-thumb { aspect-ratio: 21/9; }
}

/* Affiliate-Box */
.aff-box {
  border: 1px solid var(--line-2); border-radius: var(--r-m);
  background: linear-gradient(0deg, color-mix(in srgb, var(--accent) 5%, var(--card)), var(--card));
  padding: 16px 18px; font-size: 14px; margin-top: 20px;
}
.aff-box .aff-l { font: 600 10.5px/1 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin-bottom: 7px; }
.aff-box p { margin: 0 0 10px; color: var(--ink-2); }
.aff-box .aff-link { font-weight: 600; text-decoration: none; }
.aff-box .aff-link:hover { text-decoration: underline; }

/* ---------- Methode / Quellen ---------- */
.method { background: var(--card-2); border-block: 1px solid var(--line); }
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.method-grid h2, .method-grid h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin: 0 0 8px; }
.method-grid p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.6; }
.method-grid .srcs { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13.5px; display: grid; gap: 5px; }

/* ---------- Footer (dunkel — ruhiger Abschluss) ---------- */
footer { background: var(--pine); color: color-mix(in srgb, var(--footer-tint) 62%, transparent); padding: 44px 0 52px; font-size: 14px; }
.f-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; margin-bottom: 30px; }
@media (max-width: 860px) { .f-grid { grid-template-columns: 1fr 1fr; } }
footer h2, footer h3, footer h4 { font: 600 11.5px/1.3 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; color: color-mix(in srgb, var(--footer-tint) 45%, transparent); margin: 0 0 12px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { color: color-mix(in srgb, var(--footer-tint) 68%, transparent); text-decoration: none; transition: color .15s; }
footer a:hover { color: #fff; }
.f-brand { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--footer-tint); margin-bottom: 10px; }
.f-brand .dot-tld { color: color-mix(in srgb, var(--accent) 80%, #fff); }
.f-blurb { font-size: 13.5px; line-height: 1.6; max-width: 40ch; }
.f-legal { border-top: 1px solid color-mix(in srgb, var(--footer-tint) 14%, transparent); padding-top: 20px; font-size: 12.5px; color: color-mix(in srgb, var(--footer-tint) 46%, transparent); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; line-height: 1.6; }

/* ---------- Rechtliches / statische Seiten ---------- */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 10px; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin: 34px 0 10px; letter-spacing: -.01em; }
.prose p, .prose li { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.prose .updated { font: 500 12.5px var(--font-mono); color: var(--faint); }

/* Preishistorie / Log */
.log { list-style: none; margin: 0; padding: 0; position: relative; }
.log::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1.5px; background: var(--line-2); }
.log li { position: relative; padding: 0 0 26px 34px; }
.log li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--bg); border: 2.5px solid var(--muted);
}
.log li.erhoehung::before { border-color: var(--danger); }
.log li.release::before { border-color: var(--accent); }
.log li.hinweis::before { border-color: var(--warn); }
.log .l-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 5px; }
.log .l-t { font-weight: 600; font-size: 16.5px; margin-bottom: 4px; }
.log .l-x { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; max-width: 72ch; }
.log .l-s { font-size: 13px; margin-top: 6px; }

/* Anbieter */
.vend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.vend-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; box-shadow: var(--shadow); }
.vend-card h2, .vend-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin: 0 0 4px; display: flex; align-items: center; gap: 9px; }
.vend-stat { display: flex; gap: 18px; margin: 12px 0 14px; }
.vend-stat .st .n { font: 500 21px/1.15 var(--font-mono); color: var(--ink); }
.vend-stat .st .l { font-size: 11.5px; color: var(--faint); }
.vend-models { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; }
.vend-links { display: flex; gap: 14px; font-size: 13.5px; font-weight: 600; border-top: 1px solid var(--line); padding-top: 12px; }

/* Utilities */
.vis-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500;
  padding: 11px 18px; border-radius: 99px; box-shadow: var(--shadow-lg);
  opacity: 0; transition: transform .25s, opacity .25s; z-index: 100; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- Hero-Bilder (Seedream) ---------- */
.hero-img {
  display: block; width: 100%; max-height: 340px; object-fit: cover;
  border-radius: var(--r-l); border: 1px solid var(--line);
  box-shadow: var(--shadow); margin-top: 26px;
}
.hero-img.model-hero { max-height: 260px; }
.delta-col { white-space: nowrap; }
.delta { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; }
.delta.up { color: var(--danger); }
.delta.down { color: var(--accent); }
.delta.flat, .delta-none { color: var(--muted); font-weight: 400; }

/* ---------- Bezugswege: Über OpenRouter + Delisting ---------- */
.or-col { white-space: nowrap; font-size: 13px; }
table.data thead th.or-dyn { white-space: normal; max-width: 150px; line-height: 1.35; }
.g-best { display: block; font-family: var(--font-ui); font-size: 10.5px; color: var(--muted); font-weight: 600; letter-spacing: .02em; margin-top: 2px; }
.or-link { text-decoration: none; }
.or-link:hover { text-decoration: underline; color: var(--accent-ink); }
.or-delta {
  display: inline-block; font: 600 10.5px/1 var(--font-mono);
  padding: 3px 6px; border-radius: 4px; margin-left: 4px; vertical-align: 1px;
}
.or-delta.down { color: var(--accent-ink); background: var(--accent-bg); }
.or-delta.up { color: var(--danger); background: var(--danger-bg); }
.or-delta.flat { color: var(--muted); background: color-mix(in srgb, var(--muted) 12%, transparent); }
.dl-flag {
  display: inline-block; font: 600 9.5px/1 var(--font-ui); letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); background: color-mix(in srgb, var(--muted) 14%, transparent);
  padding: 3px 6px; border-radius: 4px; margin-left: 7px; vertical-align: 1.5px;
}
.hs-flag {
  display: inline-block; font: 600 9.5px/1 var(--font-ui); letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 3px 6px; border-radius: 4px; margin-left: 7px; vertical-align: 1.5px;
  cursor: help; white-space: nowrap;
  text-decoration: underline dotted color-mix(in srgb, var(--accent-ink) 45%, transparent);
  text-underline-offset: 2.5px;
}
.or-id { font: 500 10.5px/1 var(--font-mono); color: var(--faint); margin-left: 8px; }
/* OpenRouter-Katalog: NEU-/GRATIS-Badges + Eingabe-Modalität (Eugen 07.10.2026) */
.or-badge-neu {
  display: inline-block; font: 700 9.5px/1 var(--font-ui); letter-spacing: .05em;
  color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  padding: 3px 6px; border-radius: 5px; margin-left: 7px; vertical-align: 1px; white-space: nowrap;
}
.or-badge-free {
  display: inline-block; font: 700 9.5px/1 var(--font-ui); letter-spacing: .05em;
  color: #1F6B3A; background: #E2F2E8; border: 1px solid #BCDCC7;
  padding: 3px 6px; border-radius: 5px; margin-left: 7px; vertical-align: 1px; white-space: nowrap;
}
[data-theme="dark"] .or-badge-free { color: #8AD9A6; background: #1C3226; border-color: #2D4E3A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .or-badge-free { color: #8AD9A6; background: #1C3226; border-color: #2D4E3A; } }
.mods { font-size: 12px; color: var(--muted); white-space: nowrap; }
.dl-box {
  border: 1px solid var(--warn-bg); background: color-mix(in srgb, var(--warn) 8%, var(--card));
  border-radius: var(--r-m); padding: 12px 16px; font-size: 13.5px; color: var(--ink-2); margin: 0 0 18px;
}
.dl-box strong { color: var(--warn); }

@media (max-width: 760px) { .hero-img { max-height: 170px; margin-top: 18px; } .hero-img.model-hero { max-height: 150px; } }

/* Merkzettel-Stern in der Modell-Zelle */
.star {
  background: none; border: 0; cursor: pointer;
  font-size: 15px; line-height: 1; padding: 2px 3px; margin-right: 2px;
  color: var(--faint); vertical-align: -2px; border-radius: 4px;
}
.star:hover { color: var(--accent); background: var(--accent-bg); }
.star[aria-pressed="true"] { color: var(--accent-ink); }

/* ---------- Affiliate-Showcase ---------- */
.aff-show { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.aff-s-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.aff-s-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15,40,28,.16); }
.aff-s-media { position: relative; background: #F7F6F1; border-bottom: 1px solid var(--line); }
.aff-s-media img, .aff-s-media video { display: block; width: 100%; height: clamp(150px, 15vw, 195px); object-fit: cover; object-position: 50% 50%; }

.aff-s-tag { position: absolute; left: 10px; bottom: 8px; font-size: 10.5px; color: rgba(30,40,35,.66); background: rgba(247,246,241,.86); padding: 2px 8px; border-radius: 999px; }
.aff-s-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.aff-s-body h3 { margin: 0; font-family: var(--font-display); font-size: 21px; line-height: 1.25; }
.aff-s-body p { margin: 0; color: var(--ink-2); font-size: 14px; }
.aff-feats { list-style: none; margin: 2px 0 8px; padding: 0; display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.aff-s-body .btn { align-self: flex-start; margin-top: auto; }
.aff-s-body .btn-primary { box-shadow: 0 6px 18px rgba(10,123,69,.22); }

.aff-inline { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; padding: 12px 16px; font-size: 14px; color: var(--ink-2); }
.aff-inline a { color: var(--accent); font-weight: 600; }


/* ============================================================
   DESIGN SYSTEM v2 — Senior-Polish
   Konsistente Sprache: Typo-Rhythmus, ruhige Interaktionen,
   typografische Badges, feine Icons. Keine Emojis im UI.
   ============================================================ */

/* --- Fokus & Auswahl: bewusst gesetzt (A11y) --- */
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px;
}
::selection { background: rgba(10, 123, 69, .18); }

/* --- Buttons: geometrisch ruhig, präzise Interaktion --- */
.btn { padding: 13px 22px; border-radius: 12px; letter-spacing: .005em; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow); }
.btn .arr { transition: transform .18s ease; display: inline-block; }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { box-shadow: 0 1px 2px rgba(6, 96, 52, .28), 0 10px 26px -12px rgba(10, 123, 69, .55); }
.btn-primary:hover { background: var(--accent-ink); }

/* --- Badges: typografisch statt Emoji --- */
.aff-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 2px 0 2px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 10.5px/1 var(--font-ui); letter-spacing: .13em; text-transform: uppercase;
  padding: 5px 9px 5px; border-radius: 6px; white-space: nowrap;
}
.badge-solid { background: var(--accent); color: #fff; }
[data-theme="dark"] .badge-solid { color: #0B1A11; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge-solid { color: #0B1A11; } }
.badge-soft { background: var(--accent-bg); color: var(--accent-ink); }
.badge-line { border: 1px solid var(--line-2); color: var(--muted); background: transparent; }

/* --- Checkmarken als feines SVG statt „✓"-Text --- */
.aff-feats li { position: relative; padding-left: 23px; }
.aff-feats li::before {
  content: ""; position: absolute; left: 1px; top: 4px; width: 13px; height: 13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A7B45' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5.5 5.5L20 6.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* --- Tool-Tipp-Zeile: Label statt Emoji --- */
.aff-inline { border-left-width: 3px; }
.aff-inline .tw {
  font: 700 10.5px/1 var(--font-ui); letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent-ink); margin-right: 8px;
  border-bottom: 2px solid var(--accent-bg);
}
.aff-inline .aff-fine { font-size: 12px; color: var(--faint); }

/* --- Karten: ein Radius, ruhige Hover --- */
.aff-s-card:hover { transform: translateY(-2px); border-color: var(--line-2); }

/* --- Tabellen: ruhigeres Raster --- */
.table-wrap tbody tr { transition: background .12s ease; }
.table-wrap tbody tr:hover { background: var(--card-2); }

/* --- Reduzierte Bewegung respektieren --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* --- DESIGN SYSTEM v2.1: Karten & Links (einheitliche Interaktion) --- */
.vend-card { transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.vend-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.vend-links a { color: var(--accent-ink); text-decoration: none; }
.vend-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.news-item .news-t { font-size: 15.5px; line-height: 1.35; display: block; margin-bottom: 3px; }
.news-item:hover .news-t { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Links im Fließtext: ruhiger */
.prose a, .method a { text-underline-offset: 3px; }

/* Stern-Button & Sortier-Indikator: konsistent */
table.data thead th.sortable:hover { background: var(--card-2); }

/* Affiliate-Medien: kompakte Bänder (User: „Bilder viel zu groß") */
@media (max-width: 720px) {
  .aff-s-media img, .aff-s-media video { height: 190px; object-position: 50% 38%; }
}

/* News-Karussell: Fade-Kante rechts = „mehr zum Wischen" (kein abgeschnittenes Layout) */
@media (max-width: 760px) {
  .news-strip { position: relative; }
  .news-strip::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 44px;
    background: linear-gradient(to right, rgba(251, 250, 246, 0), var(--card-2) 85%);
    pointer-events: none; z-index: 2;
  }
  [data-theme="dark"] .news-strip::after { background: linear-gradient(to right, rgba(23, 26, 23, 0), var(--card-2) 85%); }
}


/* ============================================================
   EDITORIAL LAYER — Senior-Design
   Charakter statt KI-Uniformität: Kapitel-Marker, Haarlinien,
   typografische Ornamente, präzisere Hierarchie.
   ============================================================ */

/* --- Sektions-Köpfe: feiner Zierbalken + editorialer Rhythmus --- */
main { counter-reset: kap; }
.sec-head { position: relative; padding-top: 18px; }
.sec-head::before {
  content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 2px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 0%, transparent));
}
.sec-head h2 { text-wrap: balance; }
.sec-head .sub { max-width: 62ch; }

/* --- Kapitelzähler für Methodik-/Text-Sektionen (feine Ziffer als Zierat) --- */
.method { position: relative; }
.method > .wrap > .sec-head::after {
  counter-increment: kap;
  content: counter(kap, decimal-leading-zero);
  position: absolute; top: 14px; right: 0;
  font: 500 13px/1 var(--font-mono); letter-spacing: .18em; color: var(--faint);
}

/* --- Hero: stärkere Display-Typo + feine Haarlinie --- */
h1 em { font-style: italic; }
.hero { position: relative; }

/* --- Feine Zierlinien als Abschnitts-Trenner --- */
.aff-show::before, .vend-grid::before { content: none; }

/* --- Karten: präzisere Kante, ruhiger Schatten, edlerer Hover --- */
.vend-card, .aff-s-card, .idx-card, .panel, .blog-card, .winner {
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(23, 26, 23, .04), 0 6px 20px -8px rgba(23, 26, 23, .08);
}
.vend-card:hover, .blog-card:hover, .winner:hover { box-shadow: 0 2px 4px rgba(23,26,23,.05), 0 18px 40px -12px rgba(23,26,23,.14); }

/* --- Listen-Karten (mobil): feinere Beschriftungen --- */
table.data tbody td[data-l]::before { letter-spacing: .08em; }
table.data tbody tr { border-radius: 12px; }

/* --- Buttons: subtilerer Radius, feinerer Kontrast --- */
.btn-primary { letter-spacing: .005em; }
.btn-ghost { border-color: color-mix(in srgb, var(--ink) 18%, transparent); }

/* --- Marke im Header: feineres Tracking --- */
.brand { letter-spacing: -.015em; }
.brand em { font-style: italic; }

/* --- Links im Fließtext: elegantere Unterstreichung --- */
.prose a, .method a, p a { text-decoration-thickness: 1px; text-underline-offset: 3px; }


/* ============================================================
   Tabellen-Kompaktierung (Desktop): volle Spaltenbreite ohne
   Abschneiden im 1110px-Wrap. Plus Scroll-Affordanz für schmale
   Viewports (nur sichtbar, wenn wirklich gescrollt werden muss).
   ============================================================ */
@media (min-width: 761px) {
  table.data { font-size: 13.5px; }
  table.data thead th { padding: 10px 8px; }
  table.data tbody td { padding: 9px 8px; }
  td.best .badge-best { font-size: 9px; padding: 2px 5px; margin-right: 5px; }
  .m-name .src { margin-left: 6px; }
  .m-note { max-width: 250px; font-size: 11.5px; }
  table.data thead th .sort-ind { margin-left: 2px; }
  .tier { font-size: 10px; padding: 3px 7px; }
}
.tbl-scroll { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.tbl-scroll::-webkit-scrollbar { height: 9px; }
.tbl-scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
.tbl-scroll::-webkit-scrollbar-track { background: transparent; }
.tbl-scroll.is-scrollable { mask-image: linear-gradient(to right, #000 calc(100% - 42px), transparent 98%); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 42px), transparent 98%); }

/* Über OpenRouter: zweizeiliger Header spart ~55px Spaltenbreite */
@media (min-width: 761px) {
  table.data thead th[data-sort="orBlended"] { white-space: normal; max-width: 84px; line-height: 1.3; }
}

/* Vergleichs-Sektion: eigener breiterer Container fuer die Datentabelle */
#vergleich .wrap { max-width: 1230px; }
@media (min-width: 761px) {
  table.data { font-size: 14px; }
}


/* ============================================================
   UX 2.0 — Phase 1–2 (Einstieg, Vergleich, Spalten, Sticky, …)
   ============================================================ */

/* Skip-Link (A11y) */
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 100; font: 600 14px var(--font-ui); }
.skip:focus { left: 0; }

/* ---- Zielgruppen-Einstieg ---- */
.uc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 980px) { .uc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .uc-grid { grid-template-columns: 1fr; } }
.uc-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 14px; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(23,26,23,.04), 0 6px 20px -8px rgba(23,26,23,.08); transition: transform .18s ease, box-shadow .18s ease; }
.uc-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(23,26,23,.05), 0 18px 40px -12px rgba(23,26,23,.14); }
.uc-ic { width: 34px; height: 34px; color: var(--accent-ink); margin-bottom: 10px; }
.uc-ic svg { width: 100%; height: 100%; }
.uc-card h3 { font-size: 16.5px; margin: 0 0 4px; }
.uc-desc { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; min-height: 32px; }
.uc-list { list-style: none; margin: 0 0 12px; padding: 0; }
.uc-list li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.uc-list li:last-child { border-bottom: 0; }
.uc-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.uc-list a:hover { color: var(--accent-ink); }
.uc-p { font: 500 12px var(--font-mono); color: var(--accent-ink); white-space: nowrap; }
.uc-cta { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.uc-cta:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Onboarding-Leiste ---- */
.onb { background: color-mix(in srgb, var(--accent) 7%, var(--card)); border-bottom: 1px solid var(--line); }
.onb-in { position: relative; display: flex; gap: 26px; align-items: center; padding: 10px 0; flex-wrap: wrap; }
.onb-in p { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.onb-i { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: #fff; font: 700 10.5px var(--font-ui); margin-right: 4px; vertical-align: -3px; }
.onb-x { position: absolute; right: 0; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 18px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.onb-x:hover { color: var(--ink); }
.cmp-mini { display: inline-block; font: 700 9.5px/1 var(--font-ui); letter-spacing: .04em; text-transform: uppercase; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 4px; padding: 3px 5px; vertical-align: 1px; }

/* ---- Vergleichs-Button + Melden in der Tabelle ---- */
.cmp-btn { display: inline-block; border: 1px solid color-mix(in srgb, var(--muted) 35%, transparent); background: transparent; color: var(--muted); font: 700 9px/1 var(--font-ui); letter-spacing: .05em; text-transform: uppercase; padding: 3px 5px; border-radius: 4px; cursor: pointer; margin-right: 7px; vertical-align: 1px; transition: all .15s ease; }
.cmp-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.cmp-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.row-fb { display: inline-block; margin-left: 6px; color: var(--faint); opacity: 0; transition: opacity .15s; vertical-align: 1px; }
tr:hover .row-fb, .row-fb:focus { opacity: 1; }
.row-fb:hover { color: var(--accent-ink); }
.row-sel { background: color-mix(in srgb, var(--accent) 9%, transparent) !important; outline: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: -1px; }

/* ---- Vergleichsleiste ---- */
.cmp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: color-mix(in srgb, var(--ink) 93%, transparent); color: #fff; backdrop-filter: blur(8px); box-shadow: 0 -8px 30px rgba(0,0,0,.18); }
.cmp-bar-in { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.cmp-label { font: 700 12px var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.cmp-names { font-size: 12.5px; color: rgba(255,255,255,.72); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-actions { display: flex; gap: 8px; }
.btn-sm { padding: 8px 14px !important; font-size: 12.5px !important; }
#cmpGo.disabled { opacity: .45; pointer-events: none; }

/* ---- Spalten-Popover ---- */
.col-wrap { position: relative; display: inline-block; }
.col-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; box-shadow: 0 18px 40px -12px rgba(23,26,23,.25); display: grid; gap: 6px; min-width: 190px; }
.col-pop[hidden] { display: none; } /* FIX: display:grid würde sonst das hidden-Attribut überschreiben */
.col-pop label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.col-pop input { accent-color: var(--accent); }
table.data.hide-ctx [data-col="ctx"], table.data.hide-ctx td[data-l="Kontext"],
table.data.hide-in [data-col="in"], table.data.hide-in td[data-l="Input"],
table.data.hide-out [data-col="out"], table.data.hide-out td[data-l="Output"],
table.data.hide-bl [data-col="bl"], table.data.hide-bl td[data-l="Blended"],
table.data.hide-or [data-col="or"], table.data.hide-or td[data-l="Über OpenRouter"],
table.data.hide-delta [data-col="delta"], table.data.hide-delta td[data-l="Δ Vortag"],
table.data.hide-conv [data-col="conv"], table.data.hide-conv td[data-l="Gespräche/1 €"],
table.data.hide-tier [data-col="tier"], table.data.hide-tier td[data-l="Klasse"] { display: none; }

/* ---- Sticky Tabelle (Desktop, nur Hauptvergleich) ----
   ≥1230px: Die Seite scrollt normal durch die ganze Liste; die Kopfzeile klebt am Viewport
   unterhalb des Site-Headers (top: var(--hdr-h)). .tbl-card nutzt overflow:clip — kein
   Scroll-Container, deshalb funktioniert position:sticky am Viewport (Rundungen bleiben geklippt).
   761–1229px: Tabelle kann horizontal scrollen — Kopfzeile klebt INNERHALB des Scroll-Containers. */
@media (min-width: 1230px) {
  #vergleich .tbl-card { overflow: clip; }
  #vergleich .tbl-scroll { max-height: none; overflow: visible; }
  #vergleich table.data { border-collapse: separate; border-spacing: 0; }
  #vergleich table.data thead th { position: sticky; top: var(--hdr-h); z-index: 6; box-shadow: 0 1px 0 var(--line); }
  #vergleich table.data thead th:first-child { z-index: 7; }
  #vergleich table.data tbody td:first-child { position: sticky; left: 0; z-index: 2; background: var(--card); }
  #vergleich table.data tbody tr:hover td:first-child { background: color-mix(in srgb, var(--accent) 4%, var(--card)); }
}
@media (min-width: 761px) and (max-width: 1229px) {
  #vergleich table.data { border-collapse: separate; border-spacing: 0; }
  #vergleich .tbl-scroll { max-height: min(78vh, 940px); overflow: auto; }
  #vergleich table.data thead th { position: sticky; top: 0; z-index: 3; box-shadow: 0 1px 0 var(--line); }
  #vergleich table.data thead th:first-child { z-index: 4; }
  #vergleich table.data tbody td:first-child, #vergleich table.data thead th:first-child { position: sticky; left: 0; z-index: 2; }
  #vergleich table.data tbody td:first-child { background: var(--card); }
  #vergleich table.data tbody tr:hover td:first-child { background: color-mix(in srgb, var(--accent) 4%, var(--card)); }
}

/* ---- Bestenlisten ---- */
.best-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 980px) { .best-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .best-grid { grid-template-columns: 1fr; } }
.best-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 14px 16px; text-decoration: none; color: inherit; transition: transform .16s ease, box-shadow .16s ease; }
.best-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(23,26,23,.16); }
.best-k { font: 700 10px var(--font-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 6px; }
.best-n { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.best-p { font: 600 13px var(--font-mono); color: var(--accent-ink); }
.best-p span { color: var(--muted); font-weight: 500; }
.best-d { margin-top: 6px; font-size: 12px; color: var(--muted); }

/* ---- Zuletzt angesehen ---- */
.recent-row { display: flex; gap: 10px; flex-wrap: wrap; }
.recent-card { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 10px 14px; text-decoration: none; color: inherit; font-size: 13px; }
.recent-card strong { font-weight: 600; }
.recent-card span { font: 500 11.5px var(--font-mono); color: var(--accent-ink); }
.recent-card:hover { border-color: var(--accent); }

/* ---- Stack-Summe (Merkzettel) ---- */
.stack-sum { background: color-mix(in srgb, var(--accent) 6%, var(--card)); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 0 0 16px; }
.stack-sum p { margin: 0 0 4px; font-size: 13.5px; color: var(--ink-2); }
.stack-sum .stack-tip { color: var(--accent-ink); }
.stack-sum .stack-note { font-size: 12px; color: var(--muted); margin-bottom: 0; }

/* ---- Rechner-Banner ---- */
.calc-banner { background: color-mix(in srgb, var(--accent) 6%, var(--card)); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--ink-2); margin: 0 0 14px; }
.linklike { border: 0; background: none; color: var(--accent-ink); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; padding: 0; }

/* ---- Vergleichsseite ---- */
.cmp-empty { text-align: left; padding: 26px 28px; }
.cmp-empty h2 { margin: 0 0 8px; font-size: 20px; }
.cmp-empty p { margin: 0 0 12px; color: var(--ink-2); }
.cmp-empty .btn { display: inline-block; }
.cmp-empty-hint { font-size: 12.5px; color: var(--muted); }
.cmp-table th[scope="row"] { text-align: left; font: 600 12px var(--font-ui); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 10px 8px; white-space: nowrap; }
.cmp-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.cmp-table td.best .cmp-v { color: var(--accent-ink); font-weight: 700; background: var(--accent-bg); padding: 3px 8px; border-radius: 6px; }
.cmp-h { display: flex; align-items: center; gap: 8px; }
.cmp-h a { color: var(--ink); text-decoration: none; font-weight: 700; }
.cmp-h a:hover { color: var(--accent-ink); }
.cmp-x { border: 1px solid var(--line-2); background: var(--card); border-radius: 6px; width: 20px; height: 20px; line-height: 1; font-size: 13px; color: var(--muted); cursor: pointer; }
.cmp-x:hover { color: var(--danger); border-color: var(--danger); }
.cmp-sub { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.cmp-table .cmp-actions { display: flex; gap: 6px; }

.nf-search { display: flex; gap: 10px; max-width: 520px; margin: 22px 0 6px; }
.nf-search input { flex: 1; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); font-size: 14.5px; color: var(--ink); font-family: var(--font-ui); }
.nf-search input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }

/* Sparklines (30-Tage-Verlauf in der Blended-Zelle) */
.spark { display: block; margin: 3px 0 0 auto; opacity: .9; }
.spark polyline { stroke: var(--accent); }
.spark.spark-up polyline { stroke: var(--danger); }
.spark.spark-down polyline { stroke: var(--accent); }
.spark.spark-flat polyline { stroke: var(--faint); }

/* Preisverlauf v2 (Modellseiten) */
.hist-area { fill: color-mix(in srgb, var(--accent) 10%, transparent); stroke: none; }
.spark circle { fill: var(--accent); transition: r .12s ease; }
.spark circle:hover { r: 6px; }
.hist-legend { display: flex; gap: 18px; flex-wrap: wrap; align-items: baseline; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.hist-legend strong { color: var(--ink); }
.hist-delta.down { color: var(--accent-ink); }
.hist-delta.up { color: var(--danger); }
.hist-minmax { margin-left: auto; }

/* Inline-Glossar */
abbr.gloss { text-decoration: underline dotted color-mix(in srgb, var(--accent) 65%, var(--muted)); text-underline-offset: 3px; cursor: help; }
abbr.gloss:hover { color: var(--accent-ink); }

/* Leere Suche */
.tbl-empty { padding: 30px 18px; text-align: center; color: var(--muted); font-size: 14px; }
.tbl-empty strong { color: var(--ink); }
.tbl-empty a { color: var(--accent-ink); }

/* Mobile Bottom-Bar (Schnellzugriff) */
.kp-bar { display: none; }
@media (max-width: 700px) {
  body { padding-bottom: 68px; }
  .kp-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; background: color-mix(in srgb, var(--card) 96%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 7px 6px calc(7px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(23,26,23,.08); }
  .kp-b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font: 600 10.5px var(--font-ui); color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 3px 0; border-radius: 9px; -webkit-tap-highlight-color: transparent; }
  .kp-b svg { width: 21px; height: 21px; }
  .kp-b:active { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-ink); }
  body.cmp-open .kp-bar { display: none; }
  .toast { bottom: 84px; }
}

/* Web-Push-Box (preisalarm.html) */
.push-box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; max-width: 720px; }
.push-box p { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
.push-box .push-note { font-size: 12.5px; color: var(--muted); margin-bottom: 0; }
.push-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.push-on strong { color: var(--accent-ink); }

.uc-list li.uc-free { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 7px; }
.uc-list li.uc-free .uc-p { color: var(--accent-ink); font-weight: 700; }

/* F7: plan-list auf sehr schmalen Displays umbrechen statt überlaufen (abo-vs-api @ <=380px) */
@media (max-width: 400px) {
  .plan-list li { flex-wrap: wrap; }
  .plan-list li .plan-p { margin-left: auto; }
}

/* F8: etwas größere Tap-Ziele für Logo + Währungs-Toggle (Mobile) */
@media (max-width: 700px) {
  .hdr .brand, header .brand { padding-block: 4px; }
  button[data-cur-btn] { min-height: 34px; }
}

/* NEU-Badge (Modelle der letzten 30 Tage) */
.new-flag { display: inline-block; font: 700 9.5px/1 var(--font-ui); letter-spacing: .06em; color: #fff; background: var(--accent); border-radius: 4px; padding: 3px 5px; margin: 0 0 0 6px; vertical-align: 1px; }
.kat-flag { display: inline-block; font: 700 9.5px/1 var(--font-ui); letter-spacing: .06em; color: var(--faint, #777); border: 1px solid var(--line, rgba(0,0,0,.15)); border-radius: 4px; padding: 2px 5px; margin: 0 0 0 6px; vertical-align: 1px; }

/* Frische-Anzeige (Datenstand live) */
.fresh-line { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; font: 600 12px/1.4 var(--font-ui); color: #0A7B45; }

/* Media-Preisseiten (Video / Audio / Bild) */
.media-tbl { width: 100%; border-collapse: collapse; }
.media-tbl th { text-align: left; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.media-tbl td { padding: 12px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.media-tbl tr:last-child td { border-bottom: 0; }
.md-m { font-size: 12px; color: var(--muted); margin-top: 2px; }
.md-usd { font-size: 11.5px; color: var(--muted); }
.md-u { color: var(--muted); white-space: normal; overflow-wrap: anywhere; }
.md-n { color: var(--ink-2); max-width: 440px; }
.md-s a { color: var(--accent-ink); text-decoration: none; white-space: nowrap; font-size: 12.5px; }
.media-cross { margin-top: 14px; font-size: 14px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.media-cross a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.media-cta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.media-cta a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s ease; }
.media-cta a:hover { transform: translateY(-2px); }
.media-cta strong { display: block; font-size: 15.5px; margin-bottom: 4px; }
.media-cta span { color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .media-cta { grid-template-columns: 1fr; } .media-tbl .md-n { max-width: none; } }

/* LMArena-Elo (CC BY 4.0) — kleine Info in der Preistabelle */
.elo-chip { display: inline-block; font: 700 11px/1 var(--font-ui); letter-spacing: .02em; color: var(--accent-ink); background: var(--accent-bg); border: 1px solid var(--accent); border-radius: 999px; padding: 3px 7px 2px; margin: 0 0 0 6px; vertical-align: 1px; cursor: help; }

/* Benchmark-Rubrik */
.bench-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 6px; }
.bench-card { background: var(--card-2); border: 1px solid var(--line); border-radius: 13px; padding: 15px 16px; }
.bench-card strong { display: block; font-size: 15px; margin-bottom: 6px; }
.bench-card p { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); margin: 0 0 10px; }
.bench-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 7px; }
.lic-chip { font: 700 10.5px/1 var(--font-ui); letter-spacing: .05em; color: var(--accent-ink); background: var(--accent-bg); border: 1px solid var(--accent); border-radius: 5px; padding: 4px 7px; }
.bench-card a { color: var(--accent-ink); font-size: 12.5px; text-decoration: none; word-break: break-all; }

/* Elo-Spalte in der Tabelle */
.elo-v { font-weight: 700; color: var(--ink); }
.elo-v.best { color: var(--accent-ink); background: var(--accent-bg); padding: 2px 7px; border-radius: 6px; }
table.data.hide-elo [data-col="elo"], table.data.hide-elo td[data-l="Elo (Mensch)"] { display: none; }

/* Benchmark-Spotlight (Startseite) */
.bench-spot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 980px) { .bench-spot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .bench-spot-grid { grid-template-columns: 1fr; } }
.bench-spot-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 14px 16px; text-decoration: none; color: inherit; transition: transform .16s ease, box-shadow .16s ease; position: relative; }
.bench-spot-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(23,23,23,.16); }
.bench-spot-card .bs-k { font: 700 10px var(--font-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 6px; }
.bench-spot-card .bs-n { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.bench-spot-card .bs-m { font: 600 13px var(--font-mono); color: var(--accent-ink); margin-bottom: 5px; }
.bench-spot-card .bs-m span { color: var(--muted); font-weight: 500; }
.bench-spot-card .bs-d { font-size: 12px; color: var(--muted); }

/* Benchmark-Rubrik v2 */
.bn-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 16px; }
@media (max-width: 860px) { .bn-stats { grid-template-columns: repeat(2, 1fr); } }
.bn-stat { background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 12px 16px; }
.bn-v { font: 700 24px/1.1 var(--font-ui); color: var(--accent-ink); }
.bn-l { font-size: 12px; color: var(--muted); margin-top: 4px; }
.lmbars { width: 100%; height: auto; display: block; margin: 4px 0; }
.lmbars .bt { font: 500 11px var(--font-ui); fill: var(--ink-2); }
.lmbars .bb { fill: var(--accent); opacity: .85; }
.lmbars .bv { font: 700 11px var(--font-ui); fill: var(--ink); }
.lm-tools { margin-bottom: 8px; }
.lm-tools input { width: 100%; max-width: 420px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; background: var(--card); color: var(--ink); }

/* Benchmark: Scatter, HoF, Vergleich */
.scatter { width: 100%; height: auto; display: block; margin: 8px 0 2px; }
.sc-g { stroke: var(--line); stroke-width: 1; opacity: .75; }
.sc-t { font: 10px var(--font-ui); fill: var(--muted); }
.sc-ax { font: 11px var(--font-ui); fill: var(--muted); }
.sc-pt { fill: var(--accent); opacity: .7; }
.sc-pt:hover { opacity: 1; }
.sc-l { font: 600 10.5px var(--font-ui); fill: var(--ink); }
.hof-chip { display: inline-block; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin: 0 6px 4px 0; font-size: 12px; }
.cmp-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.cmp-controls select { flex: 1; min-width: 200px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; background: var(--card); color: var(--ink); }
.cmp-vs { font-weight: 700; color: var(--muted); }
.cmp-mark { text-align: center; color: var(--accent-ink); font-size: 11px; }
.cmp-price td { font-weight: 600; }

.cat-links { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-links a, .cat-link { display: inline-block; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px; color: var(--ink); background: var(--card); text-decoration: none; }
.cat-links a:hover { border-color: var(--accent); color: var(--accent-ink); }

.hero-bench { position: relative; overflow: hidden; }
.hero-bench .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; pointer-events: none; }
.hero-bench .wrap { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .hero-bench .hero-video { display: none; } }

.gl-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.gl-item:last-child { border-bottom: 0; }
.gl-item h3 { margin: 0 0 6px; font-size: 16px; }
.gl-item p { margin: 0; color: var(--ink-2); line-height: 1.55; }

/* Empfehlungsbox (Benchmark-Landingpages) */
.aff-pick { background: linear-gradient(135deg, rgba(18,183,106,.08), rgba(18,183,106,.02)); border: 1px solid rgba(18,183,106,.35); border-radius: 14px; padding: 18px 20px; margin: 18px 0 6px; }
.ap-head { font-weight: 700; font-size: 15px; margin-bottom: 10px; color: var(--accent-ink); }
.ap-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ap-main { flex: 1; min-width: 240px; font-size: 15px; line-height: 1.5; }
.ap-cta .btn { white-space: nowrap; }
.ap-fine { margin-top: 10px; font-size: 12px; color: var(--muted); }

.lmbars .ci-l { stroke: rgba(255,255,255,.55); stroke-width: 1.4; }
.lmbars .bv { cursor: help; }

/* Benchmark-Tabs (Übersichtlichkeit) */
.bt-nav { position: sticky; top: var(--hdr-h); z-index: 45; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bt-in { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.bt-in::-webkit-scrollbar { display: none; }
.bt-tab { border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); border-radius: 999px; padding: 8px 16px; font: 600 14px var(--font-ui); cursor: pointer; white-space: nowrap; transition: all .15s; }
.bt-tab:hover { border-color: var(--accent); color: var(--ink); }
.bt-tab.on { background: var(--accent); border-color: var(--accent); color: #fff; }
body.btjs .bt-panel { display: none; }
body.btjs .bt-panel.on { display: block; animation: btfade .22s ease; }
@keyframes btfade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.bt-h { font-size: 20px; margin: 6px 0 0; }
.bt-intro { color: var(--muted); font-size: 14.5px; margin: 18px 0 4px; max-width: 780px; }
.dash-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0 20px; }
@media (max-width: 1000px) { .dash-grid { grid-template-columns: repeat(2, 1fr); } }
.dash-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.dash-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.dash-k { font-size: 11px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 6px; }
.dash-n { font-weight: 800; font-size: 16px; line-height: 1.25; }
.dash-v { color: var(--accent-ink); font-weight: 700; font-size: 13px; margin-top: 4px; }

/* Mobile: breite Tabellen scrollen in ihren Wrappern */
.tbl-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
@media (max-width: 760px) {
  .bt-in { padding: 8px 0; }
  .bt-tab { padding: 7px 13px; font-size: 13px; }
}

/* Mobile Bottom-Bar: horizontal scrollbar statt Overflow */
@media (max-width: 760px) {
  .kp-bar { width: 100%; max-width: 100vw; box-sizing: border-box; overflow-x: auto; scrollbar-width: none; }
  .kp-bar::-webkit-scrollbar { display: none; }
  .kp-bar a, .kp-bar span { white-space: nowrap; flex: 0 0 auto; }
}

/* Grid-Kinder dürfen schrumpfen (verhindert Overflow durch breite Tabellen) */
.bench-grid > *, .dash-grid > *, .bn-stats > * { min-width: 0; }
.bench-card, .panel { min-width: 0; }

.cmp-sec th { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-ink); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; padding: 9px 12px; }

/* Consent-Banner (Google AdSense + Analytics) — Seitendesign, über der mobilen Leiste (Audit 09.10.2026) */
#kpConsent { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 1300; width: min(calc(100vw - 24px), 920px); background: var(--card); color: var(--ink); border: 1px solid var(--line-2); border-radius: 16px; padding: 18px 20px; box-shadow: 0 18px 50px rgba(23,26,23,.18), 0 2px 6px rgba(23,26,23,.06); display: flex; gap: 14px 22px; align-items: center; justify-content: space-between; flex-wrap: wrap; animation: kpcIn .28s ease-out; }
@keyframes kpcIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { #kpConsent { animation: none; } }
#kpConsent .kp-c-txt { flex: 1 1 420px; min-width: 0; }
#kpConsent p { margin: 0; font: 400 14px/1.55 var(--font-ui); color: var(--ink-2); }
#kpConsent .kp-c-title { font: 600 15px/1.3 var(--font-ui); color: var(--ink); margin-bottom: 4px; }
#kpConsent a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.kp-c-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.kp-c-btn { font: 600 14px/1 var(--font-ui); min-height: 44px; min-width: 128px; padding: 0 20px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.kp-c-btn:hover { border-color: var(--accent); }
.kp-c-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.kp-c-yes { background: var(--accent); border-color: var(--accent); color: #fff; }
.kp-c-yes:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
[data-theme="dark"] #kpConsent { box-shadow: 0 18px 50px rgba(0,0,0,.5); }
/* Hinweis nach „Ablehnen" — gleiche Karte wie das Banner, rein informativ */
#kpConsentNote { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 1300; width: min(calc(100vw - 24px), 760px); background: var(--card); color: var(--ink); border: 1px solid var(--line-2); border-radius: 16px; padding: 16px 20px; box-shadow: 0 18px 50px rgba(23,26,23,.18); display: flex; gap: 12px 20px; align-items: center; flex-wrap: wrap; animation: kpcIn .28s ease-out; }
#kpConsentNote p { margin: 0; flex: 1 1 380px; font: 400 14px/1.55 var(--font-ui); color: var(--ink-2); }
#kpConsentNote p strong { color: var(--ink); }
[data-theme="dark"] #kpConsentNote { box-shadow: 0 18px 50px rgba(0,0,0,.5); }
@media (max-width: 700px) { #kpConsentNote { bottom: calc(76px + env(safe-area-inset-bottom)); padding: 15px; } #kpConsentNote .kp-c-actions { width: 100%; } }
@media (prefers-reduced-motion: reduce) { #kpConsentNote { animation: none; } }
@media (max-width: 700px) {
  #kpConsent { bottom: calc(76px + env(safe-area-inset-bottom)); padding: 16px; border-radius: 14px; }
  .kp-c-actions { width: 100%; }
  .kp-c-btn { flex: 1; min-width: 0; }
}
.foot-consent { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* Anzeigen (AdSense) */
.ad-zone { max-width: 970px; margin: 30px auto 26px; padding: 0 16px; }
.ad-tag { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint, #6b7280); margin: 0 0 6px; }
.ad-zone ins.adsbygoogle { background: transparent; }

/* Leere Anzeigen-Slots ausblenden (verhindert leere Flächen, bis Werbung aktiv ist) */
.ad-zone ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.ad-zone:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }

/* Anbieter-Tabelle (Multi-Anbieter je Modell) */
.prov-badge { display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--border, #2a3038); color: var(--muted, #9aa3ad); vertical-align: 1px; margin-left: 4px; }
.prov-tbl td:first-child { white-space: nowrap; }

/* Anbieter-Dropdown (API-Anbieter-Filter) */
.prov-label { font-size: 13px; color: var(--muted, #9aa3ad); margin-right: 8px; }
.prov-select { font: inherit; font-size: 13.5px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border, #2a3038); background: var(--card, #161a20); color: inherit; max-width: 340px; }
.prov-hint { font-size: 12px; color: var(--faint, #6b7280); margin-left: 10px; }
.prov-select.pulse { border-color: var(--accent, #2ecc71); animation: provPulse 1.15s ease-out 2; }
@keyframes provPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent, #2ecc71) 50%, transparent); } 100% { box-shadow: 0 0 0 16px transparent; } }
@media (prefers-reduced-motion: reduce) { .prov-select.pulse { animation: none; outline: 2px solid var(--accent, #2ecc71); outline-offset: 2px; } }
@media (max-width: 640px) { .prov-select { max-width: 100%; width: 100%; } .prov-hint { display: block; margin: 6px 0 0; } }

/* Fix: Abo-Plan-Karten auf schmalen Screens umbrechen (390px-Overflow) */
@media (max-width: 620px) {
  .plan-list li { flex-wrap: wrap; row-gap: 4px; }
  .plan-p { margin-left: 0; white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
  .sub-card, .plan-list { min-width: 0; max-width: 100%; }
}

/* Fix 390px-Overflow auf Modellseiten: calc-grid-Kette darf nie min-content aufblähen */
.calc-grid { min-width: 0; }
.calc-grid > * { min-width: 0; }
.calc-grid .panel,
.calc-grid .plan-list,
.calc-grid .plan-list li { min-width: 0; }
.calc-grid .plan-list li > div { min-width: 0; }
.calc-grid .plan-n,
.calc-grid .plan-d { overflow-wrap: anywhere; }
.calc-grid .plan-p { flex: 0 0 auto; }

/* Nav: Einträge nicht umbrechen (Lokale Modelle) */
.nav a { white-space: nowrap; }

/* Nav-Dropdown „Lokale Modelle“ */
.nav-dd { position: relative; display: inline-flex; }
.nav-dd > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-dd > a::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4.5px solid currentColor; opacity: .55; margin-top: 2px; transition: transform .15s; }
.nav-dd:hover > a::after, .nav-dd:focus-within > a::after { transform: rotate(180deg); }
.nav-sub { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); display: none; grid-template-columns: repeat(2, minmax(250px, 1fr)); gap: 2px 14px; padding: 10px 8px 8px; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 18px 44px rgba(16, 27, 21, .16); z-index: 80; }
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-dd:hover .nav-sub, .nav-dd:focus-within .nav-sub { display: grid; }
/* Eugen-Fix 08.10.: Text gehört INS Kästchen (ragte bei 222px aus den Spalten) */
.nav-sub a { white-space: normal !important; overflow-wrap: break-word; min-width: 0; max-width: 100%; }
.nav-sub { min-width: 520px; grid-template-columns: repeat(2, minmax(250px, 1fr)) !important; }
.nav-sub a { display: block; padding: 8px 11px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; text-decoration: none; }
.nav-sub a:hover { background: var(--accent-bg); color: var(--accent-ink); }
@media (max-width: 960px) { .nav-sub { display: none !important; } .nav-dd > a::after { display: none; } }

/* Spar-Duell-Karte (Hero): ersetzt den alten AI-Preis-Index */
.duel-model { font-size: 15px; font-weight: 600; color: var(--ink); margin: 4px 0 10px; }
.duel-row.duel-lo .v { color: var(--accent-ink); }
.duel-row.duel-hi .v { color: var(--danger); }
.duel-row.duel-lo .k::after { content: " · günstigster"; color: var(--accent-ink); font-size: 12px; }
.duel-row.duel-hi .k::after { content: " · teuerster"; color: var(--danger); font-size: 12px; }
.duel-ex { font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line-2); padding-top: 12px; margin-top: 12px; }
.duel-ex strong { color: var(--ink); font-family: var(--font-mono); font-weight: 500; }
.duel-cta { display: block; text-align: center; margin-top: 14px; }
#duelRows { min-height: 92px; }

/* Sicherheit gegen Breiten-Überlauf durch Anzeigen/Flex-Köpfe (07.10.2026) */
.sec-head > div { min-width: 0; }
.ad-zone { max-width: 100%; box-sizing: border-box; }
.ad-zone ins.adsbygoogle { max-width: 100%; }


/* ── Audit-Fixes 08.10.2026: Text darf nicht aus Kästchen ragen ── */
.kp-bar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.kp-b { display: inline-flex; align-items: center; gap: 6px; width: auto; max-width: 100%; padding: 8px 13px; white-space: nowrap; overflow: hidden; box-sizing: border-box; }
.kp-b span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.kp-b svg { flex: none; }

/* Dropdown-Untermenüs (nur Listen-Einträge, NICHT die Hauptnav!) */
.nav-dd li a, .nav-dd li button, .nav-dd ul a {
  white-space: normal !important;
  min-width: 210px; max-width: 320px;
  display: block; box-sizing: border-box; overflow-wrap: break-word;
}

/* D4: iPhone-Überlauf-Endlösung (box-sizing + Breitenkappen) */
@media (max-width: 760px) {
  * { box-sizing: border-box; }
  .toplist, .tp-cards, .video-lead, .video-lead a, .card, article, section, main { max-width: 100%; overflow-x: hidden; }
  a, button, h1, h2, h3, p, li, td { overflow-wrap: break-word; max-width: 100%; }
  img, svg, video { max-width: 100%; height: auto; }
}

/* D5+D6 (Audit 09.10.): mobile Lesbarkeit + Touch-Ziele */
@media (max-width: 760px) {
  .mach-note, .feat-note { font-size: 13px !important; }
  footer .wrap, footer p, footer span { font-size: 13px; }
  .icon-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  main a { padding-top: 3px; padding-bottom: 3px; }
  .srclink, .dl a, .buy a { padding: 5px 8px; }
}

/* Lesbarkeit (Audit 09.10.2026): keine Beschriftung unter 11 px — Chips, Badges, Labels, Mini-Buttons.
   Bewusst am Dateiende, damit es alle älteren 9–10,5-px-Regeln (inkl. Mobil-Overrides) übersteuert. */
.tier, .chip, .badge-best, td.best .badge-best, .hs-flag, .new-flag, .kat-flag, .cmp-mini, .cmp-btn,
.or-id, .g-best, .lic-chip, .ad-tag, .prov-badge, .best-k, .bench-spot-card .bs-k, .aff-box .aff-l,
.plan-p .per, .aff-s-tag, .kp-b, table.data thead th .sort-ind, .src, td .src, a.src,
.badge, span.badge, .result-head, .lm-badge, .or-badge-neu, .or-badge-free { font-size: 11px !important; }
small { font-size: max(11px, .8em); }
@media (max-width: 700px) { .kp-b { font-size: 11px !important; } .tier { padding: 3px 7px; } }

/* ===== V3-START (Redesign 09.10.2026) ===== */
/* ============================================================
   ki-preise.info — Redesign v3 „Werkstatt"  (Vorschau, nur body.v3)
   Surface: Compare (Tabelle ist das Produkt) + Decide (Einstieg).
   Bildsprache: echte Stillleben-Fotografie, Fensterlicht, Eiche/Leinen/Salbei.
   Typo: Newsreader (Display) · Instrument Sans (UI) · JetBrains Mono (nur Zahlen).
   Lädt NACH style.css und überschreibt nur, was nötig ist.
   ============================================================ */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/Newsreader-500-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/Newsreader-500-latin-ext.woff2) format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 500; font-display: swap; src: url(../fonts/Newsreader-500-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/Newsreader-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/InstrumentSans-400-latin.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/InstrumentSans-500-latin.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/InstrumentSans-600-latin.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/InstrumentSans-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/InstrumentSans-600-latin-ext.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }

/* Seitenweit (ab Rollout 09.10.2026): Typo + Papierton für ALLE Seiten, die v3.css laden */
:root {
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-ui: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  --bg: #F6F4EE;
  --paper: #EFEBE1;
  --r-photo: 6px;
}
[data-theme="dark"] { --paper: #1A1E1C; --bg: #14171A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper: #1A1E1C; --bg: #14171A; } }
body { font-family: var(--font-ui); font-feature-settings: "ss01", "cv11"; }
h1, h2, h3, .f-brand { font-family: var(--font-display); letter-spacing: -0.012em; }
h1 { font-weight: 500; }
h2 { font-weight: 500; }
.eyebrow { letter-spacing: .08em; }
/* Fotos im Dunkelmodus minimal zurücknehmen, damit sie nicht „leuchten" */
[data-theme="dark"] .v3-photo img, [data-theme="dark"] .uc-photo img, [data-theme="dark"] .v3-rub img, [data-theme="dark"] .v3-sub-photo img { filter: brightness(.88) saturate(.95); }

/* ---------- Hero ---------- */
.v3-hero { padding: 56px 0 64px; background: var(--bg); position: relative; }
.v3-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.v3-hero h1 { font-size: clamp(40px, 5.2vw, 66px); line-height: 1.02; font-weight: 500; margin: 14px 0 20px; text-wrap: balance; }
.v3-hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.v3-hero .lead { font-size: 18.5px; line-height: 1.6; color: var(--ink-2); max-width: 34em; margin: 0 0 28px; text-wrap: pretty; }
.v3-hero .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.v3-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 30px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--muted); font-size: 14px; }
.v3-facts li { display: flex; align-items: center; gap: 8px; }
.v3-facts svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.v3-facts strong { color: var(--ink); font-weight: 600; }

.v3-photo { position: relative; margin: 0; }
.v3-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-photo); background: var(--paper); }
.v3-photo figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
/* Hero-Foto: Gläser stehen rechts im Bild → Ausschnitt nach rechts schieben, Platz unten links für die Karte */
.v3-hero .v3-photo { padding-bottom: 150px; }
.v3-hero .v3-photo img { aspect-ratio: 4 / 3; object-position: 78% 50%; }

/* Spar-Duell als Karte, die unten links ins Foto ragt (verdeckt nur die leere Wand) */
.v3-hero .idx-card { position: absolute; left: -36px; bottom: 0; width: min(340px, 74%); margin: 0; padding: 20px 22px; box-shadow: 0 1px 2px rgba(23,26,23,.06), 0 18px 48px rgba(23,26,23,.16); border-radius: 12px; }
.v3-hero .idx-card h2 { font-family: var(--font-ui); }
.v3-hero .idx-main { flex-wrap: nowrap; }
.v3-hero .idx-main .big { white-space: nowrap; font-size: 40px; }
.v3-hero .duel-ex strong { white-space: nowrap; }
.v3-hero .idx-card .duel-cta { display: none; }
.v3-hero .idx-card .duel-link { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 14px; }
.v3-hero .idx-card #duelMeta { display: none; }

/* ---------- Abschnittsköpfe ---------- */
.v3-sec { padding: 72px 0; }
.v3-sec.alt { background: var(--paper); }
.v3-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-bottom: 30px; }
.v3-head h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.08; font-weight: 500; margin: 6px 0 10px; }
.v3-head p { margin: 0; color: var(--ink-2); max-width: 44em; font-size: 16.5px; line-height: 1.6; }
.v3-head .more { font-weight: 600; white-space: nowrap; }

/* ---------- Anwendungsfälle mit Foto ---------- */
body.v3 .uc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
body.v3 .uc-card { padding: 0; overflow: hidden; border-radius: 10px; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); box-shadow: none; transition: border-color .15s, transform .15s; }
body.v3 .uc-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
body.v3 .uc-ic { display: none; }
.uc-photo { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper); }
.uc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
body.v3 .uc-card:hover .uc-photo img { transform: scale(1.03); }
body.v3 .uc-card h3 { font-size: 23px; font-weight: 500; margin: 18px 20px 4px; }
body.v3 .uc-desc { margin: 0 20px 12px; font-size: 14px; color: var(--muted); }
body.v3 .uc-list { margin: 0 20px; padding: 0; border-top: 1px solid var(--line); }
body.v3 .uc-list li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
body.v3 .uc-list li:last-child { border-bottom: 0; }
body.v3 .uc-cta { margin: auto 20px 18px; padding-top: 12px; font-weight: 600; }

/* ---------- Tabelle: ruhiger ---------- */
body.v3 #vergleich { padding-top: 72px; }
body.v3 #vergleich .sec-head h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 500; }
body.v3 #vergleich .sec-head .aside { display: none; }
body.v3 .ctrl-note, body.v3 #provHint { display: none; }
body.v3 #batchChip, body.v3 .col-wrap { order: 9; }
/* Pflicht-Floskel nicht 100× wiederholen — der Hinweis steht einmal über der Tabelle */
body.v3 .m-note.generic { display: none; }
body.v3 table.data td { padding-top: 14px; padding-bottom: 14px; }
body.v3 .m-name { font-size: 15.5px; }
body.v3 .src { opacity: .75; }
body.v3 .cmp-btn { opacity: .55; }
body.v3 tr:hover .cmp-btn, body.v3 .cmp-btn[aria-pressed="true"] { opacity: 1; }
/* Desktop: erst 15 Modelle, dann „Alle zeigen" */
body.v3 #tblBody tr.m-peek { display: none; }
body.v3 #tblBody.showall-on tr.m-peek { display: table-row; }
body.v3 #showAllBtn { display: block; width: 100%; margin: 0; padding: 16px; border: 0; border-top: 1px solid var(--line); background: var(--card-2); font: 600 15px/1 var(--font-ui); color: var(--accent-ink); cursor: pointer; }
body.v3 #showAllBtn:hover { background: var(--accent-bg); }
body.v3 #showAllBtn.done { display: none; }
.v3-tbl-note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
@media (max-width: 760px) {
  body.v3 #tblBody.showall-on tr.m-peek { display: grid; }
  /* Kompakte Preiskarte: Name oben, darunter 3 Preise nebeneinander — statt 11 Zeilen untereinander */
  body.v3 table.data tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 10px; padding: 14px 14px 12px; border-radius: 10px; box-shadow: none; }
  body.v3 table.data tbody td { display: none; padding: 0; }
  body.v3 table.data tbody td[data-l="Modell"] { display: block; grid-column: 1 / -1; padding: 0 0 10px; margin-bottom: 8px; order: -2; }
  body.v3 table.data tbody td[data-l="Modell"]::before { display: none; }
  body.v3 table.data tbody td[data-l="Modell"] .m-note { display: none; }
  body.v3 table.data tbody td[data-l="Anbieter"] { display: none; }
  body.v3 table.data tbody td[data-l="Input"],
  body.v3 table.data tbody td[data-l="Output"],
  body.v3 table.data tbody td[data-l="Blended"] { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
  body.v3 table.data tbody td[data-l]::before { min-width: 0; max-width: none; font-size: 11px; }
  body.v3 table.data tbody td[data-l="Blended"] { order: -1; }
  body.v3 table.data tbody td[data-l="Blended"] strong { font-size: 17px; }
  body.v3 table.data tbody td .badge-best, body.v3 table.data tbody td .spark, body.v3 table.data tbody td svg.spark { display: none; }
  /* Filter mobil: Anbieter-Chips als waagerecht wischbare Leiste statt 8 Zeilen Chips */
  body.v3 #vendorChips, body.v3 #tierChips, body.v3 #ctxChips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; margin-right: -16px; }
  body.v3 #vendorChips::-webkit-scrollbar, body.v3 #tierChips::-webkit-scrollbar, body.v3 #ctxChips::-webkit-scrollbar { display: none; }
  body.v3 #vendorChips > *, body.v3 #tierChips > *, body.v3 #ctxChips > * { flex: none; }
  body.v3 .controls .search { width: 100%; }
}

/* ---------- So arbeiten wir (Vertrauen) ---------- */
.v3-trust { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.v3-trust .v3-photo img { aspect-ratio: 16 / 10; }
.v3-steps { list-style: none; margin: 26px 0 0; padding: 0; counter-reset: s; }
.v3-steps li { counter-increment: s; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 4px 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.v3-steps li::before { content: counter(s, decimal-leading-zero); font: 500 14px/1.6 var(--font-mono); color: var(--accent); grid-row: span 2; }
.v3-steps strong { font-size: 16.5px; }
.v3-steps span { color: var(--ink-2); font-size: 15px; line-height: 1.55; }

/* ---------- Rubriken ---------- */
.v3-rub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 26px; }
.v3-rub a { color: inherit; text-decoration: none; display: block; }
.v3-rub .ph { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-photo); background: var(--paper); }
.v3-rub img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.v3-rub a:hover img { transform: scale(1.03); }
.v3-rub h3 { font-size: 22px; font-weight: 500; margin: 14px 0 4px; }
.v3-rub a:hover h3 { color: var(--accent-ink); }
.v3-rub p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
  .v3-hero .idx-card { left: 18px; }
}
@media (max-width: 960px) {
  .v3-hero { padding: 30px 0 40px; }
  .v3-hero-grid, .v3-trust { grid-template-columns: 1fr; gap: 30px; }
  .v3-hero .v3-photo { padding-bottom: 0; }
  .v3-hero .v3-photo img { aspect-ratio: 16 / 10; }
  .v3-hero .idx-card { position: relative; left: auto; bottom: auto; width: auto; margin: -48px 14px 0; }
  body.v3 .uc-grid, .v3-rub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3-head { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .v3-sec { padding: 52px 0; }
  .v3-hero .lead { font-size: 17px; }
  body.v3 .uc-grid { grid-template-columns: 1fr; gap: 14px; }
  /* Mobil: Foto links als Quadrat, Text rechts — kompakt statt endlos scrollen */
  body.v3 .uc-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: start; }
  body.v3 .uc-card .uc-photo { grid-row: 1 / span 4; aspect-ratio: auto; height: 100%; min-height: 128px; }
  body.v3 .uc-card h3 { margin: 12px 14px 2px; font-size: 19px; line-height: 1.2; }
  body.v3 .uc-desc { display: none; }
  body.v3 .uc-list { margin: 4px 14px 0; border-top: 0; }
  body.v3 .uc-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 10px; padding: 4px 0; border: 0; font-size: 13.5px; }
  body.v3 .uc-list li a { min-width: 0; }
  body.v3 .uc-list li .uc-p { white-space: nowrap; flex: none; }
  body.v3 .uc-list li:nth-child(n+2) { display: none; }
  body.v3 .uc-cta { margin: 4px 14px 12px; padding-top: 4px; font-size: 14px; }
  .v3-rub { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
  .v3-rub h3 { font-size: 18px; margin-top: 10px; }
  .v3-rub p { display: none; }
  .v3-facts { gap: 8px 16px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .uc-photo img, .v3-rub img, body.v3 .uc-card { transition: none; }
}

/* Lokal-Board: „Weitere anzeigen" */
.board-more { display: block; width: 100%; margin: 6px 0 14px; padding: 15px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); font: 600 15px/1 var(--font-ui); color: var(--accent-ink); cursor: pointer; }
.board-more:hover { background: var(--accent-bg); }
.board-more[hidden] { display: none; }

/* Mindestgröße 11 px auch für Delta-/Tipp-Chips auf Modellseiten */
.or-delta, span.tw { font-size: 11px !important; }

/* ---------- KI-Kennzeichnung (AI Act Art. 50 Abs. 4) — dezente, sichtbare Bildzeile ---------- */
/* Hülle beeinflusst das Layout nicht: Bild/Video bleibt, wo es war (auch absolut positionierte Hintergründe). */
.ai-fig { display: contents; }
.ai-cap {
  position: absolute; z-index: 3; right: 10px; bottom: 10px;
  font: 500 11px/1 var(--font-ui); letter-spacing: .02em; color: #2C302B;
  background: rgba(246, 244, 238, .86); border-radius: 4px; padding: 4px 7px;
  pointer-events: none; white-space: nowrap;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
[data-theme="dark"] .ai-cap { color: #E6E3DA; background: rgba(20, 23, 26, .78); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ai-cap { color: #E6E3DA; background: rgba(20, 23, 26, .78); } }
/* Container, in denen die Zeile am Bild sitzen soll, brauchen eine Positionsbasis */
.v3-photo, .uc-photo, .v3-rub .ph, .aff-s-media, .mieten-art, .hero, .hero-bench, .blog-card { position: relative; }
.uc-photo, .v3-rub .ph { overflow: hidden; }
/* Bilder im Fluss (hero-img, blog-thumb, Lokal-Kategoriebilder …): eigene Box mit Zeile im Bild */
.ai-fig > img.hero-img, .ai-fig > img.blog-thumb { position: relative; }
.ai-fig.ai-inline { position: relative; display: block; }
.ai-fig.ai-inline > img { margin-bottom: 0; }
.ai-fig.ai-inline > .ai-cap { right: 10px; bottom: 10px; }
/* hero-img hat margin-top → Box übernimmt den Abstand, Bild bekommt 0 */
.ai-fig.ai-inline:has(> img.hero-img) { margin-top: 26px; }
.ai-fig.ai-inline > img.hero-img { margin-top: 0; }
@media (max-width: 760px) { .ai-fig.ai-inline:has(> img.hero-img) { margin-top: 18px; } }
/* Hero-Bild steht auf v3 im <figure>: Karte (Spar-Duell) liegt links unten → Zeile rechts oben, nicht verdeckt */
.v3-hero .v3-photo > .ai-fig > .ai-cap { top: 10px; bottom: auto; }
/* Hintergrund-Medien (Startseite alt, Lokal, Benchmarks): Zeile unten rechts im Abschnitt */
.hero > .hero-bg ~ .ai-cap, .hero-bg .ai-cap { right: 14px; bottom: 12px; }
@media (max-width: 620px) { .ai-cap { font-size: 11px; right: 8px; bottom: 8px; padding: 3px 6px; } }
@media print { .ai-cap { position: static; background: none; } }

/* ---------- Ratgeber-Liste Startseite (Traffic-Plan P1.4) ---------- */
.v3-guide-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--line); }
.v3-guide-list li { border-bottom: 1px solid var(--line); }
.v3-guide-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 15px 2px; color: var(--ink); text-decoration: none; }
.v3-guide-list strong { font: 500 19px/1.25 var(--font-display); letter-spacing: -.005em; }
.v3-guide-list span { color: var(--ink-3, var(--ink-2)); font-size: 14px; text-align: right; }
.v3-guide-list a:hover strong { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (max-width: 760px) {
  .v3-guide-list { grid-template-columns: 1fr; }
  .v3-guide-list a { display: block; padding: 13px 2px; }
  .v3-guide-list span { display: block; text-align: left; margin-top: 3px; font-size: 13.5px; }
}

/* KI-Kennzeichnung v2 (09.10.2026): deutlich unauffälliger — kein Kasten, kleine helle Schrift mit weichem Schatten.
   Bleibt lesbar (≥ 11 px), damit die Kennzeichnung nach Art. 50 KI-VO erkennbar ist. */
.ai-cap {
  background: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  padding: 0 !important; border-radius: 0 !important;
  right: 9px !important; bottom: 7px !important;
  font: 400 11px/1 var(--font-ui) !important; letter-spacing: .03em !important;
  color: rgba(255, 255, 255, .78) !important;
  text-shadow: 0 0 3px rgba(0, 0, 0, .55), 0 0 1px rgba(0, 0, 0, .5);
}
[data-theme="dark"] .ai-cap { color: rgba(255, 255, 255, .72) !important; background: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ai-cap { color: rgba(255, 255, 255, .72) !important; background: none !important; } }
.v3-hero .v3-photo > .ai-fig > .ai-cap { top: 8px !important; bottom: auto !important; }
@media print { .ai-cap { color: #555 !important; text-shadow: none; } }
/* ===== V3-ENDE ===== */

/* A3 (16.10.2026, Audit): mobiler Kopfbereich mit demselben Randabstand wie der Inhalt (vorher 0 px) */
@media (max-width: 760px) { .hdr-in { padding-left: 24px; padding-right: 24px; } }
