/* ============================================
   bitcoin-grundlagen.ch · Design A2 «Lehrbuch mit Ebenen»
   Theme-Schicht über styles.css (wird danach geladen).
   Prinzip: Variablen umbiegen, dann Komponenten gezielt umstylen.
   Typografie statt Boxen, Haarlinien, EINE Akzentfarbe (#F7931A).
   ============================================ */

@font-face { font-family: 'Newsreader'; src: url('../fonts/newsreader-var.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('../fonts/plex-sans-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('../fonts/plex-sans-semibold.woff2') format('woff2'); font-weight: 600 800; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/plex-mono-medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }

/* ---------- 1. Tokens ---------- */
/* Hell = :root und body.theme-light, Dunkel = body.theme-dark (Experten-Modus) bzw. System-Dunkel.
   Die Aliase stehen in denselben Blöcken, weil body.theme-* in styles.css die Variablen auf body neu setzt. */
:root, body.theme-light {
  --paper: #F5F2EC; --paper-2: #FBF9F5; --ink: #1C1B19; --ink-2: #2B2925;
  --body: #4A463F; --muted: #5E5950; --faint: #8A847A;
  --line: #DDD7CC; --line-2: #E6E0D6; --track: #E2DCD1;
  --accent: #F7931A; --accent-ink: #9C4F00; --warn: #A94E45;
  --deep-bg: #1C1B19; --deep-cell: #24231F; --deep-line: #3A3732;
  --deep-text: #D8D2C6; --deep-head: #F5F2EC; --deep-muted: #A39D92;
  --btc-orange-light: #FBEBD5; --btc-orange-dim: rgba(247, 147, 26, 0.10); --btc-orange-glow: rgba(247, 147, 26, 0.25);
  --red-dim: rgba(169, 78, 69, 0.07); --red-soft: #A94E45;
  --shadow-lg: 0 16px 40px -16px rgba(28, 27, 25, 0.28);
  --bg-primary: #F5F2EC; --bg-card: #FBF9F5; --bg-subtle: #E2DCD1;
  --text-primary: #1C1B19; --text-body: #4A463F; --text-muted: #5E5950;
  --border-light: #DDD7CC;
  --green: #A85600; --green-dim: rgba(247, 147, 26, 0.10); --red: #A94E45;
  --info-box-bg: #1C1B19; --info-box-text: #D8D2C6; --info-box-heading: #F5F2EC;
  --code-bg: #1C1B19; --code-text: #D8D2C6;
}
body.theme-dark {
  --paper: #171614; --paper-2: #1F1E1B; --ink: #F2EEE6; --ink-2: #E4DED3;
  --body: #C9C3B8; --muted: #A39D92; --faint: #8A847A;
  --line: #34312C; --line-2: #2A2824; --track: #34312C;
  --accent-ink: #F2A65A; --warn: #D68C80;
  --deep-bg: #0E0D0C; --deep-cell: #191816; --deep-line: #2E2B27;
  --btc-orange-light: #2A2218; --btc-orange-dim: rgba(247, 147, 26, 0.14); --btc-orange-glow: rgba(247, 147, 26, 0.22);
  --red-dim: rgba(214, 140, 128, 0.10); --red-soft: #D68C80;
  --shadow-lg: 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  --bg-primary: #171614; --bg-card: #1F1E1B; --bg-subtle: #34312C;
  --text-primary: #F2EEE6; --text-body: #C9C3B8; --text-muted: #A39D92;
  --border-light: #34312C;
  --green: #F2A65A; --green-dim: rgba(247, 147, 26, 0.14); --red: #D68C80;
  --info-box-bg: #0E0D0C; --info-box-text: #D8D2C6; --info-box-heading: #F5F2EC;
}
:root, body {
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 8px; --radius-xl: 10px;
  --shadow-sm: none; --shadow-md: none; --shadow-glow: none;
  --nav-h: 64px;
}
/* System-Dunkel ohne gesetzten Modus: dieselben Werte wie body.theme-dark */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171614; --paper-2: #1F1E1B; --ink: #F2EEE6; --ink-2: #E4DED3;
    --body: #C9C3B8; --muted: #A39D92; --faint: #8A847A;
    --line: #34312C; --line-2: #2A2824; --track: #34312C;
    --accent-ink: #F2A65A; --warn: #D68C80;
    --deep-bg: #0E0D0C; --deep-cell: #191816; --deep-line: #2E2B27;
    --btc-orange-light: #2A2218; --red-dim: rgba(214, 140, 128, 0.10); --red-soft: #D68C80;
    --bg-primary: #171614; --bg-card: #1F1E1B; --bg-subtle: #34312C;
    --text-primary: #F2EEE6; --text-body: #C9C3B8; --text-muted: #A39D92; --border-light: #34312C;
    --green: #F2A65A; --red: #D68C80; --info-box-bg: #0E0D0C;
  }
}
/* ---------- 2. Basis ---------- */
body { font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink-2); background: var(--paper); }
body::after { display: none; }
@media (min-width: 768px) { body { font-size: 18px; } }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -0.01em; text-wrap: pretty; }
h1 { letter-spacing: -0.02em; line-height: 1.04; }
h2 { font-weight: 500; line-height: 1.15; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.container { max-width: 1280px; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 48px; } }
.section, .mode-beginner .section, body:not(.mode-beginner) .section { padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 768px) { .section, .mode-beginner .section, body:not(.mode-beginner) .section { padding-top: 72px; padding-bottom: 72px; } }
.section-alt { background: none; border-top: 1px solid var(--line); border-bottom: 0; }
.section-header { text-align: left; margin-bottom: 32px; }
.section-header p { margin-left: 0; color: var(--body); }
.skip-link { background: var(--ink); color: var(--paper); border-radius: 0; }
.skip-link:focus { color: var(--paper); }

/* ---------- 3. Kopfzeile ---------- */
.site-nav { background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 0; min-height: var(--nav-h); display: flex; align-items: center; }
.site-nav.scrolled { padding: 0; box-shadow: none; }
body.theme-light .site-nav, body.theme-dark .site-nav { background: color-mix(in srgb, var(--paper) 90%, transparent); }
.site-nav .nav-inner { width: 100%; min-height: var(--nav-h); }
.nav-logo { font: 600 19px var(--serif); letter-spacing: 0; color: var(--ink); gap: 8px; }
.nav-logo .btc-symbol { display: none; }
.nav-logo .logo-text { letter-spacing: 0; }
.nav-links a, .nav-dropdown-toggle { color: var(--body); font-size: 15px; font-weight: 400; border-radius: 0; }
.nav-links a:hover, .nav-links a.active, .nav-dropdown-toggle:hover, .nav-dropdown-toggle.active { color: var(--ink); background: none; }
.nav-dropdown-menu { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.nav-dropdown-link.active, .nav-dropdown-link:hover { color: var(--accent-ink); background: none; }
.mode-toggle-nav { border: 1px solid var(--line); border-radius: 99px; background: none; }
.mode-toggle-opt { border-radius: 99px; font-family: var(--sans); }
.mode-toggle-opt.active { background: var(--ink); color: var(--paper); box-shadow: none; }
.mobile-menu-btn span { background: var(--ink); }
.mobile-nav { background: var(--paper); border-left: 1px solid var(--line); box-shadow: none; }
.mobile-nav a { color: var(--ink); border-bottom-color: var(--line-2); font-size: 17px; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--accent-ink); }
.mobile-nav-overlay { background: rgba(28, 27, 25, 0.4); }
.readbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 1100; pointer-events: none; }

/* ---------- 4. Buttons ---------- */
.btn, .mode-beginner .btn { border-radius: 7px; min-height: 48px; padding: 0 22px; font-family: var(--sans); font-weight: 600; font-size: 16px; }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: none; }
.btn-primary:hover { background: var(--ink); color: var(--paper); opacity: 0.9; transform: none; box-shadow: none; }
.btn-outline { background: none; color: var(--ink); border: 1px solid var(--faint); }
.btn-outline:hover { background: var(--paper-2); color: var(--ink); }
.btn-white { background: var(--accent); color: #1C1B19; box-shadow: none; }
.btn-white:hover { background: var(--accent); color: #1C1B19; filter: brightness(1.05); transform: none; }

/* ---------- 5. Hero / Modulkopf ---------- */
.hero:not(.hero-index) { text-align: left; padding: calc(var(--nav-h) + 28px) 0 20px; }
@media (min-width: 768px) { .hero:not(.hero-index) { padding: calc(var(--nav-h) + 52px) 0 32px; } }
.hero:not(.hero-index)::before, .hero:not(.hero-index)::after, .hero:not(.hero-index) .hero-decor { display: none; background: none; }
.hero:not(.hero-index) h1 { font-size: clamp(2.5rem, 6vw, 4rem); max-width: 14em; }
.hero:not(.hero-index) .hero-subtitle { font-size: clamp(17px, 1.6vw, 20px); color: var(--body); margin: 14px 0 12px; max-width: 34em; }
.hero-timestamp { font: 500 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.module-progress { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; }
.module-progress-label { font: 500 12px var(--mono); letter-spacing: 0.12em; color: var(--accent-ink); }
.module-progress-track { background: var(--track); border-radius: 2px; height: 5px; max-width: 220px; flex: 1; }
.module-progress-fill { background: var(--accent); border-radius: 2px; }
.hero-index { padding-top: 96px; }
.hero-index h1 { font-family: var(--serif); }

/* ---------- 6. Kapitel-Navigation (per JS erzeugt) ---------- */
.toc { position: sticky; top: var(--nav-h); z-index: 40; display: flex; gap: 6px; overflow-x: auto; margin: 0 -20px; padding: 10px 20px; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.toc::-webkit-scrollbar { display: none; }
.toc .label { display: none; }
.toc a { flex-shrink: 0; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); text-decoration: none; font-size: 14px; }
.toc a .n { font-family: var(--mono); color: var(--muted); }
.toc a .t { display: none; }
.toc a.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.toc a.is-active .t { display: inline; }
.toc a.is-active .n { color: var(--accent); }
@media (min-width: 768px) { .toc { margin: 0; padding: 10px 0; } }
@media (min-width: 1024px) { .toc a .t { display: inline; } .toc a { padding: 0 16px; } }
.has-toc [id] { scroll-margin-top: 130px; }

/* ---------- 7. Karten, Boxen, Kästen ---------- */
.card, .mode-beginner .card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: none; padding: 24px; }
.card:hover { transform: none; box-shadow: none; }
.card-link:hover { border-color: var(--accent); }
.metaphor-card { background: none; border: 0; border-top: 1px solid var(--ink); border-radius: 0; padding: 14px 0 0; }
.metaphor-card h3 { color: var(--accent-ink); font: 500 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.info-box { background: var(--deep-bg); color: var(--deep-text); border-radius: 2px; padding: 24px 22px; }
@media (min-width: 768px) { .info-box { padding: 32px 36px; } }
.info-box h2, .info-box h3 { color: var(--deep-head); font-family: var(--serif); font-weight: 400; }
.info-box strong { color: var(--accent); }
.info-box p { color: var(--deep-text); }
.tldr-box { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-md); }
.tldr-box h3 { font: 500 12px var(--mono); letter-spacing: 0.12em; color: var(--accent-ink); }
.warning-box { background: none; border-top: 2px solid var(--warn); border-radius: 0; padding: 12px 0 0; }
.warning-heading { color: var(--warn); font: 500 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.pill { font: 500 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line); background: none; color: var(--muted); border-radius: 99px; }
.pill-orange, .pill-green { background: none; border-color: var(--accent); color: var(--accent-ink); }
.pill-red { background: none; border-color: var(--warn); color: var(--warn); }
.illu-panel, .svg-container { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: none; }
.figure-scene, .scene-panel { border-radius: var(--radius-md); }
.code-block { border-radius: 6px; font-family: var(--mono); }

/* ---------- 8. Tabellen ---------- */
table th { font-family: var(--sans); color: var(--ink); }
.comparison-table th, .data-table th { background: none; border-bottom: 1px solid var(--ink); }
.comparison-table td, .data-table td { border-bottom-color: var(--line-2); }
.comparison-table .grade-good { color: var(--accent-ink); }
.comparison-table .grade-bad { color: var(--warn); }
.comparison-table .grade-mid { color: var(--muted); }
.comparison-table tr.featured td { background: var(--btc-orange-dim); }

/* ---------- 9. Aufklapper ---------- */
.accordion-item { background: none; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; box-shadow: none; }
.accordion-header { font: 500 19px/1.3 var(--serif); color: var(--ink); min-height: 52px; }
.accordion-header:hover { color: var(--accent-ink); }
.accordion-icon { border: 1px solid var(--faint); border-radius: 50%; }
.timeline-detail-toggle, .timeline-expand-toggle { border-radius: 99px; font-family: var(--sans); }

/* ---------- 10. Schluss: «Weiter» + Gelesen-Markierung ---------- */
.module-end { max-width: 720px; padding: 8px 0 24px; display: grid; gap: 16px; }
.mark-read { justify-self: start; }
.mark-read[aria-pressed=true] { border-color: var(--accent); color: var(--accent-ink); }
.next-card { display: grid; gap: 14px; background: var(--deep-bg); color: var(--deep-head); border-radius: 10px; padding: 22px 20px; text-decoration: none; }
.next-card:hover { color: var(--deep-head); }
.next-card .k { font-size: 13px; color: var(--deep-muted); }
.next-card .t { font: 400 clamp(24px, 2.6vw, 30px)/1.2 var(--serif); }
@media (min-width: 768px) { .next-card { grid-template-columns: 1fr auto; align-items: center; padding: 28px 32px; } }

/* ---------- 11. Fusszeile ---------- */
.site-footer { background: #1C1B19; color: #C9C3B8; border-top: 0; margin-top: 56px; padding: 40px 0 28px; font-size: 14px; line-height: 1.7; }
.site-footer .nav-logo, .site-footer .nav-logo .logo-text { color: #F5F2EC; }
.footer-disclaimer { background: none; border: 0; border-bottom: 1px solid #3A3732; border-radius: 0; color: #C9C3B8; }
.footer-heading { font: 600 14px var(--sans); text-transform: none; letter-spacing: 0; color: #F5F2EC; }
.footer-link, .footer-legal a, .footer-desc, .footer-partners, .footer-partner-link, .footer-bottom { color: #C9C3B8; }
.footer-link:hover, .footer-legal a:hover, .footer-partner-link:hover { color: #F5F2EC; }
.footer-bottom { border-top-color: #3A3732; }

/* ---------- 12. Bewegung, Druck ---------- */
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
@media print { .toc, .readbar, .site-nav, .mark-read, .next-card { display: none; } }

/* ---------- 13. Lernpfad als Zeilenliste (Startseite) ---------- */
.topic-grid { display: block; gap: 0; border-top: 1px solid var(--ink); }
.topic-card, .topic-card.card { display: grid; grid-template-columns: 44px 1fr auto; gap: 2px 12px; align-items: baseline; padding: 16px 0; background: none; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; color: var(--body); }
.topic-card .card-num { grid-row: 1; font: 500 13px var(--mono); letter-spacing: 0; text-transform: none; color: var(--muted); margin: 0; }
.topic-card h3 { grid-column: 2; font: 500 20px/1.3 var(--serif); margin: 0; }
.topic-card p { grid-column: 2; margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.topic-card .card-arrow { grid-column: 3; grid-row: 1; margin: 0; padding: 0; font-size: 13px; color: var(--accent-ink); }
.topic-card .card-arrow span { display: none; }
.topic-card:hover h3 { color: var(--accent-ink); }
@media (min-width: 768px) { .topic-card, .topic-card.card { grid-template-columns: 64px 1fr 110px; padding: 20px 0; } .topic-card h3 { font-size: 24px; } .topic-card p { max-width: 36em; } }
.expert-topic-grid { background: var(--line); border-color: var(--line); border-radius: var(--radius-md); }
.feature-icon, .feature-icon-centered { background: none; border: 1px solid var(--line); border-radius: 50%; color: var(--accent-ink); }

/* ---------- 14. Startseite: Hero, Fortschritt, Kennzahlen ---------- */
.hero-index { text-align: left; padding: calc(var(--nav-h) + 28px) 0 24px; }
@media (min-width: 768px) { .hero-index { padding: calc(var(--nav-h) + 64px) 0 56px; } }
.hero-index::before, .hero-index::after { display: none; background: none; }
.a2-hero { display: grid; gap: 28px; }
.a2-hero h1 { font-size: clamp(2.6rem, 7vw, 4.75rem); line-height: 1.02; letter-spacing: -0.025em; max-width: 12em; }
.a2-hero .lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--body); max-width: 34em; margin: 18px 0 24px; }
.a2-hero .label { margin: 0 0 12px; }
.a2-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .a2-hero:not(.a2-hero--expert) { grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: end; } }
.progress-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
@media (min-width: 768px) { .progress-card { padding: 28px; } }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.progress-card .meta { font-size: 14px; color: var(--muted); margin: 0; }
.progress-card .segs { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; margin: 12px 0 18px; }
.progress-card .segs span { height: 7px; border-radius: 2px; background: var(--track); }
.progress-card .segs .done { background: var(--accent); }
.progress-card .segs .next { background: var(--ink); }
.progress-card .title { font: 500 clamp(22px, 2.4vw, 28px)/1.2 var(--serif); color: var(--ink); margin: 4px 0; }
.progress-card [data-next-link] { font-weight: 600; display: inline-block; margin-top: 8px; }
.progress-card [data-next-meta] { margin-bottom: 12px; }

/* Experten-Kennzahlen: Haarlinien-Raster statt Wabe */
.kpi-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; margin-top: 8px; }
@media (min-width: 640px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kpi-cell { position: relative; background: var(--paper-2); padding: 16px 18px; min-height: 112px; overflow: hidden; }
.kpi-cell--price { grid-column: 1 / -1; }
.kpi-inner { position: relative; display: flex; flex-direction: column; gap: 4px; }
.kpi-cell--price .hero-sparkline { position: absolute; inset: auto 0 0 0; width: 100%; height: 64px; opacity: 0.9; }
.kpi-cell--price .kpi-inner > :not(.hero-sparkline) { position: relative; z-index: 1; }
.hero-stat-label { font: 500 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hero-stat-value { font: 500 clamp(24px, 3vw, 32px)/1.15 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi-cell--price .hero-stat-value { font-size: clamp(30px, 4vw, 44px); }
.hero-stat-sublabel { font-size: 13px; color: var(--muted); }
.kpi-row { display: flex; align-items: baseline; gap: 8px; }
.kpi-unit { font-size: 14px; color: var(--muted); }
.hero-epoch-track { height: 5px; background: var(--track); border-radius: 2px; margin-top: 6px; }
.hero-epoch-fill { background: var(--accent); border-radius: 2px; }
.hero-gauge-wrap { max-width: 140px; margin: 2px 0 0; }
.hero-fee-label, .hero-fee-val { font: 500 12px var(--mono); color: var(--muted); }
.hero-fee-bar-track { background: var(--track); height: 5px; border-radius: 2px; }
.hero-fee-bar, .hero-fee-bar.hero-fee-fast, .hero-fee-bar.hero-fee-mid, .hero-fee-bar.hero-fee-slow { background: var(--accent); border-radius: 2px; }
.hero-fee-bar.hero-fee-slow { background: var(--faint); }
.hero-fee-bar.hero-fee-mid { background: var(--accent-ink); }
.theme-dark .hero-price-up, .theme-dark .stat-val-pos { color: var(--accent-ink); }
.theme-dark .hero-price-down, .theme-dark .stat-val-neg { color: var(--warn); }

/* Kennzahlen-Zeile: typografisch ohne Icon-Kreise */
.fact-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .fact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; } }
.fact { border-top: 1px solid var(--ink); padding-top: 12px; text-align: left; }
.fact h3 { font: 500 22px/1.25 var(--serif); margin: 0 0 4px; }
.fact p { font-size: 15px; color: var(--muted); margin: 0; }

/* Aufklapp-Listen (details.acc) */
details.acc { border-bottom: 1px solid var(--line-2); }
details.acc > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 52px; padding: 12px 0; cursor: pointer; font: 500 19px/1.3 var(--serif); color: var(--ink); }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: "+"; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--faint); display: grid; place-items: center; font: 400 17px var(--sans); transition: transform 0.2s; }
details.acc[open] > summary::after { transform: rotate(45deg); }
details.acc > .acc-body { padding: 0 0 18px; font-size: 16px; }
.acc-group { border-top: 1px solid var(--ink); }
.a2-questions { padding-top: 0; }

/* Labels (Mono, Kapitälchen-Stil) */
.label { font: 500 11px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: block; }
.label--accent { color: var(--accent-ink); }
.kpi-inner { align-items: flex-start; text-align: left; }
.kpi-cell { text-align: left; }
.kpi-cell--price .kpi-inner { min-height: 84px; }

/* ---------- 15. Flächen entfernen: Karten, Raster, Icons ---------- */
.card, .card.reveal, .mode-beginner .card { background: none; border: 0; border-top: 1px solid var(--ink); border-radius: 0; padding: 16px 0 0; box-shadow: none; }
.card-header { border-bottom: 0; padding-bottom: 0; margin-bottom: 12px; gap: 0; }
.card-header .feature-icon { display: none; }
.card-header h2, .card-header h3 { font-size: clamp(26px, 3vw, 34px); }
.card-header-sm { gap: 12px; }
.feature-grid, .card-grid, .asym-grid, .provider-grid, .wallet-grid, .comparison-grid, .case-card-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.feature-grid > *, .card-grid > *, .asym-grid > *, .provider-grid > *, .wallet-grid > *, .comparison-grid > *, .case-card-grid > * { background: var(--paper-2); border: 0; border-radius: 0; padding: 16px 18px; margin: 0; box-shadow: none; }
@media (min-width: 768px) {
  .feature-grid, .card-grid, .provider-grid, .wallet-grid, .case-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comparison-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
.feature-icon { background: none; border: 1px solid var(--line); box-shadow: none; }
.comparison-col.winner { background: var(--paper); box-shadow: inset 0 3px 0 var(--accent); }
.acc-group.max-w-narrow { margin-left: 0; }

/* ---------- 16. Weitere Flächen neutralisieren ---------- */
.page-disclaimer { background: none; border-top: 2px solid var(--warn); border-radius: 0; padding: 12px 0 0; font-size: 15px; }
.page-disclaimer svg { color: var(--warn); }
.page-disclaimer strong { color: var(--warn); }
.comparison-badge, .comparison-badge-neutral, .comparison-badge-orange, .comparison-badge-btc, .comparison-badge-gold { background: none; border: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-weight: 500; }
.comparison-badge-orange, .comparison-badge-btc, .comparison-badge-gold { border-color: var(--accent); color: var(--accent-ink); }
.trust-badge { background: none; border: 1px solid var(--line); color: var(--muted); font-weight: 400; }
.figure-annotated { background: none; border: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.stat-tile { background: none; border: 0; border-top: 1px solid var(--ink); border-radius: 0; text-align: left; padding: 16px 0; }
.stat-tile-value { font-family: var(--serif); font-weight: 500; color: var(--accent-ink); }
main .dca-result-box, main .stat-grid .stat-cell { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; text-align: left; padding: 12px 0 0; }
main .dca-result-box.highlight, main .stat-grid .stat-cell.stat-good { background: none; border-top: 1px solid var(--accent); }
main .stat-grid .stat-cell.stat-good .stat-value, main .dca-result-box.highlight .value { color: var(--accent-ink); }
.supply-track { background: var(--track); border: 0; }
.supply-fill { background: var(--accent); color: var(--ink); }
.case-card-badge { background: none; border: 1px solid var(--deep-line); color: var(--deep-muted); }
.seed-warning, .block-info-panel { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.timeline::before { background: var(--line); width: 1.5px; }
.quiz-option, .quiz-header-pill { border-radius: var(--radius-sm); box-shadow: none; }
.quiz-option.correct { background: var(--btc-orange-dim); border-color: var(--accent); color: var(--ink); }
.quiz-option.wrong { background: none; border-color: var(--warn); color: var(--ink); }
.quiz-option.correct .quiz-letter { background: var(--accent); border-color: var(--accent); color: #1C1B19; }
.quiz-option.wrong .quiz-letter { background: var(--warn); border-color: var(--warn); color: var(--paper); }

/* ---------- 17. Feinschliff ---------- */
.info-box, .info-box.text-center { text-align: left; }
.hash-demo-output, .hash-demo-output code { color: var(--deep-text); }
.hash-demo-output .hash-changed, .hash-demo-output strong { color: var(--accent); }
.figure-scene, .illu-panel { background: none; border: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; }
.figure-scene { gap: 0; }
.scene-panel { background: none; border: 0; }
@media (min-width: 768px) { .scene-panel + .scene-panel { border-left: 1px solid var(--line-2); } }

/* ---------- 18. Dunkle Flächen: Token-Scope ----------
   Auf dunklem Grund gelten die hellen Tokens, unabhängig vom Modus. Alle Kinder
   (Buttons, Karten, Pills, Links, SVG) erben damit lesbare Farben. Literalwerte, kein var() von aussen. */
.info-box, .next-card, .code-block, .hash-demo-output, .site-footer {
  --ink: #F5F2EC; --ink-2: #E4DED3; --body: #D8D2C6; --muted: #A39D92; --faint: #8A847A;
  --line: #3A3732; --line-2: #2E2B27; --track: #3A3732; --paper: #1C1B19; --paper-2: #24231F;
  --accent-ink: #F7931A; --warn: #D68C80;
  --text-primary: #F5F2EC; --text-body: #D8D2C6; --text-muted: #A39D92; --border-light: #3A3732;
  --bg-card: #24231F; --bg-subtle: #3A3732; --btc-orange-dim: rgba(247, 147, 26, 0.16);
}
.info-box { color: var(--body); }
.info-box a:not(.btn) { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.info-box a:not(.btn):hover { color: var(--ink); }
.info-box .btn + .btn { margin-left: 0; }

/* Karten-Links: beim Hover bleibt der Text lesbar, nur die Überschrift färbt sich */
.topic-card:hover, .card-link:hover, .expert-topic-item:hover, .module-nav a.card:hover { color: var(--body); }
.topic-card:hover h3, .card-link:hover h3 { color: var(--accent-ink); }

/* ---------- 19. Raster-Zellen und Marker (Kontrast) ---------- */
/* .card setzt Hintergrund none und gewinnt gegen die Raster-Regel: Zellen explizit füllen,
   sonst scheint die Haarlinien-Farbe durch und Text verliert Kontrast */
:is(.feature-grid, .card-grid, .asym-grid, .provider-grid, .wallet-grid, .comparison-grid, .case-card-grid) > :is(*, .card, .card.reveal):not(.winner) { background: var(--paper-2); border: 0; border-radius: 0; padding: 16px 18px; }
.comparison-col.winner { background: var(--paper-2); box-shadow: inset 0 3px 0 var(--accent); }
.scene-title, .scene-bad .scene-title { color: var(--ink); }
.scene-good .scene-title, .scene-orange .scene-title { color: var(--accent-ink); }
.step-num, .step-number, .fig-marker { color: #1C1B19; }
.code-block .comment { color: var(--deep-muted); }
