/* ============================================================
   YouTube-Radar. Baut auf hf.css (Tokens des heyfreiheit
   Designsystems) auf. Ein Arbeitswerkzeug: dicht, linksbündig,
   Rahmen statt Schatten, die Thumbnails sind das Bildmaterial.
   ============================================================ */

:root {
  --r-bild: 10px;
  --r-teal-hell: #E4F2F4;
  --r-zeile: 168px;
}

body { font-size: 15px; }
h1 { font-size: 30px; }
h2 { font-size: 20px; }
.karte { box-shadow: none; }
.karte.flach { padding: var(--hf-space-5); }
.huelle { padding-top: var(--hf-space-6); }
code { font-size: 13px; background: var(--hf-sand-soft); padding: 1px 6px; border-radius: 6px; }

/* ————————————————————————— Kopfleiste */
.leiste { background: var(--hf-ink); color: #fff; padding: 14px var(--hf-gutter); }
.leiste-innen { max-width: var(--hf-container); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: var(--hf-space-5); flex-wrap: wrap; }
.marke { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.marke:hover { color: #fff; }
.marke img { height: 20px; display: block; }
.marke span { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.25); }
.leiste nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.leiste nav a { color: rgba(255,255,255,.72); font-size: 14px; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.leiste nav a:hover { color: #fff; }
.leiste nav a.an { color: #fff; border-bottom-color: var(--hf-aqua); }
.leiste nav a.leise { color: rgba(255,255,255,.45); }

/* ————————————————————————— Seitenkopf */
.seitenkopf { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--hf-space-5); flex-wrap: wrap; margin-bottom: var(--hf-space-5); }
.seitenkopf .hinweis { margin-top: 6px; max-width: 70ch; }
.brotkrumen { font-size: 13.5px; color: var(--hf-muted); margin-bottom: 10px; }
.abschnitt { margin-top: var(--hf-space-7); }
.abschnitt > h2, .abschnitt-kopf h2 { margin-bottom: 12px; }
.abschnitt-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.leer { border: 1px dashed var(--hf-sand); border-radius: var(--hf-radius-md); padding: 40px 28px; color: var(--hf-muted); }
.leer a { font-weight: 500; }
form.inline { display: inline; }
select { width: auto; max-width: 240px; padding: 9px 34px 9px 13px; font-size: 14px; }

/* ————————————————————————— Filter */
.filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: var(--hf-space-5); padding-bottom: var(--hf-space-5); border-bottom: 1px solid var(--hf-line); }
.filter-gruppe { display: inline-flex; border: 1px solid var(--hf-line); border-radius: var(--hf-radius-pill); background: var(--hf-white); padding: 3px; }
.filter-gruppe label { position: relative; padding: 6px 13px; font-size: 13.5px; font-weight: 500; color: var(--hf-muted); border-radius: var(--hf-radius-pill); cursor: pointer; white-space: nowrap; }
.filter-gruppe label.an { background: var(--hf-ink); color: #fff; }
.filter-gruppe input { position: absolute; opacity: 0; pointer-events: none; }
.filter-gruppe label:has(input:focus-visible) { outline: 2px solid var(--hf-teal); }

/* ————————————————————————— Faktor-Marke */
.faktor { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 76px; padding: 7px 10px 6px; border-radius: var(--r-bild); border: 1px solid var(--hf-line); background: var(--hf-white); line-height: 1.1; font-variant-numeric: tabular-nums; }
.faktor b { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.faktor small { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; opacity: .85; }
.faktor-normal { color: var(--hf-ink); }
.faktor-schwach { color: var(--hf-muted); background: transparent; }
.faktor-stark { color: var(--hf-teal-deep); background: var(--r-teal-hell); border-color: #C5E3E8; }
.faktor-outlier { color: #fff; background: var(--hf-teal); border-color: var(--hf-teal); }
.faktor-ausreisser { color: #fff; background: var(--hf-ink); border-color: var(--hf-ink); position: relative; }
.faktor-ausreisser::after { content: ''; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--hf-lime); }
.faktor-leer { color: var(--hf-muted); background: transparent; border-style: dashed; }
.faktor.jung { border-style: dashed; }
.faktor-outlier.jung, .faktor-ausreisser.jung { border-style: dashed; border-color: rgba(255,255,255,.6); }

/* ————————————————————————— Videoliste */
.liste { list-style: none; }
.liste.kompakt { border-top: 1px solid var(--hf-line); }
.zeile { display: grid; grid-template-columns: var(--r-zeile) minmax(0, 1fr) 110px 92px; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hf-line); }
.zeile-bild { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-bild); overflow: hidden; background: var(--hf-sand-soft); }
.zeile-bild img, .thumb-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dauer { position: absolute; right: 6px; bottom: 6px; background: rgba(36,33,33,.85); color: #fff; font-size: 11.5px; font-weight: 500; padding: 1px 6px; border-radius: 5px; font-variant-numeric: tabular-nums; }
.zeile-titel { display: block; color: var(--hf-ink); font-weight: 500; font-size: 15.5px; line-height: 1.35; }
.zeile-titel:hover { color: var(--hf-teal-deep); }
.zeile-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 13px; color: var(--hf-muted); }
.zeile-meta a { color: var(--hf-muted); font-weight: 500; }
.zeile-meta a:hover { color: var(--hf-ink); }
.zeile-zahlen { text-align: right; font-variant-numeric: tabular-nums; }
.zahl-gross { font-size: 16px; font-weight: 600; }
.zahl-gross small { display: block; font-size: 11.5px; font-weight: 400; color: var(--hf-muted); }
.zahl-klein { font-size: 12.5px; color: var(--hf-muted); margin-top: 4px; }
.zeile-faktor { text-align: right; }
.liste.kompakt { --r-zeile: 128px; }
.liste.kompakt .zeile { padding: 10px 0; }
.blaettern { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: var(--hf-space-6); }

/* ————————————————————————— Thumbnail-Raster */
.thumbraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 20px; }
.thumbraster.klein { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.thumb { color: var(--hf-ink); display: block; }
.thumb:hover .thumb-titel { color: var(--hf-teal-deep); }
.thumb-bild { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-bild); overflow: hidden; background: var(--hf-sand-soft); border: 1px solid var(--hf-line); }
.rang { position: absolute; left: 0; top: 0; background: var(--hf-cream); color: var(--hf-ink); font-size: 12px; font-weight: 600; padding: 3px 9px 3px 8px; border-bottom-right-radius: 8px; font-variant-numeric: tabular-nums; }
.thumb-kopf { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; }
.thumb-kopf .faktor { min-width: 0; flex-direction: row; gap: 6px; padding: 4px 9px; }
.thumb-kopf .faktor b { font-size: 15px; }
.thumb-kopf .faktor small { margin: 0; }
.thumb-kopf .faktor-ausreisser::after { display: none; }
.thumb-titel { font-weight: 500; line-height: 1.35; font-size: 14.5px; margin-bottom: 4px; }

/* ————————————————————————— Video-Detail */
.video-kopf { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.video-bild { position: relative; display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--hf-line); aspect-ratio: 16/9; background: var(--hf-sand-soft); }
.video-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-titel { font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 20px; }
.kennzahl-reihe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--hf-line); border-radius: var(--hf-radius-md); background: var(--hf-white); margin-bottom: 18px; }
.kennzahl { padding: 14px 16px; border-left: 1px solid var(--hf-line); }
.kennzahl:first-child { border-left: 0; }
.kennzahl b { display: block; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.kennzahl span { font-size: 12.5px; color: var(--hf-muted); }
.kennzahl.haupt .faktor { margin-bottom: 4px; }
.kennzahl-reihe.breit { margin: var(--hf-space-5) 0 8px; }
.fakten { display: grid; grid-template-columns: max-content 1fr; gap: 7px 18px; font-size: 14px; margin-bottom: 20px; }
.fakten dt { color: var(--hf-muted); }
.fakten dd { font-variant-numeric: tabular-nums; }
.beschreibung { white-space: pre-wrap; font-family: inherit; font-size: 14px; line-height: 1.6; background: var(--hf-white); border: 1px solid var(--hf-line); border-radius: var(--hf-radius-sm); padding: 16px 18px; max-height: 420px; overflow: auto; }
.tags { margin-top: 12px; line-height: 2.1; }

/* ————————————————————————— Diagramm */
.diagramm { width: 100%; height: auto; display: block; }
.d-raster { stroke: var(--hf-line); stroke-width: 1; }
.d-achse { fill: var(--hf-muted); font-size: 11px; font-family: var(--hf-font-sans); }
.d-linie { fill: none; stroke: var(--hf-teal); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.d-punkt { fill: var(--hf-teal-deep); }

/* ————————————————————————— Kanäle */
.hinzufuegen { margin-bottom: var(--hf-space-6); }
.hinzufuegen textarea { min-height: 76px; }
.hinzufuegen-fuss { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.hinzufuegen-fuss > label:first-child { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.hinzufuegen-fuss .knopf { margin-left: auto; }
.kanal-name { display: flex; align-items: center; gap: 12px; color: var(--hf-ink); font-weight: 500; }
.kanal-name img { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; border: 1px solid var(--hf-line); }
.tabelle td { padding: 11px 14px; }
.tabelle select { padding: 5px 26px 5px 9px; font-size: 13px; }
.tabelle.klein td, .tabelle.klein th { padding: 9px 8px; }
tr.pausiert td { opacity: .55; }
.chip-eigen { background: var(--hf-ink); color: #fff; border-color: var(--hf-ink); }
.chip-ok { color: var(--hf-gruen); background: var(--hf-gruen-bg); border-color: var(--hf-gruen-line); }
.chip { font-size: 11.5px; padding: 2px 9px; vertical-align: middle; }
.status { font-weight: 600; }
.status-fertig { color: var(--hf-gruen); }
.status-fehler { color: var(--hf-rot); }
.status-laeuft, .status-neu { color: var(--hf-teal); }
.status-nur_rss { color: var(--hf-gelb); }
.aktionen { width: 1%; }
.menue { position: relative; }
.menue summary { list-style: none; cursor: pointer; padding: 4px 10px; border: 1px solid var(--hf-line); border-radius: 8px; color: var(--hf-muted); font-weight: 700; letter-spacing: .1em; }
.menue summary::-webkit-details-marker { display: none; }
.menue[open] > div { position: absolute; right: 0; top: 34px; z-index: 5; background: var(--hf-white); border: 1px solid var(--hf-sand); border-radius: 12px; padding: 6px; min-width: 230px; }
.menue button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; font: inherit; font-size: 14px; border-radius: 8px; cursor: pointer; color: var(--hf-ink); }
.menue button:hover { background: var(--hf-sand-soft); }
.menue button.warn { color: var(--hf-rot); }
.kanal-kopf { display: flex; align-items: center; gap: 18px; }
.kanal-avatar { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--hf-line); }

/* ————————————————————————— Einstellungen */
.raster-einstellungen { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.raster-einstellungen > div > .karte + .karte { margin-top: 24px; }
h2.gruppe { font-size: 16px; margin: 6px 0 14px; padding-top: 14px; border-top: 1px solid var(--hf-line); }
h2.gruppe:first-child { border-top: 0; padding-top: 0; }
.feld > label .chip { margin-left: 6px; }

/* ————————————————————————— Anmeldung */
.anmelde-huelle { max-width: 420px; margin: 40px auto 0; }
.anmelde-huelle h1 { margin-bottom: 8px; }
.anmelde-huelle .karte { margin-top: 24px; }

/* ————————————————————————— Schmal */
@media (max-width: 860px) {
  .video-kopf, .raster-einstellungen { grid-template-columns: 1fr; }
  .kennzahl-reihe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kennzahl:nth-child(3) { border-left: 0; }
  .kennzahl:nth-child(n+3) { border-top: 1px solid var(--hf-line); }
}
@media (max-width: 640px) {
  :root { --r-zeile: 120px; }
  h1 { font-size: 25px; }
  .leiste { padding: 12px 16px; }
  .huelle { padding-left: 16px; padding-right: 16px; }
  .zeile { grid-template-columns: var(--r-zeile) minmax(0, 1fr); grid-template-areas: 'bild text' 'bild zahlen'; gap: 6px 12px; }
  .zeile-bild { grid-row: span 2; align-self: start; }
  .zeile-zahlen { text-align: left; display: flex; gap: 10px; align-items: baseline; }
  .zeile-zahlen .zahl-gross small { display: inline; margin-left: 4px; }
  .zeile-faktor { grid-column: 2; text-align: left; }
  .zeile-faktor .faktor { flex-direction: row; gap: 6px; padding: 3px 8px; min-width: 0; }
  .zeile-faktor .faktor b { font-size: 14px; }
  .zeile-faktor .faktor small { margin: 0; }
  .zeile-faktor .faktor-ausreisser::after { display: none; }
  .zeile-titel { font-size: 14px; }
  .filter-gruppe { overflow-x: auto; max-width: 100%; }
  .thumbraster { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .hinzufuegen-fuss .knopf { margin-left: 0; }
}

/* Im Video-Kopf ist die Spalte schmal: Kennzahlen als 2 × 2. */
.video-daten .kennzahl-reihe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.video-daten .kennzahl:nth-child(3) { border-left: 0; }
.video-daten .kennzahl:nth-child(n+3) { border-top: 1px solid var(--hf-line); }
@media (max-width: 640px) {
  .leiste nav { gap: 16px; }
  .filter-gruppe { scrollbar-width: none; }
  .filter-gruppe::-webkit-scrollbar { display: none; }
}

/* ————————————————————————— KI-Merkmale */
.ki-merkmal { color: var(--hf-ink); font-weight: 500; }
.relevanz { font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: var(--hf-radius-pill); border: 1px solid var(--hf-line); white-space: nowrap; }
.relevanz-hoch { color: var(--hf-teal-deep); background: var(--r-teal-hell); border-color: #C5E3E8; }
.relevanz-mittel { color: var(--hf-ink); }
.relevanz-niedrig { color: var(--hf-muted); }
.thumb-ki { display: flex; gap: 8px; align-items: center; margin-top: 6px; font-size: 12.5px; }
.suche { width: 260px; padding: 9px 14px; font-size: 14px; }
.analyse-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.analyse-raster h3 { margin-bottom: 12px; font-size: 16px; }
.analyse-raster .fakten { grid-template-columns: 110px 1fr; margin-bottom: 14px; }
.relevanz-block { border-left: 3px solid var(--hf-line); padding: 4px 0 4px 14px; }
.relevanz-block.relevanz-hoch { border-left-color: var(--hf-teal); background: none; }
.relevanz-block b { font-size: 14px; }
.relevanz-block p { font-size: 14px; margin-top: 2px; }
@media (max-width: 860px) { .analyse-raster { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .suche { width: 100%; } }

/* ————————————————————————— Ideen */
.ideen-liste { border-top: 1px solid var(--hf-line); }
.idee-zeile { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hf-line); }
.idee-titel { display: block; color: var(--hf-ink); font-weight: 500; line-height: 1.35; }
.idee-titel:hover { color: var(--hf-teal-deep); }
.idee-zeile .mini { margin-top: 3px; max-width: 80ch; }
.neu-idee { position: relative; }
.neu-idee summary { list-style: none; }
.neu-idee summary::-webkit-details-marker { display: none; }
.neu-idee[open] form { position: absolute; right: 0; top: 46px; width: min(420px, 90vw); z-index: 5; }
.vorschlaege { margin-bottom: var(--hf-space-6); }
.vorschlaege h2 { font-size: 17px; margin-bottom: 12px; }
.vorschlag-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.vorschlag { background: var(--hf-white); border: 1px dashed var(--hf-sand); border-radius: var(--hf-radius-md); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.vorschlag .knopf-reihe { margin-top: auto; }
.herkunft a { color: var(--hf-muted); text-decoration: underline; text-decoration-color: var(--hf-line); }
.board { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.spalte { background: var(--hf-sand-soft); border-radius: var(--hf-radius-md); padding: 12px; min-height: 180px; }
.spalte h3 { font-size: 14px; margin: 2px 4px 12px; display: flex; justify-content: space-between; }
.spalte-leer { color: var(--hf-muted); font-size: 13px; padding: 6px 4px; }
.karte-idee { background: var(--hf-white); border: 1px solid var(--hf-line); border-radius: 12px; padding: 12px 12px 10px; margin-bottom: 10px; }
.karte-idee.prio-1 { border-left: 3px solid var(--hf-teal); }
.karte-idee.prio-3 { opacity: .75; }
.karte-idee .idee-titel { font-size: 14px; }
.karte-fuss { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.schieben { display: flex; gap: 4px; }
.schieben button { width: 28px; height: 26px; border: 1px solid var(--hf-line); background: var(--hf-white); border-radius: 7px; cursor: pointer; font-size: 16px; line-height: 1; color: var(--hf-muted); }
.schieben button:hover { color: var(--hf-ink); border-color: var(--hf-sand); }
.idee-form { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.idee-titel-feld { resize: none; min-height: 0 !important; line-height: 1.3 !important; font-size: 24px !important; font-weight: 600; letter-spacing: -0.02em; border-color: transparent !important; background: transparent !important; padding-left: 0 !important; margin-bottom: 14px; }
.idee-titel-feld:focus { border-color: var(--hf-line) !important; background: var(--hf-white) !important; padding-left: 14px !important; }
.idee-seite .karte + .karte { margin-top: 16px; }
.idee-seite h3 { font-size: 15px; margin-bottom: 10px; }
.idee-seite select { width: 100%; max-width: none; }
.vorbild { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; color: var(--hf-ink); padding: 8px 0; border-top: 1px solid var(--hf-line); font-size: 13px; line-height: 1.35; }
.vorbild img { width: 96px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.vorbild b { font-weight: 500; display: block; }
.idee-aktionen { margin-top: 24px; }
.vorschlag-leiste { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ————————————————————————— Learnings */
.muster-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 14px; }
.muster-raster h3 { font-size: 15px; margin-bottom: 6px; }
.balken-zelle { width: 40%; }
.balken-mini { display: block; height: 7px; border-radius: 4px; background: var(--hf-sand); }
.balken-mini.gut { background: var(--hf-teal); }
.balken-mini.schwach { background: var(--hf-line); }
.bericht-einstieg { font-size: 17px; line-height: 1.6; max-width: 75ch; margin: 6px 0 24px; }
.bericht-raster { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; }
.bericht-raster h3 { font-size: 15px; margin: 0 0 10px; }
.bericht-raster h3 + ul { margin-bottom: 22px; }
.bericht-muster { padding: 14px 0; border-top: 1px solid var(--hf-line); }
.bericht-muster p { font-size: 14.5px; margin-top: 4px; }
.belege { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.belege a { position: relative; width: 120px; }
.belege img { width: 120px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; display: block; border: 1px solid var(--hf-line); }
.belege span { position: absolute; left: 4px; bottom: 4px; background: var(--hf-ink); color: #fff; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 5px; }
.bericht-liste { list-style: none; }
.bericht-liste li { padding: 8px 0; border-top: 1px solid var(--hf-line); font-size: 14.5px; }
@media (max-width: 860px) {
  .idee-form, .bericht-raster { grid-template-columns: 1fr; }
  .board { grid-template-columns: repeat(5, 240px); }
}

/* ————————————————————————— Themen und Tiefe */
.keyword-feld { flex: 1; min-width: 240px; }
.funke { display: block; }
.vorne div { margin-bottom: 3px; }
.vorne a { color: var(--hf-ink); }
.vorne .beobachtet { color: var(--hf-teal-deep); font-weight: 500; }
.rang-zelle b { font-size: 17px; }
.lesetext { font-size: 14.5px; line-height: 1.6; }
.aufbau { padding-left: 20px; font-size: 14.5px; }
.aufbau li { padding: 3px 0; }
.kommentare { list-style: none; max-height: 420px; overflow: auto; }
.kommentare li { padding: 10px 0; border-top: 1px solid var(--hf-line); font-size: 14px; }
.transkript { max-height: 460px; overflow: auto; background: var(--hf-white); border: 1px solid var(--hf-line); border-radius: var(--hf-radius-sm); padding: 14px 18px; font-size: 14px; line-height: 1.55; }
.transkript p { margin-bottom: 4px; }
.zeitmarke { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--hf-muted); margin-right: 6px; }

/* ————————————————————————— Mein Kanal */
.kennzahl-reihe.fuenf { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.prognose-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 12px; }
.prognose-raster h3 { font-size: 15px; margin-bottom: 8px; }
.tabelle.prognose td, .tabelle.prognose th { font-variant-numeric: tabular-nums; }
.band { margin-top: 14px; display: grid; gap: 8px; }
.band-zeile { display: grid; grid-template-columns: 52px 1fr 90px; gap: 10px; align-items: center; }
.band-spur { position: relative; height: 10px; background: var(--hf-sand-soft); border-radius: 5px; }
.band-bereich { position: absolute; top: 0; bottom: 0; background: var(--hf-aqua); border-radius: 5px; opacity: .7; }
.band-punkt { position: absolute; top: -3px; width: 4px; height: 16px; margin-left: -2px; background: var(--hf-teal-deep); border-radius: 2px; }
.band .rechts { text-align: right; font-variant-numeric: tabular-nums; }
.meilensteine { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 18px 0; }
.meilenstein { border-left: 3px solid var(--hf-teal); padding: 4px 0 4px 14px; display: flex; flex-direction: column; gap: 2px; }
.meilenstein b { font-size: 17px; }
.szenario { margin-top: 18px; }
.szenario h3 { font-size: 16px; margin-bottom: 4px; }
.regler { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 16px 0 10px; }
.regler label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.regler output { font-weight: 600; color: var(--hf-teal-deep); margin-left: 6px; }
.regler input[type=range] { width: 100%; accent-color: var(--hf-teal); }
.szenario-ergebnis { font-size: 16px; margin: 6px 0 8px; }
.szenario-ergebnis b { font-size: 20px; font-variant-numeric: tabular-nums; }
.mini-thumb { width: 88px !important; height: auto !important; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px !important; }
@media (max-width: 860px) {
  .prognose-raster, .regler { grid-template-columns: 1fr; }
  .kennzahl-reihe.fuenf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kennzahl-reihe.fuenf .kennzahl:nth-child(odd) { border-left: 0; }
  .kennzahl-reihe.fuenf .kennzahl:nth-child(n+3) { border-top: 1px solid var(--hf-line); }
}
