/* Vermoegensstroeme-Rechner — styles.css
   Datenjournalistisches Layout. Hell/Dunkel via prefers-color-scheme.
   System-Font-Stack, keine externen Fonts oder Assets. */

/* ============================================================
   1. Design-Tokens
   ============================================================ */
:root {
  color-scheme: light;
  accent-color: #1f4ea8;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  --container: 1100px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --chart-max: 820px;
  --radius: 8px;
  --radius-s: 7px;

  /* Flaechen & Text (hell) — warmes Beige-Papier, hoeherer Kontrast */
  --bg: #e9e2d3;
  --surface: #fbf8f1;
  --surface-2: #f2ebdc;
  --text: #1b1813;
  --text-muted: #574f41;
  --border: #d6ccb6;
  --akzent: #1c4aa0;
  --akzent-schwach: #e8ecf5;
  --akzent-rand: color-mix(in srgb, var(--akzent) 40%, transparent);
  --akzent-schein: 0 0 12px color-mix(in srgb, var(--akzent) 15%, transparent);

  /* Diagramm-Kategorien (von charts.js zur Laufzeit gelesen) */
  --chart-1: #2563eb;
  --chart-2: #0d9488;
  --chart-3: #d97706;
  --chart-4: #dc2626;
  --chart-5: #7c3aed;
  --chart-6: #475569;
  --chart-7: #16a34a;
  --chart-achse: var(--text-muted);
  --chart-gitter: var(--border);

  /* Ampel */
  --ampel-gruen: #16a34a;
  --ampel-gelb: #d97706;
  --ampel-rot: #dc2626;
  --ampel-neutral: var(--text-muted);
}

/* Dark-Mode bewusst deaktiviert: Wirtschafts-Hub ist einheitlich hell/beige.
   Zum Reaktivieren die Bedingung zurueck auf (prefers-color-scheme: dark) setzen. */
@media not all {
  :root {
    accent-color: #6aa3ff;

    --bg: #0d1117;
    --surface: #161b22;
    --surface-2: #1d242e;
    --text: #e6edf3;
    --text-muted: #9aa4b2;
    --border: #2a313c;
    --akzent: #6aa3ff;
    --akzent-schwach: #172238;

    /* Chart- und Ampelfarben im Dunkeln leicht aufgehellt */
    --chart-1: #5b8cf0;
    --chart-2: #2dd4bf;
    --chart-3: #f59e0b;
    --chart-4: #f87171;
    --chart-5: #a78bfa;
    --chart-6: #94a3b8;
    --chart-7: #4ade80;

    --ampel-gruen: #22c55e;
    --ampel-gelb: #f59e0b;
    --ampel-rot: #f87171;
  }
}

/* ============================================================
   2. Basis
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg) 45%, var(--surface-2) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 600; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--akzent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration: none; }

img, svg { max-width: 100%; }

button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 2px;
}

/* Kennzahlen ruhig & ausgerichtet (Mono + Tabular) */
.slider-row__wert,
.ergebnis-kachel__wert,
.ergebnis-kachel__delta,
.ampel__wert,
.phase__zahl,
.glossar-karte__wert {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   3. Sektionen / zentrierter Container
   ============================================================ */
.sektion,
[id="hero-intro"], [id="glossar"], [id="schaubilder"], [id="drei-phasen"],
[id="rechner"], [id="ruestung-heute"], [id="stabilitaets-ampel"], [id="quellen-caveats"] {
  max-width: var(--container);
  margin-inline: auto;
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
  padding-inline: var(--gutter);
  scroll-margin-top: 1rem;
}

.sektion + .sektion { border-top: 1px solid var(--border); }

.sektion__kopf { margin-bottom: 1.5rem; }

.sektion__titel {
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  letter-spacing: -0.01em;
}

.sektion__text {
  margin-top: 0.75rem;
  max-width: 70ch;
  color: var(--text-muted);
}

/* Hero traegt den roten Faden, etwas groesser */
[id="hero-intro"] .sektion__titel { font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 650; }
[id="hero-intro"] .sektion__text { font-size: 1.15rem; color: var(--text); }

/* ============================================================
   4. Diagramme (inline-SVG)
   ============================================================ */
.sektion svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Grosse Einzel-Charts begrenzen, damit die Hoehe ruhig bleibt */
[id="schaubild-hero"],
[id^="rechner-chart-"],
[id="ruestung-top-ausgaben"],
[id="ruestung-top-bipanteil"] {
  max-width: var(--chart-max);
  margin-inline: auto;
  min-height: 200px;
}

/* ============================================================
   5. Glossar
   ============================================================ */
.glossar-suche {
  width: 100%;
  max-width: 480px;
  margin-top: 0.5rem;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
}
.glossar-suche::placeholder { color: var(--text-muted); }

.chip-leiste {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.45rem 0.85rem;
  font-size: 0.92rem;
  line-height: 1;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.chip:hover { border-color: var(--akzent); }
.chip--aktiv {
  background: var(--akzent-schwach);
  border-color: var(--akzent);
  color: var(--akzent);
  font-weight: 600;
}

.glossar-grid,
[id="glossar-grid"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.glossar-karte {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--akzent-rand);
  border-radius: var(--radius);
  box-shadow: var(--akzent-schein);
  transition: border-color 0.15s;
}
.glossar-karte:hover { border-color: color-mix(in srgb, var(--akzent) 45%, var(--border)); }
.glossar-karte__begriff { font-size: 1.1rem; font-weight: 700; }
.glossar-karte__abk { margin-top: -0.2rem; font-size: 0.85rem; color: var(--text-muted); }
.glossar-karte__kategorie {
  align-self: flex-start;
  padding: 0.15em 0.55em;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--akzent);
  background: var(--akzent-schwach);
  border-radius: 999px;
}
.glossar-karte__def { color: var(--text); }
.glossar-karte__beispiel { color: var(--text-muted); font-style: italic; }
.glossar-karte__wert {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.3rem 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
}

/* ============================================================
   6. Schaubilder-Grid (chart-cards)
   ============================================================ */
.chart-grid,
[id="schaubilder-grid"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.chart-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  padding: 1.15rem 1.2rem 1.25rem;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--akzent-rand);
  border-radius: var(--radius);
  box-shadow: var(--akzent-schein);
  transition: border-color 0.15s;
}
.chart-card:hover { border-color: color-mix(in srgb, var(--akzent) 45%, var(--border)); }
.chart-card__titel { font-size: 1.05rem; font-weight: 700; }
.chart-card__untertitel { margin-top: -0.15rem; font-size: 0.9rem; color: var(--text-muted); }
.chart-card__mount { margin: 0.5rem 0; min-height: 180px; }
.chart-card__caption { font-size: 0.92rem; color: var(--text); }
.chart-card__quelle { margin-top: auto; font-size: 0.78rem; color: var(--text-muted); }

/* Klick -> Vollbild-Lightbox */
.chart-card__mount, .ampel__gauge { cursor: zoom-in; }
.chart-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(0.75rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--text) 60%, transparent);
}
.chart-lightbox[hidden] { display: none; }
.chart-lightbox__inner {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: clamp(1.2rem, 3vw, 2rem);
  width: min(95vw, 1100px); max-height: 92vh; overflow: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}
.chart-lightbox__close {
  position: absolute; top: 0.4rem; right: 0.6rem;
  border: none; background: none; cursor: pointer;
  font-size: 2rem; line-height: 1; color: var(--text-muted);
}
.chart-lightbox__close:hover { color: var(--text); }
.chart-lightbox__titel { font-size: 1.15rem; font-weight: 700; margin: 0 2rem 0.6rem 0; color: var(--text); }
.chart-lightbox__mount svg { width: 100%; height: auto; }
.chart-lightbox__caption { font-size: 0.95rem; color: var(--text-muted); margin: 0.8rem 0 0; }

/* Quellen-Sternchen */
.q-stern {
  color: var(--akzent); font-weight: 700; text-decoration: none;
  padding: 0 0.15em; cursor: pointer; font-size: 0.95em;
}
.q-stern:hover, .q-stern:focus { text-decoration: underline; }

/* ============================================================
   7. Drei Phasen
   ============================================================ */
[id="drei-phasen"] :has(> .phase) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
[id="drei-phasen"] > .phase + .phase { margin-top: 1.25rem; }

.phase {
  --phase-farbe: var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem 1.3rem;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--akzent-rand);
  border-top: 3px solid var(--phase-farbe);
  border-radius: var(--radius);
  box-shadow: var(--akzent-schein);
}
.phase--1 { --phase-farbe: var(--chart-1); }
.phase--2 { --phase-farbe: var(--chart-3); }
.phase--3 { --phase-farbe: var(--chart-4); }
.phase__zahl {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--phase-farbe);
}
.phase__text { color: var(--text); }

/* ============================================================
   8. Rechner
   ============================================================ */
.rechner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.rechner-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem 1.75rem;
  padding: 1.5rem;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--akzent-rand);
  border-radius: var(--radius);
  box-shadow: var(--akzent-schein);
}

.rechner-preset { grid-column: 1 / -1; }
.rechner-preset label { display: block; margin-bottom: 0.35rem; font-size: 0.92rem; color: var(--text); }

.rechner-panel select,
select.rechner-preset {
  width: 100%;
  max-width: 360px;
  padding: 0.6rem 0.8rem;
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
}

.slider-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
}
.slider-row__label-zeile { display: flex; align-items: center; gap: 0.4rem; flex: 1 1 60%; }
.slider-row__label { font-size: 0.92rem; color: var(--text); }

.info-knopf {
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
  padding: 0;
  font: italic 600 0.75rem/1 Georgia, serif;
  color: var(--akzent);
  background: var(--akzent-schwach);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
}
.info-knopf:hover,
.info-knopf:focus-visible { background: var(--akzent); color: var(--surface); }
.info-knopf[aria-expanded="true"] { background: var(--akzent); color: var(--surface); }

.info-text {
  flex: 1 1 100%;
  margin: 0.15rem 0 0;
  padding: 0.5rem 0.7rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--akzent-schwach);
  border-left: 2px solid var(--akzent);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}
.slider-row__wert {
  margin-left: auto;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--akzent);
}
.slider-row__input {
  flex: 1 1 100%;
  width: 100%;
  height: 1.6rem;
  margin-top: 0.35rem;
  accent-color: var(--akzent);
  cursor: pointer;
}

.ergebnis-grid,
[id="rechner-ergebnis-grid"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 1rem;
}
.ergebnis-kachel {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--akzent-rand);
  border-radius: var(--radius);
  box-shadow: var(--akzent-schein);
}
.ergebnis-kachel__titel { font-size: 0.85rem; line-height: 1.35; color: var(--text-muted); }
.ergebnis-kachel__wert { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 700; line-height: 1.1; }
.ergebnis-kachel__delta { font-size: 0.82rem; color: var(--text-muted); }

/* Dynamische Rechner-Charts: je Mount eine eigene Karte */
[id^="rechner-chart-"] {
  padding: 1rem 1.1rem;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--akzent-rand);
  border-radius: var(--radius);
  box-shadow: var(--akzent-schein);
}

.fazit,
[id="rechner-fazit"] {
  padding: 1.2rem 1.35rem;
  color: var(--text);
  background: var(--akzent-schwach);
  border: 1px solid var(--border);
  border-left: 4px solid var(--akzent);
  border-radius: var(--radius-s);
}

/* ============================================================
   9. Stabilitaets-Ampel
   ============================================================ */
.ampel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.ampel {
  --status: var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.25rem;
  text-align: center;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--akzent-rand);
  border-top: 4px solid var(--status);
  border-radius: var(--radius);
  box-shadow: var(--akzent-schein);
}
.ampel--rot { --status: var(--ampel-rot); }
.ampel--gelb { --status: var(--ampel-gelb); }
.ampel--gruen { --status: var(--ampel-gruen); }
.ampel--neutral { --status: var(--ampel-neutral); }
.ampel__wert { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; line-height: 1.1; color: var(--status); }
.ampel__label { font-size: 0.95rem; color: var(--text-muted); }

/* ============================================================
   10. Quellen & Caveats
   ============================================================ */
.quelle-liste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.quelle-liste__item {
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
}
.quelle-liste__item a { font-weight: 600; }

.caveat-liste {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.caveat-liste > * {
  padding: 0.9rem 1.05rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--ampel-gelb);
  border-radius: var(--radius-s);
}

.badge-unsicher {
  display: inline-block;
  padding: 0.18em 0.55em;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--text);
  background: color-mix(in srgb, var(--ampel-gelb) 16%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--ampel-gelb) 45%, var(--bg));
  border-radius: 999px;
}

/* ============================================================
   11. Kopf, Sprungnav, Noscript, Fuss
   ============================================================ */
.kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  max-width: var(--container);
  margin-inline: auto;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--border);
}
.kopf__marke { margin: 0; font-weight: 700; letter-spacing: -0.01em; color: inherit; text-decoration: none; }
.kopf__marke:hover { color: var(--akzent); }
.lang-toggle {
  margin-left: 0.75rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  flex: none;
}
.lang-toggle:hover { background: var(--surface-2); border-color: var(--akzent); }
.sprungnav { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; font-size: 0.92rem; }
.sprungnav a { color: var(--text-muted); text-decoration: none; }
.sprungnav a:hover { color: var(--akzent); text-decoration: underline; }

.hinweis-noscript {
  max-width: var(--container);
  margin: 1rem auto;
  padding: 0.9rem 1.05rem var(--gutter);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--ampel-gelb);
  border-radius: var(--radius-s);
}

.fuss {
  max-width: var(--container);
  margin-inline: auto;
  padding: 2rem var(--gutter) 3rem;
  border-top: 1px solid var(--border);
}
.fuss__text { font-size: 0.85rem; color: var(--text-muted); }
.fuss__spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem 2.5rem; }
.fuss__block { min-width: 0; }
.fuss__titel { font-size: 0.95rem; font-weight: 600; margin: 0 0 0.5rem; color: var(--text); }
.fuss__block .fuss__text { margin-bottom: 0.75rem; line-height: 1.55; }
.fuss__feindruck { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.8rem; }

/* ============================================================
   12. Nachgezogene Klassen (Hero-Meta, Phasen, Rechner, Ruestung, Ampel, Quellen)
   ============================================================ */
.sektion__untertitel { margin-top: 0.4rem; font-size: 1.05rem; color: var(--text-muted); }
.sektion__meta { margin-top: 0.5rem; font-size: 0.85rem; color: var(--text-muted); }
[id="hero-intro"] .sektion__untertitel { font-size: 1.2rem; }

.glossar-suche__label { display: block; font-size: 0.92rem; color: var(--text); }
.glossar-leer { padding: 1rem 0; color: var(--text-muted); }

.phase__kopf { font-size: 1.1rem; color: var(--phase-farbe); }

/* Finanzierungs-Fieldset: Browser-Default neutralisieren, volle Breite im Panel-Grid */
.finanzierung {
  grid-column: 1 / -1;
  min-inline-size: 0;
  margin: 0;
  padding: 1rem 1.1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
}
.finanzierung > .slider-row + .slider-row { margin-top: 0.9rem; }
.finanzierung__legende { padding: 0 0.4rem; font-size: 0.92rem; font-weight: 600; color: var(--text); }
.rechner__hinweis { margin-top: 0.75rem; font-size: 0.85rem; color: var(--text-muted); }

/* Modell-Disclaimer traegt zwar .badge-unsicher, ist aber ein langer Satz: Pille/Versalien aufheben */
.rechner__disclaimer {
  display: block;
  margin-top: 0.75rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  border-radius: var(--radius-s);
}

.ruestung-narrativ { max-width: 70ch; color: var(--text); }

.fakten-liste {
  display: grid;
  grid-template-columns: minmax(10rem, 15rem) 1fr;
  gap: 0.6rem 1.25rem;
  margin: 1.25rem 0 0;
}
.fakten-liste dt, .fakten-liste dd { margin: 0; }
.fakten-liste__bez { font-weight: 600; color: var(--text-muted); }
.fakten-liste__wert { color: var(--text); }
@media (max-width: 560px) {
  .fakten-liste { grid-template-columns: 1fr; gap: 0.2rem 0; }
  .fakten-liste__bez { margin-top: 0.6rem; }
}

.ampel__titel { font-size: 1.05rem; }
.ampel__gauge { width: 100%; }
.ampel__caption { font-size: 0.85rem; color: var(--text-muted); }
.ampel__label--rot { color: var(--ampel-rot); }
.ampel__label--gelb { color: var(--ampel-gelb); }
.ampel__label--gruen { color: var(--ampel-gruen); }
.ampel__label--neutral { color: var(--text-muted); }

.quellen-block { margin-top: 2rem; }
.quellen-block__titel { font-size: 1.15rem; }
.quelle-liste__kat { display: block; margin-top: 0.35rem; font-size: 0.75rem; color: var(--text-muted); }

/* ============================================================
   13. Reduzierte Bewegung
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ============================================================
   14. Empfehlung gegen Wirklichkeit (SOLL/IST)
   ============================================================ */
.si-grid { display: grid; gap: 1rem; }

.si-paar {
  border: 1px solid var(--akzent-rand);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  box-shadow: var(--akzent-schein);
  padding: 1rem 1.1rem 1.1rem;
}
.si-paar__kopf {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.8rem;
}
.si-paar__thema { font-size: 1.12rem; font-weight: 700; line-height: 1.25; }
.si-paar__badge {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--akzent); background: var(--akzent-schwach);
  border-radius: 999px; padding: 0.2rem 0.65rem; white-space: nowrap;
}

.si-paar__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 620px) { .si-paar__cols { grid-template-columns: 1fr; } }

.si-spalte {
  border-radius: var(--radius-s);
  padding: 0.8rem 0.85rem;
  border-left: 3px solid var(--si-rand, var(--border));
  background: var(--si-bg, transparent);
}
.si-spalte--ist  { --si-rand: var(--ampel-rot);   --si-bg: color-mix(in srgb, var(--ampel-rot) 7%, transparent); }
.si-spalte--soll { --si-rand: var(--ampel-gruen); --si-bg: color-mix(in srgb, var(--ampel-gruen) 8%, transparent); }
.si-spalte__label {
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 0.35rem;
}
.si-spalte__wert { font-size: 1.05rem; font-weight: 700; line-height: 1.2; margin-bottom: 0.35rem; }
.si-spalte--ist  .si-spalte__wert { color: var(--ampel-rot); }
.si-spalte--soll .si-spalte__wert { color: var(--ampel-gruen); }
.si-spalte__text { font-size: 0.93rem; line-height: 1.5; color: var(--text); }

.bargeld-falle {
  display: block; margin-top: 1.6rem;
  border: 1px solid color-mix(in srgb, var(--ampel-rot) 35%, var(--border));
  border-left: 5px solid var(--ampel-rot);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--ampel-rot) 6%, var(--surface));
  padding: 1.1rem 1.2rem;
}
.bargeld-falle__titel { font-size: 1.18rem; font-weight: 700; line-height: 1.25; margin-bottom: 0.6rem; }
.bargeld-falle__text { font-size: 0.96rem; line-height: 1.6; margin-bottom: 0.6rem; }
.bargeld-falle__text:last-of-type { margin-bottom: 0; }
.bargeld-falle__quellen { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.7rem; }
.bargeld-falle__qlink { font-weight: 600; }

.empfehlung-schwellen {
  margin-top: 1.2rem; font-size: 0.92rem; line-height: 1.55; color: var(--text-muted);
  border-top: 1px dashed var(--border); padding-top: 0.9rem;
}
