/* Aktien- & Krypto-Analyse – Oberfläche. Mobile first, ohne externe Schriften/Ressourcen. */

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --text: #15181c;
  --text-2: #4a525c;
  --border: #d7dbe1;
  --accent: #1f5fae;
  --accent-weak: #e7eef8;
  --on-accent: #ffffff;
  --ok: #1d6f37;
  --ok-weak: #e4f2e8;
  --warn: #7a4f00;
  --warn-weak: #fff3d1;
  --warn-strong: #f2b01e;
  --risk: #b3261e;
  --risk-weak: #fbe8e6;
  --info: #2b4f7a;
  --info-weak: #eaf0f7;
  --focus: #1f5fae;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  --radius: 10px;
  --gutter: 16px;
  --tabbar-h: 60px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --surface: #161b22;
    --surface-2: #1e252e;
    --text: #e6e9ed;
    --text-2: #a9b2bd;
    --border: #2d3540;
    --accent: #7eb0ff;
    --accent-weak: #19283d;
    --on-accent: #0e1116;
    --ok: #6fd08f;
    --ok-weak: #13281b;
    --warn: #f3c552;
    --warn-weak: #2c2310;
    --warn-strong: #d99a12;
    --risk: #ff8a80;
    --risk-weak: #3a1614;
    --info: #9cc0ee;
    --info-weak: #17222f;
    --focus: #7eb0ff;
    --shadow: none;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  overflow-wrap: break-word;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 8px);
}

h1, h2, h3, h4, h5 {
  hyphens: auto;
  line-height: 1.25;
  margin: 0 0 0.5em;
}
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; margin-top: 1em; }
h4 { font-size: 0.95rem; margin-top: 1em; }
h5 { font-size: 0.9rem; margin-top: 0.75em; }
p { margin: 0 0 0.75em; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
code, pre { font-family: var(--mono); font-size: 0.875em; }
code { overflow-wrap: anywhere; }
s { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
h1:focus, main:focus { outline: none; }
h1:focus-visible { outline: 3px solid var(--focus); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 8px; top: -60px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 100;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 8px; }

.muted { color: var(--text-2); }
.small { font-size: 0.85rem; }
.big { font-size: 1.15rem; }
.risk-text { color: var(--risk); font-weight: 600; }
.warn-text { color: var(--warn); }
.ok-text { color: var(--ok); }
.hint { display: block; font-size: 0.85rem; color: var(--text-2); margin-top: 4px; }
.hint.warn-text { color: var(--warn); }
.hint.ok-text { color: var(--ok); }

/* ------------------------------------------------------------------ Kopf */

.mode-banner {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 6px var(--gutter);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
}
.mode-banner.mode-demo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 10px var(--gutter);
  color: #1a1300;
  background: repeating-linear-gradient(-45deg, #f2b01e 0 14px, #ffd766 14px 28px);
  border-bottom: 2px solid #8a5a00;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}
.mode-banner.mode-paper {
  background: var(--accent-weak);
  color: var(--text);
  border-bottom-color: var(--accent);
}
.mode-banner.mode-read_only {
  background: var(--info-weak);
  color: var(--text);
}
.mode-banner.mode-unknown { color: var(--text-2); font-weight: 600; }

.app-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 10px var(--gutter);
  max-width: 1400px;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}
.brand-text { display: inline-flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.01em; }
.brand-sub { font-size: 0.75rem; font-weight: 500; color: var(--text-2); }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-mark rect { fill: var(--accent); }
.brand-mark path { fill: none; stroke: var(--on-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  font-size: 0.875rem;
}
.status-item { white-space: nowrap; }
.header-notices { max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }
.header-notices:empty { display: none; }
.notice { margin: 0 0 8px; padding: 6px 10px; border-radius: 6px; font-size: 0.875rem; }
.notice-subtle { background: var(--surface-2); color: var(--text-2); }
.notice-risk { background: var(--risk-weak); color: var(--risk); font-weight: 600; }

/* ------------------------------------------------------------------ Layout & Navigation */

.layout {
  max-width: 1400px;
  margin: 0 auto;
}
.main {
  padding: 16px var(--gutter) 24px;
  min-width: 0;
}
.sidenav { display: none; }

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon circle[r="1.6"] { fill: currentColor; }

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabbar > ul {
  display: grid;
  /* Spaltenzahl folgt den Einträgen. Vorher standen hier fest fünf – der sechste Eintrag rutschte in eine
     zweite Zeile, die durch die feste Höhe abgeschnitten wurde, und legte sich über den Nachbarn. */
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
  height: var(--tabbar-h);
}
.tabbar a,
.tabbar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 100%;
  width: 100%;
  font: inherit;
  font-size: 0.7rem;
  color: var(--text-2);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px 2px;
}
.tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 400px) { .tabbar a, .tabbar button { font-size: 0.64rem; padding: 4px 1px; } }
.tabbar a[aria-current="page"],
.tabbar button.active,
.tabbar button[aria-expanded="true"] {
  color: var(--accent);
  font-weight: 700;
}
.more-sheet {
  position: absolute;
  bottom: calc(100% + 1px);
  right: 8px;
  left: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  padding: 6px;
}
.more-sheet ul { list-style: none; margin: 0; padding: 0; }
.more-sheet a {
  flex-direction: row;
  justify-content: flex-start;
  gap: 12px;
  font-size: 1rem;
  padding: 12px;
  border-radius: 8px;
  color: var(--text);
}
.more-sheet a[aria-current="page"] { background: var(--accent-weak); color: var(--accent); }

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 8px;
  }
  .sidenav {
    display: block;
    position: sticky;
    top: 40px;
    align-self: start;
    padding: 16px 0 16px var(--gutter);
  }
  .sidenav ul { list-style: none; margin: 0; padding: 0; }
  .sidenav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
  }
  .sidenav a:hover { background: var(--surface-2); }
  .sidenav a[aria-current="page"] {
    background: var(--accent-weak);
    color: var(--accent);
    font-weight: 700;
  }
  .main { padding: 20px 24px 40px 8px; }
}

/* ------------------------------------------------------------------ Seitenkopf */

.page-head { margin-bottom: 12px; }
.back { display: inline-block; margin-bottom: 6px; font-size: 0.9rem; }
.page-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.page-title-row h1 { margin: 0; }
.page-actions { display: flex; align-items: center; gap: 10px; }
.page-notice:empty { display: none; }
.toolbar-links { font-size: 0.9rem; }

/* ------------------------------------------------------------------ Karten, Listen */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card > h2:first-child { margin-top: 0; }
.card-risk { border-color: var(--risk); box-shadow: 0 0 0 1px var(--risk) inset; }
.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s;
}
.card-link:hover { border-color: var(--accent); }
.card-link:hover .auf-mehr { text-decoration: underline; }

.settings-group > h2 { margin: 24px 0 10px; }

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.kpi {
  background: var(--surface-2);
  border-radius: 8px;
  padding: 10px 12px;
  border-left: 4px solid var(--border);
  min-width: 0;
}
.kpi-warn { border-left-color: var(--warn-strong); }
.kpi-risk { border-left-color: var(--risk); }
.kpi-accent { border-left-color: var(--accent); }
.kpi-ok { border-left-color: var(--ok); }
.kpi-label { font-size: 0.8rem; color: var(--text-2); font-weight: 600; }
.kpi-value { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi-text { font-size: 1rem; font-weight: 600; }
.kpi-pct { font-size: 0.95rem; color: var(--text-2); font-weight: 600; }
.kpi-sub { font-size: 0.8rem; color: var(--text-2); margin-top: 2px; }

.meter {
  height: 8px;
  border-radius: 99px;
  background: var(--border);
  overflow: hidden;
  margin: 6px 0 4px;
}
.meter span { display: block; height: 100%; border-radius: 99px; }
.meter-ok span { background: var(--ok); }
.meter-warn span { background: var(--warn-strong); }
.meter-risk span { background: var(--risk); }

.kv { margin: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.kv-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px 16px;
  padding: 7px 0;
  border-bottom: 1px solid var(--surface-2);
}
.kv-row:last-child { border-bottom: 0; }
.kv dt { color: var(--text-2); font-size: 0.85rem; font-weight: 600; }
.kv dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
@media (min-width: 600px) {
  .kv-row { grid-template-columns: minmax(160px, 34%) minmax(0, 1fr); }
  .kv dt { font-size: 0.9rem; }
  .kv-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 24px; }
  .kv-grid .kv-row { grid-template-columns: minmax(0, 1fr) auto; }
}
.kv-compact .kv-row { padding: 3px 0; }

.list { margin: 0; padding-left: 1.2em; }
.list li { margin: 2px 0; }
.list-risk { color: var(--risk); }
.list-warn { color: var(--warn); }

.empty {
  color: var(--text-2);
  font-style: italic;
  margin: 4px 0;
}
.headline { font-size: 1.1rem; font-weight: 600; }

.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.9rem; }
pre.json {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--surface-2);
  padding: 8px;
  border-radius: 6px;
  margin: 0;
  max-height: 320px;
  overflow: auto;
}

/* ------------------------------------------------------------------ Tabellen */

.table-wrap {
  position: relative; /* hält absolut positionierte Kinder (z. B. .visually-hidden) im Scrollbereich */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 4px 0 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
th, td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--surface-2);
  white-space: nowrap;
}
thead th {
  background: var(--surface-2);
  font-weight: 700;
  color: var(--text);
  position: sticky;
  top: 0;
}
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; }
td.num, th.num { text-align: right; }
td.wrap { white-space: normal; min-width: 160px; max-width: 360px; overflow-wrap: anywhere; }
td.wide { min-width: 240px; max-width: 480px; }
td.reason { min-width: 180px; }
tr.row-link { cursor: pointer; }
tr.row-link:hover td { background: var(--accent-weak); }
tr.matrix-row td { white-space: normal; background: var(--surface-2); }
.table-caption { caption-side: top; text-align: left; font-weight: 600; padding: 8px 10px 4px; }
.cell-details summary { cursor: pointer; list-style: none; white-space: normal; }
.cell-details summary::-webkit-details-marker { display: none; }
.cell-details summary::after { content: " ▸"; color: var(--accent); }
.cell-details[open] summary { display: none; }
.cell-details div { white-space: normal; }

/* ------------------------------------------------------------------ Badges, Hinweise, Zustände */

.badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
  border: 1px solid transparent;
  vertical-align: middle;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.badge-ok { background: var(--ok-weak); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.badge-warn { background: var(--warn-weak); color: var(--warn); border-color: color-mix(in srgb, var(--warn-strong) 55%, transparent); }
.badge-risk { background: var(--risk-weak); color: var(--risk); border-color: color-mix(in srgb, var(--risk) 45%, transparent); }
.badge-info { background: var(--info-weak); color: var(--info); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.badge-accent { background: var(--accent-weak); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.badge-neutral { background: var(--surface-2); color: var(--text-2); border-color: var(--border); }

.callout {
  border-radius: 8px;
  padding: 10px 12px;
  margin: 8px 0 12px;
  border-left: 4px solid var(--border);
  background: var(--surface-2);
}
.callout-title { display: block; margin-bottom: 2px; }
.callout-info { border-left-color: var(--info); background: var(--info-weak); }
.callout-ok { border-left-color: var(--ok); background: var(--ok-weak); }
.callout-warn { border-left-color: var(--warn-strong); background: var(--warn-weak); }
.callout-risk { border-left-color: var(--risk); background: var(--risk-weak); color: var(--text); }
.callout-risk .callout-title { color: var(--risk); }
.callout-accent { border-left-color: var(--accent); background: var(--accent-weak); }
.callout .list { margin-top: 4px; }

.banner-note {
  background: var(--warn-weak);
  border: 2px solid var(--warn-strong);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 1.05rem;
}
.statement {
  hyphens: auto;
  overflow-wrap: break-word;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 8px 0 12px;
}
.statement-sm { font-size: 1.05rem; font-weight: 600; }

.state {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  color: var(--text-2);
}
.state-error {
  display: block;
  background: var(--risk-weak);
  border: 1px solid var(--risk);
  border-radius: var(--radius);
  color: var(--text);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.state-error strong { color: var(--risk); }
.state-error p { margin: 4px 0 8px; }
.state-error.compact { padding: 10px 12px; }
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 3s; }
  * { scroll-behavior: auto !important; }
}

.details { margin: 8px 0; }
.details > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
  padding: 4px 0;
}
.details-body { padding: 6px 0 0; }

/* ------------------------------------------------------------------ Buttons & Formulare */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { border-color: var(--accent); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-small { min-height: 34px; padding: 5px 12px; font-size: 0.875rem; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-danger { background: var(--risk); border-color: var(--risk); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-danger { color: #1a0605; } }
.btn-danger-outline { border-color: var(--risk); color: var(--risk); }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }

.form { display: block; }
.field { margin: 0 0 12px; min-width: 0; }
.field > label,
.checks > legend,
.group > legend {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
input[type="text"],
input[type="search"],
input[type="email"],
input[type="number"],
select {
  width: 100%;
  max-width: 480px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
input:focus-visible, select:focus-visible { border-color: var(--focus); }
input[type="checkbox"], input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  flex: none;
}
fieldset { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
  cursor: pointer;
}
.check.disabled { cursor: not-allowed; color: var(--text-2); }
.group {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px 2px;
  margin: 8px 0 12px;
}
.group > legend { padding: 0 6px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 600px) {
  .field-row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .form-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
  .form-inline .field { margin: 0; flex: 1 1 260px; }
}
.radio-row { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.radio-row > legend { font-weight: 600; font-size: 0.9rem; width: 100%; }
.setting-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.setting-head h3 { margin: 0; }
.onboarding .step {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px;
}
.onboarding .step > legend { font-weight: 700; font-size: 1rem; padding: 0 4px 0 0; float: left; width: 100%; margin-bottom: 6px; }
.onboarding .step > legend + * { clear: both; }

.form-status { margin: 8px 0 0; font-size: 0.9rem; }
.form-status:empty { display: none; }
.form-status-ok { color: var(--ok); }
.form-status-risk {
  color: var(--text);
  background: var(--risk-weak);
  border-left: 4px solid var(--risk);
  padding: 8px 10px;
  border-radius: 6px;
}
.form-status-info { color: var(--text-2); }
.form-status-warn { color: var(--warn); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 16px; }
.toolbar label { font-weight: 600; }
.toolbar select { max-width: 360px; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.filters .field-grow { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .filters { grid-template-columns: 180px 200px 1fr; }
  .filters .field-grow { grid-column: auto; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip-count { font-weight: 400; opacity: 0.8; margin-left: 2px; }

/* ------------------------------------------------------------------ Empfehlungen */

.todo-list, .short-list, .claims, .evidence-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* .rec-list/.rec-item/.rec-card sind am 26.09.2026 mit der alten Empfehlungskarte entfallen; die übrigen
   .rec-*-Regeln tragen weiterhin den Kopf der Detailansicht. */
.rec-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.rec-asset { font-weight: 800; font-size: 1.1rem; }
.rec-asset.big { font-size: 1.4rem; }
.rec-badges { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.rec-action { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0; }
.rec-action.big strong { font-size: 1.2rem; }
.todo-card { border-left: 4px solid var(--ok); }

.short-item, .event-item, .lock-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-2);
}
.short-item:last-child, .event-item:last-child, .lock-item:last-child { border-bottom: 0; }
.short-item p, .event-item p, .lock-item p { margin: 4px 0 0; overflow-wrap: anywhere; }
.short-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.event-unconfirmed { opacity: 0.92; }
.event-unconfirmed .event-title { font-style: italic; }
.event-title { font-weight: 600; }

.claim { padding: 8px 0; border-bottom: 1px solid var(--surface-2); }
.claim:last-child { border-bottom: 0; }
.claim-text { overflow-wrap: anywhere; }
.claim-rejected .claim-text s { color: var(--text-2); }
.evidence { padding: 8px 0; border-bottom: 1px solid var(--surface-2); scroll-margin-top: 60px; }
.evidence:focus { outline: 2px solid var(--focus); outline-offset: 2px; }
.evidence:last-child { border-bottom: 0; }
.excerpt { font-family: var(--mono); font-size: 0.8rem; color: var(--text-2); overflow-wrap: anywhere; }

.scenarios { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 8px; }
@media (min-width: 800px) { .scenarios { grid-template-columns: repeat(3, 1fr); } }
.scenario { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; border-top: 4px solid var(--border); }
.scenario h3 { margin: 0 0 4px; text-transform: capitalize; }
.scenario p { margin: 0; }
.scenario-bull { border-top-color: var(--ok); }
.scenario-neutral { border-top-color: var(--text-2); }
.scenario-bear { border-top-color: var(--warn-strong); }

.ids .kv dd, .ids .kv dt { font-size: 0.8rem; }

/* ------------------------------------------------------------------ Chart */

.chart { width: 100%; min-height: 240px; overflow: hidden; }
.chart-svg { display: block; max-width: 100%; height: auto; }
.chart-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-bottom: 6px; }
.lg::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 0;
  margin-right: 6px;
  vertical-align: middle;
  border-top: 2px solid var(--accent);
}
.lg-sma50::before { border-top: 2px dashed var(--text); }
.ch-grid { stroke: var(--border); stroke-width: 1; }
.ch-grid-v { stroke-dasharray: 2 4; }
.ch-axis { fill: var(--text-2); font-size: 11px; font-family: var(--font); }
.ch-up line, .ch-up rect { stroke: var(--text-2); stroke-width: 1; }
.ch-up rect { fill: var(--surface); }
.ch-down line, .ch-down rect { stroke: var(--text-2); stroke-width: 1; }
.ch-down rect { fill: var(--text-2); }
.ch-sma20 { fill: none; stroke: var(--accent); stroke-width: 1.8; }
.ch-sma50 { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-dasharray: 5 4; }

.backtest { border-top: 1px solid var(--border); padding-top: 8px; margin-top: 8px; }
.noscript { padding: 16px; }

/* „Frag Seppel“ */
.seppel-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 8px; }
.seppel-form input { flex: 1 1 260px; min-width: 0; min-height: 40px; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
.seppel-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.seppel-list { display: flex; flex-direction: column; gap: 18px; margin-top: 16px; }
.seppel-item { display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 820px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); overflow-wrap: anywhere; }
.bubble p { margin: 0 0 8px; }
.bubble p:last-child { margin-bottom: 0; }
.bubble-user { align-self: flex-end; background: var(--surface-2); border-bottom-right-radius: 4px; }
.bubble-seppel { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 4px; border-left: 4px solid var(--accent); }
.bubble-error { border-left-color: var(--risk); }
.bubble-wait { display: flex; align-items: center; gap: 8px; }
.seppel-head { font-size: 1.05rem; }
.seppel-pick { margin: 10px 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.seppel-pick h3 { margin: 0 0 8px; font-size: 1rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.seppel-others { margin: 6px 0 0; padding-left: 18px; }
.seppel-others li { margin-bottom: 6px; }
.seppel-explain { margin: 10px 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.seppel-explain h3 { margin: 0 0 8px; font-size: 1rem; }
.seppel-news { margin: 8px 0 4px; padding-left: 18px; }
.seppel-news li { margin-bottom: 8px; }
.seppel-news .badge { margin-left: 6px; }

/* --- Lagebild der Startseite (24.09.2026) ---------------------------------------------------
   Ziel: Das Wichtigste ohne Lesen erfassbar. Keine Farbe ohne Bedeutung, keine Grafik ohne Zahl. */
.lagebild { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.lage-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.kachel { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); }
.kachel-haupt { border-color: var(--accent); }
.kachel-label { font-size: .8rem; color: var(--text-2); }
.kachel-wert { font-size: 1.7rem; font-weight: 600; line-height: 1.2; margin-top: 2px; }
.kachel-wert-klein { font-size: 1.15rem; }
.kachel-sub { font-size: .8rem; color: var(--text-2); margin-top: 3px; }
.kachel-meter { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.kachel-meter-fill { height: 100%; background: var(--ok); }
.kachel-meter-fill.warn { background: var(--warn-strong); }

.lage-block { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); }
.lage-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.lage-kopf h3 { margin: 0; font-size: .98rem; }
.lage-fuss { font-size: .78rem; color: var(--text-2); margin: 10px 0 0; }
.lage-zeile { display: flex; gap: 8px; flex-wrap: wrap; }

/* Prognosebalken: Mittellinie = Muenzwurf. Wer dort liegt, wird blass gezeichnet - keine Scheinsicherheit. */
.prog-row { display: flex; align-items: center; gap: 10px; margin: 7px 0; }
.prog-name { width: 92px; font-size: .88rem; flex: none; }
.prog-track { flex: 1; height: 18px; background: var(--surface-2); border-radius: 4px; position: relative; overflow: hidden; }
.prog-mid { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--text-2); opacity: .7; z-index: 2; }
.prog-fill { height: 100%; background: var(--ok); opacity: .75; border-radius: 4px; }
.prog-fill.prog-flat { background: var(--text-2); opacity: .3; }
.prog-val { width: 52px; text-align: right; font-variant-numeric: tabular-nums; font-size: .88rem; flex: none; }
.prog-note { font-size: .76rem; color: var(--text-2); margin: -3px 0 6px 102px; }

/* Beobachtungsbuecher: Balkenhoehe = Risiko im Markt */
.buch-reihe { display: flex; gap: 10px; align-items: flex-end; }
.buch-col { flex: 1; text-align: center; }
.buch-bar-wrap { height: 52px; display: flex; align-items: flex-end; }
.buch-bar { width: 100%; background: var(--accent); opacity: .55; border-radius: 3px 3px 0 0; }
.buch-name { font-size: .82rem; font-weight: 600; margin-top: 5px; }
.buch-sub { font-size: .74rem; color: var(--text-2); }
.buch-pnl { font-size: .78rem; font-variant-numeric: tabular-nums; }
.buch-pnl.neg { color: var(--risk); }
.buch-pnl.pos { color: var(--ok); }

.pill { font-size: .72rem; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.pill-ok { background: var(--ok-weak); color: var(--ok); }
.pill-warn { background: var(--warn-weak); color: var(--warn); }

@media (max-width: 560px) {
  .prog-name { width: 74px; font-size: .82rem; }
  .prog-note { margin-left: 84px; }
  .kachel-wert { font-size: 1.45rem; }
}

/* --- Ausgespielte Berichte (24.09.2026): im Chat erarbeitet, hier nachlesbar ------------------- */
.bericht-liste-ansicht { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.bericht-karte { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.bericht-link { display: block; padding: 13px 15px; text-decoration: none; color: inherit; }
.bericht-link:hover { background: var(--surface-2); }
.bericht-kopf { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.bericht-titel { font-weight: 600; font-size: 1.02rem; margin-top: 5px; }
.bericht-kurz { color: var(--text-2); font-size: .86rem; margin: 4px 0 0; }
.bericht-kurz.gross { font-size: .98rem; margin-bottom: 4px; }

/* Lesetext: schmale Zeilen, damit man nicht die Zeile verliert */
.bericht-voll { max-width: 74ch; }
.bericht-h1 { font-size: 1.4rem; margin: 8px 0 6px; }
.bericht-text { line-height: 1.62; }
.bericht-text p { margin: 0 0 .85em; }
.bericht-h2 { font-size: 1.1rem; margin: 1.5em 0 .5em; padding-bottom: .25em; border-bottom: 1px solid var(--border); }
.bericht-h3 { font-size: .98rem; margin: 1.2em 0 .4em; }
.bericht-liste { margin: 0 0 .9em 1.2em; padding: 0; }
.bericht-liste li { margin: .3em 0; }
.bericht-zitat { margin: 0 0 .9em; padding: .6em .9em; border-left: 3px solid var(--accent);
  background: var(--accent-weak); border-radius: 0 6px 6px 0; }
.bericht-code { background: var(--surface-2); padding: .7em .9em; border-radius: 6px; overflow-x: auto;
  font-family: var(--mono); font-size: .85rem; }
.bericht-text code { background: var(--surface-2); padding: .1em .35em; border-radius: 4px;
  font-family: var(--mono); font-size: .88em; }
.tabelle-scroll { overflow-x: auto; margin: 0 0 1em; }
.bericht-tabelle { border-collapse: collapse; width: 100%; font-size: .9rem; }
.bericht-tabelle th, .bericht-tabelle td { border: 1px solid var(--border); padding: .45em .7em; text-align: left;
  vertical-align: top; }
.bericht-tabelle th { background: var(--surface-2); font-weight: 600; }
.bericht-tabelle td { font-variant-numeric: tabular-nums; }
.bericht-text hr { border: none; border-top: 1px solid var(--border); margin: 1.4em 0; }

/* Briefkasten: Frage liegt fuer Claude bereit (24.09.2026) */
.bubble-claude { border: 1px solid var(--accent); background: var(--accent-weak); margin-top: 8px; }
.bubble-claude p { margin: 0 0 .4em; }
.bubble-claude p:last-child { margin-bottom: 0; }
.bubble-fertig { border-color: var(--ok); background: var(--ok-weak); }

/* --- Anmeldung (25.09.2026): schlicht, mittig, auch auf dem Handy bedienbar -------------------- */
/* Ohne Anmeldung gibt es nur das Formular: keine Navigation, kein Modusbanner, kein Spaltenlayout.
   Das Grundlayout ist ein Raster mit Seitenleiste – das muss hier aufgehoben werden, sonst steht die
   Anmeldekarte in einer 220 Pixel schmalen Spalte. */
body.nicht-angemeldet #tabbar,
body.nicht-angemeldet #sidenav,
body.nicht-angemeldet .app-header,
body.nicht-angemeldet .mode-banner,
body.nicht-angemeldet .skip-link { display: none; }
body.nicht-angemeldet .layout { display: block; grid-template-columns: none; max-width: none; padding: 0; }
body.nicht-angemeldet main { margin: 0; padding: 0; max-width: none; width: 100%; }
.anmelde-seite { display: flex; align-items: center; justify-content: center; min-height: 80vh; padding: 20px 16px; }
.anmelde-karte { width: 100%; max-width: 380px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.anmelde-titel { margin: 0; font-size: 1.5rem; }
.anmelde-unter { margin: -8px 0 6px; color: var(--text-2); font-size: .88rem; }
.anmelde-feld { display: flex; flex-direction: column; gap: 5px; font-size: .88rem; }
.anmelde-feld span { color: var(--text-2); }
.anmelde-feld input { padding: 11px 12px; font-size: 1rem; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg); color: var(--text); }
.anmelde-feld input:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.anmelde-haken { display: flex; align-items: center; gap: 9px; font-size: .88rem; cursor: pointer; }
.anmelde-haken input { width: 18px; height: 18px; }
.anmelde-knopf { width: 100%; padding: 12px; font-size: 1rem; }
.anmelde-status { margin: 0; font-size: .85rem; color: var(--text-2); min-height: 1.2em; }
.anmelde-status.ist-fehler { color: var(--risk); }
.anmelde-fehler { margin: 0; padding: 9px 11px; border-radius: 8px; background: var(--risk-weak);
  color: var(--risk); font-size: .86rem; }
.linkbtn { background: none; border: none; color: var(--accent); cursor: pointer; padding: 4px;
  font-size: .85rem; text-decoration: underline; align-self: center; }

/* --- Klartext-Startseite (26.09.2026): vier Blöcke, feste Reihenfolge ------------------------- */
.klartext { display: flex; flex-direction: column; gap: 16px; }
.kt-block { display: flex; gap: 14px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); padding: 18px 20px; }
.kt-nr { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-weak);
  color: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center;
  font-size: .95rem; }
.kt-inhalt { flex: 1; min-width: 0; }
.kt-inhalt h2 { margin: 2px 0 10px; font-size: 1.12rem; }
.kt-satz { font-size: 1.02rem; margin: 0 0 12px; line-height: 1.5; }
.kt-gross { font-size: 1.7rem; font-weight: 600; margin: 0 0 6px; }
.kt-klein { font-size: .84rem; color: var(--text-2); margin: 10px 0 0; line-height: 1.5; }
.kt-liste { margin: 0; padding-left: 1.2em; }
.kt-liste li { margin: .45em 0; line-height: 1.5; }
.kt-balken { height: 12px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 4px 0 8px; }
.kt-balken-fuell { height: 100%; background: var(--accent); border-radius: 99px; }
.kt-zahlen { display: flex; gap: 14px; flex-wrap: wrap; margin: 0; font-size: .92rem; }
.kt-zahlen .pos { color: var(--ok); }
.kt-zahlen .neg { color: var(--risk); }
.kt-ziel .kt-nr { background: var(--ok-weak); color: var(--ok); }
.kt-handeln { border-color: var(--accent); }
.kt-handeln .kt-nr { background: var(--accent); color: var(--on-accent); }
.kt-auftrag { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.kt-auftrag:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.kt-auftrag-kopf { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.kt-verb { font-size: 1.25rem; font-weight: 700; color: var(--accent); }
.kt-wert { font-size: 1.1rem; }
.kt-tabelle { width: 100%; border-collapse: collapse; font-size: .92rem; }
.kt-tabelle th { text-align: left; font-weight: 400; color: var(--text-2); padding: 4px 12px 4px 0;
  width: 42%; vertical-align: top; }
.kt-tabelle td { padding: 4px 0; font-variant-numeric: tabular-nums; }
.kt-warum { font-size: .88rem; margin: 10px 0 0; line-height: 1.5; }
.kt-markt { list-style: none; margin: 0; padding: 0; }
.kt-markt-zeile { display: flex; align-items: baseline; gap: 10px; padding: 6px 0;
  border-bottom: 1px solid var(--border); }
.kt-markt-zeile:last-child { border-bottom: none; }
.kt-markt-name { flex: 1; font-size: .96rem; }
.kt-markt-lage { font-size: .88rem; color: var(--text-2); }
.kt-markt-lage.auf { color: var(--ok); }
.kt-markt-lage.ab { color: var(--risk); }
.kt-markt-lage.grau { color: var(--text-2); font-style: italic; }
.kt-markt-zahl { width: 46px; text-align: right; font-variant-numeric: tabular-nums; font-size: .9rem;
  color: var(--text-2); }
.kt-fuss { font-size: .82rem; color: var(--text-2); margin: 4px 0 0; }
@media (max-width: 560px) {
  .kt-block { padding: 15px 16px; gap: 11px; }
  .kt-tabelle th { width: 48%; }
}

/* Etappen: der Weg als Kette von Punkten, nicht als eine große Zahl */
.kt-etappen { list-style: none; display: flex; gap: 4px; margin: 0 0 14px; padding: 0; }
.kt-etappe { flex: 1; text-align: center; position: relative; }
.kt-etappe::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px;
  background: var(--border); z-index: 0; }
.kt-etappe:first-child::before { display: none; }
.kt-etappe.geschafft::before { background: var(--ok); }
.kt-etappe-punkt { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  width: 27px; height: 27px; margin: 0 auto 5px; border-radius: 50%; border: 2px solid var(--border);
  background: var(--surface); font-size: .82rem; font-weight: 600; color: var(--text-2); }
.kt-etappe.geschafft .kt-etappe-punkt { background: var(--ok); border-color: var(--ok); color: #fff; }
.kt-etappe.naechste .kt-etappe-punkt { border-color: var(--accent); color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak); }
.kt-etappe-zahl { font-size: .76rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.kt-etappe.naechste .kt-etappe-zahl { color: var(--accent); font-weight: 600; }
.kt-naechste { color: var(--text-2); }

/* Erklärkasten: der Fachbegriff einmal in Alltagssprache */
.kt-erklaer { background: var(--surface-2); border-radius: 8px; padding: 11px 13px; margin: 0 0 12px; }
.kt-erklaer p { margin: 0; font-size: .89rem; line-height: 1.55; }
.kt-warnung { background: var(--warn-weak); color: var(--warn); border-radius: 8px; padding: 10px 13px;
  margin: 12px 0 0; font-size: .88rem; line-height: 1.5; }

/* ---- Heatmap „Was bewegt sich?" (26.09.2026) ----------------------------------------------------
   Die Farbe kommt aus dem Skript (Stärke der Bewegung), hier steht nur die Form. Wichtig: Die Kachel
   hat immer Platz für die Zahl – die Farbe allein darf nie die einzige Auskunft sein. */
.hm-kopf h2 { margin: 0 0 8px; }
.hm-bilanz { margin: 0 0 6px; font-size: 1rem; }
.hm-bilanz .auf, .hm-extreme .auf { color: var(--ok); }
.hm-bilanz .ab, .hm-extreme .ab { color: var(--risk); }
.hm-extreme { margin: 0 0 8px; font-size: .92rem; }
.hm-extreme strong { font-weight: 600; }

.hm-gruppe { margin: 16px 0 0; }
.hm-gruppe h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
  margin: 0 0 8px; font-size: 1rem; }
.hm-schnitt { font-size: .82rem; font-weight: 500; color: var(--text-2);
  font-variant-numeric: tabular-nums; }
.hm-schnitt.auf { color: var(--ok); }
.hm-schnitt.ab { color: var(--risk); }

.hm-raster { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); }
.hm-kachel { display: flex; flex-direction: column; justify-content: center; gap: 3px;
  min-height: 62px; padding: 8px 6px; border: 1px solid var(--border); border-radius: 9px;
  text-align: center; text-decoration: none; transition: transform .08s ease; }
.hm-kachel:hover { transform: translateY(-1px); text-decoration: none; }
.hm-kachel:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hm-kuerzel { font-size: .74rem; font-weight: 600; letter-spacing: .02em; opacity: .9;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-pct { font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
/* Ohne frischen Kurs: gestrichelter Rand und ein Strich statt einer Zahl – sichtbar „keine Angabe",
   nicht „keine Bewegung". */
.hm-kalt { border-style: dashed; }
.hm-kalt .hm-pct { font-weight: 500; opacity: .7; }

@media (min-width: 700px) {
  .hm-raster { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  .hm-kachel { min-height: 70px; }
}
/* Nachlaufender Kurs (Stundentakt bei Rohstoffen und Aktien): ein Punkt an der Ecke. Die Kachel bleibt farbig,
   weil die Messung echt ist – sie ist nur ein paar Minuten älter, und das muss man sehen können. */
.hm-nachlauf { position: relative; }
.hm-nachlauf::after { content: ""; position: absolute; top: 5px; right: 5px; width: 5px; height: 5px;
  border-radius: 50%; background: currentColor; opacity: .55; }

/* ---- Empfehlung als Auftragszettel (26.09.2026) ------------------------------------------------
   Die Verlustzeile ist bewusst nicht kleiner oder blasser als der Rest: Wer den Gewinn hervorhebt und
   das Risiko ins Kleingedruckte schiebt, wirbt, statt zu beraten. */
.auf-uebersicht h1 { margin: 0 0 6px; font-size: 1.35rem; }
.auf-uebersicht p { margin: 0 0 4px; }

.auf-gruppe { margin: 18px 0 0; }
.auf-gruppe-titel { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; font-size: 1.05rem; }
.auf-anzahl { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px;
  padding: 0 6px; border-radius: 11px; background: var(--surface-2); color: var(--text-2);
  font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.auf-leer { margin: 0; padding: 14px 16px; border: 1px dashed var(--border); border-radius: 10px;
  color: var(--text-2); font-size: .9rem; line-height: 1.55; }
.auf-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.auf-item > .card { display: block; }
.auf-mehr { display: inline-block; margin-top: 10px; color: var(--accent); font-weight: 600; }

.auf-zettel { display: block; }
.auf-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.auf-tun { font-size: 1.15rem; font-weight: 700; }
.auf-wert { font-size: 1.05rem; color: var(--text-2); }
.auf-wann { margin: 0 0 10px; font-size: .95rem; }

.auf-tabelle { width: 100%; border-collapse: collapse; margin: 0 0 4px; }
.auf-tabelle th, .auf-tabelle td { padding: 7px 0; border-bottom: 1px solid var(--surface-2);
  text-align: left; vertical-align: baseline; font-size: .93rem;
  /* Die App setzt fuer Datentabellen ueberall nowrap – hier stehen aber Saetze („wenn der Kurs ueber den
     Ausstieg hinwegspringt"), die umbrechen muessen, sonst schiebt sich die Seite seitlich aus dem Bild. */
  white-space: normal; }
.auf-tabelle th { width: 45%; color: var(--text-2); font-weight: 600; }
.auf-tabelle td { font-variant-numeric: tabular-nums; }
.auf-tabelle tr:last-child th, .auf-tabelle tr:last-child td { border-bottom: 0; }
.auf-verlust { color: var(--risk); }

.auf-blocker { list-style: none; margin: 10px 0 0; padding: 10px 13px; border-radius: 8px;
  background: var(--risk-weak); color: var(--risk); font-size: .88rem; line-height: 1.5; }
.auf-blocker li + li { margin-top: 5px; }

.auf-grund, .auf-gegen, .auf-ende { margin: 10px 0 0; font-size: .9rem; line-height: 1.55; }
.auf-gegen { color: var(--warn); }
.auf-begruendung { margin: 14px 0 0; font-size: .93rem; line-height: 1.6; }
.auf-lage { margin: 8px 0 0; }

/* Die drei Fälle nebeneinander – gut/nichts/schlecht, immer in dieser Reihenfolge */
.auf-wenn { display: grid; gap: 8px; margin: 14px 0 0; }
.auf-fall { padding: 11px 13px; border-radius: 9px; background: var(--surface-2); border-left: 4px solid var(--border); }
.auf-fall h3 { margin: 0 0 4px; font-size: .88rem; }
.auf-fall p { margin: 0; font-size: .89rem; line-height: 1.55; }
.auf-fall-auf { border-left-color: var(--ok); }
.auf-fall-ab { border-left-color: var(--risk); }

/* Auf dem Telefon passen Beschriftung und Wert nicht nebeneinander: „Verlust, wenn es schiefgeht" ist lang,
   und der Hinweis dahinter („wenn der Kurs über den Ausstieg hinwegspringt") schiebt die Zeile aus dem Bild.
   Also untereinander – die Beschriftung klein darüber, der Betrag darunter in voller Breite. */
@media (max-width: 559px) {
  .auf-tabelle, .auf-tabelle tbody, .auf-tabelle tr, .auf-tabelle th, .auf-tabelle td { display: block; width: auto; }
  .auf-tabelle tr { padding: 8px 0; border-bottom: 1px solid var(--surface-2); }
  .auf-tabelle tr:last-child { border-bottom: 0; }
  .auf-tabelle th { padding: 0; font-size: .8rem; }
  .auf-tabelle td { padding: 2px 0 0; font-size: 1rem; }
}

@media (min-width: 760px) {
  .auf-wenn { grid-template-columns: repeat(3, 1fr); }
  .auf-tabelle th { width: 38%; }
}

/* ---- Auftragsbuch (26.09.2026) ------------------------------------------------------------------
   Die Waage zeigt nur, wo gerade mehr Geld liegt. Sie ist bewusst ein schlichter Balken und kein Zeiger
   oder Tacho: Ein Zeigerinstrument suggeriert Messgenauigkeit, die eine Momentaufnahme nicht hat. */
.ob-kopf h1 { margin: 0 0 6px; font-size: 1.3rem; }
.ob-stand { margin: 0 0 12px; font-size: .93rem; }
.ob-spread { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0 0 10px; }
.ob-spread > div { padding: 10px 12px; border-radius: 9px; background: var(--surface-2); }
.ob-label { display: block; font-size: .78rem; color: var(--text-2); font-weight: 600; }
.ob-zahl { display: block; margin-top: 2px; font-size: 1.05rem; font-weight: 700;
  font-variant-numeric: tabular-nums; }

.ob-tabelle { width: 100%; border-collapse: collapse; }
.ob-tabelle caption { text-align: left; font-size: 1.05rem; font-weight: 700; margin: 0 0 10px; }
.ob-tabelle th, .ob-tabelle td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--surface-2);
  text-align: left; white-space: normal; font-size: .93rem; }
.ob-tabelle thead th { font-size: .8rem; color: var(--text-2); }
.ob-tabelle td { font-variant-numeric: tabular-nums; }
.ob-tabelle tr:last-child th, .ob-tabelle tr:last-child td { border-bottom: 0; }
.ob-gut { color: var(--ok); font-weight: 600; }
.ob-zu-gross td { color: var(--text-2); font-style: italic; }

.ob-waage-balken { height: 26px; border-radius: 13px; overflow: hidden; background: var(--risk-weak);
  border: 1px solid var(--border); }
.ob-waage-kauf { height: 100%; background: var(--ok-weak); border-right: 2px solid var(--ok); }
.ob-waage-enden { display: flex; justify-content: space-between; margin-top: 5px; color: var(--text-2);
  font-variant-numeric: tabular-nums; }
.ob-waage-satz { margin: 10px 0 8px; font-size: .95rem; font-weight: 600; }
.ob-leer { margin: 0; padding: 12px 14px; border: 1px dashed var(--border); border-radius: 9px;
  color: var(--text-2); font-size: .9rem; line-height: 1.55; }

@media (max-width: 559px) {
  .ob-tabelle thead { display: none; }
  .ob-tabelle, .ob-tabelle tbody, .ob-tabelle tr, .ob-tabelle td { display: block; width: auto; }
  .ob-tabelle tr { padding: 8px 0; border-bottom: 1px solid var(--surface-2); }
  .ob-tabelle td { padding: 2px 0; border: 0; }
  .ob-tabelle td:first-child { font-weight: 700; }
}
/* Zwei Warnungen, die nicht im Kleingedruckten stehen dürfen: abgelaufene Gültigkeit und veraltete
   Kapitalbasis. Beide lassen eine Empfehlung sonst aktueller aussehen, als sie ist. */
.auf-abgelaufen, .auf-kapital { margin: 0 0 10px; padding: 9px 12px; border-radius: 8px;
  font-size: .88rem; line-height: 1.5; }
.auf-abgelaufen { background: var(--surface-2); color: var(--text-2); }
.auf-kapital { background: var(--warn-weak); color: var(--warn); font-weight: 600; }

/* ---- „Seppel empfiehlt heute" (26.09.2026) -------------------------------------------------------
   Der Rat steht ganz oben und liest sich wie ein Absatz, nicht wie ein Formular: etwas größere Schrift,
   ruhiger Zeilenabstand, kein Raster. Die Zahlen dazu liegen darunter zum Aufklappen. */
.rat { border-left: 4px solid var(--accent); }
.rat-titel { margin: 0 0 10px; font-size: 1.2rem; }
.rat-gruss { margin: 0 0 10px; font-size: 1.05rem; font-weight: 600; }
.rat-satz { margin: 0 0 12px; font-size: 1rem; line-height: 1.65; max-width: 62ch; }
.rat-satz strong { font-weight: 700; }
.rat-fuss { margin: 14px 0 6px; }
.rat-belege { margin: 0; padding-left: 20px; font-size: .88rem; line-height: 1.6; color: var(--text-2); }
.rat-fehler { border-left-color: var(--warn); }
