/* tools/shell.css — gemeinsames Geruest der Test-Tools-Seiten.
   PR 3 (2026-11-16): Redesign nach research/tools-redesign-mockup-konten-banken.html
   (bapla-Brand v0.3): Cream-Papier, Tinte, Signalrot nur typografisch (nie als Flaeche),
   Hairlines statt Karten, keine Radien/Schatten. Source Serif 4 = Stimme (Titel),
   Inter = Prosa, JetBrains Mono = Struktur (Labels, IBANs, Tabellen).

   Die Klassennamen, die die Seiten-Skripte zur Laufzeit erzeugen, bleiben gueltig und
   werden hier neu gestaltet: .row, .out, .out-row.ok|muted|warn|err, .k/.v, .copybtn,
   .primary, .demo-btn, .tab(.active), .note, .bm-table, .bm-flag, .bm-primary(-tag),
   .bm-status, .topnav-inner. Legacy-Tokens (--muted, --hair, --accent, --warn-fill …)
   sind als Aliase auf die neue Palette definiert, damit Seiten-CSS und Inline-Styles
   in den Skripten weiter funktionieren. */

/* ── Palette (hell = Standard; dunkel ueber Systempraeferenz oder data-theme) ── */
:root {
  color-scheme: light;
  --bg:        #f5f1e8;   /* cream paper */
  --bg-cool:   #fbfbfc;   /* off-white fuer technische Flaechen: Inputs, Ergebnisse, Tabellen */
  --surface:   #ede7d6;
  --rule:      #c8c0a8;
  --rule-soft: #ddd6c2;
  --ink:       #1a2a3e;
  --ink-2:     #3a4658;
  --ink-3:     #6a7280;
  --signal:    #a31818;   /* nur Schrift/Linie — nie Fuellung */
  --ok:        #2d6a4f;
  --warn:      #8a5a00;
  --btn-bg:    #1a2a3e;
  --btn-fg:    #f5f1e8;

  /* Legacy-Aliase */
  --muted: var(--ink-3); --hair: var(--rule-soft);
  --bg-card: var(--bg-cool); --bg-tertiary: var(--surface);
  --accent: var(--ok); --accent-fill: #e3ede6; --accent-fill-hover: #d4e3d9;
  --warn-fill: #f3ead3; --warn-ink: var(--warn);
  --err-fill: #f1dcd8; --err-ink: var(--signal);

  --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --maxw: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121c2b; --bg-cool: #16202e; --surface: #1a2a3e;
    --rule: #3a4a62; --rule-soft: #28384d;
    --ink: #ece6d8; --ink-2: #c9c2b0; --ink-3: #8e95a3;
    --signal: #e06464; --ok: #7cc49a; --warn: #e3b95e;
    --btn-bg: #ece6d8; --btn-fg: #121c2b;
    --accent-fill: #1b3328; --accent-fill-hover: #214030;
    --warn-fill: #33290f; --err-fill: #3a1f1d;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121c2b; --bg-cool: #16202e; --surface: #1a2a3e;
  --rule: #3a4a62; --rule-soft: #28384d;
  --ink: #ece6d8; --ink-2: #c9c2b0; --ink-3: #8e95a3;
  --signal: #e06464; --ok: #7cc49a; --warn: #e3b95e;
  --btn-bg: #ece6d8; --btn-fg: #121c2b;
  --accent-fill: #1b3328; --accent-fill-hover: #214030;
  --warn-fill: #33290f; --err-fill: #3a1f1d;
}

/* ── Basis ── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
/* Papierkorn — nur hell */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(26,42,62,0.04) 1px, transparent 0);
  background-size: 3px 3px;
}
:root[data-theme="dark"] body::before { background-image: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::before { background-image: none; } }

a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--signal); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border-radius: 0; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
code { font-family: var(--mono); font-size: 0.92em; }
h1, h2 { text-wrap: balance; }

.wrap {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 72px;
  counter-reset: panel;
}

/* ── Kopfzeile: Marke · Bereiche · Theme ── */
.topbar {
  display: flex; align-items: baseline; gap: 28px; flex-wrap: wrap;
  padding-block: 22px 14px; border-bottom: 1px solid var(--rule);
}
.mark { font-family: var(--serif); font-weight: 500; font-size: 28px; letter-spacing: -0.01em; line-height: 1; text-decoration: none; white-space: nowrap; }
.mark small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-left: 10px; }
.mark.active small, .mark:hover small { color: var(--signal); }
nav.topnav, nav.sitenav { margin-left: auto; min-width: 0; }
nav.sitenav:empty { display: none; }
/* Site-Nav vorhanden (bankproducts): Bereichs-Nav der Tools rutscht in eine zweite Zeile
   unter einer weichen Linie. Ohne Site-Nav (rbcli) bleibt die Bereichs-Nav neben der Marke. */
.topbar:has(nav.sitenav:not(:empty)) nav.topnav {
  order: 10; flex: 1 1 100%; margin-left: 0;
  border-top: 1px solid var(--rule-soft); padding-top: 12px; margin-top: 2px;
}
.topbar:has(nav.sitenav:not(:empty)) nav.topnav a { padding-bottom: 4px; }
.topbar:has(nav.sitenav:not(:empty)) nav.topnav .topnav-inner::before {
  content: "Test Tools"; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--signal); margin-right: 6px;
}
.topnav-inner { display: flex; gap: 22px; flex-wrap: wrap; align-items: baseline; }
.sitenav a, .topnav a {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3); text-decoration: none; padding-bottom: 6px; border-bottom: 2px solid transparent; white-space: nowrap;
}
.sitenav a:hover, .topnav a:hover { color: var(--ink); }
.sitenav a.active, .topnav a.active { color: var(--ink); border-bottom-color: var(--signal); }
.theme-btn {
  background: none; border: 1px solid var(--rule); padding: 4px 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2);
  white-space: nowrap;
}
.theme-btn:hover { color: var(--ink); border-color: var(--ink); }

/* ── Seitenkopf ── */
.pagehead { padding-block: 40px 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.pagehead h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4.2vw, 44px); letter-spacing: -0.01em; line-height: 1.05; margin: 0 0 10px; }
.pagehead .lede { margin: 0; color: var(--ink-2); max-width: 62ch; font-family: var(--serif); font-size: 18px; line-height: 1.45; }
.caption { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.caption .sig { color: var(--signal); }
.caption a { color: inherit; }
.testdata { display: grid; justify-items: end; gap: 4px; text-align: right; line-height: 1.6; }

/* Text-Buttons (zuruecksetzen) */
.reset-btn, .section-reset {
  background: none; border: 0; padding: 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
  white-space: nowrap;
}
.reset-btn:hover, .section-reset:hover { color: var(--signal); }

/* ── Ledger-Panel (ersetzt .card) ── */
section.panel { padding-block: 36px; border-top: 1px solid var(--rule-soft); counter-increment: panel; }
.panel-head { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; margin-bottom: 18px; }
.panel-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--signal); }
.panel-num:empty::before { content: "§ " counter(panel, decimal-leading-zero); }
.panel-head h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; margin: 0; line-height: 1.2; }
.panel-head h2 small { display: block; font-family: var(--sans); font-size: 14px; color: var(--ink-3); font-weight: 400; margin-top: 6px; line-height: 1.5; max-width: 72ch; text-wrap: pretty; }
.panel-head h2 small a { color: var(--ink-2); }
.panel-body { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
.panel-body > * { grid-column: 2; min-width: 0; }
.desc, .bm-desc { margin: 0 0 16px; color: var(--ink-2); font-size: 14px; line-height: 1.6; max-width: 72ch; text-wrap: pretty; }
.desc + .desc, .bm-desc + .bm-desc { margin-top: -4px; }
.desc strong, .bm-desc strong { color: var(--ink); font-weight: 600; }
.not-possible-tag {
  font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--signal); margin-left: 10px; vertical-align: middle; border: 0; padding: 0;
}

/* ── Formular ── */
label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px; }
input, select, textarea {
  width: 100%; background: var(--bg-cool); border: 1px solid var(--rule); border-radius: 0;
  padding: 9px 11px; font-family: var(--mono); font-size: 13.5px; color: var(--ink);
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, select:focus, textarea:focus { outline: 1px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
textarea { min-height: 300px; resize: vertical; line-height: 1.45; font-size: 12.5px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.row > * { flex: 1 1 220px; min-width: 0; }
.row > button { flex: 0 0 auto; }
.row + .row { margin-top: 14px; }

.primary, .demo-btn {
  border: 1px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg);
  padding: 9px 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  line-height: 1.3; white-space: nowrap;
}
.demo-btn { background: none; color: var(--ink-2); border-color: var(--rule); }
.primary:hover { opacity: 0.88; }
.demo-btn:hover { color: var(--ink); border-color: var(--ink); }
.primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* Modi (Tabs) — Unterstrich statt Pille */
.tabs { display: flex; gap: 0; flex-wrap: wrap; border-bottom: 1px solid var(--rule); margin: 0 0 16px; }
.tab {
  background: none; border: 0; padding: 8px 14px 9px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab.active { color: var(--ink); border-bottom-color: var(--ink); }
.tab:hover:not(.active) { color: var(--ink); }

/* ── Ergebnis-Ledger ── */
.out { margin-top: 18px; background: var(--bg-cool); border: 1px solid var(--rule); overflow-x: auto; }
.out:empty { display: none; }
.out-row {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 9px 12px; border-bottom: 1px solid var(--rule-soft);
  font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums;
}
.out-row:last-child { border-bottom: 0; }
.out-row .k { color: var(--ink-3); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.out-row .v { min-width: 0; overflow-wrap: anywhere; }
.out-row .v strong { font-family: var(--sans); font-weight: 600; }
.out-row em { font-style: normal; color: var(--ink-3); font-size: 11px; }
/* Tonart — typografisch, nur am Label; .ok ist die normale Ergebniszeile */
.out-row.ok .k { color: var(--ok); }
.out-row.muted .v { color: var(--ink-2); }
.out-row.warn .k { color: var(--warn); }
.out-row.warn .v { color: var(--ink-2); }
.out-row.err .k, .out-row.err .v { color: var(--signal); }
.out-row.err .v { font-weight: 600; }
.ok { color: var(--ok); } .bad { color: var(--signal); }
.copybtn {
  background: none; border: 1px solid var(--rule-soft); padding: 2px 8px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
.copybtn:hover { color: var(--ink); border-color: var(--rule); }

/* Hinweis — Linie statt Flaeche */
.note { margin: 16px 0 0; padding: 2px 0 2px 14px; border-left: 2px solid var(--rule); color: var(--ink-2); font-size: 13px; line-height: 1.55; max-width: 72ch; }
.note strong { color: var(--ink); font-weight: 600; }

/* ── Tabellen (Bankenstamm, Sanktionen) — liegen in .out ── */
.bm-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.bm-table th {
  text-align: left; padding: 8px 12px; font-weight: 500; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3); background: var(--surface); border-bottom: 1px solid var(--rule-soft); white-space: nowrap;
}
.bm-table td { padding: 8px 12px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.bm-table tr:last-child td { border-bottom: 0; }
.bm-table tr:hover td { background: var(--surface); }
.bm-table .name { font-family: var(--sans); font-size: 13.5px; font-weight: 500; min-width: 200px; }
.bm-table tr.bm-primary td { background: var(--surface); }
.bm-table tr.bm-primary td.name { font-weight: 600; }
.bm-primary-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--signal); margin-left: 8px; font-weight: 500; }
.bm-flag { display: inline-block; padding: 1px 6px; border: 1px solid var(--rule); font-size: 10px; letter-spacing: 0.04em; color: var(--ink-2); margin-right: 4px; background: none; }
.bm-status { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.out .bm-status { padding: 8px 12px; border-bottom: 1px solid var(--rule-soft); }
.out .bm-table + .bm-status, .out .bm-status:last-child { border-bottom: 0; border-top: 1px solid var(--rule-soft); }
.out .bm-table { margin-top: 0 !important; }

/* ── Fusszeile ── */
footer.meta { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }

/* ── Hub (bp-tools.html) ── */
.hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule-soft); }
.hub a.tile { display: block; text-decoration: none; color: inherit; padding: 32px 0; border-bottom: 1px solid var(--rule-soft); counter-increment: panel; }
.hub .panel-num { display: block; margin-bottom: 12px; }
.hub h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; letter-spacing: -0.01em; margin: 0 0 10px; line-height: 1.15; }
.hub a.tile:hover h2 { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hub p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; max-width: 52ch; }
.hub .tools { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); margin-top: 16px; line-height: 1.7; }
@media (min-width: 721px) {
  .hub a.tile:nth-child(odd)  { padding-right: 36px; border-right: 1px solid var(--rule-soft); }
  .hub a.tile:nth-child(even) { padding-left: 36px; }
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .topbar { gap: 12px 14px; padding-block: 18px 0; align-items: center; }
  .mark { font-size: 23px; }
  .mark small { margin-left: 8px; font-size: 10px; }
  .theme-btn { margin-left: auto; padding: 6px 8px; font-size: 10px; }
  nav.sitenav, nav.topnav { order: 3; flex: 1 1 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  nav.sitenav::-webkit-scrollbar, nav.topnav::-webkit-scrollbar { display: none; }
  .topnav-inner { flex-wrap: nowrap; gap: 18px; padding-top: 10px; }
  .sitenav a, .topnav a { padding-bottom: 12px; }
  .sitenav a.active, .topnav a.active { border-bottom-width: 2px; margin-bottom: -1px; }
  .topbar:has(nav.sitenav:not(:empty)) nav.topnav { order: 4; border-top: 1px solid var(--rule-soft); margin-top: 0; padding-top: 0; }
  .topbar:has(nav.sitenav:not(:empty)) nav.topnav a { padding-bottom: 12px; }
  .pagehead { grid-template-columns: minmax(0, 1fr); padding-block: 28px 20px; gap: 16px; }
  .testdata { justify-items: start; text-align: left; }
  section.panel { padding-block: 26px; }
  .panel-head { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
  .panel-num { grid-column: 1 / -1; }
  .panel-body { grid-template-columns: minmax(0, 1fr); }
  .panel-body > * { grid-column: 1; }
  .hub { grid-template-columns: minmax(0, 1fr); }
  .hub a.tile { padding: 24px 0; }
  input, select, textarea { font-size: 16px; }          /* kein iOS-Auto-Zoom */
  .row > * { flex: 1 1 100%; }
  .row > button { flex: 1 1 140px; }
}
@media (max-width: 560px) {
  .out-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .out-row .k { grid-column: 1 / -1; }
}
@media (pointer: coarse) {
  .primary, .demo-btn, .theme-btn, .tab { min-height: 44px; }
  .copybtn, .section-reset, .reset-btn { min-height: 36px; min-width: 44px; }
  .topnav a { padding-top: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  .primary, .demo-btn, .tab, .copybtn, .topnav a, .theme-btn { transition: opacity .12s, color .12s, border-color .12s; }
}

/* ══ Site-weite Bausteine (Welle 2, 2026-11-16) — Datenseiten, Doku-Seiten ══ */

/* Stat-Kacheln: Mono-Label, Serif-Zahl, Detailzeile; Hairlines statt Karten */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border-top: 1px solid var(--rule-soft); border-left: 1px solid var(--rule-soft); }
.stat { padding: 16px 18px 14px; border-right: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); min-width: 0; }
.stat .label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.stat .value { font-family: var(--serif); font-weight: 500; font-size: 30px; letter-spacing: -0.01em; line-height: 1.1; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.stat .detail { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; overflow-wrap: anywhere; }

/* Chips: Filter (auch Mehrfachauswahl) — aktiv = invertiert */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.chip {
  background: none; border: 1px solid var(--rule); padding: 5px 11px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.chip .count { margin-left: 6px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chip.active .count { color: var(--btn-fg); opacity: 0.7; }

/* Badges: typografische Status-Labels, keine Fuellungen */
.badge { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.badge-green { color: var(--ok); }
.badge-yellow { color: var(--warn); }
.badge-red { color: var(--signal); }
.badge-blue, .badge-purple { color: var(--ink-2); }
.badge-muted { color: var(--ink-3); }

/* Tabellen-Wrapper (Ledger) fuer beliebige <table> */
.tablewrap { border: 1px solid var(--rule); background: var(--bg-cool); overflow-x: auto; max-width: 100%; }
.tablewrap table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; margin: 0; }
.tablewrap th { text-align: left; padding: 8px 12px; font-weight: 500; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); background: var(--surface); border-bottom: 1px solid var(--rule-soft); white-space: nowrap; vertical-align: bottom; }
.tablewrap td { padding: 8px 12px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.tablewrap tr:last-child td { border-bottom: 0; }
.tablewrap tbody tr:hover td { background: var(--surface); }
.tablewrap th.num, .tablewrap td.num { text-align: right; white-space: nowrap; }
.tablewrap td strong { font-family: var(--sans); font-size: 13.5px; font-weight: 600; }
.tablewrap .muted { color: var(--ink-3); }
.tablewrap .mono { font-family: var(--mono); }

/* Prosa-Block fuer Doku-Seiten */
.prose { max-width: 76ch; font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.4em; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--ink-3); }
.prose h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.3; margin: 1.6em 0 0.5em; }
.prose h4 { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin: 1.4em 0 0.5em; }
.prose code { font-family: var(--mono); font-size: 0.86em; background: var(--surface); padding: 0.08em 0.35em; }
.prose pre { background: var(--bg-cool); border: 1px solid var(--rule); padding: 14px 16px; margin: 1em 0 1.4em; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; }
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose .muted { color: var(--ink-3); }
.prose .tablewrap { margin: 1em 0 1.4em; }
.prose hr { border: 0; border-top: 1px solid var(--rule-soft); margin: 2em 0; }
.prose strong { font-weight: 600; }

/* Fortschrittsbalken — Tinte auf Oberflaeche, keine Radien */
.bar-bg { background: var(--surface); height: 6px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--ink); }
.bar-green { background: var(--ok); } .bar-yellow { background: var(--warn); } .bar-blue { background: var(--ink-2); }

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat .value { font-size: 24px; }
}
