/* Plus Jakarta Sans, variable (200–800), lateinischer Zeichensatz. Selbst ausgeliefert, SIL Open Font License 1.1. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/plus-jakarta-sans-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
[hidden] { display: none !important; }
/* Layout: Einstieg und Fragen in einer ruhigen Spalte; Übersicht mit Kacheln, Verlauf und Details links, Angaben als Formular rechts. */
:root {
  --bg: #F1F4F3; --surface: #FFFFFF; --surface-2: #F7F9F8; --ink: #15201F; --muted: #586764; --line: #D6DEDC;
  --accent: #0D6A66; --accent-ink: #FFFFFF; --accent-soft: #DBEDEB;
  --held: #A85A22; --held-soft: #F5E6D8; --gain: #2C7A4B; --gain-soft: #DCEEE2; --warn: #B3261E; --warn-soft: #F8E1DF;
  --focus: #1F8F89;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1413; --surface: #151D1C; --surface-2: #1A2322; --ink: #E4ECEA; --muted: #97A6A2; --line: #2B3634;
    --accent: #52B8AF; --accent-ink: #0B1716; --accent-soft: #173331; --held: #E09A62; --held-soft: #3A2B1F;
    --gain: #6FC894; --gain-soft: #1B3325; --warn: #F08A80; --warn-soft: #3A1F1D; --focus: #7FD3CB; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1413; --surface: #151D1C; --surface-2: #1A2322; --ink: #E4ECEA; --muted: #97A6A2; --line: #2B3634;
  --accent: #52B8AF; --accent-ink: #0B1716; --accent-soft: #173331; --held: #E09A62; --held-soft: #3A2B1F;
  --gain: #6FC894; --gain-soft: #1B3325; --warn: #F08A80; --warn-soft: #3A1F1D; --focus: #7FD3CB; color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--font-body); }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; padding-block: 0 64px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 650; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.label { font-size: .75rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.note { font-size: .875rem; color: var(--muted); }
.stack { display: grid; gap: 10px; }

/* Prototyp-Leiste und Kopf */
.protobar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 0; font-size: .8125rem; color: var(--muted); border-bottom: 1px dashed var(--line); }
.protobar strong { color: var(--ink); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .6875rem; }
.protobar nav { display: flex; flex-wrap: wrap; gap: 6px; }
.protobar button { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: .8125rem; color: var(--muted); }
.protobar button[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-block: 18px 8px; }
.brand { font-family: var(--font-display); font-weight: 750; font-size: 1.25rem; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 8px; }
.brand small { font-family: var(--font-body); font-weight: 500; font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.local { display: inline-flex; align-items: center; gap: 7px; font-size: .8125rem; color: var(--muted); }
.local::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gain); box-shadow: 0 0 0 3px var(--gain-soft); }

/* Einstieg */
.intro { max-width: 780px; margin: 44px auto 0; display: grid; gap: 34px; }
.intro h1 { font-size: clamp(2rem, 5.4vw, 3.125rem); line-height: 1.08; }
.lead { color: var(--muted); font-size: 1.125rem; max-width: 58ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.btn { border: 0; border-radius: 12px; padding: 13px 22px; font-weight: 600; background: var(--accent); color: var(--accent-ink); }
.btn.big { font-size: 1.0625rem; padding: 16px 26px; }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn:disabled { opacity: .45; cursor: default; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; text-align: left; }
.qchips { display: flex; flex-wrap: wrap; gap: 8px; }
.qchip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px 8px 12px; font-size: .9375rem; display: inline-flex; gap: 8px; align-items: center; }
.qchip::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--muted); flex: none; }
.qchip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); font-weight: 500; }
.qchip[aria-pressed="true"]::before { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2'/%3E%3C/svg%3E") center/12px no-repeat; }
.personas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.persona { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 14px; display: grid; gap: 6px; align-content: start; transition: border-color .15s, transform .15s; }
.persona:hover { border-color: var(--accent); transform: translateY(-2px); }
.persona b { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 650; }
.persona span { font-size: .8125rem; color: var(--muted); line-height: 1.45; }
.persona em { font-style: normal; font-size: .8125rem; color: var(--ink); background: var(--surface-2); border-radius: 8px; padding: 6px 8px; }

/* Fragen */
.flow { max-width: 620px; margin: 36px auto 0; display: grid; gap: 24px; }
.progress { display: grid; gap: 8px; }
.progress .bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress .bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }
.progress .meta { display: flex; justify-content: space-between; gap: 10px; font-size: .8125rem; color: var(--muted); }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 34px); display: grid; gap: 20px; }
.step h2 { font-size: clamp(1.5rem, 4vw, 1.875rem); line-height: 1.2; }
.why { font-size: .875rem; color: var(--muted); background: var(--surface-2); border-radius: 10px; padding: 10px 14px; }
.money { display: flex; align-items: baseline; gap: 8px; border-bottom: 2px solid var(--line); padding-bottom: 6px; }
.money:focus-within { border-color: var(--accent); }
.money input { border: 0; background: transparent; color: var(--ink); font: 650 clamp(1.875rem, 6vw, 2.625rem)/1.1 var(--font-display); width: 100%; min-width: 0; font-variant-numeric: tabular-nums; }
.money input:focus { outline: none; }
.money span { font: 500 1.375rem var(--font-display); color: var(--muted); }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.field { display: grid; gap: 8px; }
.flabel { font-weight: 600; font-size: .9375rem; }
.opts { display: grid; gap: 8px; }
.opt { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; text-align: left; background: var(--surface); }
.opt[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.opt .dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--muted); margin-top: 2px; }
.opt[aria-checked="true"] .dot { border-color: var(--accent); background: radial-gradient(var(--accent) 45%, transparent 50%); }
.opt b { display: block; font-weight: 600; }
.opt small { color: var(--muted); font-size: .8125rem; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
select, .textin { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; min-width: 0; }
.nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.nav .right { display: flex; gap: 10px; flex-wrap: wrap; }

/* Übersicht */
.result { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; margin-top: 26px; align-items: start; }
.main { display: grid; gap: 22px; min-width: 0; }
.example { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .875rem; background: var(--surface-2); border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; }
.hero { display: grid; gap: 12px; }
.hero h1 { font-size: clamp(1.75rem, 4.4vw, 2.5rem); line-height: 1.15; }
.summary { font-size: 1.125rem; line-height: 1.6; max-width: 66ch; }
.summary b { font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.tile { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 6px; align-content: start; transition: border-color .15s; min-width: 0; }
.tile:hover { border-color: var(--accent); }
.tile .val { font: 650 1.625rem/1.15 var(--font-display); font-variant-numeric: tabular-nums; }
.tile .ctx { font-size: .84375rem; color: var(--muted); line-height: 1.45; }
.tile .more { font-size: .8125rem; font-weight: 600; color: var(--accent); margin-top: 4px; }
.tile.mine { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tile .yours { justify-self: start; font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 1px 8px; }
.tile.alarm .val { color: var(--warn); }
.tile.good .val { color: var(--gain); }
.delta { display: inline-block; font: 600 .75rem var(--font-body); border-radius: 999px; padding: 1px 8px; opacity: 0; transition: opacity .4s; justify-self: start; }
.delta.show { opacity: 1; }
.delta.up { background: var(--gain-soft); color: var(--gain); }
.delta.down { background: var(--held-soft); color: var(--held); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 26px); display: grid; gap: 16px; min-width: 0; scroll-margin-top: 16px; }
.card h2 { font-size: 1.375rem; }
.card .answer { font-size: 1.0625rem; }
.chart { width: 100%; height: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8125rem; color: var(--muted); }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.whatif { display: grid; gap: 12px; background: var(--surface-2); border-radius: 14px; padding: 14px 16px; }
.whatif .head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.sl { display: grid; gap: 4px; }
.sl .top-line { display: flex; justify-content: space-between; gap: 8px; font-size: .875rem; }
.sl output { font-weight: 600; font-variant-numeric: tabular-nums; }
.callout { border-radius: 14px; background: var(--held-soft); padding: 14px 16px; display: grid; gap: 6px; }
.callout b { color: var(--held); }
.calc { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.calc td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.calc td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 14px; }
.calc tr.sum td { font-weight: 600; border-bottom: 0; }
.calc .src { display: block; font-size: .75rem; color: var(--muted); }
details.explain summary { cursor: pointer; font-weight: 600; color: var(--accent); list-style: none; }
details.explain summary::-webkit-details-marker { display: none; }
details.explain summary::before { content: "+ "; }
details.explain[open] summary::before { content: "− "; }
details.explain[open] summary { margin-bottom: 10px; }
.bars2 { display: grid; gap: 10px; }
.bars2 .b { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: .875rem; }
.bars2 .track { height: 14px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bars2 .fill { height: 100%; border-radius: 99px; }
.bars2 .v { font-variant-numeric: tabular-nums; font-weight: 600; }
.deadlines { display: grid; gap: 0; }
.dl { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dl:last-child { border-bottom: 0; }
.dl .d { font-weight: 600; font-variant-numeric: tabular-nums; }
.dl .d.urgent { color: var(--warn); }
.dl .t b { display: block; }
.dl .t span { font-size: .875rem; color: var(--muted); }
.algline { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border-radius: 10px; overflow: hidden; font-size: .8125rem; }
.algline div { padding: 10px 12px; display: grid; gap: 2px; }
.algline b { font-size: .875rem; }
.disclaimer { font-size: .8125rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 6px; }
.disclaimer a { color: var(--accent); }

/* Angaben rechts */
aside.side { display: grid; gap: 14px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); max-height: calc(100vh - 24px); overflow: auto; padding-bottom: 4px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 14px; }
.panel h2 { font-size: 1.125rem; }
.acc .meter { display: flex; gap: 4px; }
.acc .meter span { flex: 1; height: 6px; border-radius: 99px; background: var(--line); }
.acc .meter span.on { background: var(--accent); }
.grp { display: grid; gap: 10px; }
.grp + .grp { border-top: 1px solid var(--line); padding-top: 14px; }
.in { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 4px 10px; align-items: center; font-size: .875rem; }
.in label, .in .lab { color: var(--ink); }
.in input[type="text"], .in select { font: 600 .875rem var(--font-body); color: var(--ink); background: var(--surface-2); border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; width: 100%; min-width: 0; text-align: right; font-variant-numeric: tabular-nums; }
.in select { text-align: left; }
.in input[type="text"]:hover, .in select:hover { border-color: var(--line); }
.in input[type="text"]:focus, .in select:focus { border-color: var(--accent); outline: none; background: var(--surface); }
.in .tag { grid-column: 1; justify-self: start; }
.in.wide { grid-template-columns: minmax(0, 1fr); }
.in.wide select { grid-column: 1; }
.in.wide .tag { grid-row: 1; justify-self: end; }
.in.wide .lab { grid-row: 1; }
.tag { font-size: .65625rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 0 7px; }
.tag.you { background: var(--accent-soft); color: var(--accent); }
.tag.est { background: var(--held-soft); color: var(--held); }
.seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { flex: 1; border: 0; background: var(--surface-2); font-size: .8125rem; padding: 6px 4px; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.fab { display: none; }


/* Gesamtprototyp: Stepper mit Abschnitten, Ergebnis mit Reitern */
.steps-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.steps-nav button { font-size: .75rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.steps-nav button.done { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.steps-nav button.now { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 110px), 1fr)); gap: 8px; }
.kids label { display: grid; gap: 4px; font-size: .8125rem; color: var(--muted); }
.stepper-num { display: flex; align-items: center; gap: 10px; }
.stepper-num button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 1.25rem; }
.stepper-num output { font: 650 1.625rem var(--font-display); min-width: 2ch; text-align: center; }
.chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.helpdoc { font-size: .8125rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 10px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; position: sticky; top: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 4; padding-top: 6px; }
.tabs :is(button, a) { border: 0; background: none; padding: 10px 14px; font-weight: 600; font-size: .9375rem; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs :is(button, a)[aria-selected="true"], .tabs a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }
.tabs .count { font-size: .75rem; font-weight: 600; background: var(--surface-2); border-radius: 999px; padding: 0 7px; margin-left: 4px; color: var(--muted); }
.panelview { display: grid; gap: 22px; min-width: 0; }

.warns { display: grid; gap: 8px; }
.warn { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--held); border-radius: 12px; padding: 12px 14px; }
.warn.hoch { border-left-color: var(--warn); }
.warn .ic { font: 700 .8125rem var(--font-body); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--held-soft); color: var(--held); }
.warn.hoch .ic { background: var(--warn-soft); color: var(--warn); }
.warn b { display: block; }
.warn span.t { font-size: .875rem; color: var(--muted); }
.warn .amt { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.topics { display: grid; gap: 14px; }
.topic { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.topic > summary { list-style: none; cursor: pointer; padding: 16px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; }
.topic > summary::-webkit-details-marker { display: none; }
.topic > summary h3 { font-size: 1.1875rem; hyphens: auto; overflow-wrap: break-word; }
.topic > summary .key { font: 650 1.125rem var(--font-display); font-variant-numeric: tabular-nums; text-align: right; }
.topic > summary .gist { grid-column: 1 / -1; font-size: .90625rem; color: var(--muted); }
.topic > summary .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: .6875rem; font-weight: 600; letter-spacing: .03em; border-radius: 999px; padding: 1px 8px; background: var(--surface-2); color: var(--muted); }
.pill.rel { background: var(--accent-soft); color: var(--accent); }
.topic[open] > summary { border-bottom: 1px solid var(--line); }
.topic .body { padding: 18px 20px 20px; display: grid; gap: 14px; }
.topic .body p { max-width: 70ch; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 10px; }
.kv div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.kv span { font-size: .78125rem; color: var(--muted); }
.kv b { font: 650 1.125rem var(--font-display); font-variant-numeric: tabular-nums; hyphens: auto; overflow-wrap: anywhere; }
.tbl { width: 100%; border-collapse: collapse; font-size: .90625rem; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tbl td.n, .tbl th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr.me td { font-weight: 600; }
.tbl tr.best td:first-child::after { content: " · beste"; font-size: .6875rem; color: var(--gain); font-weight: 600; }
.tblwrap { overflow-x: auto; }
.neg { color: var(--warn); }
.pos { color: var(--gain); }
.linkrow { display: flex; flex-wrap: wrap; gap: 8px 18px; }

.hebel { display: grid; gap: 8px; }
.hebel .h { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) 110px; gap: 10px; align-items: center; font-size: .875rem; }
.hebel .track { height: 12px; background: var(--surface-2); border-radius: 99px; position: relative; }
.hebel .track i { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.hebel .track::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--muted); }
.hebel .v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.weights { display: grid; gap: 12px; }
.weights .w { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) 90px; gap: 10px; align-items: center; font-size: .875rem; }
.weights .w output { text-align: right; font-weight: 600; }

.qtools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.qtools input { flex: 1 1 240px; }
.qgroup { display: grid; gap: 6px; }
.qgroup h3 { font-size: 1.0625rem; margin-top: 8px; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.qa > summary { list-style: none; cursor: pointer; padding: 11px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.qa > summary::-webkit-details-marker { display: none; }
.qa .st { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; margin-top: 1px; }
.qa .st.ok { background: var(--gain-soft); color: var(--gain); }
.qa .st.need { background: var(--held-soft); color: var(--held); }
.qa .st.na { background: var(--surface-2); color: var(--muted); }
.qa .st.rat { background: var(--accent-soft); color: var(--accent); }
.qa .q { font-weight: 500; }
.qa .a { padding: 0 14px 14px 44px; font-size: .90625rem; display: grid; gap: 8px; }
.qa.na .q { color: var(--muted); }

.xsec { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.xsec > summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.xsec > summary::-webkit-details-marker { display: none; }
.xsec > summary b { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 650; }
.xsec > summary small { display: block; color: var(--muted); font-size: .8125rem; }
.xsec .body { padding: 4px 18px 18px; display: grid; gap: 12px; }
.xf { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 4px 14px; align-items: center; font-size: .90625rem; }
.xf small { grid-column: 1 / -1; color: var(--muted); font-size: .78125rem; }
.xf input[type="text"], .xf select { font: 600 .875rem var(--font-body); color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; width: 100%; min-width: 0; text-align: right; font-variant-numeric: tabular-nums; }
.xf select { text-align: left; }
.xf input:focus, .xf select:focus { border-color: var(--accent); outline: none; }
.changed { font-size: .6875rem; font-weight: 600; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 1px 8px; white-space: nowrap; flex-shrink: 0; }
.side details.grp2 { border-top: 1px solid var(--line); padding-top: 10px; }
.side details.grp2 > summary { cursor: pointer; font-size: .75rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); list-style: none; display: flex; justify-content: space-between; }
.side details.grp2 > summary::-webkit-details-marker { display: none; }
.side details.grp2 > summary::after { content: "+"; }
.side details.grp2[open] > summary::after { content: "−"; }
.side details.grp2 .grp { padding-top: 10px; }
.horizon { display: flex; gap: 6px; }
.horizon button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 12px; font-size: .8125rem; }
.horizon button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

@media (max-width: 900px) {
  .result { grid-template-columns: minmax(0, 1fr); }
  aside.side { position: static; max-height: none; overflow: visible; }
  .personas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fab { display: block; position: fixed; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); z-index: 5; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
}
@media (max-width: 560px) {
  .row2, .personas { grid-template-columns: minmax(0, 1fr); }
  .hebel .h, .weights .w { grid-template-columns: minmax(0, 1fr) auto; }
  .hebel .track, .weights .w input { grid-column: 1 / -1; grid-row: 2; }
  .xf { grid-template-columns: minmax(0, 1fr); }
  .warn { grid-template-columns: auto minmax(0, 1fr); }
  .warn .amt { grid-column: 2; }
}
.in.wide { grid-template-columns: minmax(0, 1fr) auto; }
.in.wide .lab { grid-column: 1; grid-row: 1; }
.in.wide .tag { grid-column: 2; grid-row: 1; justify-self: end; }
.in.wide select { grid-column: 1 / -1; grid-row: 2; text-align: left; }
.phasen { display: grid; gap: 10px; }
.phase { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 10px; background: var(--surface); }
.phase.fixed { background: var(--surface-2); border-style: dashed; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .875rem; }
.phase.fixed span { color: var(--muted); }
.phase-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.phase-head select, .phase-f input, .phase-f select, .phase-head input { font: 600 .875rem var(--font-body); color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; min-width: 0; }
.phase-head label { display: flex; gap: 6px; align-items: center; font-size: .875rem; color: var(--muted); }
.phase-f { display: grid; gap: 4px; font-size: .8125rem; color: var(--muted); }
.phase-f input { text-align: right; font-variant-numeric: tabular-nums; width: 100%; }
.phase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 8px; align-items: end; }
.phase .opts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.fzname { font: 650 1rem var(--font-display) !important; background: transparent !important; border-color: transparent !important; padding-left: 0 !important; width: 100%; }
.fzk input[type="text"] { width: 90px; text-align: right; font: 600 .875rem var(--font-body); color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 7px; }
.fzk input[type="checkbox"] { width: 24px; height: 24px; margin: 0; accent-color: var(--accent); }
.pct { display: flex; align-items: center; gap: 8px; }
.pct input { max-width: 120px; text-align: right; }
.side .phasen.kompakt .phase { padding: 10px; }
.side .phase-head select { max-width: 100%; }
.side .phase .opts { grid-template-columns: minmax(0, 1fr); }
.side .in.wide .pct, .side .in .pct { grid-column: 2; }
.side .in .pct input { font: 600 .875rem var(--font-body); background: var(--surface-2); border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; width: 100%; max-width: none; }
.side .fzk input[type="text"] { width: 70px; }

.stell { gap: 12px; }
.stell-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; }
.stell-head h2 { font-size: 1.1875rem; }
.stell-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px 16px; align-items: start; }
.stell-grid .in { grid-template-columns: minmax(0, 1fr); gap: 4px; font-size: .84375rem; }
.stell-grid .in .lab { color: var(--muted); font-weight: 600; font-size: .75rem; letter-spacing: .03em; }
.stell-grid .in .tag { display: none; }
.stell-grid .in input[type="text"], .stell-grid .in input[type="date"], .stell-grid .in select { font: 600 .9375rem var(--font-body); color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; text-align: left; }
.stell-grid .in.wide .lab, .stell-grid .in.wide select { grid-column: 1; grid-row: auto; }
.stell-grid [data-row="raten"] { grid-column: 1 / -1; }
.stell-grid > .why { grid-column: 1 / -1; margin: 0; }
.side .in input[type="date"] { font: 600 .875rem var(--font-body); color: var(--ink); background: var(--surface-2); border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; width: 100%; grid-column: 1 / -1; }
.phase-head input[type="date"] { font: 600 .875rem var(--font-body); color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }

.chk { display: flex; gap: 8px; align-items: flex-start; font-size: .84375rem; color: var(--ink); }
.chk input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin-top: 1px; }

/* Widerrufsfunktion (§ 356a BGB): Link „Vertrag widerrufen“ im Fuß hervorgehoben, Seite /widerruf/ mit Formular */
.seitenfuss a.fuss-widerruf { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.wr-karte { margin: 22px 0 28px; padding: clamp(16px, 3vw, 24px); border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.wr-karte h2 { margin-top: 0; }
.wr-form { display: grid; gap: 14px; margin-top: 12px; }
.wr-feld { display: grid; gap: 4px; }
.wr-feld label { font-size: .9375rem; font-weight: 600; }
.wr-feld input, .wr-feld textarea { font: inherit; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--muted); background: var(--surface); color: var(--ink); width: 100%; box-sizing: border-box; }
.wr-feld textarea { resize: vertical; }
.wr-feld input:focus-visible, .wr-feld textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.wr-feld [aria-invalid="true"] { border-color: var(--warn); box-shadow: 0 0 0 1px var(--warn); }
.wr-hilfe, .wr-pflicht, .wr-alternativ { margin: 0; font-size: .875rem; color: var(--muted); }
.wr-alternativ { margin-top: 14px; }
.wr-fehler { margin: 0; font-size: .875rem; font-weight: 600; color: var(--warn); }
.wr-fehler::before { content: "Fehler: "; }
.wr-knopf { justify-self: start; min-height: 48px; font-size: 1rem; }
.wr-status:empty { display: none; }
.wr-status { margin: 0; font-weight: 600; }
.wr-honig { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.wr-ergebnis:focus { outline: none; }
.wr-ergebnis h2 { margin-top: 0; color: var(--gain); }
.wr-hinweis { padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--ink); }
.wr-inhalt { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 6px 14px; margin: 12px 0; }
.wr-inhalt dt { color: var(--muted); font-size: .875rem; }
.wr-inhalt dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 560px) { .wr-inhalt { grid-template-columns: 1fr; } .wr-inhalt dd { margin-bottom: 6px; } .wr-knopf { justify-self: stretch; justify-content: center; } }
.muster-formular { list-style: none; padding-left: 0; }
.muster-formular li { padding-left: 1.2em; text-indent: -1.2em; }
.muster-formular li::before { content: "\2013\00a0\00a0"; }
/* Schalter „Auf diesem Gerät merken“ (speichern.js) */
.merk-schalter { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; }
.merk-schalter .schalter { flex: none; }
.merk-zeile { display: grid; gap: 2px; }
.merk-zeile small { font-size: .8125rem; color: inherit; }
.menue-liste .merk-zeile small { color: var(--ink-2); }
.menue-liste .merk-zeile { padding: 8px 12px; }
.stp-unten .merk-schalter { font-weight: 500; color: var(--muted); }
.e-fuss .merk-schalter { color: var(--on-navy); }

/* ================================================================
   Design 6 „Abfindung oder bleiben?“: helles kühles Grau-Weiß, weiße Karten mit feiner Linie und weichem Schatten,
   Petrol als Akzent, tiefes Navy für dunkle Karten, Fuß und Hauptknöpfe, zarte Blauflächen für Hinweise, Gelb für Fristen.

   Übersicht für neue Ansichten (Schrift in rem, Abstände in px):
   Farben   --bg, --surface (Karte), --surface-2 (Feld), --line, --ink, --ink-2, --muted.
            --accent (Petrol) + -soft/-soft-2, --mint (Pillen), --navy (+ --on-navy, --on-navy-2 Text darauf),
            --info-soft/-soft-2 (+ --info-ink), --frist-soft/-line/-ink (Fristen), --btn/--btn-ink (Hauptknopf).
            --go / --stay (+ -soft Fläche, -ink Text auf -soft): Gehen vorn / Bleiben vorn.
            --ampel-gruen|gelb|blau|rot (+ -soft). Zeitleiste --w-gehalt|luecke|alg|neu|selbst (+ --w-selbst-ink).
            Beträge in --ink mit Vorzeichen; Farbe nur an Markern, Balken und Flächen. Kontrast Text ≥ 4,5:1, hell und dunkel.
   Muster   .muster-schraffur (Lücke, Negatives), .muster-punkte (selbständig); als var(--muster-…) für background-image.
   Bausteine (Beispiele im Abschnitt „Bausteine Design 6“ am Ende der Datei):
            .karte (+ .dunkel .info .frist .akzent .flach), .karte-kopf, .ueberzeile, .pille (+ .akzent .mint .info .frist .dunkel),
            .wirkung (Wirkungs-Pille „+1,6 Monate“, .neg), .kennzahlen > .kennzahl (.l .v .c, .haupt), .fortschritt > i,
            .segmentbalken > i.s1|s2|s3 (+ .segment-legende), .wahlkacheln > .wahlkachel (.wk-radio .wk-ic .wk-t .etikett),
            .chips > .chip (+ .betrag), .regler-kopf + .wertbadge, .geldfeld + .einheit, .schalter (role="switch"),
            .hebelzeile (.hz-ic .hz-t .wirkung .schalter), .umschalter, .vonnach, .summenleiste, .fristbanner, .wertzeilen,
            .stepper, .kopfzeile, .seitenfuss (dunkler Fuß).
   Handy    .aktionsleiste  feste Leiste unten (< 960 px), sonst sticky; Kinder .btn, .btn.ghost/.zurueck, .rechts, .kz (Kennzahl).
                            Der Bildschirm darüber bekommt .platz-unten (Abstand samt safe-area).
            .reiter-unten   Reiter: < 960 px feste Leiste unten (Symbol über Text), darüber eine Reihe;
                            Knöpfe mit aria-selected="true" oder aria-current="page".
            dialog.blatt    Bottom-Sheet (showModal), darin .blatt-kopf (h2 + Schließen) und .blatt-inhalt.
            .chips > .chip  Auswahl mit aria-pressed="true"; .chip.gestrichelt; darin .ic, .punkt (Farbpunkt), .delta.
            .segmente       Fortschritt: <i class="fertig">, <i class="jetzt">, <i>.
            .kpis > .kpi    Kennzahl: .l Bezeichnung, .v Wert, .c Einordnung; .kpi.breit über alle Spalten.
            .ampel.gruen|gelb|blau|rot  Etikett mit Symbol: <span class="ampel gelb"><i aria-hidden="true">~</i>Text</span>.
            details.mehr    Zeile mit Kennzahl rechts: summary > span (Titel, small) + b (Kennzahl); Inhalt in .inhalt.
   Bewegung .wachse-x / .wachse-y (per wachse(el) aus motion.js, Ursprung über --ursprung), .weich für left/width/transform.
            Alles aus bei prefers-reduced-motion (base.css).
   Sonst    .sr-only (nur für Screenreader), .zahl (Tabellenziffern).
   ================================================================ */
:root {
  --bg: #F8F9FF; --surface: #FFFFFF; --surface-2: #F1F4FB; --ink: #131B2E; --muted: #586176; --line: #E2E7F0;
  --accent: #006A61; --accent-ink: #FFFFFF; --accent-soft: #E7FCFA; --accent-soft-2: #C2F8F1; --mint: #7FE3C8; --deep: #131B2E; --lime: #7FE3C8;
  --navy: #131B2E; --navy-2: #222C45; --on-navy: #FFFFFF; --on-navy-2: #B9C2D8; --btn: #131B2E; --btn-ink: #FFFFFF;
  --info-soft: #EFF4FF; --info-soft-2: #E5EEFF; --info-ink: #2B4C8C; --frist-soft: #FFFBEB; --frist-line: #F0C163; --frist-ink: #7A4300;
  --ink-2: #4A5469; --bar: #CDD4E2; --pos: #0E7C66; --neg: #AE5609; --held: #99570F; --held-soft: #FBEEDC; --gain: #0B6E55; --gain-soft: #E3F7EF; --warn: #B8372D; --warn-soft: #FCE5E2;
  --focus: #00897B;
  /* Entscheidung: Gehen vorn / Bleiben vorn (CVD: Petrol gegen Orange); -ink für Text auf -soft */
  --go: #0E7C66; --go-soft: #E7FCFA; --go-ink: #00594F; --stay: #AE5609; --stay-soft: #FBEDE3; --stay-ink: #8C4407;
  /* Ampel für die fünf Urteilsfälle: Text/Symbol auf -soft jeweils ≥ 4,5:1 */
  --ampel-gruen: #0B6E55; --ampel-gruen-soft: #E3F7EF; --ampel-gelb: #7A4D00; --ampel-gelb-soft: #FFF4D1;
  --ampel-blau: #2B4C8C; --ampel-blau-soft: #E5EEFF; --ampel-rot: #B8372D; --ampel-rot-soft: #FCE5E2;
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 14px; --r-lg: 18px;
  --shadow: 0 1px 2px rgba(19, 27, 46, .04), 0 8px 24px -14px rgba(19, 27, 46, .14);
  --hero-grad: linear-gradient(140deg, #222C45 0%, #131B2E 65%);
  --prem: #4B3AA8; --prem-soft: #ECE9FB; --prem-line: #8E80DA;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #0A0F1C; --surface: #131A2B; --surface-2: #1A2236; --ink: #E8ECF6; --muted: #9AA3B9; --line: #263049;
  --accent: #5ED6C5; --accent-ink: #03201C; --accent-soft: #0F2B2D; --accent-soft-2: #134240; --mint: #7FE3C8; --deep: #1C2642; --lime: #7FE3C8;
  --navy: #1C2642; --navy-2: #26325A; --on-navy: #FFFFFF; --on-navy-2: #BAC4DC; --btn: #5ED6C5; --btn-ink: #03201C;
  --info-soft: #152039; --info-soft-2: #1B2948; --info-ink: #AFC6F4; --frist-soft: #2A2312; --frist-line: #7C5D1D; --frist-ink: #F6D58C;
  --ink-2: #B5BDD0; --bar: #3D4864; --pos: #3CB59A; --neg: #DA6C0B; --held: #E3A15A; --held-soft: #36281A; --gain: #5FD1A6; --gain-soft: #12302A; --warn: #F08A80; --warn-soft: #3A1F1D;
  --go: #3CB59A; --go-soft: #0F2B2D; --go-ink: #6FDCC4; --stay: #DA6C0B; --stay-soft: #33231A; --stay-ink: #F29A55;
  --ampel-gruen: #5FD1A6; --ampel-gruen-soft: #12302A; --ampel-gelb: #F5DE9A; --ampel-gelb-soft: #3A3218;
  --ampel-blau: #A9C2F2; --ampel-blau-soft: #1B2640; --ampel-rot: #F08A80; --ampel-rot-soft: #3A1F1D;
  --focus: #7FE3C8; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .55); --hero-grad: linear-gradient(140deg, #26325A 0%, #1C2642 65%); color-scheme: dark; --prem: #B9AEFF; --prem-soft: #241F45; --prem-line: #7A6FC4;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0F1C; --surface: #131A2B; --surface-2: #1A2236; --ink: #E8ECF6; --muted: #9AA3B9; --line: #263049;
  --accent: #5ED6C5; --accent-ink: #03201C; --accent-soft: #0F2B2D; --accent-soft-2: #134240; --mint: #7FE3C8; --deep: #1C2642; --lime: #7FE3C8;
  --navy: #1C2642; --navy-2: #26325A; --on-navy: #FFFFFF; --on-navy-2: #BAC4DC; --btn: #5ED6C5; --btn-ink: #03201C;
  --info-soft: #152039; --info-soft-2: #1B2948; --info-ink: #AFC6F4; --frist-soft: #2A2312; --frist-line: #7C5D1D; --frist-ink: #F6D58C;
  --ink-2: #B5BDD0; --bar: #3D4864; --pos: #3CB59A; --neg: #DA6C0B; --held: #E3A15A; --held-soft: #36281A; --gain: #5FD1A6; --gain-soft: #12302A; --warn: #F08A80; --warn-soft: #3A1F1D;
  --go: #3CB59A; --go-soft: #0F2B2D; --go-ink: #6FDCC4; --stay: #DA6C0B; --stay-soft: #33231A; --stay-ink: #F29A55;
  --ampel-gruen: #5FD1A6; --ampel-gruen-soft: #12302A; --ampel-gelb: #F5DE9A; --ampel-gelb-soft: #3A3218;
  --ampel-blau: #A9C2F2; --ampel-blau-soft: #1B2640; --ampel-rot: #F08A80; --ampel-rot-soft: #3A1F1D;
  --focus: #7FE3C8; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .55); --hero-grad: linear-gradient(140deg, #26325A 0%, #1C2642 65%); color-scheme: dark; --prem: #B9AEFF; --prem-soft: #241F45; --prem-line: #7A6FC4;
}
body { background: var(--bg); color: var(--ink); font: 400 .9375rem/1.55 var(--font-body); padding-inline: 12px; padding-block: 0 12px; overflow-wrap: break-word; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; overflow-wrap: break-word; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.label { font-size: .71875rem; letter-spacing: .08em; }
.note { color: var(--muted); }

/* Prototyp-Leiste */
.protobar { max-width: 1480px; margin: 0 auto; border-bottom: 0; padding: 8px 4px; }
.protobar button { background: var(--surface); border-color: var(--line); }

/* Buttons */
.btn { border-radius: 999px; padding: 11px 20px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 6px 16px -8px rgba(29, 107, 74, .6); }
.btn.big { padding: 15px 28px; font-size: 1rem; }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--ink); }
.linkbtn { color: var(--accent); }

/* Karten */
.card, .panel, .topic, .xsec, .qa, .step, .persona, .tile { border: 0; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.card { padding: 22px 24px; gap: 14px; }
.card h2 { font-size: 1.125rem; }
.cardhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 16px; }
.cardhead > div { min-width: 0; }
.cardhead .answer { font-size: .875rem; color: var(--muted); margin-top: 4px; max-width: 60ch; }
.why { background: var(--surface-2); border-radius: 14px; }
.kv div { border-radius: 14px; }

/* ---------------------------------------------------------------- Einstieg */
.start, .flowwrap { max-width: 1240px; margin: 0 auto; padding-block: 8px 48px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 1.1875rem var(--font-display); letter-spacing: -0.02em; }
.local::before { display: none; }
.personas { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.persona { padding: 18px; gap: 8px; position: relative; }
.persona:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -16px rgba(17, 26, 22, .25); }
.persona b { font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.persona b::before { content: attr(data-ini); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font: 700 .8125rem var(--font-body); flex: none; }
.persona em { background: var(--surface-2); border-radius: 12px; }

/* ---------------------------------------------------------------- Stepper */
.steps-nav { display: grid; gap: 2px; }
.steps-nav button { border: 0; border-radius: 12px; padding: 9px 12px; font-size: .875rem; font-weight: 500; display: flex; align-items: center; gap: 10px; background: none; }
.steps-nav button .ic { width: 28px; height: 28px; padding: 5px; border-radius: 9px; background: var(--surface-2); color: var(--muted); }
.steps-nav button span { display: grid; text-align: left; }
.steps-nav button.done { background: none; color: var(--ink); }
.steps-nav button.done .ic { background: var(--accent); color: var(--accent-ink); }
.steps-nav button.now { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.steps-nav button.now .ic { background: var(--accent); color: var(--accent-ink); }
.step { padding: clamp(22px, 4vw, 36px); border-radius: 28px; }
.step h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); letter-spacing: -0.03em; }
.opt { border-radius: 16px; border-color: var(--line); }
.opt[aria-checked="true"] { box-shadow: 0 0 0 1px var(--accent) inset; }
.money { border-bottom-width: 0; background: var(--surface-2); border-radius: 16px; padding: 10px 16px; }
.money:focus-within { box-shadow: 0 0 0 2px var(--accent) inset; }
.textin, select { border-radius: 12px; background: var(--surface-2); border-color: transparent; }
.textin:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.phase { border-radius: 16px; border-color: var(--line); }

/* ---------------------------------------------------------------- App-Rahmen Ergebnis */

.content { display: grid; gap: 16px; min-width: 0; }
.search { flex: 1 1 280px; max-width: 460px; display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 999px; padding: 11px 16px; box-shadow: var(--shadow); color: var(--muted); }
.search input { border: 0; background: transparent; font: inherit; color: var(--ink); width: 100%; min-width: 0; }
.search input:focus { outline: none; }
.search:focus-within { box-shadow: 0 0 0 2px var(--accent); }

.main { display: grid; gap: 16px; min-width: 0; }
.example { background: var(--surface); border: 0; box-shadow: var(--shadow); border-radius: 18px; }
.pagehint { padding: 4px; display: grid; gap: 4px; }
.pagehint h2 { font-size: 1.375rem; }

/* Stellschrauben als Werkzeugleiste */
.stell { border-radius: var(--r-lg); }
.stell-head h2 { font-size: 1rem; }
.stell-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.stell-grid .in input[type="text"], .stell-grid .in input[type="date"], .stell-grid .in select { border: 1px solid transparent; background: var(--surface-2); border-radius: 12px; }
.stell-grid .in input:focus, .stell-grid .in select:focus { border-color: var(--accent); outline: none; }

/* ---------------------------------------------------------------- Kennzahlen */
.tiles { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-auto-rows: minmax(150px, auto); gap: 16px; }
.tile { padding: 20px 22px; gap: 8px; position: relative; overflow: hidden; }
.tile:hover { border: 0; box-shadow: 0 18px 38px -18px rgba(17, 26, 22, .28); }
.tile .thead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tile .label { text-transform: none; letter-spacing: 0; font-size: .875rem; font-weight: 600; color: var(--ink); }
.tile .tic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.tile .val { font: 800 1.875rem/1.1 var(--font-display); letter-spacing: -0.03em; margin-top: 6px; }
.tile .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tile .pill { font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 3px 9px; letter-spacing: 0; }
.tile .pill.up { background: var(--gain-soft); color: var(--gain); }
.tile .pill.down { background: var(--warn-soft); color: var(--warn); }
.tile .pill.neutral { background: var(--surface-2); color: var(--muted); }
.tile .ctx { font-size: .8125rem; }
.tile > .row:has(+ .more) { padding-right: 36px; } /* nicht unter den Pfeil-Knopf laufen */
.tile .more { position: absolute; right: 18px; bottom: 16px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 0; color: var(--ink); }
.tile .more::after { content: "↗"; font-size: .875rem; }
.tile.alarm .val { color: var(--warn); }
.tile.good .val { color: var(--gain); }
.tile.hero { grid-row: span 2; background: var(--hero-grad); color: #fff; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.tile.hero .label, .tile.hero .val { color: #fff; }
.tile.hero .tic { background: rgba(255, 255, 255, .14); color: var(--lime); }
.tile.hero .val { font-size: clamp(2.5rem, 4.6vw, 3.75rem); letter-spacing: -0.04em; margin-top: auto; }
.tile.hero .ctx { color: rgba(255, 255, 255, .78); font-size: .875rem; }
.tile.hero .more { border-color: rgba(255, 255, 255, .3); color: #fff; background: rgba(255, 255, 255, .08); }
.tile.hero .pill.neutral { background: rgba(255, 255, 255, .14); color: var(--lime); }
.tile.hero .track { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); overflow: hidden; margin-top: 12px; }
.tile.hero .track i { display: block; height: 100%; border-radius: 999px; background: repeating-linear-gradient(135deg, var(--lime) 0 8px, #B3DB5B 8px 16px); }
.tile.hero .trackleg { display: flex; justify-content: space-between; font-size: .75rem; color: rgba(255, 255, 255, .7); margin-top: 6px; }
.tile.hero.alarm .val { color: #FFD1CC; }

/* Diagramm und Bilanz */
.split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.chartbox { position: relative; }
.tip { position: absolute; pointer-events: none; background: var(--surface); border-radius: 14px; box-shadow: 0 12px 30px -10px rgba(17, 26, 22, .35); padding: 10px 12px; font-size: .78125rem; display: grid; gap: 3px; min-width: 190px; transform: translate(-50%, -110%); border: 1px solid var(--line); }
.tip b { font-size: .75rem; color: var(--muted); font-weight: 600; }
.tip span { display: flex; align-items: center; gap: 8px; }
.tip span i { width: 14px; height: 3px; border-radius: 2px; }
.tip span em { font-style: normal; margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.horizon { background: var(--surface-2); border-radius: 999px; padding: 4px; }
.horizon button { border: 0; background: none; padding: 6px 12px; font-weight: 600; color: var(--muted); }
.horizon button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.bilanzcard { display: flex; flex-direction: column; }
.bilanzcard .kv { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.bilanzcard .kv div { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--surface-2); padding: 12px 14px; }
.bilanzcard .kv span { font-size: .84375rem; color: var(--muted); }
.bilanzcard .kv b { font-size: 1.0625rem; }
.bilanzcard .linkbtn { margin-top: auto; padding-top: 6px; }

/* Hinweise */
.warns { gap: 0; }
.warn { border: 0; border-left: 0; border-radius: 0; box-shadow: none; padding: 14px 0; border-bottom: 1px solid var(--line); grid-template-columns: 36px minmax(0, 1fr) auto; }
.warn:last-child { border-bottom: 0; }
.warn .ic, .warn > .ic { width: 32px; height: 32px; border-radius: 10px; }
.warn .amt { font-size: .9375rem; }

/* Themen, Fragen, Experte */
.topics { gap: 12px; }
.topic > summary { padding: 18px 22px; }
.topic[open] > summary { border-bottom-color: var(--line); }
.topic .pill.rel { background: var(--accent-soft); color: var(--accent); }
.xgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 12px; align-items: start; }
.xsec > summary { padding: 16px 20px; }
.qa { border-radius: 16px; }
.qtools { gap: 12px; }
.tbl th { font-size: .71875rem; }
.tbl tr.me td { color: var(--accent); }
.disclaimer { border-top: 0; background: var(--surface); border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow); }

/* Angaben als Schublade */
.backdrop { position: fixed; inset: 0; background: rgba(8, 14, 11, .35); z-index: 20; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--bg); z-index: 21; overflow: auto; padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px calc(env(safe-area-inset-bottom, 0px) + 24px); transform: translateX(100%); transition: transform .25s ease; display: grid; gap: 12px; align-content: start; box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .3); }
body.angaben-offen .drawer { transform: none; }
.drawerhead { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 0; }
.drawerhead h2 { font-size: 1.25rem; }
.drawer .panel { padding: 18px; border-radius: var(--r-lg); }
.drawer #form > h2 { display: none; }
.drawer .in input[type="text"], .drawer .in select, .drawer .in input[type="date"] { border-radius: 10px; }
.fab { display: none; }

/* Stellschrauben eingeklappt */
.stell-head { align-items: center; }
.stell-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.stell-chips span { font-size: .78125rem; font-weight: 600; background: var(--surface-2); color: var(--ink); border-radius: 999px; padding: 4px 10px; }
.stell.zu .stell-grid { display: none; }
.stell.zu { gap: 0; }
/* Breite Kachel am Ende */
.tile.w3 { grid-column: 1 / -1; }
.tile.s2 { grid-column: span 2; }

@media (max-width: 1180px) {
  .tile.w3, .tile.s2 { grid-column: auto; }
  .tile.w2 { grid-column: 1 / -1; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile.hero { grid-column: 1 / -1; grid-row: auto; min-height: 220px; }
  .split, .split.even { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .steps-nav { display: flex; flex-wrap: wrap; }
  .steps-nav button { padding: 5px 9px; font-size: .78125rem; }
  .personas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .personas { grid-template-columns: minmax(0, 1fr); }
  .search { max-width: none; }
  .xgrid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 18px; }
}

/* Szenarien */
#szmetric { border: 0; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
#szmetric button { flex: 0 0 auto; background: none; border-radius: 999px; padding: 7px 14px; font-size: .8125rem; color: var(--muted); }
#szmetric button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(17, 26, 22, .12); }
.szbars { position: relative; display: grid; gap: 4px; margin-top: 14px; }
.szrow { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr) 160px; gap: 16px; align-items: center; padding: 10px 12px; border-radius: 16px; outline: none; }
.szrow:hover, .szrow:focus-visible { background: var(--surface-2); }
.szrow.me { background: var(--accent-soft); }
.szname { display: grid; gap: 1px; min-width: 0; }
.szname b { font-size: .90625rem; display: flex; align-items: center; gap: 8px; }
.szname small { color: var(--muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vorn { font-size: .65625rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--lime); color: var(--deep); border-radius: 999px; padding: 2px 8px; }
.sztrack { position: relative; height: 26px; }
.sztrack .zero { position: absolute; top: -4px; bottom: -4px; width: 1.5px; background: var(--muted); }
.szbar { position: absolute; top: 3px; bottom: 3px; background: var(--bar); border-radius: 0 6px 6px 0; }
.szbar.neg, .szrow.me .szbar.neg { border-radius: 6px 0 0 6px; background: var(--neg); }
.szrow.me .szbar { background: var(--accent); }
.szval, .szval.neg { color: var(--ink); text-align: right; font: 700 .9375rem var(--font-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.szbars .tip { transform: translate(-50%, 4px); z-index: 3; min-width: 250px; }
.sztbl { margin-top: 10px; }
.sztbl > summary { cursor: pointer; font-size: .84375rem; font-weight: 600; color: var(--accent); padding: 6px 0; }
.szmulti { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; margin-top: 14px; }
.mini { background: var(--surface-2); border-radius: 18px; padding: 14px 14px 12px; display: grid; gap: 6px; min-width: 0; }
.mini.me { background: var(--accent-soft); }
.mini .mh { display: grid; gap: 2px; }
.mini .mh b { font-size: .875rem; }
.mini .mv { font-size: .78125rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini svg { width: 100%; height: 110px; display: block; cursor: crosshair; touch-action: pan-y; }
.mini .mx { display: flex; justify-content: space-between; font-size: .6875rem; color: var(--muted); }
.mini small { font-size: .75rem; color: var(--muted); }
.hebel { gap: 4px; }
.hebel .h { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 96px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.hebel .h:last-child { border-bottom: 0; }
.hebel .hax { border-bottom: 0; padding: 0; }
.hebel .axl { display: flex; justify-content: space-between; font-size: .6875rem; color: var(--muted); }
.hebel .axl em { font-style: normal; }
.hebel .track { height: 16px; background: none; border-radius: 0; }
.hebel .track::after { background: var(--muted); width: 1.5px; }
.hebel .track i { top: 2px; bottom: 2px; }
.hebel .track i.p { background: var(--pos); border-radius: 0 5px 5px 0; }
.hebel .track i.n { background: var(--neg); border-radius: 5px 0 0 5px; }
.hebel .v { color: var(--ink); }
.bilanz2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 6px; }
.bz { background: var(--surface-2); border-radius: 18px; padding: 14px 16px; display: grid; gap: 4px; align-content: start; }
.bz > span:first-child { font-size: .78125rem; color: var(--muted); font-weight: 600; }
.bz b { font: 800 1.5rem var(--font-body); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.bz b .von { font-size: .75rem; color: var(--muted); font-weight: 600; }
.bz small { font-size: .75rem; color: var(--muted); }
.gauge { position: relative; height: 10px; background: var(--surface); border-radius: 99px; margin: 4px 0; }
.gauge::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1.5px; background: var(--muted); }
.gauge i { position: absolute; top: 0; bottom: 0; }
.gauge i.p { background: var(--pos); border-radius: 0 99px 99px 0; }
.gauge i.n { background: var(--neg); border-radius: 99px 0 0 99px; }
.bzt { grid-column: 1 / -1; font-size: .875rem; margin: 4px 0 0; }
@media (max-width: 760px) {
  .szrow { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .sztrack { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 560px) {
  .hebel .h { grid-template-columns: minmax(0, 1fr) auto; }
  .bilanz2 { grid-template-columns: minmax(0, 1fr); }
  #szmetric button { padding: 6px 10px; }
}
.fehlt { color: var(--ink); }
.fehlt::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--neg); margin-right: 6px; vertical-align: 1px; }
.szlegend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .78125rem; color: var(--muted); margin: 8px 12px 0; }
.szlegend span { display: inline-flex; align-items: center; gap: 6px; }
.szlegend .sw { width: 12px; height: 12px; border-radius: 3px; background: var(--bar); }
.szlegend .sw.neg { background: var(--neg); }
.szrow .szbar.neg, .szrow.me .szbar.neg { background: var(--neg); }
.szax { padding-top: 0; padding-bottom: 0; }
.szax:hover { background: none; }
.szax .sztrack { height: 18px; }
.szax .zl { position: absolute; transform: translateX(-50%); font-size: .71875rem; font-weight: 700; color: var(--ink); top: 0; white-space: nowrap; }
.szax .axl, .szax .axr { position: absolute; top: 1px; font-style: normal; font-size: .6875rem; color: var(--muted); white-space: nowrap; }
.szax .axl { margin-right: 26px; }
.szax .axr { margin-left: 26px; }
.steps-nav button { color: var(--muted); text-align: left; cursor: pointer; font: inherit; font-size: .875rem; }
.steps-nav button:hover { background: var(--surface-2); }
.steps-nav button.skip { color: var(--muted); }
.steps-nav button.skip::before { border-style: dashed; }
.steps-nav button small { margin-left: auto; font-size: .6875rem; color: var(--muted); font-weight: 500; }

/* Kostenlos und Premium */
/* Nur Prototyp, vor dem Start entfernen: Testansicht Kostenlos/Premium in der Prototyp-Leiste */
.pw-demo { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: .8125rem; color: var(--ink); font-weight: 600; padding: 4px 4px 4px 10px; border: 1px dashed var(--line); border-radius: 16px; max-width: 100%; }
.protobar .pw-demo button { font-size: .8125rem; padding: 5px 12px; min-height: 32px; color: var(--ink); font-weight: 600; }
.protobar .pw-demo button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pw-side { margin-top: auto; }
.pw-side-btn { width: 100%; justify-content: center; font-size: .875rem; }
.pw-aktiv { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 7px 12px; }
.pw-card { display: grid; gap: 14px; border: 2px solid var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%); }
.pw-card h2 { font-size: 1.25rem; }
.pw-lead { margin: 6px 0 0; color: var(--ink-2); }
.pw-hebel { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.pw-hebel li { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); }
.pw-hebel li span { flex: 1; font-size: .84375rem; }
.pw-hebel li b { font-variant-numeric: tabular-nums; }
.pw-hebel li .ic { width: 14px; height: 14px; color: var(--muted); }
.pw-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.lock { position: relative; }
.lock-inhalt { filter: blur(5px); user-select: none; pointer-events: none; max-height: 220px; overflow: hidden; }
.lock-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: .84375rem; background: var(--ink); color: var(--bg); box-shadow: var(--shadow); cursor: pointer; white-space: nowrap; }
.lock-btn .ic { width: 14px; height: 14px; }
.warn .lock-inhalt { max-height: 60px; }
.warn .lock-btn { position: static; transform: none; margin-top: 6px; padding: 6px 12px; font-size: .78125rem; }
.warn .lock { display: grid; }
.reiter-gesperrt { position: relative; }
.reiter-gesperrt > :not(.pw-overlay) { filter: blur(6px); user-select: none; pointer-events: none; }
.pw-overlay { position: sticky; top: 12px; z-index: 5; }
.pw-dialog { border: 0; border-radius: 24px; padding: 28px; max-width: 560px; width: calc(100% - 32px); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); }
.pw-dialog::backdrop { background: rgba(10, 20, 15, .5); }
.pw-dialog h2 { font-size: 1.375rem; padding-right: 40px; }
.pw-zu { position: absolute; top: 16px; right: 16px; }
#pw-dialog-inhalt { display: grid; gap: 12px; }
.pw-liste { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.pw-preis { margin: 0; font-size: .9375rem; }
.pw-vertrauen { list-style: none; margin: 0; padding: 12px 14px; display: grid; gap: 6px; font-size: .8125rem; color: var(--ink-2); background: var(--surface-2); border-radius: 14px; }
.pw-vertrauen .ic { width: 13px; height: 13px; margin-right: 6px; vertical-align: -2px; }
.pw-check { display: flex; gap: 10px; align-items: flex-start; font-size: .8125rem; }
.pw-check input { margin-top: 3px; }
.pw-kaufen { justify-content: center; }
.pw-kaufen:disabled { opacity: .45; cursor: not-allowed; }
.pw-schluessel summary { cursor: pointer; font-size: .84375rem; font-weight: 600; color: var(--accent); }
.pw-schluessel-feld { display: flex; gap: 8px; margin-top: 8px; }
.pw-schluessel-feld input { flex: 1; min-width: 0; font: .8125rem ui-monospace, monospace; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); }
/* „Premium wieder freischalten“: sichtbares Label, Feld und Knopf mit 44 px, Fehler in Warnfarbe */
.pw-frei-feld { display: grid; gap: 6px; }
.pw-frei-lab { font-weight: 600; font-size: .9375rem; }
.pw-frei .pw-schluessel-feld { margin-top: 0; }
.pw-frei .pw-schluessel-feld input { min-height: 44px; font-size: 1rem; }
.pw-frei .pw-schluessel-feld input[aria-invalid="true"] { border-color: var(--warn); }
.pw-frei .pw-schluessel-feld .btn { min-height: 44px; justify-content: center; }
.pw-frei-meldung:empty { display: none; }
.pw-frei-meldung { margin: 0; }
.pw-frei a { color: var(--accent); }
.pw-frei-feld:has(input[aria-invalid="true"]) .pw-frei-meldung { color: var(--warn); font-weight: 600; }
@media (max-width: 420px) { .pw-frei .pw-schluessel-feld { flex-direction: column; } }
@media (max-width: 560px) { .pw-dialog { padding: 22px 18px; } .pw-fuss .btn { width: 100%; justify-content: center; } }

/* Bericht zum Ausdrucken */
.druckleiste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; }
.bericht { display: none; }
/* Druck des Berichts: bericht.css */

/* Speichern und laden */
.fortsetzen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 18px; padding: 14px 16px; border-radius: 18px; background: var(--accent-soft); }
.fortsetzen b { display: block; font-size: .90625rem; }
.fortsetzen span { font-size: .8125rem; color: var(--ink-2); }
.fortsetzen-knoepfe { display: flex; align-items: center; gap: 12px; }
.datei-laden { margin-top: 10px; font-size: .84375rem; }
.toast { position: fixed; left: 16px; right: 16px; margin-inline: auto; width: fit-content; bottom: 24px; z-index: 50; background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 16px; font-size: .875rem; box-shadow: var(--shadow); max-width: min(560px, calc(100% - 32px)); }
/* Rückfrage, die stehen bleibt (Merken): oben, damit sie weder Antworten noch „Weiter“ verdeckt */
.toast.toast-oben { top: calc(12px + env(safe-area-inset-top, 0px)); bottom: auto !important; }
@media print { .toast { display: none !important; } }

/* Hinweise: keine Beratung, Fehler möglich */
.kurzhinweis { font-size: .78125rem; color: var(--muted); margin: 8px 0 0; }
.kurzhinweis a { color: var(--accent); }
.start-hinweis { font-size: .8125rem; color: var(--muted); max-width: 90ch; margin: 18px auto 0; padding: 0 8px; }
.flow-hinweis { font-size: .75rem; color: var(--muted); margin: 0; }

/* Methodenseite */
.doku { padding: 24px 16px 48px; }
.doku .kopfzeile { margin: -24px -16px 24px; }
.doku-inhalt { max-width: 760px; margin: 0 auto; background: var(--surface); border-radius: 24px; padding: clamp(20px, 4vw, 44px); box-shadow: var(--shadow); line-height: 1.6; }
.doku-inhalt h1 { font-size: clamp(1.75rem, 5vw, 2.375rem); margin-bottom: 4px; }
.doku-inhalt h2 { font-size: 1.25rem; margin: 28px 0 8px; }
.doku-inhalt ul { padding-left: 20px; display: grid; gap: 6px; }
.doku-inhalt a { color: var(--accent); }
.doku-stand { color: var(--muted); font-size: .875rem; margin-top: 0; }
.doku-tab { width: 100%; border-collapse: collapse; font-size: .875rem; }
.doku-tab th, .doku-tab td { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doku-tab th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.start-hinweis a { color: var(--accent); }

/* Landingpage unter dem Einstieg, statische Seiten, Kopf und Fuß */
a.brand { color: inherit; text-decoration: none; }
.landing { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 30px; }
.l-block { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(20px, 3.5vw, 36px); line-height: 1.6; }
.l-block h2 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); margin-bottom: 10px; }
.l-block h3 { font-size: 1.0625rem; margin: 18px 0 4px; }
.l-block a { color: var(--accent); }
.l-antwort { font-size: 1.0625rem; }
.l-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: 14px; }
.l-karte { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.l-karte h3 { margin-top: 0; }
.l-karte ul { padding-left: 20px; display: grid; gap: 4px; }
.l-premium { border-color: var(--accent); }
.l-klein { font-size: .875rem; color: var(--muted); margin: 10px 0 0; }
.l-tabelle { overflow-x: auto; margin: 10px 0; }
.faq h3 { font-size: 1rem; }
.seitenkopf { max-width: 760px; margin: 0 auto 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.seitenkopf-cta { text-decoration: none; }
.kruemel { font-size: .875rem; color: var(--muted); margin-bottom: 14px; }
.kruemel a { color: var(--muted); }
.doku-inhalt .lead { font-size: 1.125rem; }
.doku-inhalt h3 { font-size: 1.0625rem; margin: 20px 0 6px; }
.doku-inhalt ol { padding-left: 22px; display: grid; gap: 6px; }
.doku-inhalt .doku-tab { display: block; overflow-x: auto; }
.doku-inhalt .doku-tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Absätze im Fließtext mit Abstand (base.css setzt p auf margin 0) */
.doku-inhalt p + p, .doku-inhalt p + ul, .doku-inhalt p + ol, .doku-inhalt ul + p, .doku-inhalt ol + p, .doku-inhalt .doku-tab + p, .doku-inhalt p + .doku-tab { margin-top: .75em; }
.doku-hinweis { margin-top: 26px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); font-size: .875rem; color: var(--muted); }
.cta-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 18px; border-radius: 16px; background: var(--accent-soft); margin: 24px 0; }
.cta-box .btn { color: var(--accent-ink); text-decoration: none; }
.cta-box span { font-size: .875rem; color: var(--muted); }
.ratgeber-liste { list-style: none; padding: 0 !important; display: grid; gap: 12px !important; }
.ratgeber-liste li { display: grid; gap: 2px; }
.ratgeber-liste a { font-weight: 600; }
.ratgeber-liste span { font-size: .875rem; color: var(--muted); }
/* Fünftelregelung-Rechner */
.fr { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px 16px; padding: 18px; border-radius: 16px; background: var(--surface-2); margin: 18px 0 12px; }
.fr label { display: grid; gap: 4px; font-size: .875rem; font-weight: 600; }
.fr select, .fr input:not([type]) , .fr input[inputmode] { font: inherit; font-weight: 500; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.fr .fr-check { display: flex; align-items: center; gap: 8px; font-weight: 500; min-height: 44px; }
.fr .fr-check input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--accent); }
.fr [hidden] { display: none; }
.fr-ergebnis { display: grid; gap: 6px; }
.fr-ergebnis div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fr-ergebnis b { white-space: nowrap; }
.fr-haupt { font-size: 1.125rem; color: var(--accent); }
.fr-fuss { font-size: .8125rem; color: var(--muted); }
@media print { .landing, .seitenfuss { display: none; } }
.fehlt { background: #FDE68A; color: #713F12; padding: 0 4px; border-radius: 4px; }

/* ---------------------------------------------------------------- Fragen: Icons, Info, Weiß ich nicht, Monatswähler, Regler */
.step-kopf { display: flex; align-items: center; gap: 14px; }
.step-ic { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.step-ic .ic { width: 28px; height: 28px; stroke-width: 1.6; }
.warum { background: var(--surface-2); border-radius: 14px; padding: 0 14px; font-size: .875rem; color: var(--muted); }
.warum summary { cursor: pointer; padding: 10px 0; display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); list-style: none; }
.warum summary::-webkit-details-marker { display: none; }
.warum p { margin: 0 0 12px; }
.field { gap: 10px; padding-bottom: 6px; }
.fkopf { display: flex; align-items: flex-start; gap: 8px; }
.fkopf .flabel { flex: 1; font-size: 1rem; }
.info-i { flex: none; width: 30px; height: 30px; margin: -4px 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: none; color: var(--muted); cursor: pointer; }
.info-i:hover, .info-i[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent); }
.field .helpdoc { font-size: .875rem; line-height: 1.5; background: var(--surface-2); border-left: 0; border-radius: 12px; padding: 10px 14px; color: var(--ink); }
.field .helpdoc a { color: var(--accent); }
.wn { justify-self: start; display: inline-flex; align-items: center; gap: 6px; border: 1px dashed var(--line); border-radius: 999px; padding: 5px 12px 5px 8px; background: none; font-size: .8125rem; color: var(--muted); cursor: pointer; }
.wn .ic { width: 16px; height: 16px; }
.wn[aria-pressed="true"] { border-style: solid; border-color: #C9A227; background: #FFF6D6; color: #6B5310; }
.wn-text { margin: -2px 0 0; font-size: .875rem; line-height: 1.5; padding: 10px 14px; border-radius: 12px; background: #FFF6D6; color: #5C4710; }
.ist-unbekannt .opts, .ist-unbekannt .money, .ist-unbekannt .monat, .ist-unbekannt select, .ist-unbekannt .regler { opacity: .55; }
.opts.kacheln { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.opts.kacheln.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts.kacheln .opt { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; min-height: 100%; }
.opt-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.opt-ic .ic { width: 22px; height: 22px; }
.opt[aria-checked="true"] .opt-ic { background: var(--accent); color: var(--accent-ink); }
.opts:not(.kacheln) .opt-ic { width: 32px; height: 32px; }
.regler { width: 100%; accent-color: var(--accent); height: 28px; margin: -4px 0 0; }
.monat { display: grid; gap: 10px; }
.monat-jahre { display: flex; flex-wrap: wrap; gap: 6px; }
.monat-jahre button, .monat-grid button { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: .875rem; cursor: pointer; color: var(--ink); }
.monat-jahre button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); font-weight: 600; }
.monat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.monat-grid button { padding: 10px 0; }
.monat-grid button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.monat-grid button:disabled { opacity: .35; cursor: default; }
@media (max-width: 560px) { .monat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .opts.kacheln.n2 { grid-template-columns: minmax(0, 1fr); } }
/* Empfehlungen mit Balken */
.empfehlung { background: var(--surface-2); border-radius: 16px; padding: 14px 16px; display: grid; gap: 8px; font-size: .875rem; }
.empfehlung p { margin: 0; line-height: 1.5; }
.emp-kopf { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.emp-kopf .ic { color: var(--accent); }
.balken { display: flex; align-items: flex-end; gap: 3px; height: 72px; }
.balken span { flex: 1; min-width: 4px; border-radius: 4px 4px 0 0; background: var(--line); }
.balken span.eigen { background: var(--muted); }
.balken span.best { background: var(--accent); }
.balken-achse { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: -4px; }
/* Zeitleiste Kündigungsfrist */
.zeitleiste { background: var(--surface-2); border-radius: 16px; padding: 44px 18px 14px; font-size: .875rem; }
.zeitleiste p { margin: 0; line-height: 1.5; }
/* Platz für zweizeilige Beschriftungen unter der Bahn: an der Bahn selbst, damit fremde Absatz-Regeln (etwa im Seitenblatt) ihn nicht wegnehmen */
.zl-bahn { position: relative; height: 6px; border-radius: 3px; background: var(--line); margin-bottom: calc(18px + 2.4rem); }
.zl-luecke { position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: 3px; }
.zl-luecke.rot { background: #C2410C; }
.zl-punkt { position: absolute; top: -4px; transform: translateX(-50%); display: grid; justify-items: center; font-size: .75rem; color: var(--muted); white-space: nowrap; padding-top: 18px; }
.zl-punkt::before { content: ""; position: absolute; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--muted); }
.zl-punkt b { color: var(--ink); font-size: .75rem; }
.zl-punkt.eigen::before { border-color: var(--ink); }
.zl-punkt.frist::before { border-color: var(--accent); }
.zl-punkt.oben { padding-top: 0; top: auto; bottom: 14px; }
.zl-punkt.oben::before { top: auto; bottom: -18px; }
.zl-punkt.links { transform: translateX(-7px); justify-items: start; }
.zl-punkt.links::before { left: 0; }
.zl-punkt.rechts { transform: translateX(calc(-100% + 7px)); justify-items: end; }
.zl-punkt.rechts::before { right: 0; }
/* Wie sicher ist das Ergebnis? */
.sp-karte { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 20px 22px; display: grid; gap: 14px; margin-bottom: 16px; }
.sp-kopf { display: flex; gap: 12px; align-items: flex-start; }
.sp-kopf h2 { font-size: 1.125rem; margin: 0 0 2px; }
.sp-kopf p { margin: 0; color: var(--muted); font-size: .875rem; }
.sp-kopf .tic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #FFF6D6; color: #8A6A12; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px 24px; }
.sp-lab { font-size: .8125rem; color: var(--muted); }
.sp-bereich { margin-top: 8px; }
.sp-bahn { position: relative; height: 12px; }
.sp-bahn i { position: absolute; top: 3px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #E9B949, var(--accent)); opacity: .55; }
.sp-bahn b { position: absolute; top: -2px; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: var(--ink); }
.sp-achse { display: flex; justify-content: space-between; font: 600 .9375rem var(--font-display); margin-top: 4px; }
.sp-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .875rem; }
.sp-liste li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.sp-liste li > span:last-child { color: var(--muted); }
.sp-tag { font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.sp-tag.wn { background: #FFF6D6; color: #6B5310; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wn[aria-pressed="true"], :root:not([data-theme="light"]) .wn-text, :root:not([data-theme="light"]) .sp-tag.wn, :root:not([data-theme="light"]) .sp-kopf .tic { background: #3A3218; color: #F5DE9A; border-color: #6B5A22; }
}
:root[data-theme="dark"] .wn[aria-pressed="true"], :root[data-theme="dark"] .wn-text, :root[data-theme="dark"] .sp-tag.wn, :root[data-theme="dark"] .sp-kopf .tic { background: #3A3218; color: #F5DE9A; border-color: #6B5A22; }
@media print { .sp-karte .linkbtn { display: none; } }
/* ---------------------------------------------------------------- Ergebnis: Dein Weg und Wasserfall */
/* Zeitleisten-Farben, mit validate_palette.js --pairs all geprüft. Lücke immer schraffiert, selbständig immer mit Punktraster
   (Lücke und neuer Job liegen unter Protanopie nur bei ΔE 7,9, hell wie dunkel). Weiße Schrift auf Lücke, ALG, neuer Job ≥ 4,5:1;
   auf selbständig (Ocker) dunkle Schrift --w-selbst-ink. */
:root { --w-gehalt: #AEBBB5; --w-luecke: #C9422F; --w-alg: #2F6DB5; --w-neu: #237F4E; --w-selbst: #B28A00; --w-selbst-ink: #1B1400; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --w-gehalt: #56655E; --w-luecke: #C74C3D; --w-alg: #2E69B2; --w-neu: #078364; --w-selbst: #B68B16; } }
:root[data-theme="dark"] { --w-gehalt: #56655E; --w-luecke: #C74C3D; --w-alg: #2E69B2; --w-neu: #078364; --w-selbst: #B68B16; }
.viz2 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; margin: 16px 0; }
@media (max-width: 1180px) { .viz2 { grid-template-columns: minmax(0, 1fr); } }
.weg { position: relative; margin: 14px 0 6px; overflow-x: clip; }
.weg-marken { position: relative; margin-bottom: 6px; }
.weg-marke { position: absolute; transform: translateX(-2px); white-space: nowrap; font-size: .75rem; color: var(--muted); line-height: 20px; }
.weg-marke b { font-weight: 600; color: var(--ink-2); }
.weg-marke.stark b { color: var(--ink); }
.weg-marke.warn b { color: var(--warn); }
.weg-marke.rechts { transform: translateX(calc(-100% + 2px)); }
.weg-bahn { position: relative; height: 38px; border-radius: 10px; background: var(--surface-2); }
.weg-seg { position: absolute; top: 0; bottom: 0; border-right: 2px solid var(--surface); display: flex; align-items: center; padding: 0 8px; overflow: hidden; white-space: nowrap; font-size: .75rem; font-weight: 600; color: #fff; }
.weg-seg.eng { font-size: 0; }
.weg-seg:first-child { border-radius: 10px 0 0 10px; }
.weg-seg:last-of-type { border-radius: 0 10px 10px 0; border-right: 0; }
.weg-seg.job { background: var(--w-gehalt); color: var(--ink); }
.weg-seg.luecke { background-color: var(--w-luecke); background-image: var(--muster-schraffur); }
.weg-seg.alg { background: var(--w-alg); }
.weg-seg.neu { background: var(--w-neu); }
.weg-seg.selbst { background-color: var(--w-selbst); background-image: var(--muster-punkte); background-size: 6px 6px; color: var(--w-selbst-ink); }
.weg-seg.frei { background: repeating-linear-gradient(135deg, var(--bar) 0 6px, var(--surface-2) 6px 9px); color: var(--ink); }
.weg-seg.rente { background: var(--ink-2); color: var(--bg); }
.weg-strich { position: absolute; top: -6px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink-2); opacity: .55; }
.weg-strich.stark { background: var(--ink); opacity: 1; }
.weg-strich.warn { background: var(--warn); opacity: 1; }
.weg-achse { position: relative; height: 20px; margin-top: 4px; font-size: .75rem; color: var(--muted); }
.weg-achse span { position: absolute; transform: translateX(-50%); }
.weg-achse span::before { content: ""; position: absolute; left: 50%; top: -6px; height: 5px; width: 1px; background: var(--line); }
.weg-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8125rem; color: var(--muted); }
.weg-legende span { display: inline-flex; align-items: center; gap: 6px; }
.weg-legende i.weg-seg { position: static; width: 14px; height: 14px; border-radius: 4px; padding: 0; border: 0; }
.weg-fakten { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.weg-fakten span { background: var(--surface-2); border-radius: 999px; padding: 6px 12px; font-size: .8125rem; }
.wf { display: grid; gap: 10px; margin: 14px 0 8px; }
.wf-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lab wert" "bahn bahn"; gap: 4px 10px; align-items: end; font-size: .8125rem; }
.wf-lab { grid-area: lab; } .wf-wert { grid-area: wert; } .wf-bahn { grid-area: bahn; }
.wf-lab { color: var(--muted); line-height: 1.25; }
.wf-bahn { position: relative; height: 26px; }
.wf-b { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
.wf-b.brutto { background: var(--ink-2); }
.wf-b.steuer { background: repeating-linear-gradient(135deg, var(--warn) 0 6px, var(--warn-soft) 6px 9px); }
.wf-b.netto { background: var(--accent); }
.wf-b.spaeter { background: repeating-linear-gradient(135deg, var(--accent) 0 5px, var(--accent-soft) 5px 8px); }
.wf-b.netto + .wf-b.spaeter { border-radius: 0 6px 6px 0; }
.wf-verb { position: absolute; top: -22px; height: 22px; border-left: 1px dashed var(--muted); }
.wf-wert { font: 700 .9375rem var(--font-display); text-align: right; font-variant-numeric: tabular-nums; }
.wf-zeile.summe .wf-wert { font-size: 1.125rem; color: var(--accent); }
.wf-legende { display: grid; gap: 4px; font-size: .8125rem; color: var(--muted); }
.wf-legende span { display: inline-flex; align-items: center; gap: 8px; }
.wf-legende i.wf-b { position: static; display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.wf-quote { margin: 10px 0 0; font-size: .875rem; }
@media print { .viz2 { grid-template-columns: minmax(0, 1fr); } }
.vgl-zeile { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; }
.vgl-zeile span:first-child { display: grid; }
.vgl-zeile small { color: var(--muted); font-size: .75rem; }
.vgl-bahn { height: 10px; border-radius: 5px; background: var(--surface); overflow: hidden; }
.vgl-bahn i { display: block; height: 100%; min-width: 6px; border-radius: 5px; background: var(--bar); }
.vgl-zeile.best .vgl-bahn i { background: var(--accent); }
.vgl-zeile.best > b { color: var(--accent); }
/* Warum-Karte: verfügbar ÷ Lücke = Monate */
.wycard { margin-top: 16px; }
.wy-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, .8fr); gap: 12px; align-items: stretch; margin-top: 12px; }
.wy-block { background: var(--surface-2); border-radius: 16px; padding: 14px 16px; display: grid; gap: 6px; align-content: start; }
.wy-kopf { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.wy-zeile { display: flex; justify-content: space-between; gap: 10px; font-size: .875rem; }
.wy-zeile > span { min-width: 0; }
.wy-zeile b { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Beträge in Textfarbe mit Vorzeichen (−/+), keine roten und grünen Zeilen */
.wy-zeile.neg, .wy-zeile.pos, .wy-zeile.neg b, .wy-zeile.pos b { color: var(--ink); }
.wy-zeile.summe { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; font-weight: 600; }
.wy-zeile.summe b { color: var(--ink); font-size: 1rem; }
.wy-op { align-self: center; font: 700 1.625rem var(--font-display); color: var(--muted); }
.wy-erg { background: var(--accent-soft); }
.wy-erg > b { font: 750 1.625rem/1.15 var(--font-display); color: var(--accent); }
.wy-erg small { font-size: .78125rem; color: var(--muted); line-height: 1.45; }
.wy-tipp { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: .875rem; background: var(--held-soft); border-radius: 12px; padding: 10px 14px; }
.wy-tipp .ic { color: var(--held); margin-top: 2px; }
@media (max-width: 960px) { .wy-grid { grid-template-columns: minmax(0, 1fr); } .wy-op { justify-self: center; line-height: 1; } }
.mo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-top: 12px; }
.wy-zeile.summe.neg b, .wy-zeile.summe.pos b { color: var(--ink); }
.mo-vgl { font-size: .78125rem; color: var(--muted); }
.mo-lauf { margin-top: 14px; display: grid; gap: 8px; }
.mo-lauf-zeile { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 1.4fr) auto; gap: 12px; align-items: center; font-size: .875rem; }
.mo-lauf-zeile .vgl-bahn { background: var(--surface-2); }
.mo-lauf-zeile .vgl-bahn i { background: var(--accent); }
.mo-lauf-zeile b { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .mo-lauf-zeile { grid-template-columns: minmax(0, 1fr) auto; } .mo-lauf-zeile .vgl-bahn { grid-column: 1 / -1; grid-row: 2; } }
.ag-tab { margin-top: 10px; display: table; width: 100%; }
.ag-tab tr.best td { font-weight: 700; color: var(--accent); }
.ag-fazit { font-size: .875rem; margin: 10px 0 0; }

/* ================================================================
   Bausteine für Handy und Entscheidung (siehe Übersicht oben in dieser Datei)
   ================================================================ */
:root {
  --muster-schraffur: repeating-linear-gradient(135deg, rgba(0, 0, 0, .24) 0 3px, transparent 3px 7px);
  --muster-punkte: radial-gradient(rgba(0, 0, 0, .26) 1.1px, transparent 1.6px);
  --leiste-h: 52px; --platz-unten: calc(var(--leiste-h) + 20px + env(safe-area-inset-bottom, 0px));
  --kurve: cubic-bezier(.2, .8, .2, 1);
}
.muster-schraffur { background-image: var(--muster-schraffur); }
.muster-punkte { background-image: var(--muster-punkte); background-size: 6px 6px; }
/* Sprunglink „Zum Inhalt“: erstes Element jeder Seite, sichtbar, sobald er den Fokus hat (WCAG 2.4.1) */
.skip-link { position: absolute; left: 12px; top: -200px; z-index: 100; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 10px; background: var(--surface); color: var(--ink); border: 2px solid var(--accent); font-weight: 700; text-decoration: none; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }
main[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.zahl { font-variant-numeric: tabular-nums; }

/* Aktionsleiste: unter 960 px fest am unteren Rand, darüber klebt sie am Ende ihres Containers */
.aktionsleiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.aktionsleiste .btn { min-height: var(--leiste-h); justify-content: center; flex: 1 1 auto; box-shadow: none; }
.aktionsleiste .btn.ghost, .aktionsleiste .zurueck { flex: 0 0 auto; min-width: var(--leiste-h); padding-inline: 14px; }
.aktionsleiste .btn small { font-weight: 500; opacity: .85; }
.platz-unten { padding-bottom: var(--platz-unten); }
@media (min-width: 961px) {
  .aktionsleiste { position: sticky; left: auto; right: auto; border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 10px 12px; margin-top: 8px; }
  .aktionsleiste .btn { flex: 0 1 auto; }
  .aktionsleiste .rechts { margin-left: auto; }
  .platz-unten { padding-bottom: 0; }
}

/* Reiterleiste: unter 960 px unten (Daumen), darüber eine normale Reihe */
.reiter-unten { display: flex; gap: 4px; }
.reiter-unten :is(button, a) { display: flex; align-items: center; gap: 8px; border: 0; background: none; border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: .9375rem; color: var(--muted); min-height: 44px; }
.reiter-unten :is(button, a) .ic { width: 22px; height: 22px; }
.reiter-unten :is(button, a):hover { background: var(--surface-2); color: var(--ink); }
.reiter-unten :is(button, a)[aria-selected="true"], .reiter-unten :is(button, a)[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 960px) {
  .reiter-unten { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .reiter-unten :is(button, a) { flex-direction: column; justify-content: center; gap: 2px; min-height: var(--leiste-h); padding: 4px 2px; font-size: .75rem; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
}

/* Blatt (Bottom-Sheet): <dialog class="blatt"> mit showModal(); auf breiten Schirmen mittig */
dialog.blatt { margin: auto 0 0; width: 100%; max-width: 100%; max-height: min(88vh, 100% - 24px); overflow: auto; border: 0; border-radius: 24px 24px 0 0; padding: 8px 18px calc(22px + env(safe-area-inset-bottom, 0px)); background: var(--surface); color: var(--ink); box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .4); }
dialog.blatt::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--bar); margin: 0 auto 12px; }
dialog.blatt::backdrop { background: rgba(8, 14, 11, .45); }
dialog.blatt[open] { animation: blatt-rein .28s var(--kurve); }
.blatt-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.blatt-kopf h2 { font-size: 1.1875rem; }
.blatt-inhalt { display: grid; gap: 12px; font-size: .9375rem; }
@keyframes blatt-rein { from { transform: translateY(100%); } }
@media (min-width: 721px) {
  dialog.blatt { margin: auto; width: min(560px, 100% - 32px); border-radius: 24px; padding-bottom: 24px; }
  dialog.blatt::before { display: none; }
  dialog.blatt[open] { animation-name: blatt-auf; }
}
@keyframes blatt-auf { from { transform: translateY(16px); opacity: 0; } }

/* Chips: Auswahl mit aria-pressed, gestrichelt für „Weiß ich nicht“ und nicht gewählte Zusätze */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .875rem; line-height: 1.2; cursor: pointer; }
.chip .ic { width: 17px; height: 17px; color: var(--ink-2); }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.chip[aria-pressed="true"] .ic { color: var(--accent); }
.chip.gestrichelt { border-style: dashed; color: var(--muted); font-weight: 500; background: none; }
.chip .punkt { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--bar); }
.chip .delta { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* Segment-Fortschritt: <div class="segmente"><i class="fertig"></i><i class="jetzt"></i><i></i></div> */
.segmente { display: flex; gap: 3px; height: 5px; }
.segmente i { flex: 1; border-radius: 99px; background: var(--line); transition: background-color .3s; }
.segmente i.fertig { background: var(--accent); }
.segmente i.jetzt { background: linear-gradient(90deg, var(--accent) 50%, var(--line) 50%); }

/* Details-Zeile mit Kennzahl rechts: <details class="mehr"><summary><span>Titel<small>Unterzeile</small></span><b>41.193 €</b></summary><div class="inhalt">…</div></details> */
details.mehr { border-bottom: 1px solid var(--line); }
details.mehr > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; gap: 4px 12px; align-items: center; min-height: 52px; padding: 10px 2px; }
details.mehr > summary::-webkit-details-marker { display: none; }
details.mehr > summary > span { font-weight: 600; display: grid; gap: 2px; min-width: 0; }
details.mehr > summary small { font-weight: 500; font-size: .8125rem; color: var(--muted); }
details.mehr > summary > b { font: 700 1rem var(--font-display); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
details.mehr > summary::after { content: ""; width: 9px; height: 9px; justify-self: center; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
details.mehr[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
details.mehr > .inhalt { padding: 4px 2px 16px; display: grid; gap: 12px; }
@media (max-width: 420px) { details.mehr > summary { grid-template-columns: minmax(0, 1fr) 20px; } details.mehr > summary > b { grid-column: 1; grid-row: 2; text-align: left; } details.mehr > summary::after { grid-column: 2; grid-row: 1 / 3; } }

/* Bewegung (motion.js): wachse(el) und zeichneEin(pfad); bei reduzierter Bewegung greift die Regel in base.css */
.wachse-x, .wachse-y { transform-box: fill-box; transform-origin: var(--ursprung, left center); animation: .9s var(--kurve) backwards; }
.wachse-x { animation-name: wachse-x; }
.wachse-y { --ursprung: center bottom; animation-name: wachse-y; }
@keyframes wachse-x { from { transform: scaleX(0); } }
@keyframes wachse-y { from { transform: scaleY(0); } }
.weich { transition: left .6s var(--kurve), width .6s var(--kurve), transform .5s var(--kurve), background-color .3s; }

/* Sehr schmale Ansicht (Handy mit 150 % Zoom oder großer Schrift): lange Wörter umbrechen statt quer scrollen */
@media (max-width: 360px) { body, h1, h2, h3 { overflow-wrap: anywhere; } }
/* Hinweis-Toast über festen Leisten unten */
@media (max-width: 960px) { .toast { bottom: calc(var(--platz-unten) + 8px); } }

/* ================================================================
   Bausteine Design 6: gemeinsame Klassen für Rahmen, Schnell-Check und Ergebnis
   ================================================================ */
/* Knöpfe: Hauptknopf Navy (dunkel: Petrol), .akzent Petrol, .ghost weiß mit Linie */
.btn { background: var(--btn); color: var(--btn-ink); border-radius: 12px; box-shadow: 0 6px 16px -10px rgba(19, 27, 46, .55); }
.btn:hover { filter: brightness(1.12); }
.btn.akzent { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { filter: none; border-color: var(--ink-2); }
.btn.gross { min-height: 52px; padding: 14px 24px; font-size: 1rem; font-weight: 700; justify-content: center; }

/* Karte: <section class="karte"><div class="karte-kopf"><h2>…</h2><span class="pille mint">…</span></div>…</section> */
.karte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(16px, 2.6vw, 24px); display: grid; gap: 14px; align-content: start; min-width: 0; }
.karte-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 14px; }
.karte-kopf > :first-child { min-width: 0; }
.karte-kopf h2, .karte-kopf h3 { font-size: 1.125rem; line-height: 1.3; margin: 0; }
.karte-kopf p { margin: 2px 0 0; color: var(--muted); font-size: .875rem; }
.karte.flach { box-shadow: none; }
.karte.akzent { border: 1.5px solid var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 80%); }
.karte.info { background: var(--info-soft); border-color: var(--info-soft-2); box-shadow: none; }
.karte.frist { background: var(--frist-soft); border-color: var(--frist-line); box-shadow: none; }
/* Dunkle Hervorhebungs-Karte (Navy): Text weiß, Nebentext --on-navy-2, Akzente in Mint */
.karte.dunkel { background: var(--navy); background-image: var(--hero-grad); color: var(--on-navy); border-color: transparent; }
.karte.dunkel .note, .karte.dunkel small, .karte.dunkel p { color: var(--on-navy-2); }
.karte.dunkel .ueberzeile { color: var(--mint); }
.karte.dunkel .btn.ghost { background: transparent; color: var(--on-navy); border-color: rgba(255, 255, 255, .3); }
.karte.dunkel :focus-visible { outline-color: var(--mint); }
:root[data-theme="dark"] .karte.dunkel { border-color: rgba(255, 255, 255, .08); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .karte.dunkel { border-color: rgba(255, 255, 255, .08); } }

/* Überzeile in kleinen Großbuchstaben: <span class="ueberzeile">Schritt 3 von 4</span> */
.ueberzeile { display: block; font-size: .71875rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }

/* Pille / Etikett: <span class="pille mint">Vorläufig</span>; Farbe nie allein, immer mit Text */
.pille { display: inline-flex; align-items: center; gap: 5px; justify-self: start; border-radius: 999px; padding: 3px 10px; font-size: .75rem; font-weight: 700; line-height: 1.3; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.pille .ic { width: 14px; height: 14px; }
.pille.akzent { background: var(--accent-soft); color: var(--accent); }
.pille.mint { background: var(--mint); color: #131B2E; }
.pille.info { background: var(--info-soft-2); color: var(--info-ink); }
.pille.frist { background: var(--frist-soft); color: var(--frist-ink); box-shadow: inset 0 0 0 1px var(--frist-line); }
.pille.dunkel { background: var(--navy); color: var(--on-navy); }

/* Wirkungs-Pille: <span class="wirkung">+1,6 Monate</span>; .neg für Nachteile (Vorzeichen bleibt im Text) */
.wirkung { display: inline-flex; align-items: center; justify-self: end; border-radius: 999px; padding: 3px 10px; font-size: .78125rem; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; background: var(--accent-soft-2); color: var(--go-ink); }
.wirkung.neg { background: var(--stay-soft); color: var(--stay-ink); }
.wirkung.null { background: var(--surface-2); color: var(--muted); }
:root[data-theme="dark"] .wirkung:not(.neg):not(.null) { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wirkung:not(.neg):not(.null) { color: var(--accent); } }

/* Kennzahl-Kästen: <div class="kennzahlen"><div class="kennzahl haupt"><span class="l">…</span><b class="v">20.310 €</b><span class="c">…</span></div></div> */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 12px; }
.kennzahl { background: var(--info-soft); border: 1px solid var(--info-soft-2); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.kennzahl .l { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.kennzahl .v { font: 800 clamp(1.5rem, 3.2vw, 2rem)/1.1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere; }
.kennzahl .c { font-size: .78125rem; color: var(--muted); line-height: 1.45; }
.kennzahl.haupt { background: linear-gradient(180deg, var(--accent-soft), var(--surface)); border: 1.5px solid var(--accent); }
.kennzahl.haupt .v { color: var(--accent); }

/* Fortschritt: <div class="fortschritt" role="progressbar" …><i style="width: 40%"></i></div> */
.fortschritt { height: 8px; border-radius: 99px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.fortschritt > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .5s var(--kurve, ease); }
.karte.dunkel .fortschritt { background: rgba(255, 255, 255, .14); box-shadow: none; }
.karte.dunkel .fortschritt > i { background: var(--mint); }
/* Segmentbalken: <div class="segmentbalken"><i class="s1" style="flex: 3"></i><i class="s2" style="flex: 2"></i><i class="s3" style="flex: 1"></i></div> */
.segmentbalken { display: flex; gap: 3px; height: 10px; border-radius: 99px; overflow: hidden; background: var(--surface-2); }
.segmentbalken > i { flex: 1; min-width: 4px; background: var(--bar); }
.segmentbalken > i.s1 { background: var(--accent); }
.segmentbalken > i.s2 { background: var(--mint); }
.segmentbalken > i.s3 { background: var(--bar); }
.segment-legende { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; font-size: .75rem; color: var(--muted); }
.segment-legende b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Auswahlkacheln mit Radio, Symbol, Unterzeile und Etikett:
   <div class="wahlkacheln" role="radiogroup"><button class="wahlkachel" role="radio" aria-checked="true"><span class="wk-radio"></span>
   <span class="wk-ic"><svg class="ic">…</svg></span><span class="wk-t"><b>Titel</b><small>Unterzeile</small></span><span class="etikett">…</span></button></div> */
.wahlkacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 10px; }
.wahlkachel { position: relative; display: flex; align-items: flex-start; gap: 12px; text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px 16px; font: inherit; color: var(--ink); cursor: pointer; min-width: 0; transition: border-color .15s, background-color .15s; }
.wahlkachel:hover { border-color: var(--accent); }
.wahlkachel[aria-checked="true"], .wahlkachel[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.wk-radio { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--bar); background: var(--surface); margin-top: 1px; }
.wahlkachel[aria-checked="true"] .wk-radio, .wahlkachel[aria-pressed="true"] .wk-radio { border-color: var(--accent); background: radial-gradient(var(--accent) 0 4.5px, var(--surface) 5px); }
.wk-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.wk-ic .ic { width: 22px; height: 22px; }
.wahlkachel[aria-checked="true"] .wk-ic, .wahlkachel[aria-pressed="true"] .wk-ic { background: var(--accent); color: var(--accent-ink); }
.wk-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.wk-t b { font-weight: 700; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; }
.wk-t small { color: var(--muted); font-size: .8125rem; line-height: 1.4; }

/* Betrags-Chips: <div class="chips"><button class="chip betrag" aria-pressed="true">5.000 €</button></div> */
.chip.betrag { border-radius: 10px; min-height: 40px; padding: 7px 14px; font-variant-numeric: tabular-nums; }
.chip.betrag[aria-pressed="true"], .chip.betrag[aria-checked="true"] { box-shadow: inset 0 0 0 1px var(--accent); }

/* Regler mit Wert-Badge: <div class="regler-kopf"><label for="r">Dauer</label><output class="wertbadge">6 Jahre</output></div><input type="range" class="regler"> */
.regler-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 650; }
.wertbadge, .einheit { display: inline-flex; align-items: center; border-radius: 10px; padding: 4px 10px; font-weight: 800; font-size: .9375rem; white-space: nowrap; font-variant-numeric: tabular-nums; background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-soft-2); }
.einheit { background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; }
input[type="range"].regler, .regler { accent-color: var(--accent); }
/* Geldfeld mit Einheit: <label class="geldfeld"><input inputmode="numeric"><span class="einheit">€</span></label> */
.geldfeld { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 14px; }
.geldfeld:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft-2); }
.geldfeld input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: 700 1.25rem var(--font-display); font-variant-numeric: tabular-nums; text-align: right; }
.geldfeld input:focus { outline: none; }

/* Schalter: <button type="button" class="schalter" role="switch" aria-checked="true" aria-label="…"></button>
   oder <input type="checkbox" class="schalter" role="switch"> */
.schalter { flex: none; position: relative; width: 46px; height: 28px; border-radius: 999px; border: 0; padding: 0; background: var(--bar); cursor: pointer; transition: background-color .2s; appearance: none; -webkit-appearance: none; margin: 0; }
.schalter::before { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s var(--kurve, ease); }
.schalter[aria-checked="true"], .schalter:checked { background: var(--accent); }
.schalter[aria-checked="true"]::before, .schalter:checked::before { transform: translateX(18px); }
.schalter:disabled { opacity: .45; cursor: not-allowed; }
/* Häkchen statt Schalter (Desktop-Entwurf): .schalter.haken */
.schalter.haken { width: 22px; height: 22px; border-radius: 6px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--bar); }
.schalter.haken::before { display: none; }
.schalter.haken[aria-checked="true"], .schalter.haken:checked { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2'/%3E%3C/svg%3E") center/14px no-repeat; box-shadow: none; }

/* Hebel-Zeile: <div class="hebelzeile"><span class="hz-ic">…</span><span class="hz-t"><b>Titel</b><small>Unterzeile</small></span>
   <span class="wirkung">+1,6 Monate</span><button class="schalter" role="switch" …></button></div>; .aus gedimmt, .gesperrt mit Schloss */
.hebelzeile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; min-width: 0; }
.hebelzeile:has(.schalter[aria-checked="true"], .schalter:checked) { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
.hebelzeile > .hz-t:first-child { grid-column: 1 / 3; }
/* Liste der Hebel-Zeilen; schmal (< 26rem) rutscht die Wirkungs-Pille unter den Titel */
.hebelliste { display: grid; gap: 8px; container-type: inline-size; }
.hz-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.hz-ic .ic { width: 20px; height: 20px; }
.hz-t { display: grid; gap: 1px; min-width: 0; }
.hz-t b { font-weight: 700; font-size: .9375rem; line-height: 1.3; }
.hz-t small { color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.hebelzeile.aus .hz-t, .hebelzeile.aus .wirkung { opacity: .6; }
.hebelzeile.gesperrt { border-style: dashed; background: var(--surface-2); }
@container (max-width: 26rem) {
  .hebelzeile { grid-template-columns: auto minmax(0, 1fr) auto; }
  .hebelzeile > .hz-t:first-child { grid-column: 1 / 3; }
  .hebelzeile .wirkung { grid-column: 2; grid-row: 2; justify-self: start; }
  .hebelzeile > .hz-t:first-child ~ .wirkung { grid-column: 1 / 3; }
  .hebelzeile .schalter:last-child { grid-column: 3; grid-row: 1 / 3; }
}

/* Umschalter (zwei, drei Ansichten): <div class="umschalter" role="group"><button aria-pressed="true">Basis</button><button aria-pressed="false">Premium <span class="pille mint">9,90 €</span></button></div> */
.umschalter { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--info-soft-2); max-width: 100%; }
.umschalter > button { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: none; border-radius: 10px; padding: 9px 16px; font-weight: 650; font-size: .875rem; color: var(--ink-2); min-height: 40px; }
.umschalter > button[aria-pressed="true"], .umschalter > button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(19, 27, 46, .14); }

/* Von → nach: <div class="vonnach"><div><span class="l">Heute</span><b>8,5 Monate</b></div><span class="pfeil" aria-hidden="true">→</span><div class="nach">…</div></div> */
.vonnach { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px 14px; background: var(--info-soft); border-radius: var(--r); padding: 14px 16px; }
.vonnach > div { display: grid; gap: 2px; min-width: 0; }
.vonnach .l { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.vonnach b { font: 800 1.5rem/1.15 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vonnach .nach { text-align: right; }
.vonnach .nach b { color: var(--accent); font-size: 1.75rem; }
.vonnach .pfeil { font-size: 1.375rem; color: var(--ink-2); }

/* Summenleiste: <div class="summenleiste"><span class="sl-ic">…</span><span class="sl-t"><small>…</small><b>…</b></span><button class="btn akzent">…</button></div> */
.summenleiste { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--info-soft); border: 1px solid var(--info-soft-2); border-radius: var(--r); padding: 12px 14px; }
.sl-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.sl-t { flex: 1 1 12rem; min-width: 0; display: grid; }
.sl-t small { font-size: .75rem; color: var(--muted); }
.sl-t b { font-weight: 800; font-size: 1rem; }

/* Frist-Banner über die ganze Breite: <div class="fristbanner" role="note"><svg class="ic">…</svg><p><b>Frist:</b> …</p></div> */
.fristbanner { display: flex; align-items: flex-start; justify-content: center; gap: 10px; background: var(--frist-soft); color: var(--frist-ink); border-block: 1px solid var(--frist-line); padding: 10px 16px; font-size: .875rem; line-height: 1.45; }
.fristbanner .ic { flex: none; margin-top: 1px; }
.fristbanner p { margin: 0; max-width: 80ch; }

/* Wertzeilen (Bezeichnung links, Wert rechts): <dl class="wertzeilen"><div><dt>Gehalt</dt><dd>58.200 €</dd></div></dl> */
.wertzeilen { display: grid; gap: 6px; margin: 0; }
.wertzeilen > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: .84375rem; }
.wertzeilen dt { color: var(--ink-2); min-width: 0; }
.wertzeilen dd { margin: 0; font-weight: 750; text-align: right; font-variant-numeric: tabular-nums; }
.wertzeilen > div.hervor { background: var(--accent-soft); border-color: var(--accent-soft-2); }

/* Stepper: <ol class="stepper"><li class="fertig|jetzt"><span class="st-kreis">✓|3</span><span class="st-t"><small>Schritt 1</small><b>Angebot</b></span></li></ol> */
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; counter-reset: st; }
.stepper > li { position: relative; display: grid; gap: 10px; align-content: start; min-width: 0; }
.stepper > li::after { content: ""; position: absolute; top: 15px; left: 40px; right: 8px; height: 2px; border-radius: 2px; background: var(--line); }
.stepper > li:last-child::after { display: none; }
.stepper > li.fertig::after { background: var(--accent); }
.st-kreis { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8125rem; background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
.st-kreis .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.fertig .st-kreis { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.jetzt .st-kreis { background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px var(--accent-soft-2); }
.st-t { display: grid; gap: 1px; padding-right: 10px; }
.st-t small { font-size: .71875rem; color: var(--muted); font-weight: 600; }
.st-t b { font-size: .875rem; line-height: 1.3; font-weight: 650; color: var(--ink-2); overflow-wrap: break-word; hyphens: auto; }
.jetzt .st-t small { color: var(--accent); font-weight: 750; }
.jetzt .st-t b { color: var(--ink); font-weight: 750; }
.stepper button { all: unset; cursor: pointer; display: grid; gap: 10px; align-content: start; min-width: 0; }
.stepper button:focus-visible .st-kreis { outline: 3px solid var(--focus); outline-offset: 2px; }
.stepper button:hover .st-t b { color: var(--accent); }

/* Kennzahl in der festen Handy-Leiste: <div class="aktionsleiste"><span class="kz"><small>Dein Geld reicht bis</small><b>Juli 2028</b></span><button class="btn">…</button></div> */
.aktionsleiste .kz { flex: 1 1 auto; min-width: 0; display: grid; line-height: 1.2; }
.aktionsleiste .kz small { font-size: .75rem; color: var(--muted); }
.aktionsleiste .kz b { font: 800 1.125rem var(--font-display); color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aktionsleiste .kz + .btn { flex: 0 0 auto; }

@media (prefers-reduced-motion: reduce) { .schalter, .schalter::before, .fortschritt > i { transition: none; } }

/* ================================================================
   Rahmen Design 6: Kopfzeile mit Navigation, Ergebnis-Reiter oben (Handy unten), dunkler Fuß
   ================================================================ */
.eyebrow { display: inline-block; font-size: .71875rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 10px; margin-bottom: 10px; }
.logo { width: 32px; height: 32px; flex: none; background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNDAgMTQwIiBmaWxsPSJub25lIj48Y2lyY2xlIGN4PSI3MCIgY3k9IjcwIiByPSI2MyIgZmlsbD0iI0ZGRkZGRiIgc3Ryb2tlPSIjRTJFOEYwIiBzdHJva2Utd2lkdGg9IjgiLz48cGF0aCBkPSJNNzAgN2E2MyA2MyAwIDAgMSA2MyA2MyIgc3Ryb2tlPSIjMDU5NjY5IiBzdHJva2Utd2lkdGg9IjEyIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48cGF0aCBkPSJNNyA3MGE2MyA2MyAwIDAgMCA2MyA2MyIgc3Ryb2tlPSIjMEYxNzJBIiBzdHJva2Utd2lkdGg9IjEyIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48cGF0aCBkPSJNNzAgMzBsMzQgNDAtMzQgNDAtMzQtNDB6IiBmaWxsPSIjRjhGQUZDIiBzdHJva2U9IiMwRjE3MkEiIHN0cm9rZS13aWR0aD0iOSIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjxwYXRoIGQ9Ik01MCA4MWwyMC0yNyAyMiAxMCAyMi0yOCIgc3Ryb2tlPSIjMTBCOTgxIiBzdHJva2Utd2lkdGg9IjExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48cGF0aCBkPSJNMTAzIDI4aDIxdjIxeiIgZmlsbD0iIzA1OTY2OSIvPjxjaXJjbGUgY3g9IjcwIiBjeT0iNzAiIHI9IjgiIGZpbGw9IiMwNTk2NjkiLz48Y2lyY2xlIGN4PSI3MCIgY3k9IjcwIiByPSIzLjUiIGZpbGw9IiNGRkZGRkYiLz48L3N2Zz4=") center / contain no-repeat; }
:root[data-theme="dark"] .logo { background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNDAgMTQwIiBmaWxsPSJub25lIj48Y2lyY2xlIGN4PSI3MCIgY3k9IjcwIiByPSI2MyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMzM0MTU1IiBzdHJva2Utd2lkdGg9IjgiLz48cGF0aCBkPSJNNzAgN2E2MyA2MyAwIDAgMSA2MyA2MyIgc3Ryb2tlPSIjMzREMzk5IiBzdHJva2Utd2lkdGg9IjEyIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48cGF0aCBkPSJNNyA3MGE2MyA2MyAwIDAgMCA2MyA2MyIgc3Ryb2tlPSIjRTJFOEYwIiBzdHJva2Utd2lkdGg9IjEyIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48cGF0aCBkPSJNNzAgMzBsMzQgNDAtMzQgNDAtMzQtNDB6IiBmaWxsPSIjMTMxQjJFIiBzdHJva2U9IiNFMkU4RjAiIHN0cm9rZS13aWR0aD0iOSIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjxwYXRoIGQ9Ik01MCA4MWwyMC0yNyAyMiAxMCAyMi0yOCIgc3Ryb2tlPSIjMzREMzk5IiBzdHJva2Utd2lkdGg9IjExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48cGF0aCBkPSJNMTAzIDI4aDIxdjIxeiIgZmlsbD0iIzM0RDM5OSIvPjxjaXJjbGUgY3g9IjcwIiBjeT0iNzAiIHI9IjgiIGZpbGw9IiMzNEQzOTkiLz48Y2lyY2xlIGN4PSI3MCIgY3k9IjcwIiByPSIzLjUiIGZpbGw9IiNGRkZGRkYiLz48L3N2Zz4="); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo { background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNDAgMTQwIiBmaWxsPSJub25lIj48Y2lyY2xlIGN4PSI3MCIgY3k9IjcwIiByPSI2MyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMzM0MTU1IiBzdHJva2Utd2lkdGg9IjgiLz48cGF0aCBkPSJNNzAgN2E2MyA2MyAwIDAgMSA2MyA2MyIgc3Ryb2tlPSIjMzREMzk5IiBzdHJva2Utd2lkdGg9IjEyIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48cGF0aCBkPSJNNyA3MGE2MyA2MyAwIDAgMCA2MyA2MyIgc3Ryb2tlPSIjRTJFOEYwIiBzdHJva2Utd2lkdGg9IjEyIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48cGF0aCBkPSJNNzAgMzBsMzQgNDAtMzQgNDAtMzQtNDB6IiBmaWxsPSIjMTMxQjJFIiBzdHJva2U9IiNFMkU4RjAiIHN0cm9rZS13aWR0aD0iOSIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjxwYXRoIGQ9Ik01MCA4MWwyMC0yNyAyMiAxMCAyMi0yOCIgc3Ryb2tlPSIjMzREMzk5IiBzdHJva2Utd2lkdGg9IjExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48cGF0aCBkPSJNMTAzIDI4aDIxdjIxeiIgZmlsbD0iIzM0RDM5OSIvPjxjaXJjbGUgY3g9IjcwIiBjeT0iNzAiIHI9IjgiIGZpbGw9IiMzNEQzOTkiLz48Y2lyY2xlIGN4PSI3MCIgY3k9IjcwIiByPSIzLjUiIGZpbGw9IiNGRkZGRkYiLz48L3N2Zz4="); } }
/* Wortmarke abfindungsblick.de: „blick“ und „.de“ in Grün */
.wm { font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.wm-b { color: var(--logo-gruen, #047857); }
.wm-d { color: var(--logo-gruen, #047857); font-weight: 500; }
:root[data-theme="dark"] { --logo-gruen: #34D399; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --logo-gruen: #34D399; } }
.brand { display: flex; align-items: center; gap: 10px; font: 800 1.125rem/1.2 var(--font-display); letter-spacing: -.02em; color: var(--ink); text-decoration: none; min-width: 0; }

/* Kopfzeile: über die ganze Breite, Inhalt auf 1240 px. Kein backdrop-filter: die Reiterleiste darin ist am Handy position: fixed. */
body { margin: 0; }
.kopfzeile { position: sticky; top: 0; z-index: 12; margin-inline: -12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.kopf-innen { max-width: 1264px; margin: 0 auto; min-height: 64px; display: flex; align-items: center; gap: 10px 28px; padding: 8px 18px; }
.kopf-nav { display: none; gap: 24px; align-self: stretch; }
.kopf-nav a { display: flex; align-items: center; white-space: nowrap; color: var(--ink-2); font-weight: 600; font-size: .9375rem; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -9px; padding-top: 2px; }
.kopf-nav a:hover { color: var(--accent); }
.kopf-nav a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }
.kopf-knopf { margin-left: auto; padding: 9px 16px; font-size: .9375rem; white-space: nowrap; }
.pw-aktiv[hidden] { display: none; }
.kopf-premium { margin-left: auto; white-space: nowrap; }
.kopf-premium:not([hidden]) + .kopf-knopf, .kopf-premium:not([hidden]) + .fl-lokal { margin-left: 10px; }
.kopf-knopf .ic { width: 16px; height: 16px; }
@media (min-width: 760px) { .kopf-nav { display: flex; } }
@media (min-width: 760px) and (max-width: 959px) { .kopf-nav { gap: 14px; } .kopf-nav a { font-size: .875rem; } }
@media (max-width: 480px) { .kopfzeile .brand { font-size: 1rem; } .kopf-knopf { display: none; } }

/* Ergebnis: Reiter in der Kopfzeile, rechts Premium, Angaben, Menü */
.ergebnis.rahmen .content { max-width: 1240px; margin: 18px auto 0; display: grid; gap: 16px; min-width: 0; }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.kopf-rechts .pw-side { margin: 0; }
.kopf-rechts .pw-side-btn { width: auto; padding: 9px 16px; font-size: .875rem; }
.kopf-rechts .pw-aktiv { padding: 6px 10px; }
.kopf-rechts #fab { padding: 9px 14px; box-shadow: none; }
@media (min-width: 961px) {
  .kopf-reiter.tabs { position: static; display: flex; gap: 4px; border: 0; background: none; padding: 0; overflow: visible; align-self: stretch; }
  .kopf-reiter.tabs :is(button, a) { display: flex; align-items: center; gap: 8px; border: 0; border-radius: 0; background: none; padding: 0 10px; min-height: 0; margin-bottom: -9px; border-bottom: 2px solid transparent; font-weight: 650; font-size: .9375rem; color: var(--ink-2); white-space: nowrap; }
  .kopf-reiter.tabs :is(button, a) .ic { width: 18px; height: 18px; }
  .kopf-reiter.tabs :is(button, a):hover { background: none; color: var(--accent); }
  .kopf-reiter.tabs :is(button, a)[aria-selected="true"], .kopf-reiter.tabs a[aria-current="page"] { background: none; color: var(--accent); border-bottom-color: var(--accent); }
  .kopf-reiter .count { background: var(--warn-soft); color: var(--warn); font-size: .6875rem; font-weight: 800; border-radius: 999px; padding: 0 7px; margin-left: 2px; }
}
@media (min-width: 961px) and (max-width: 1220px) { .e-kopfzeile .brand > span:last-child { display: none; } .e-kopfzeile .kopf-innen { gap: 10px 16px; } }
@media (max-width: 960px) {
  .e-kopfzeile { position: static; }
  .e-kopfzeile .brand { flex: 1 1 auto; font-size: 1rem; }
}
@media (max-width: 480px) {
  .e-kopfzeile .brand > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .kopf-reiter.tabs { top: auto; border-bottom: 0; }
  .ergebnis.rahmen .content { margin-top: 12px; }
}

/* Dunkler Fuß (Startseite, Schnell-Check, Ergebnis und statische Seiten) */
.seitenfuss { background: var(--navy); color: var(--on-navy-2); margin: 48px -12px -12px; padding: 32px 18px 36px; font-size: .875rem; }
.fuss-innen { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 18px 40px; }
.fuss-marke { display: grid; gap: 6px; max-width: 40rem; }
.fuss-marke b { font: 800 1.125rem var(--font-display); color: var(--on-navy); }
.fuss-marke .wm-b, .fuss-marke .wm-d { color: #34D399; }
.fuss-marke p { margin: 0; line-height: 1.55; }
.seitenfuss nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.seitenfuss a { color: var(--on-navy-2); text-decoration: none; font-weight: 600; }
/* Zielfläche der Fußlinks mindestens 24 × 24 px (WCAG 2.2, 2.5.8) */
.seitenfuss nav a { display: inline-flex; align-items: center; min-height: 28px; }
.seitenfuss a:hover { color: var(--mint); text-decoration: underline; }
.seitenfuss :focus-visible { outline-color: var(--mint); }
.seitenfuss > nav, .seitenfuss > p { max-width: 1240px; margin-inline: auto; }
.seitenfuss > p { margin-top: 10px; }
.fuss-copy { max-width: 1240px; margin: 18px auto 0; font-size: .8125rem; }
.privacy-loeschen { color: var(--mint); font-size: .875rem; font-weight: 600; text-decoration: underline; padding: 0; margin-left: 4px; }
.doku .seitenfuss { margin: 40px -16px -48px; }
@media (max-width: 960px) { .e-fuss { padding-bottom: calc(var(--platz-unten) + 24px); } }
:root[data-theme="dark"] .seitenfuss { border-top: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seitenfuss { border-top: 1px solid var(--line); } }
@media print { .kopfzeile, .seitenfuss { display: none; } }

/* ================================================================
   Barrierefreiheit (WCAG 1.4.11, 2.5.8): Ränder von Feldern und Chips ≥ 3:1, Muster statt nur Farbe, Ziele ≥ 44 px
   --rand-feld  Rand für Eingabefelder, Chips und Schalter (hell #8A93A6, dunkel #5A6684)
   --muster-linien  senkrechte Linien (Arbeitslosengeld im Monatsstreifen)
   ================================================================ */
:root { --rand-feld: #8A93A6; --muster-linien: repeating-linear-gradient(90deg, rgba(255, 255, 255, .42) 0 2px, transparent 2px 6px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --rand-feld: #5A6684; } }
:root[data-theme="dark"] { --rand-feld: #5A6684; }
.chip, .geldfeld { border-color: var(--rand-feld); }
.money, .textin, select { box-shadow: inset 0 0 0 1px var(--rand-feld); }
.money:focus-within { box-shadow: 0 0 0 2px var(--accent) inset; }
.weg-seg.alg { background-color: var(--w-alg); background-image: var(--muster-linien); }
.reiter-unten a { text-decoration: none; }
/* „Mehr“ (Bericht und Speichern) nur in der festen Leiste unten */
.reiter-mehr { display: none !important; }
@media (max-width: 960px) { .reiter-unten .reiter-mehr { display: flex !important; } }
.reiter-unten :is(button, a), .chip, .linkbtn.ziel44 { min-height: 44px; }
input[type="checkbox"] { accent-color: var(--accent); }
/* Betrag und Einheit nie trennen */
.nw { white-space: nowrap; }
/* Große Schrift am Laptop (150 %): Kopfzeile nach verfügbarer Breite in rem, Markenname nur als Logo, Reiter ohne Umbruch */
.e-kopfzeile { container: kopf / inline-size; }
.e-kopfzeile .brand > span:last-child { white-space: nowrap; }
.kopf-reiter.tabs :is(button, a) { white-space: nowrap; }
@container kopf (max-width: 70rem) { .e-kopfzeile .brand > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .e-kopfzeile .kopf-innen { gap: 10px 14px; } }
@container kopf (max-width: 56rem) { .e-kopfzeile .pw-side-btn { font-size: .875rem; padding: 8px 12px; } }
/* Untere Reiterleiste: Beschriftungen dürfen umbrechen und stoßen nicht aneinander (390 px, 150 % Schrift) */
@media (max-width: 960px) {
  .kopf-reiter.tabs.reiter-unten { gap: 4px; }
  .kopf-reiter.tabs.reiter-unten :is(button, a) { white-space: normal; min-width: 0; overflow: hidden; hyphens: auto; font-size: .75rem; }
}

/* Tippflächen: kleine Textlinks und Knöpfe bekommen eine unsichtbare Trefferfläche von mindestens 44 px Höhe,
   ohne die Zeilenhöhe im Text zu ändern (Mobile-Prüfung) */
:where(.st-links a, .st-links .datei-laden, .privacy-loeschen, .d-haftung > summary, .fl-link, .linkbtn:not(.lock-btn), .seitenfuss nav a, .kruemel a, .ratgeber-liste a, .seitenkopf a, #own, .frist-d > summary) { position: relative; }
:where(.st-links a, .st-links .datei-laden, .privacy-loeschen, .d-haftung > summary, .fl-link, .linkbtn:not(.lock-btn), .seitenfuss nav a, .kruemel a, .ratgeber-liste a, .seitenkopf a, #own, .frist-d > summary)::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; min-height: 100%; transform: translateY(-50%); }
#qsearch { min-height: 44px; }
.brand, .fl-brand { min-height: 44px; }
/* flow.css: Einstieg, Stepper mit Kernfragen und Vertiefung, Hilfe-Blatt (Ein Stepper für alles) */

/* ---------------------------------------------------------------- Einstieg (Design 6): Titel mit Akzent, Vertrauenspunkte, rechts Frist- und dunkle Karte */
.start, .flowwrap.fl { max-width: none; padding: 0 0 12px; }
/* Beim Schrittwechsel kein kurzer waagerechter Überlauf (Einblenden von der Seite) */
#screen-flow { overflow-x: clip; }
/* Feste Leisten (Kopfzeile oben, Weiter-Leiste, Reiter und Zusammenfassung unten) verdecken den Tastaturfokus nicht.
   --fest-oben/--fest-unten setzt ui-core.js (festeLeistenMessen) aus den tatsächlich sichtbaren Leisten. */
html { scroll-padding-top: calc(var(--fest-oben, 0px) + 12px); scroll-padding-bottom: calc(var(--fest-unten, 0px) + 16px); }
.st-hero, .st-beispiele, .start-hinweis { max-width: 1240px; margin-inline: auto; }
.st-hero { padding: 1.75rem .25rem .5rem; }
.st-innen { display: grid; gap: 1.5rem; }
.st-pille { margin-bottom: 1rem; padding: 5px 12px; }
.st-text h1 { font-size: clamp(2.125rem, 5vw, 3.625rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; margin: 0 0 1rem; color: var(--ink); max-width: 15ch; }
.st-text h1 .akz { color: var(--accent); display: block; }
.st-lead { color: var(--ink-2); font-size: 1.125rem; line-height: 1.55; margin: 0 0 1.25rem; max-width: 36rem; }
.st-vertrauen { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.st-vertrauen li { display: inline-flex; align-items: center; gap: .5rem; }
.st-vertrauen .ic { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.st-cta-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.btn.st-cta { width: 100%; min-height: 3.5rem; font-size: 1.0625rem; }
.st-dauer { display: inline-flex; align-items: center; gap: .375rem; font-size: .875rem; color: var(--muted); }
.st-dauer .ic { width: 16px; height: 16px; }
.st-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1rem 0 0; font-size: .875rem; }
.st-links a, .st-links .datei-laden { color: var(--accent); font-weight: 600; font-size: .875rem; margin: 0; text-decoration: underline; text-underline-offset: 3px; }
.st-seite { display: grid; gap: .875rem; align-content: start; }
.st-frist { gap: .375rem; }
.st-frist h2 { display: flex; align-items: center; gap: .5rem; font-size: 1rem; color: var(--frist-ink); }
.st-frist p { color: var(--ink); font-size: .875rem; line-height: 1.5; }
.st-zeigt { gap: .75rem; }
.st-zeigt h2 { font-size: 1.25rem; color: var(--on-navy); }
.st-zahlen { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.st-zahlen li { display: flex; gap: .75rem; align-items: flex-start; }
.st-zahlen .ic { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: rgba(255, 255, 255, .1); color: var(--mint); }
.st-zahlen span { display: grid; gap: 1px; }
.st-zahlen b { color: var(--on-navy); font-size: .9375rem; }
.st-zahlen small { color: var(--on-navy-2); font-size: .8125rem; line-height: 1.4; }
.st-zeigt .segmentbalken { background: rgba(255, 255, 255, .1); margin-top: .25rem; }
.st-beispiele { margin-top: 1.75rem; display: grid; gap: .75rem; padding-inline: .25rem; }
.st-h2 { font-size: 1.125rem; }
.personas.st-personen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; margin: 0; padding: 0; overflow: visible; }
.st-personen .persona { border: 1px solid var(--line); border-radius: var(--r); padding: .875rem 1rem; gap: .25rem; color: var(--ink); text-align: left; min-width: 0; }
.st-personen .persona:hover { border-color: var(--accent); transform: none; }
.st-personen .persona b { font-size: .9375rem; color: var(--ink); }
.st-personen .persona b::before { width: 32px; height: 32px; }
.st-personen .persona span { color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.start-hinweis { margin-top: 1.25rem; padding-inline: .25rem; }
@media (min-width: 600px) { .btn.st-cta { width: auto; min-width: 17rem; } }
@media (min-width: 960px) {
  .st-hero { padding-top: 3.5rem; }
  .st-innen { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
  .st-seite { padding-top: 2.75rem; }
  .personas.st-personen { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .875rem; }
}

/* ---------------------------------------------------------------- Flow: Rahmen mit Stepper, Karte links, Live-Vorschau rechts, Übersicht darunter */
.flowwrap.fl { padding-bottom: 0; }
@media (max-width: 899px) { .fl .seitenfuss { padding-bottom: calc(36px + 80px + env(safe-area-inset-bottom, 0px)); } }
.fl-titel { font-weight: 600; font-size: .875rem; color: var(--muted); line-height: 1.2; overflow-wrap: break-word; hyphens: auto; min-width: 0; }
.fl-brand-t { display: none; }
.fl-lokal { margin-left: auto; display: none; }
.fl-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.fl-karte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 1.25rem 1.125rem 1.125rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-content: start; }
.fl-inhalt, .fl-teile, .fl-feld { grid-template-columns: minmax(0, 1fr); }
.fl-inhalt > *, .fl-teile > *, .fl-feld > * { min-width: 0; }
.fl-inhalt { display: grid; gap: 1.125rem; align-content: start; }
.fl-neu { animation: fl-rein .28s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes fl-rein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fl-kopfzeile { display: flex; gap: .5rem; align-items: flex-start; justify-content: space-between; }
.fl-frage { font-size: clamp(1.5rem, 3vw, 1.875rem); line-height: 1.2; letter-spacing: -.025em; font-weight: 800; margin: 0; }
.fl-frage:focus { outline: none; }
.fl-unter { color: var(--muted); margin: -.625rem 0 0; font-size: .9375rem; }
.fl-teile { display: grid; gap: 1.125rem; }
.fl-feld { display: grid; gap: .5rem; }
.fl-lab { display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-height: 1.75rem; }
.fl-lab-t { font-weight: 700; font-size: 1rem; }
.fl-i { width: 44px; height: 44px; margin: -.5rem -.5rem -.5rem 0; border: 0; border-radius: 50%; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; }
.fl-i:hover { background: var(--accent-soft); color: var(--accent); }
.fl-i .ic { width: 20px; height: 20px; }
.fl .flow-hinweis { font-size: .75rem; color: var(--muted); margin: 0; display: flex; gap: .375rem; align-items: flex-start; justify-content: center; text-align: center; }
@media (min-width: 600px) { .fl-brand-t { display: inline; } .fl-lokal { display: inline-flex; } }
@media (min-width: 900px) {
  .fl-karte { padding: 1.75rem 2.25rem 1.5rem; min-height: 30rem; grid-template-rows: auto auto auto auto 1fr; }
}
@media (min-width: 1000px) {
  .fl-raster { grid-template-columns: minmax(0, 1fr) 21.5rem; align-items: start; gap: 1.25rem; }
}

/* Fuß: am Handy unten fixiert, im Daumenbereich */
.fl-fuss { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: .625rem; padding: .625rem 1rem calc(.625rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 96%, transparent); border-top: 1px solid var(--line); }
.fl-zurueck { width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; font: inherit; }
.fl-zurueck .ic { width: 22px; height: 22px; }
.fl-zurueck span { display: none; }
.btn.fl-weiter { flex: 1; justify-content: center; min-height: 52px; font-size: 1.0625rem; }
@media (min-width: 900px) {
  .fl-fuss { position: static; background: none; border: 0; border-top: 1px solid var(--line); padding: 1.25rem 0 0; justify-content: space-between; }
  .fl-zurueck { width: auto; height: 48px; padding: 0 1.25rem 0 .875rem; display: inline-flex; gap: .375rem; align-items: center; }
  .fl-zurueck span { display: inline; font-weight: 600; }
  .btn.fl-weiter { flex: 0 auto; min-width: 15rem; min-height: 48px; }
}

/* ---------------------------------------------------------------- Flow: Eingaben */
/* Folgefragen zur Selbständigkeit: drei Gewinne nebeneinander, wo Platz ist */
.fl-gewinn { display: grid; gap: .5rem; container-type: inline-size; }
.fl-gewinn .fl-lab-t small { font-weight: 500; color: var(--muted); font-size: .8125rem; margin-left: .25rem; }
.fl-gewinn-g { display: grid; gap: .5rem; grid-template-columns: 1fr; }
@container (min-width: 34rem) { .fl-gewinn-g { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fl-gewinn .fl-geld { padding: .625rem .875rem .5rem; }
.fl-gewinn .fl-zahl input { font-size: 1.625rem; }
.fl-gewinn .fl-eh { font-size: 1.125rem; }
.fl-gewinn .fl-ca { font-size: 1.25rem; }
.fl-gewinn .fl-est { white-space: normal; }
.fl-hinweis { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.4; margin-top: .375rem; }
@media (max-width: 440px) { .fl-kacheln.n3 { gap: .5rem; } .fl-kacheln.n3 .fl-kachel { padding: .75rem .5rem; } .fl-kacheln.n3 .fl-kt b { font-size: .875rem; hyphens: auto; } .fl-kacheln.n3 .fl-kt small { display: none; } }

.fl-geld { background: var(--surface-2); border-radius: 1.25rem; padding: .875rem 1rem .75rem; gap: .25rem; }
.fl-geld:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.fl-geld .fl-lab { margin-bottom: .125rem; }
.fl-zahl { display: flex; align-items: baseline; gap: .375rem; }
.fl-zahl input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: 750 clamp(2rem, 7vw, 2.625rem)/1.15 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; padding: 0; }
.fl-zahl input:focus { outline: none; }
.fl-zahl input::placeholder { color: var(--muted); opacity: .6; }
.fl-eh { font: 600 1.375rem var(--font-display); color: var(--muted); }
.fl-ca { display: none; font: 700 1.75rem var(--font-display); color: var(--muted); }
.fl-geld.est .fl-ca { display: inline; }
.fl-geld.est .fl-zahl input { color: var(--muted); }
.fl-regler { position: relative; height: 2.25rem; }
.fl-regler input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; accent-color: var(--accent); background: transparent; cursor: pointer; }
.fl-band { position: absolute; top: 50%; height: 1rem; transform: translateY(-50%); border-radius: .5rem; left: calc(12px + (100% - 24px) * var(--a)); width: calc((100% - 24px) * (var(--b) - var(--a))); background: color-mix(in srgb, var(--gain) 30%, transparent); pointer-events: none; }
.fl-marken { position: relative; height: 1.125rem; font-size: .75rem; color: var(--muted); }
.fl-marken span { position: absolute; left: calc(12px + (100% - 24px) * var(--p)); transform: translateX(-50%); white-space: nowrap; }
.fl-marken span.l { left: 0; transform: none; }
.fl-marken span.r { left: auto; right: 0; transform: none; }
.fl-bandleg { display: flex; gap: .5rem; align-items: center; font-size: .8125rem; color: var(--ink-2); margin: .25rem 0 0; }
.fl-bandleg i { width: 1.125rem; height: .625rem; border-radius: .3125rem; background: color-mix(in srgb, var(--gain) 30%, transparent); flex: none; }
.fl-est { display: inline-flex; justify-self: start; align-items: center; gap: .375rem; border: 1.5px dashed color-mix(in srgb, var(--muted) 70%, transparent); color: var(--ink-2); border-radius: 999px; padding: .3125rem .75rem; font-size: .8125rem; font-weight: 500; margin-top: .25rem; }
.fl-est .ic { width: 15px; height: 15px; }

.fl-zaehler { display: flex; align-items: center; gap: .75rem; background: var(--surface-2); border-radius: 1.25rem; padding: .625rem .75rem; }
.fl-zaehler:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.fl-zk { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font: 500 1.5rem/1 var(--font-body); color: var(--ink); cursor: pointer; flex: none; }
.fl-zk:disabled { opacity: .4; cursor: default; }
.fl-zw { flex: 1; min-width: 0; text-align: center; display: grid; justify-items: center; gap: .125rem; }
.fl-zw input { width: 5ch; text-align: center; border: 0; background: none; font: 750 1.875rem/1.15 var(--font-display); color: var(--ink); padding: 0; font-variant-numeric: tabular-nums; }
.fl-zw input:focus { outline: none; }
.fl-zw input::placeholder { color: var(--muted); font-weight: 600; font-size: 1.25rem; }
.fl-zw small { color: var(--ink-2); font-size: .8125rem; line-height: 1.35; }
.fl-kids { display: flex; gap: .25rem; color: var(--accent); min-height: 2.25rem; align-items: center; }
.fl-kids .ic { width: 30px; height: 30px; }
.fl-kids b { font: 750 1.875rem var(--font-display); color: var(--ink); }

/* Monatsstreifen: letzter Monat, Ende der Kündigungsfrist, Ruhen */
.fl-tl { background: var(--surface-2); border-radius: 1.375rem; padding: 1rem 0 .75rem; gap: 0; }
.fl-tl-gross { padding: 0 1rem; }
.fl-tl-gross b { display: block; font: 750 clamp(1.5rem, 5vw, 1.875rem)/1.15 var(--font-display); letter-spacing: -.02em; }
.fl-tl-gross b.leer { color: var(--muted); }
.fl-tl-gross small { display: block; color: var(--ink-2); font-size: .875rem; margin-top: .125rem; }
.fl-streifen { display: flex; gap: .375rem; overflow-x: auto; padding: .875rem 1rem .5rem; scroll-snap-type: x proximity; scrollbar-width: thin; }
.fl-mon { flex: none; width: 3.25rem; height: 4rem; border-radius: .875rem; border: 2px solid transparent; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; font: 650 .875rem var(--font-body); color: var(--ink); cursor: pointer; scroll-snap-align: center; }
.fl-mon small { font-size: .6875rem; color: var(--muted); font-weight: 500; }
.fl-mon.ruhen { background: var(--held-soft); background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--held) 22%, transparent) 0 2px, transparent 2px 6px); }
.fl-mon.frist { border-color: var(--held); }
.fl-mon.sel { background: var(--accent); color: var(--accent-ink); }
.fl-mon.sel small { color: inherit; opacity: .85; }
.fl-mon:hover:not(.sel) { border-color: var(--accent); }
.fl-legende { display: flex; flex-wrap: wrap; gap: .375rem .875rem; padding: .25rem 1rem 0; font-size: .75rem; color: var(--ink-2); }
.fl-legende i { display: inline-block; width: .75rem; height: .75rem; border-radius: 3px; margin-right: .375rem; vertical-align: -2px; }
.fl-legende .l-sel { background: var(--accent); }
.fl-legende .l-frist { box-shadow: inset 0 0 0 2px var(--held); }
.fl-legende .l-ruhen { background: var(--held-soft); box-shadow: inset 0 0 0 1px var(--held); }

.fl-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.fl-chip { display: inline-flex; align-items: center; gap: .4375rem; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .5rem .875rem; min-height: 44px; font: 600 .875rem var(--font-body); cursor: pointer; }
.fl-chip .ic { width: 18px; height: 18px; color: var(--ink-2); }
.fl-chip:hover { border-color: var(--accent); }
.fl-chip[aria-pressed="true"], .fl-chip[aria-checked="true"] { background: var(--accent-soft); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.fl-chip[aria-pressed="true"] .ic, .fl-chip[aria-checked="true"] .ic { color: var(--accent); }
.fl-chip[aria-pressed="true"]::after { content: "✓"; font-weight: 800; color: var(--accent); margin-left: .125rem; }
.fl-chip.wn { border-style: dashed; color: var(--ink-2); font-weight: 500; }
.fl-chips.gross .fl-chip { font-size: .9375rem; padding: .625rem 1rem; }

.fl-weg { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.fl-rueck { display: flex; gap: .625rem; align-items: flex-start; background: var(--gain-soft); color: var(--ink); border-radius: .875rem; padding: .6875rem .875rem; font-size: .9375rem; margin: 0; line-height: 1.45; }
.fl-rueck .ic { color: var(--gain); margin-top: .125rem; }
.fl-rueck.held { background: var(--held-soft); }
.fl-rueck.held .ic { color: var(--held); }
.fl-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--accent); text-decoration: underline; cursor: pointer; }
.fl-fehlt { margin: 0; color: var(--warn); font-weight: 600; font-size: .9375rem; }

/* Hilfe-Blatt: am Handy von unten, am großen Bildschirm mittig */
.fl-blatt { border: 0; padding: .625rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom)); background: var(--surface); color: var(--ink); width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 1.625rem 1.625rem 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); }
.fl-blatt[open] { animation: fl-hoch .25s cubic-bezier(.2, .8, .2, 1); }
@keyframes fl-hoch { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.fl-blatt::backdrop { background: rgba(10, 20, 15, .45); }
.fl-griff { width: 2.5rem; height: 5px; border-radius: 3px; background: var(--bar); margin: 0 auto .875rem; }
.fl-blatt-frage { color: var(--muted); font-size: .8125rem; margin: 0 0 .25rem; }
.fl-blatt h2 { font-size: 1.25rem; margin: 0 0 .5rem; }
.fl-blatt-text { color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
.fl-blatt-text a { color: var(--accent); }
.fl-blatt-knoepfe { display: flex; gap: .625rem; margin-top: 1.125rem; }
.fl-blatt-knoepfe .btn { flex: 1; justify-content: center; min-height: 48px; }
@media (min-width: 700px) { .fl-blatt { max-width: 30rem; margin: auto; border-radius: 1.625rem; padding: 1.5rem 1.75rem 1.75rem; } .fl-griff { display: none; } }

/* ---------------------------------------------------------------- Empfehlungs-Grafik: Unterschied zur eigenen Wahl um eine Nulllinie */
.dbalken { display: flex; gap: .25rem; overflow-x: auto; padding: 1.125rem .125rem .25rem; }
.db-s { flex: 0 0 3.75rem; display: grid; justify-items: center; gap: .1875rem; border-radius: .75rem; padding: .25rem .125rem .375rem; position: relative; }
.db-s.eigen { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--accent); }
.db-s.best::before { content: "★ am besten"; position: absolute; top: -.875rem; left: 50%; transform: translateX(-50%); background: var(--lime); color: #0D3526; font-size: .625rem; font-weight: 800; border-radius: 99px; padding: .0625rem .375rem; white-space: nowrap; }
.db-feld { position: relative; width: 1.375rem; height: 4rem; }
.db-feld::before { content: ""; position: absolute; left: -.5rem; right: -.5rem; top: 50%; height: 1.5px; background: var(--muted); opacity: .6; }
.db-b { position: absolute; left: 0; right: 0; border-radius: 3px; transition: height .4s cubic-bezier(.2, .8, .2, 1); }
.db-b.p { bottom: 50%; height: calc(var(--h) / 2); background: var(--gain); }
.db-b.n { top: 50%; height: calc(var(--h) / 2); background-color: var(--warn); background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .38) 0 2px, transparent 2px 5px); }
.db-b.z { display: none; }
.db-w { font-size: .6875rem; font-weight: 700; white-space: nowrap; color: var(--ink); }
.db-w.z { color: var(--muted); font-weight: 600; }
.db-s small { font-size: .6875rem; color: var(--muted); white-space: nowrap; }
.db-tab summary { cursor: pointer; color: var(--accent); font-size: .8125rem; font-weight: 600; }
.db-tab table { margin-top: .375rem; font-size: .8125rem; width: 100%; }
.db-tab tr.eigen td { font-weight: 700; }

@media (prefers-reduced-motion: reduce) { .fl-neu, .fl-blatt[open] { animation: none; } .db-b { transition: none; } }
@media print { .fl-fuss, .fl-seite { display: none; } }
/* Angaben-Schublade bei 390 px und großer Schrift: Infoboxen und Editoren dürfen schrumpfen, Balken scrollen in sich */
.grp, .empfehlung { grid-template-columns: minmax(0, 1fr); }
.grp > * { min-width: 0; }
.in.wide > .phasen { grid-column: 1 / -1; min-width: 0; }
.in.wide > .phasen .fzk { width: 100%; table-layout: fixed; }
.in.wide > .phasen .fzk th:first-child, .in.wide > .phasen .fzk td:first-child { overflow-wrap: anywhere; }
.db-tab { overflow-x: auto; }

/* Gehalt im Monat: Jahreswert darunter; Boni: je Eintrag Bezeichnung, Betrag je Auszahlung, Auszahlungsmonate */
.fl-jahr { margin: -.25rem 0 0; color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.in > .gehalt-jahr { grid-column: 1 / -1; color: var(--muted); }
.boni { display: grid; gap: .625rem; min-width: 0; container-type: inline-size; }
.in.wide > .boni { grid-column: 1 / -1; }
.bonus { display: grid; gap: .625rem; min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: .75rem .875rem; background: var(--surface); }
.bonus-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .75rem; }
.bonus-kopf b { min-width: 0; font: 650 .9375rem var(--font-display); overflow-wrap: anywhere; }
.bonus-felder { display: grid; gap: .5rem; grid-template-columns: minmax(0, 1fr); }
@container (min-width: 30rem) { .bonus-felder { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.bonus-f { display: grid; gap: .25rem; min-width: 0; font-size: .8125rem; color: var(--muted); }
.boni .bonus-f input.textin { min-height: 44px; padding: .5rem .75rem; font: 600 .9375rem var(--font-body); color: var(--ink); text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.boni .bonus-zahl input.textin { text-align: right; font-variant-numeric: tabular-nums; }
.bonus-zahl { display: flex; align-items: center; gap: .375rem; color: var(--ink-2); font-weight: 600; }
.bonus-monate { display: grid; gap: .375rem; min-width: 0; }
.bonus-mlab { font-size: .8125rem; color: var(--muted); }
.bonus-vor:empty { display: none; }
.bonus-anteilig { justify-self: start; }
.bonus-grid { display: grid; gap: .375rem; grid-template-columns: repeat(auto-fill, minmax(3.25em, 1fr)); }
.bonus-grid .fl-chip { justify-content: center; padding: .375rem .25rem; }
.bonus-add { justify-self: start; }
.bonus-summe { margin: 0; font-size: .9375rem; color: var(--ink); }
.boni .fl-hinweis { margin-top: 0; }
.bonus-grid .fl-chip[aria-pressed="true"]::after { content: none; }
.bonus-grid .fl-chip[aria-pressed="true"] { color: var(--accent); font-weight: 800; text-decoration: underline; text-underline-offset: .2em; }

/* ---------------------------------------------------------------- Stepper (Ein Stepper für alles): Kopf mit Segmentbalken */
.fl { --stp-rand: #8A93A6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fl { --stp-rand: #5A6684; } }
:root[data-theme="dark"] .fl { --stp-rand: #5A6684; }
.s4-leiste, .fl-raster, .s4-zurueck { max-width: 1240px; margin-inline: auto; }
/* Karte: Unterkategorie als h1, Felder, Knöpfe, „Automatisch gespeichert“ */
.fl-frage { font-size: clamp(1.5rem, 3vw, 1.875rem); }
.stp-unten { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; font-size: .875rem; }
.stp-gespeichert { display: inline-flex; align-items: center; gap: .375rem; color: var(--muted); }
.stp-gespeichert .ic { width: 16px; height: 16px; color: var(--gain); }
.stp-unten .fl-link { min-height: 44px; }
@media (max-width: 899px) { .stp-unten { order: -1; } .fl-karte .stp-unten { order: 0; } }

/* Einfachwahl als Radios: Zeilen, Chips oder drei Karten */
.stp-feld { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
.stp-legende { padding: 0; font-weight: 700; font-size: 1rem; color: var(--ink); float: left; width: 100%; }
.stp-legende + * { clear: both; }
/* Verdeckte Überschrift bleibt 1 px breit (sonst ragt die absolut gesetzte Legende rechts heraus: waagerechtes Scrollen) */
.stp-legende.fl-weg { width: 1px; float: none; }
.stp-feld-tag { display: flex; }
.stp-radios { display: grid; gap: .5rem; min-width: 0; }
.stp-radios.chips { display: flex; flex-wrap: wrap; }
.stp-radios.karten3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); }
.stp-radio { position: relative; display: flex; align-items: flex-start; gap: .75rem; border: 1.5px solid var(--stp-rand); border-radius: 1rem; padding: .8125rem 1rem; background: var(--surface); cursor: pointer; min-height: 44px; min-width: 0; }
.stp-radio input { flex: none; width: 1.25rem; height: 1.25rem; margin: .125rem 0 0; accent-color: var(--accent); cursor: pointer; }
.stp-rt { display: grid; gap: .125rem; min-width: 0; }
.stp-rt b { font-weight: 650; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; }
.stp-rt small { color: var(--muted); font-size: .8125rem; line-height: 1.35; }
.stp-radio:hover { border-color: var(--accent); }
.stp-radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.stp-radio:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.stp-radios.chips .stp-radio { border-radius: 999px; padding: .5rem .9375rem .5rem .75rem; align-items: center; gap: .5rem; }
.stp-radios.chips .stp-radio input { margin: 0; }
.stp-unterblock { display: grid; gap: .875rem; padding: .875rem 0 .375rem 1rem; margin-left: .625rem; border-left: 2px solid var(--accent); min-width: 0; }
.stp-radios.chips .stp-unterblock { flex-basis: 100%; }
.stp-check { display: flex; align-items: flex-start; gap: .625rem; cursor: pointer; min-height: 44px; padding: .375rem 0; }
.stp-check input { flex: none; width: 1.25rem; height: 1.25rem; margin: .125rem 0 0; accent-color: var(--accent); }
.stp-check input:disabled + span { color: var(--muted); }

/* Status-Etiketten: von dir · angenommen · Standardfall · Premium */
.stp-tag { display: inline-flex; align-items: center; gap: .3125rem; border-radius: 999px; padding: .1875rem .625rem; font-size: .75rem; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.stp-tag .ic { width: 14px; height: 14px; }
.stp-tag.dir { background: var(--gain-soft); color: var(--ink); }
.stp-tag.dir .ic { color: var(--gain); }
.stp-tag.ang { background: var(--held-soft); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--held) 45%, transparent); }
.stp-tag.ang .ic { color: var(--held); }
.stp-tag.best { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--stp-rand); }
.stp-tag.best .ic { color: var(--gain); }
/* „Passt so“: angenommenen Wert übernehmen, ruhig neben dem Etikett */
.stp-passt { display: inline-flex; align-items: center; gap: .3125rem; min-height: 44px; border-radius: 999px; padding: .25rem .75rem; font-size: .8125rem; font-weight: 700; color: var(--ink); background: var(--surface); border: 1px solid var(--stp-rand); cursor: pointer; white-space: nowrap; }
.stp-passt .ic { width: 14px; height: 14px; color: var(--gain); }
.stp-passt:hover { background: var(--surface-2); }
.stp-passt.alle { align-self: flex-start; width: fit-content; max-width: 100%; margin: 0 0 .75rem; white-space: normal; text-align: left; border-radius: 16px; }
.stp-passt-zeile { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.stp-status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .375rem; }
.stp-tag.std, .stp-tag.auto { background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--stp-rand); }
.stp-tag.prem { background: var(--accent-soft); color: var(--ink); }
.stp-tag.prem .ic { color: var(--accent); }

/* Hinweise und Texte */
.stp-hinweis { display: flex; gap: .625rem; align-items: flex-start; border-radius: .875rem; padding: .75rem .875rem; margin: 0; font-size: .9375rem; line-height: 1.45; background: var(--info-soft); color: var(--ink); }
.stp-hinweis .ic { flex: none; margin-top: .1875rem; color: var(--info-ink); }
.stp-hinweis.frist { background: var(--frist-soft); box-shadow: inset 0 0 0 1px var(--frist-line); }
.stp-hinweis.frist .ic { color: var(--frist-ink); }
.stp-hinweis.gut { background: var(--gain-soft); }
.stp-hinweis.gut .ic { color: var(--gain); }
.stp-text { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.stp-hilfe { margin: 0; font-size: .8125rem; line-height: 1.45; color: var(--muted); }
.stp-frei { font-weight: 500; color: var(--muted); font-size: .8125rem; margin-left: .25rem; }
.stp-station { display: flex; gap: .625rem; align-items: flex-start; margin: 0; font-size: .9375rem; line-height: 1.45; }
.stp-station .ic { flex: none; color: var(--accent); margin-top: .1875rem; }
.stp-klapp summary { cursor: pointer; color: var(--accent); font-weight: 700; font-size: .9375rem; min-height: 44px; display: flex; align-items: center; }
.stp-klapp[open] summary { margin-bottom: .25rem; }
.stp-punkte { margin: 0 0 .5rem; padding-left: 1.125rem; display: grid; gap: .375rem; font-size: .875rem; line-height: 1.45; color: var(--ink-2); }
.stp-kinder { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); }
.stp-kind { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .5rem; font-size: .9375rem; }
.stp-kind select, .stp-datum { min-height: 44px; border: 1px solid var(--stp-rand); }
.fl-gewinn-g.zwei { grid-template-columns: 1fr; }
@container (min-width: 30rem) { .fl-gewinn-g.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fl-mon { position: relative; }
.fl-mon em { position: absolute; bottom: -.125rem; left: 50%; transform: translate(-50%, 50%); font-style: normal; font-size: .5625rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: var(--surface); color: var(--frist-ink); border-radius: 999px; padding: 0 .25rem; white-space: nowrap; }
.fl-streifen { padding-bottom: .875rem; }
.fl-geld { box-shadow: inset 0 0 0 1px var(--stp-rand); }
.fl-chip { border-color: var(--stp-rand); }

/* Vertiefung: Gruppen mit Zeilen, Premium-Zeilen mit Schloss */
.stp-teil { display: grid; grid-template-columns: minmax(0, 1fr); gap: .875rem; }
.stp-teil + .stp-teil { margin-top: .75rem; }
.stp-teil-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .375rem .75rem; }
.stp-teil-h { font-size: 1.0625rem; margin: 0; }
.stp-gruppe { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); padding-top: .875rem; }
.stp-gruppe h3 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .25rem; }
.stp-gruppe > .stp-text { margin: .25rem 0 .5rem; }
.stp-zeile { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; padding: .75rem 0; min-width: 0; }
.stp-zeile > *, .stp-feld > *, .stp-gruppe > *, .stp-teil > * { min-width: 0; }
.stp-zeile + .stp-zeile { border-top: 1px solid var(--line); }
.stp-zeile-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .75rem; }
.stp-zeile-t { font-weight: 700; font-size: 1rem; min-width: 0; overflow-wrap: break-word; }
fieldset.stp-zeile { display: grid; }
fieldset.stp-zeile > .stp-legende { float: none; width: auto; }
fieldset.stp-zeile > .stp-feld-tag { margin-top: -.25rem; }
.stp-zeile select.textin, .stp-zeile .textin, .stp-mini .textin { min-height: 44px; border: 1px solid var(--stp-rand); max-width: 100%; }
.stp-geld { display: inline-flex; align-items: center; gap: .375rem; max-width: 14rem; font-weight: 600; color: var(--ink-2); }
.stp-geld input.textin { text-align: right; font-variant-numeric: tabular-nums; min-width: 0; width: 100%; }
.stp-monat { display: inline-flex; flex-wrap: wrap; gap: .375rem; }
.stp-zwei { display: grid; gap: .625rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.stp-mini { display: grid; gap: .25rem; min-width: 0; font-size: .8125rem; color: var(--muted); }
.stp-mini > span:first-child { font-weight: 600; }
.stp-zeile.gesperrt { padding: .5rem 0; }
.stp-schloss { display: flex; align-items: flex-start; gap: .75rem; width: 100%; text-align: left; border: 1.5px dashed var(--stp-rand); border-radius: var(--r); background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, var(--surface) 6px 12px); padding: .875rem 1rem; font: inherit; color: var(--ink); cursor: pointer; min-height: 44px; }
.stp-schloss:hover { border-color: var(--accent); }
.stp-schloss > .ic { flex: none; color: var(--accent); margin-top: .125rem; }
.stp-schloss > span { flex: 1; display: grid; gap: .125rem; min-width: 0; }
.stp-schloss small { color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.stp-schloss .stp-pot { color: var(--accent); font-weight: 700; }
.stp-schloss .stp-tag { justify-self: start; margin-top: .25rem; }
.stp-schloss.klein { padding: .625rem .875rem; align-items: center; }
.stp-ziel { animation: stp-ziel 1.6s ease-out 1; border-radius: .75rem; }
@keyframes stp-ziel { from { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent); } to { box-shadow: 0 0 0 0 transparent; } }

/* Stationen: eine Spur für dich, eine für den Partner; Lücken und gleichzeitige Tätigkeit sichtbar */
.stp-spur { display: grid; gap: .625rem; }
.stp-station-k { border: 1px solid var(--stp-rand); border-radius: var(--r); padding: .75rem .875rem; display: grid; gap: .625rem; background: var(--surface); min-width: 0; }
.stp-station-k.neben { margin-left: 1.25rem; border-style: dashed; }
.stp-station-k.heute { background: var(--surface-2); border-color: var(--line); }
.stp-station-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .75rem; }
.stp-station-kopf b { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .375rem; }
.stp-station-felder { display: grid; align-items: start; gap: .625rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.stp-luecke { display: flex; gap: .5rem; align-items: center; margin: 0; padding: .5rem .75rem; border-radius: .75rem; background: var(--held-soft); font-size: .875rem; font-weight: 600; color: var(--ink); }
.stp-luecke .ic { flex: none; width: 16px; height: 16px; color: var(--held); }
.stp-zeile-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; }
.stp-zeile-knoepfe .btn { min-height: 44px; }

/* Vorläufiges Ergebnis: rechts neben der Frage, am Handy unter der Karte */
.fl-seite { display: grid; gap: .875rem; align-content: start; min-width: 0; }
.stp-live { gap: .5rem; padding: 1.125rem 1.25rem; border-radius: var(--r); }
.stp-live p { margin: 0; }
.stp-live-t, .stp-live-fuss, .stp-live-leer { font-size: .8125rem; color: var(--on-navy-2); line-height: 1.45; }
.stp-live-leer { color: var(--on-navy); font-size: .9375rem; }
.fl-v-zahl { font: 800 clamp(1.875rem, 4vw, 2.25rem)/1.1 var(--font-display); letter-spacing: -.03em; color: var(--on-navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stp-live-zeile { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .125rem .75rem; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: .5rem; font-size: .875rem; color: var(--on-navy-2); }
.stp-live-zeile b { color: var(--on-navy); white-space: nowrap; }
@media (min-width: 1000px) { .fl-seite { position: sticky; top: 5.25rem; } }

/* Einstieg mit gespeicherter Rechnung */
.st-ruhe { margin: .75rem 0 0; color: var(--ink-2); font-size: .875rem; max-width: 36rem; }
.st-beispiel-hinweis { margin: -.25rem 0 0; color: var(--muted); font-size: .875rem; }
.start.mit-rechnung .st-cta-zeile { display: none; }
.fortsetzen { display: block; margin-top: 1rem; padding: 0; background: none; border: 0; border-radius: 0; }
.fortsetzen span { font-size: inherit; color: inherit; }
.fortsetzen b { display: inline; font-size: inherit; }
.fortsetzen .stp-gesp-werte b, .fortsetzen .stp-gesp-reicht b { display: block; }
.fortsetzen .stp-wieder { padding: .75rem 1rem; border-radius: var(--r); background: var(--accent-soft); }
.stp-gesp { gap: .75rem; border: 1.5px solid var(--accent); max-width: 36rem; }
.stp-gesp h2 { font-size: 1.25rem; margin: 0; }
.stp-gesp-seit { margin: -.5rem 0 0; color: var(--muted); font-size: .875rem; }
.stp-gesp-frist { display: flex; gap: .5rem; align-items: flex-start; margin: 0; padding: .625rem .75rem; border-radius: .75rem; background: var(--frist-soft); box-shadow: inset 0 0 0 1px var(--frist-line); color: var(--ink); font-size: .9375rem; }
.stp-gesp-frist .ic { flex: none; color: var(--frist-ink); margin-top: .125rem; }
.stp-gesp-frage { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.stp-gesp-frage legend { font-weight: 700; padding: 0; margin-bottom: .5rem; }
.stp-gesp-werte { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .5rem; }
.stp-gesp-werte > div, .stp-gesp-reicht { display: grid; gap: .125rem; background: var(--surface-2); border-radius: .75rem; padding: .625rem .75rem; }
.stp-gesp small { color: var(--muted); font-size: .8125rem; }
.stp-gesp-werte b, .stp-gesp-reicht b { font: 750 1.125rem var(--font-display); white-space: nowrap; }
/* Satz statt Zahl („Nein, 1 Jahr 5 Monate fehlen“): umbrechen, sonst läuft die Startspalte bei großer Schrift über */
.stp-gesp-reicht b { white-space: normal; overflow-wrap: break-word; }
.stp-gesp-werte > div, .stp-gesp-reicht { min-width: 0; }
.stp-gesp-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; }
.stp-gesp-knoepfe .btn { min-height: 48px; flex: 1 1 13rem; justify-content: center; }
.stp-gesp-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; }
.stp-gesp-links .fl-link { min-height: 44px; text-align: left; }
.stp-gesp-fuss .fl-link { min-height: 32px; padding: .25rem 0; text-align: left; }
.stp-gesp-fuss > span { display: block; }
.stp-gesp-fuss { display: flex; gap: .5rem; align-items: flex-start; margin: 0; padding-top: .625rem; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.stp-gesp-fuss .ic { flex: none; width: 16px; height: 16px; margin-top: .125rem; }
.stp-wieder { display: flex; gap: .5rem; align-items: flex-start; margin: 0; font-size: .9375rem; }
.stp-wieder .ic { flex: none; color: var(--accent); margin-top: .1875rem; }

/* Rückfrage „Neue Rechnung beginnen?“ und Meldung mit Rückgängig */
.stp-dialog h2:focus { outline: none; }
.stp-dialog-zu { margin: .75rem 0 0; text-align: center; }
.toast { display: flex; align-items: center; gap: .75rem; }
.toast[hidden] { display: none; }
.toast .fl-link { color: var(--mint, #7FE0C4); white-space: nowrap; }
.toast .toast-zu { width: 32px; height: 32px; color: inherit; background: none; border: 0; flex: none; }
@media (max-width: 899px) { body.im-flow .toast { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .stp-ziel { animation: none; outline: 3px solid var(--focus); } }
.start.mit-rechnung .st-links [data-schluessel] { display: none; }
/* Stationen: Meldung bei Überschneidung oder korrigiertem Datum */
.stp-station-meldung { display: flex; gap: .5rem; align-items: flex-start; margin: 0; padding: .5rem .75rem; border-radius: .75rem; background: var(--held-soft); font-size: .875rem; color: var(--ink); }
.stp-station-meldung[hidden] { display: none; }
.stp-station-meldung .ic { flex: none; width: 16px; height: 16px; margin-top: .125rem; color: var(--held); }
.stp-mini-z { color: var(--muted); font-size: .75rem; }

/* ---------------------------------------------------------------- Stepper 4: Fortschritt, Unterkategorien, Schalter, Premium-Teile */
.s4-zurueck { padding: .5rem .25rem 0; }
.s4-zurueck .fl-link { display: inline-flex; align-items: center; gap: .375rem; min-height: 44px; font-weight: 700; }
.s4-zurueck .ic { width: 18px; height: 18px; }
.s4-leiste { padding: .875rem .25rem .75rem; display: grid; gap: .625rem; }
.s4-gesamt { display: grid; gap: .375rem; }
.s4-gesamt-t { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .125rem 1rem; }
.s4-gesamt-t b { font-size: .9375rem; }
.s4-gesamt-t .kurz { display: none; }
.s4-prem-zeile { font-size: .8125rem; font-weight: 600; color: var(--accent); }
.s4-balken { height: .5rem; border-radius: .25rem; background: var(--bar); overflow: hidden; }
.s4-balken i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .3s var(--kurve); }
.s4-kats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; }
.s4-kats li { min-width: 0; }
.s4-kats a { display: grid; gap: .375rem; padding: .25rem 0 .375rem; min-height: 44px; align-content: start; color: var(--muted); text-decoration: none; border-radius: .375rem; }
.s4-kbalken { display: block; height: .25rem; border-radius: .25rem; background: var(--bar); overflow: hidden; }
.s4-kbalken i { display: block; height: 100%; background: color-mix(in srgb, var(--accent) 45%, var(--bar)); }
.s4-kats a.jetzt .s4-kbalken { height: .3125rem; }
.s4-kats a.jetzt .s4-kbalken i { background: var(--accent); }
.s4-knm { display: flex; align-items: flex-start; gap: .4rem; min-width: 0; }
.s4-knr { width: 1.375rem; height: 1.375rem; border-radius: 50%; display: inline-grid; place-items: center; font-size: .72rem; font-weight: 800; flex: none; background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--stp-rand); }
.s4-knr .ic { width: .75rem; height: .75rem; stroke-width: 3; }
.s4-knr.fertig { background: var(--gain-soft); color: var(--gain); box-shadow: none; }
.s4-kats a.jetzt .s4-knr { background: var(--accent); color: var(--surface); box-shadow: none; }
.s4-ktxt { display: grid; min-width: 0; }
.s4-klang, .s4-kkurz { font-size: .8125rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s4-kunter { font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s4-kats a.jetzt :is(.s4-klang, .s4-kkurz) { color: var(--accent); font-weight: 800; }
.s4-kats a:hover :is(.s4-klang, .s4-kkurz) { text-decoration: underline; }
.s4-klang { display: none; }
@media (min-width: 1100px) { .s4-klang { display: block; } .s4-kkurz { display: none; } }
@media (max-width: 1099px) { .s4-kunter { display: none; } }

/* Drei Spalten am breiten Bildschirm: Unterkategorien, Karte, Vorläufiges Ergebnis */
.s4-raster { grid-template-areas: "nav" "karte" "seite"; }
.s4-nav { grid-area: nav; min-width: 0; }
.s4-raster .fl-karte { grid-area: karte; }
.s4-raster .fl-seite { grid-area: seite; }
@media (min-width: 1000px) { .fl-raster.s4-raster { grid-template-columns: minmax(0, 1fr) 19rem; grid-template-areas: "nav seite" "karte seite"; } }
@media (min-width: 1180px) { .fl-raster.s4-raster { grid-template-columns: 16.5rem minmax(0, 1fr) 18.5rem; grid-template-areas: "nav karte seite"; } .s4-nav { position: sticky; top: 5.25rem; } }

.s4-unav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.s4-unav > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; min-height: 3.25rem; border-radius: var(--r-lg); }
.s4-unav > summary::-webkit-details-marker { display: none; }
.s4-unav-kopf { display: grid; gap: 0; min-width: 0; flex: 1; }
.s4-unav-kat { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.s4-unav-name { font-size: 1.0625rem; overflow-wrap: break-word; }
.s4-unav-alle { display: inline-flex; align-items: center; gap: .25rem; font-size: .8125rem; font-weight: 700; color: var(--accent); min-height: 28px; white-space: nowrap; }
.s4-unav-alle .ic { width: 16px; height: 16px; transform: rotate(90deg); transition: transform .2s; }
.s4-unav[open] .s4-unav-alle .ic { transform: rotate(-90deg); }
.s4-uliste { list-style: none; margin: 0; padding: .375rem .5rem .625rem; border-top: 1px solid var(--line); display: grid; gap: .125rem; }
.s4-uliste > li { display: flex; align-items: center; gap: .25rem; min-width: 0; }
.s4-uliste > li > a, .s4-uzusatz > button { flex: 1; min-width: 0; display: grid; grid-template-columns: 1.25rem minmax(0, 1fr) minmax(0, 6.5rem); gap: .5rem; align-items: center; min-height: 44px; padding: .375rem .5rem; border-radius: .625rem; color: var(--ink); text-decoration: none; }
@media (hover: hover) { .s4-uliste > li > a:hover, .s4-uzusatz > button:hover { background: var(--surface-2); } .s4-uliste > li > a:hover .s4-un { color: var(--accent); text-decoration: underline; } }
.s4-uliste > li > a[aria-current] { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.s4-ust { width: 1.25rem; height: 1.25rem; border-radius: 50%; display: grid; place-items: center; }
.s4-ust.ok { background: var(--gain-soft); color: var(--gain); }
.s4-ust.ok .ic { width: .75rem; height: .75rem; stroke-width: 3; }
.s4-ust.offen { box-shadow: inset 0 0 0 1.5px var(--stp-rand); }
.s4-ust.ang { background: var(--held); box-shadow: inset 0 0 0 4px var(--surface); }
.s4-ust.jetzt { background: var(--accent); box-shadow: inset 0 0 0 5px var(--accent-soft); }
.s4-un { font-weight: 650; font-size: .875rem; line-height: 1.3; min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.s4-uw { font-size: .75rem; line-height: 1.3; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; display: grid; justify-items: end; gap: .125rem; min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.s4-utrenn { margin: .5rem .5rem .125rem; padding-top: .625rem; border-top: 1px solid var(--line); font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.s4-uzusatz > button { grid-template-columns: minmax(0, 1fr) auto; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; }
.s4-uzusatz .s4-un { color: var(--ink-2); font-weight: 500; }
.s4-uzusatz > a { grid-template-columns: minmax(0, 1fr) auto !important; }
.s4-uz { color: var(--accent); font-weight: 700; font-size: .8125rem; white-space: nowrap; }
.s4-uz.mut { color: var(--muted); font-weight: 500; }
.s4-zu { flex: none; min-height: 44px; border: 0; background: none; color: var(--accent); font: 700 .8125rem var(--font-body); padding: 0 .5rem; cursor: pointer; white-space: nowrap; }
.s4-zu:hover { text-decoration: underline; }
.s4-buendel details { border: 1.5px dashed var(--stp-rand); border-radius: .875rem; background: var(--surface-2); margin-top: .25rem; width: 100%; }
.s4-buendel summary { cursor: pointer; display: flex; gap: .5rem; align-items: center; padding: .625rem .75rem; min-height: 44px; font-weight: 700; font-size: .875rem; color: var(--ink); }
.s4-buendel summary .ic { width: 16px; height: 16px; color: var(--accent); flex: none; }
.s4-buendel ul { list-style: none; margin: 0; padding: 0 .75rem .5rem; display: grid; gap: .25rem; }
.s4-buendel ul a { display: grid; gap: .125rem; padding: .375rem 0; color: var(--ink); text-decoration: none; min-height: 44px; }
.s4-buendel ul a span { font-size: .8125rem; color: var(--muted); line-height: 1.4; }
.s4-buendel ul a:hover b { color: var(--accent); text-decoration: underline; }
.s4-buendel .btn { margin: 0 .75rem .75rem; }
.s4-uliste > li.s4-buendel { display: block; padding: 0; }
.s4-uliste > li.s4-buendel:hover { background: none; }

.uk-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.uk-kopf .uk-schalter { margin-left: auto; }
.uk-frage { margin: 0; font: 750 1.125rem/1.3 var(--font-display); letter-spacing: -.01em; }
.uk-inhalt { display: grid; gap: 1.125rem; }
.uk-inhalt.ist-weg, .uk-form.ist-weg > :not(.uk-werkzeug):not(.stp-hinweis) { opacity: .55; }
#uk-kopf-dyn:empty { display: none; }
#uk-kopf-dyn { display: grid; gap: .5rem; }
.s4-vorbelegt { margin: 0; display: flex; gap: .375rem; align-items: flex-start; font-size: .875rem; color: var(--ink-2); }
.s4-vorbelegt .ic { width: 16px; height: 16px; flex: none; margin-top: .1875rem; color: var(--held); }
.uk-wirkung { margin: 0; font-size: .875rem; color: var(--ink-2); line-height: 1.5; border-left: 3px solid var(--stp-rand); padding: .125rem 0 .125rem .625rem; }
.uk-wk { display: inline-block; border-radius: 999px; padding: .0625rem .5rem; font-size: .75rem; font-weight: 700; background: var(--info-soft-2); color: var(--info-ink); white-space: nowrap; }
.uk-wk.gestalt { background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.s4-uliste .uk-wk { font-size: .6875rem; white-space: normal; max-width: 100%; text-align: right; }

/* Schalter „Einrechnen“ */
.uk-schalter { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; cursor: pointer; font-weight: 700; font-size: .9375rem; position: relative; }
.uk-schalter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.uk-spur { width: 2.75rem; height: 1.625rem; border-radius: 999px; background: var(--bar); position: relative; flex: none; transition: background .2s; }
.uk-spur::after { content: ""; position: absolute; top: .1875rem; left: .1875rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s var(--kurve); }
.uk-schalter input:checked + .uk-spur { background: var(--accent); }
.uk-schalter input:checked + .uk-spur::after { transform: translateX(1.125rem); }
.uk-schalter input:focus-visible + .uk-spur { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Premium: Teile ohne Premium ausgegraut, Schloss mit Standardfall */
.uk-gesperrt { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 1rem; opacity: .55; }
.uk-gesperrt > * { min-width: 0; }
.uk-premteil { display: grid; gap: .75rem; }
.uk-schloss { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem .75rem; border: 1.5px dashed var(--stp-rand); border-radius: var(--r); background: var(--surface-2); padding: .75rem 1rem; font-size: .9375rem; line-height: 1.45; }
.uk-schloss > .ic { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: .125rem; }
.uk-schloss > span { flex: 1 1 14rem; min-width: 0; }
.uk-schloss .uk-nutzen { color: var(--ink-2); }
.uk-schloss .btn { min-height: 40px; }
.uk-standard { display: flex; gap: .5rem; align-items: flex-start; background: var(--surface-2); border-radius: var(--r); padding: .75rem 1rem; font-size: .9375rem; color: var(--ink-2); }
.uk-standard .ic { width: 18px; height: 18px; flex: none; margin-top: .125rem; color: var(--muted); }
.uk-nutzen-z { margin: 0; display: flex; gap: .5rem; align-items: flex-start; font-weight: 650; color: var(--ink); }
.uk-nutzen-z .ic { width: 18px; height: 18px; flex: none; margin-top: .1875rem; color: var(--accent); }
.stp-radio.gesperrt { border-style: dashed; cursor: not-allowed; color: var(--muted); }
.stp-radio.gesperrt b { display: inline-flex; align-items: center; gap: .375rem; }
.stp-radio.gesperrt .ic { width: 15px; height: 15px; }

/* Knöpfe: Zurück, Ändern, Weiter; darunter das Ziel */
.s4-aendern { min-height: 52px; flex: none; }
.btn.fl-weiter .ic { width: 20px; height: 20px; }
.btn.fl-weiter .z-kurz { display: none; }
@media (max-width: 520px) { .btn.fl-weiter .z-lang { display: none; } .btn.fl-weiter .z-kurz { display: inline; } .s4-aendern { padding-inline: .875rem; } }
.btn.fl-weiter { gap: .5rem; }
.s4-danach { margin: -.5rem 0 0; font-size: .8125rem; color: var(--muted); text-align: right; }
@media (max-width: 899px) { .s4-danach { text-align: left; } }
@media (min-width: 900px) { .fl-fuss .s4-aendern { margin-right: auto; min-height: 48px; } .fl-fuss { gap: .75rem; } .fl-fuss .fl-zurueck + .s4-aendern { margin-left: 0; } }

/* Formulare in „So haben wir gerechnet“ */
.uk-form { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.uk-form > * { min-width: 0; }
.uk-werkzeug { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; }
.uk-werkzeug:empty { display: none; }
.uk-werkzeug .btn { min-height: 40px; }
.uk-kopf .fl-frage { flex: 0 1 auto; width: auto; }
.s4-kats li.leer .s4-kbalken { background: repeating-linear-gradient(135deg, var(--bar) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px var(--bar); }
/* Geburtsmonat direkt beim Jahr */
.fl-monat { display: grid; gap: .375rem; }
.fl-monat .stp-mini { max-width: 16rem; }
.fl-monat .fl-rueck { margin: .25rem 0 0; }
/* Große Schrift und schmal: Kategorien nur mit Nummer (Name im aria-label), untere Leiste kompakt */
.s4-leiste > nav { container-type: inline-size; }
@container (max-width: 47.5rem) {
  .s4-ktxt { display: none; }
  .s4-knm { justify-content: center; }
}
@media (max-width: 899px) {
  .fl-fuss { padding: .375rem .75rem calc(.375rem + env(safe-area-inset-bottom)); gap: .5rem; }
  .fl-zurueck { width: 44px; height: 44px; }
  .btn.fl-weiter { min-height: 44px; font-size: 1rem; padding-block: .25rem; }
  .fl-fuss .s4-aendern { min-height: 44px; }
}
/* Monatsstreifen: Wirkung je Monat (Premium), günstigster markiert */
.fl-mon .fl-mon-w { display: block; font-style: normal; font-size: .625rem; font-weight: 700; color: var(--gain, var(--accent)); white-space: nowrap; }
.fl-mon .fl-mon-w.best { color: var(--accent); }
.fl-mon .fl-mon-w.neg { color: var(--held, var(--ink-2)); }

/* Stepper nach Entwurf 5: Kennung, Hinweis mit Titel, Frist-Pille, Rücksprung im Kopf, Vorschau-Zeile am Handy */
.uk-kennung { margin: 0 0 -.5rem; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stp-h-t { display: block; }
.stp-hinweis.ruhig .stp-h-t { color: var(--info-ink); }
.stp-radio-pille { display: inline-flex; vertical-align: middle; margin-left: .25rem; border-radius: 999px; padding: .0625rem .5rem; font-size: .72rem; font-weight: 700; white-space: nowrap; background: var(--frist-soft); color: var(--frist-ink); box-shadow: inset 0 0 0 1px var(--frist-line); }
.fl-brand-t small { display: block; font: 600 .7rem var(--font-body); color: var(--muted); letter-spacing: 0; }
.fl-zum-erg { display: inline-flex; align-items: center; gap: .375rem; min-height: 44px; margin-left: auto; font-size: .875rem; white-space: nowrap; }
.fl-zum-erg .ic { width: 16px; height: 16px; }
.fl-zum-erg + .fl-lokal { margin-left: .75rem; }
.fl-zum-erg .kurz { display: none; }
@media (max-width: 599px) { .fl-zum-erg .lang { display: none; } .fl-zum-erg .kurz { display: inline; } .fl-titel { display: none; } }
.fl-vz { flex-basis: 100%; margin: 0 0 .125rem; font-size: .8125rem; color: var(--ink-2); line-height: 1.35; }
.fl-vz b { color: var(--ink); white-space: nowrap; }
.fl-fuss { flex-wrap: wrap; }
@media (min-width: 900px) { .fl-vz { display: none; } }
@media (max-width: 899px) { .fl .seitenfuss { padding-bottom: calc(36px + 110px + env(safe-area-inset-bottom, 0px)); } body.im-flow .toast { bottom: calc(120px + env(safe-area-inset-bottom, 0px)); } }
.stp-methode { display: grid; gap: .375rem; font-size: .875rem; }
.stp-methode .fl-link { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }
/* Am Handy: „Zurück zum Ergebnis“ steht im Kopf, die eigene Zeile darüber entfällt */
@media (max-width: 899px) { .s4-zurueck { display: none; } }
@media (min-width: 900px) { body:has(#s4-zurueck:not([hidden])) .fl-zum-erg { display: none; } }
.s4-uliste > li.mit-knopf { flex-wrap: wrap; justify-content: flex-end; }
.s4-uliste > li.mit-knopf > a { flex-basis: 100%; }

/* Startseite (Oktober 2026): Preiszeile unter dem Knopf, Seitenlinks nur am Handy (dort fehlt die Kopfnavigation),
   mit gespeicherter Rechnung ohne allgemeine Fristen und ohne doppelte Links; am Handy die vier Zahlen direkt unter dem Knopf */
.st-preis { margin: .75rem 0 0; font-size: .875rem; color: var(--ink-2); }
.st-preis .linkbtn { font-size: .875rem; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 760px) { .st-links .st-nur-handy { display: none; } }
.start.mit-rechnung .st-links, .start.mit-rechnung .st-fristband, .start.mit-rechnung .st-preis { display: none; }
.stp-gesp-frist.dringend { background: var(--frist-soft); box-shadow: inset 0 0 0 1.5px var(--frist-ink); }
.stp-gesp-frist .fl-link { min-height: 32px; margin-left: .25rem; }
.stp-gesp-check { margin: 0; }
.stp-gesp-check .fl-link { min-height: 44px; text-align: left; }
@media (max-width: 959px) {
  .st-innen { display: flex; flex-direction: column; gap: 0; }
  .st-text, .st-seite { display: contents; }
  .st-pille { align-self: flex-start; }
  .st-text > *, .st-seite > * { order: 1; }
  .st-innen > .st-fristband { order: 2; margin-top: 1rem; }
  .st-seite > .st-vorschau { order: 3; margin-top: 1.25rem; }
  .st-text > .fortsetzen, .st-text > .st-links { order: 4; }
  .start.mit-rechnung .st-seite > .st-vorschau { display: none; }
}

/* Stationen (Oktober 2026): Art über die volle Breite, darunter Zeitraum (Ab | Bis) mit Jahr und Monat nebeneinander,
   darunter die Beträge; eine gleichzeitige Station mit Randstreifen statt Einrückung */
.stp-station-k { padding: .875rem 1rem 1rem; gap: .75rem; }
.stp-station-kopf b { font-size: 1rem; }
.stp-st-weg { display: inline-flex; align-items: center; gap: .25rem; color: var(--muted); font-weight: 600; text-decoration: none; min-height: 44px; }
.stp-st-weg:hover { color: var(--accent); text-decoration: underline; }
.stp-st-weg .ic { width: 14px; height: 14px; }
.stp-station-felder { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.stp-st-art .textin { width: 100%; }
.stp-st-zeile { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); align-items: start; }
.stp-mini > span:first-child small { font-weight: 500; color: var(--muted); font-size: .75rem; }
.stp-station-k .stp-monat { display: grid; grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr); gap: .375rem; width: 100%; }
.stp-station-k .stp-monat.nur-jahr { grid-template-columns: minmax(0, 1fr); }
.stp-station-k .stp-monat .textin { width: 100%; }
.stp-station-k .stp-geld { max-width: none; width: 100%; }
.stp-station-k.neben { margin-left: 0; border-style: solid; box-shadow: inset 3px 0 0 var(--mint); }
.stp-station-kopf { flex-wrap: nowrap; align-items: flex-start; }
.stp-station-kopf b { flex: 1 1 auto; min-width: 0; padding-top: .625rem; }
.stp-st-weg { flex: none; }

/* Vermietung und Immobilien-Vorhaben wie die Stationen: Kopf mit „Entfernen“ rechts, Felder mit €-Zeichen, 44 px hoch */
#step-body .phase, .eg-blatt .phase { border: 1px solid var(--stp-rand); border-radius: var(--r); padding: .875rem 1rem 1rem; gap: .75rem; }
.phase-kopf { justify-content: space-between; flex-wrap: nowrap; }
.phase-kopf .fzname { flex: 1 1 auto; min-width: 0; font: 700 1rem var(--font-body); background: transparent; border-color: transparent; }
.phase-kopf .fzname:hover, .phase-kopf .fzname:focus { background: var(--surface-2); border-color: var(--stp-rand); }
.phase-kopf .seg { margin-right: auto; }
#step-body .phase-f, .eg-blatt .phase-f { font-weight: 600; gap: .25rem; }
#step-body .phase-f input, #step-body .phase-f select, .eg-blatt .phase-f input, .eg-blatt .phase-f select { min-height: 44px; border-color: var(--stp-rand); font-weight: 500; }
.phase-geld { display: flex; align-items: center; gap: .375rem; color: var(--ink-2); font-weight: 600; }
.phase-geld input { flex: 1 1 auto; min-width: 0; }
#step-body .phase-grid, .eg-blatt .phase-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .75rem; align-items: start; }

/* Startseite nach dem Funnel-Plan (Oktober 2026): verkauft den kostenlosen Rechner; Premium sichtbar (Preis, Umfang),
   aber ohne Kaufknopf. Beispiel-Vorschau wie die Kopfzahlen im Ergebnis, Fristen-Band, Schritte, Vergleichstabelle,
   Vertrauen, Fragen zum Aufklappen, feste Leiste am Handy. */
.st-hero { padding-bottom: 1.25rem; }
.st-vorschau { display: grid; gap: .625rem; padding: 1rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.st-vorschau p { margin: 0; }
.st-vs-titel { display: flex; gap: .5rem; align-items: center; margin: 0; font-size: .9375rem; color: var(--ink); }
.st-vs-titel .ic { flex: none; width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.st-vs-titel small { font-weight: 600; color: var(--muted); font-size: .8125rem; }
.st-vs-lage { font-size: .8125rem; color: var(--ink-2); line-height: 1.45; }
.st-vs-kopf { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); gap: .5rem; }
.st-vs-kz { border-radius: var(--r); padding: .75rem .875rem; display: grid; gap: .125rem; align-content: start; min-width: 0; }
.st-vs-kz .ueberzeile { font-size: .6875rem; }
.st-vs-dunkel { background: var(--navy); background-image: var(--hero-grad); color: var(--on-navy); }
.st-vs-dunkel .ueberzeile { color: var(--mint); }
.st-vs-hell { background: var(--surface-2); }
.st-vs-hell .ueberzeile { color: var(--muted); }
.st-vs-zahl { font: 800 1.375rem/1.15 var(--font-display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.st-vs-unter { font-size: .75rem; line-height: 1.4; }
.st-vs-dunkel .st-vs-unter { color: var(--on-navy-2); }
.st-vs-hell .st-vs-unter { color: var(--ink-2); }
.st-vs-zeile { display: flex; gap: .5rem; align-items: flex-start; padding: .5rem .75rem; border-radius: .75rem; background: var(--surface-2); font-size: .8125rem; line-height: 1.45; color: var(--ink); }
.st-vs-zeile .ic { flex: none; width: 16px; height: 16px; margin-top: .125rem; }
.st-vs-frist { background: var(--frist-soft); box-shadow: inset 0 0 0 1px var(--frist-line); }
.st-vs-frist .ic { color: var(--frist-ink); }
.st-vs-link { justify-self: start; display: inline-flex; align-items: center; gap: .25rem; min-height: 44px; font-size: .9375rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.st-vs-link .ic { width: 14px; height: 14px; }
@media (min-width: 960px) { .st-seite { padding-top: 1.5rem; } .st-vorschau { padding: 1.25rem; } .st-vs-zahl { font-size: 1.75rem; } }

/* Fristen als schmales Band unter dem Hero */
.st-fristband { display: flex; gap: .5rem; align-items: flex-start; max-width: 1240px; margin: 0 auto; padding: .625rem .875rem; border-radius: var(--r); background: var(--frist-soft); box-shadow: inset 0 0 0 1px var(--frist-line); color: var(--ink); font-size: .875rem; line-height: 1.45; }
.st-fristband .ic { flex: none; width: 18px; height: 18px; margin-top: .0625rem; color: var(--frist-ink); }
.st-fristband b { color: var(--frist-ink); }

/* Abschnitte darunter: knapper als die alten Landing-Blöcke */
.start .landing { gap: 1rem; margin-top: 1.25rem; }
.start .l-block { padding: clamp(1rem, 3vw, 2rem); line-height: 1.5; }
.start .l-block h2, .st-beispiele h2, .st-schluss h2 { font-size: clamp(1.25rem, 2.4vw, 1.625rem); margin: 0 0 .5rem; }
.st-schritt-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.st-schritt-liste li { display: flex; gap: .75rem; align-items: flex-start; }
.st-schritt-liste h3 { margin: 0; font-size: 1rem; }
.st-schritt-liste p { margin: .125rem 0 0; font-size: .875rem; color: var(--ink-2); }
.st-nr { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.st-cta-unten { margin: 1rem 0 0; }
.st-cta2 { min-height: 48px; }
@media (max-width: 599px) { .st-cta2 { width: 100%; justify-content: center; } }
.st-beispiele { display: grid; gap: .625rem; margin: .5rem 0; padding-inline: .25rem; }
.st-beispiele .st-beispiel-hinweis { margin: -.375rem 0 0; }

/* Vergleichstabelle: drei Spalten auch am Handy, Nutzentext breit, zwei schmale Spalten, Köpfe bleiben stehen */
.st-v-lead { margin: 0 0 .75rem; color: var(--ink-2); }
.st-tab { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: .875rem; line-height: 1.4; }
.st-tab .st-tab-was { width: 46%; }
.st-tab th, .st-tab td { padding: .5rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; overflow-wrap: break-word; hyphens: manual; }
.st-tab thead th { position: sticky; top: var(--fest-oben, 0px); z-index: 1; background: var(--surface); font-size: .8125rem; font-weight: 800; color: var(--ink); border-bottom: 2px solid var(--line); }
.st-tab thead th:last-child { color: var(--accent); }
.st-tab tbody th { font-weight: 600; color: var(--ink); padding-left: 0; }
.st-tab tbody th small { display: block; font-weight: 500; color: var(--muted); font-size: .8125rem; }
.st-tab td { color: var(--ink-2); font-size: .8125rem; }
.st-tab td:last-child, .st-tab thead th:last-child { background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
.st-tab td.ja .ic { width: 20px; height: 20px; color: var(--gain, var(--accent)); stroke-width: 2.6; }
.st-tab td.nein { color: var(--muted); }
.st-tab-preis th, .st-tab-preis td { border-bottom: 0; }
.st-tab-preis td b { color: var(--ink); font-size: .9375rem; }
@media (min-width: 760px) { .st-tab { font-size: .9375rem; } .st-tab td { font-size: .875rem; } .st-tab th, .st-tab td { padding: .625rem .875rem; } .st-tab .st-tab-was { width: 44%; } }
.st-v-fair, .st-v-erst { margin: .75rem 0 0; font-size: .875rem; color: var(--ink-2); }
.st-v-erst { font-weight: 600; color: var(--ink); }
/* „Schon gekauft? …“: kleiner Link unter dem Vergleich, führt zu „Premium wieder freischalten“ (premium.js) */
.st-v-gekauft { margin: .5rem 0 0; font-size: .875rem; }
.st-v-gekauft a { text-decoration: underline; text-underline-offset: 2px; }

/* Warum du den Zahlen trauen kannst */
.st-trauen-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); font-size: .875rem; color: var(--ink-2); }
.st-trauen-liste li { display: flex; gap: .625rem; align-items: flex-start; }
.st-trauen-liste .ic { flex: none; width: 20px; height: 20px; margin-top: .0625rem; color: var(--accent); }
.st-trauen-liste b { color: var(--ink); }

/* Häufige Fragen zum Aufklappen */
.faq .st-frage { border-bottom: 1px solid var(--line); }
.faq .st-frage > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 48px; padding: .5rem 0; }
.faq .st-frage > summary::-webkit-details-marker { display: none; }
.faq .st-frage > summary::after { content: ""; flex: none; width: .5rem; height: .5rem; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); margin-right: .25rem; transition: transform .15s; }
.faq .st-frage[open] > summary::after { transform: rotate(-135deg); }
.faq .st-frage > summary h3 { margin: 0; font-size: 1rem; }
.faq .st-frage > p { margin: 0 0 .75rem; font-size: .9375rem; color: var(--ink-2); }
.faq .l-mehr { margin-top: .75rem; font-size: .875rem; }
@media (prefers-reduced-motion: reduce) { .faq .st-frage > summary::after { transition: none; } }

/* Schluss */
.st-schluss { text-align: center; padding: 1rem .5rem 0; }
.st-schluss p { margin: 0; color: var(--ink-2); }
.st-schluss .st-cta-unten { margin-top: .875rem; }

/* Feste Leiste am Handy: erscheint, wenn der Knopf im Hero aus dem Bild ist; über dem Seitenfuß weg (src/start.js) */
.st-leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: .625rem 1rem calc(.625rem + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(16, 24, 40, .08); }
.st-leiste .btn { width: 100%; min-height: 48px; justify-content: center; }
.st-leiste[hidden], #screen-start[hidden] .st-leiste { display: none; }
@media (min-width: 760px) { .st-leiste { display: none; } }
@media print { .st-leiste { display: none !important; } }

/* Schmale Bildschirme: Nutzentext über die volle Breite, darunter Kostenlos | Premium als zwei Spalten (Köpfe bleiben stehen).
   So bleibt die Tabelle auch mit 150 % Schrift lesbar und ohne waagerechtes Scrollen. */
@media (max-width: 599px) {
  .st-tab, .st-tab thead, .st-tab tbody { display: block; }
  .st-tab colgroup { display: none; }
  .st-tab tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .st-tab thead { position: sticky; top: var(--fest-oben, 0px); z-index: 1; }
  .st-tab thead th { position: static; }
  .st-tab thead th:first-child { position: absolute; }
  .st-tab tbody th { grid-column: 1 / -1; padding: .625rem 0 .25rem; border-bottom: 0; }
  .st-tab td { padding: .25rem .5rem .625rem; }
  .st-tab td:first-of-type { border-right: 1px solid var(--line); }
}
@media (max-width: 599px) {
  .st-schritt-liste { gap: .5rem; }
  .st-schritt-liste h3, .st-schritt-liste p { display: inline; }
  .st-schritt-liste p { margin-left: .25rem; }
  .st-nr { width: 1.75rem; height: 1.75rem; font-size: .875rem; }
  .faq .st-frage > summary h3 { font-size: .9375rem; }
  .st-vs-lage { font-size: .75rem; }
}
.st-schritt-liste li > div { min-width: 0; overflow-wrap: break-word; }

/* Hero kompakt (Oktober 2026): eine Zeile unter dem Knopf statt Vertrauensliste, Fristen-Band im Hero über die volle Breite */
.st-chips { list-style: none; margin: .875rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .375rem; }
.st-chips li { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .625rem; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: .8125rem; font-weight: 600; white-space: normal; max-width: 100%; }
.st-chips .ic { width: 14px; height: 14px; color: var(--accent); }
.st-chip-link { display: inline-flex; align-items: center; gap: .3rem; color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 2px; }
.st-chip-link:hover { text-decoration-thickness: 2px; }
.st-innen > .st-fristband { grid-column: 1 / -1; width: 100%; }
/* Kaufknopf an Schlössern im Stepper */
.uk-schloss .uk-kauf { margin-left: calc(18px + .75rem); }
.stp-hinweis .uk-kauf { margin-top: .5rem; }
.st-v-kauf { margin: 1rem 0 0; }
.st-v-kauf .btn { white-space: normal; max-width: 100%; height: auto; text-align: center; flex-wrap: wrap; justify-content: center; box-sizing: border-box; }
.stp-kauf { margin: .5rem 0 0; }
.btn.prem.klein { min-height: 44px; max-width: 100%; white-space: normal; }
/* ergebnis.css: Ergebnisseite mit vier Reitern (Übersicht, Rechner, To-dos, Fragen) */

/* ---------------------------------------------------------------- Rahmen */
.ergebnis .tabs .lk, .lk { font-style: normal; font-size: .6875rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; margin-left: auto; letter-spacing: .02em; }
.ergebnis .main { display: grid; gap: 16px; min-width: 0; }
.ergebnis .panelview { display: grid; gap: 16px; min-width: 0; }
.ergebnis .panelview[hidden] { display: none; }
.ergebnis .panelview:focus { outline: none; }
@media (max-width: 960px) {
  .ergebnis .reiter-unten .lk, .ergebnis .reiter-unten .count { display: none; }
  .ergebnis .kopf-rechts .pw-side { display: none; } /* am Handy steht Premium im Kaufkasten */
  .ergebnis .main { padding-bottom: var(--platz-unten); }
}

/* ---------------------------------------------------------------- Ergebnis */

.schaetz-zeichen { display: inline-grid; place-items: center; min-width: 1.25rem; font-weight: 700; color: var(--muted); border: 1px dashed var(--muted); border-radius: 6px; padding: 0 3px; font-size: .75em; margin-right: 6px; vertical-align: .15em; line-height: 1.3; }

.u-chart { background: var(--surface-2); border-radius: 18px; padding: 14px 14px 12px; min-width: 0; display: grid; gap: 8px; }

.u-titel { font-weight: 700; font-size: .875rem; margin: 0; max-width: 60ch; }
.u-laedt { min-height: 240px; display: grid; place-items: center; }
#u-job, #u-verm { display: grid; gap: 6px; min-width: 0; }
#u-job[hidden], #u-verm[hidden] { display: none; }
#u-verm .cardhead { align-items: center; }
#u-verm .horizon { flex-wrap: wrap; background: var(--surface); }
#u-verm .horizon button { border: 0; font-size: .78125rem; padding: 5px 10px; }
#u-verm .horizon button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
#u-verm.gesperrt > :not(.u-lock) { display: none; }
.u-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.u-fuss .linkbtn { margin-left: auto; font-size: .8125rem; }
.legend i.strich { width: 16px; height: 0; border-top: 2px dashed var(--ink-2); border-radius: 0; vertical-align: middle; }
.sw-tabknopf, .u-fuss .linkbtn { cursor: pointer; }
.sw-tabknopf:hover { text-decoration: underline; }
.sw-punkt:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 50%; }

.gm-alle { justify-self: start; font-size: .875rem; }

/* ---------------------------------------------------------------- Übersicht */

.ue-i { display: inline-grid; place-items: center; width: 1.375rem; height: 1.375rem; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 700 .75rem/1 var(--font-body); font-style: italic; padding: 0; vertical-align: .05em; cursor: pointer; }
.ue-i[aria-expanded="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.nw { white-space: nowrap; }

/* Hinweisstreifen über dem Ergebnis: höchstens zwei */
.ue-hinweise { display: grid; gap: 8px; }
.ue-hinweise[hidden] { display: none; }
.ue-hinweis { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: var(--surface); color: var(--ink); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 12px; font: 600 .875rem/1.35 var(--font-body); cursor: pointer; min-height: 44px; }
.ue-hinweis > span { flex: 1; min-width: 0; }
.ue-hinweis .ic { width: 18px; height: 18px; flex: none; color: var(--muted); }
.ue-hinweis.dringend { box-shadow: inset 0 0 0 2px var(--warn), var(--shadow); }
.ue-hinweis.dringend > .ic:first-child { color: var(--warn); }
.ue-hinweis:hover { background: var(--surface-2); }

/* Umschalter über den Kacheln */
.ue-schalter { display: grid; gap: 6px; margin-top: 4px; }
.ue-seg { display: flex; flex-wrap: wrap; justify-self: start; max-width: 100%; background: var(--surface-2); border-radius: 18px; padding: 3px; gap: 2px; }
.ue-seg button { border: 0; background: none; border-radius: 999px; padding: 7px 13px; font: 600 .8125rem/1.25 var(--font-body); color: var(--ink-2); min-height: 36px; text-align: left; }
.ue-seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.ue-angenommen { margin: 0; font-size: .8125rem; color: var(--ink-2); }
.ue-angenommen .linkbtn { font-size: .8125rem; }


.uk-unter { display: block; padding: 0 14px; font-size: .8125rem; color: var(--ink-2); font-weight: 600; }
.uk-unter:last-of-type { padding-bottom: 10px; }
.uk-unter + .uk-unter { margin-top: 4px; }
.uk-ende { display: flex; align-items: center; gap: 6px; padding: 0 14px 10px; font-size: .8125rem; color: var(--ink-2); }
.uk-ende select { width: auto; flex: none; font: 600 .8125rem var(--font-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; min-height: 32px; }
/* Schalter „Was darf mitzählen?“ an der Kachel „Dein Geld reicht“ */
.uk-rw { margin: 6px 14px 10px; padding: 8px 0 0; border: 0; border-top: 1px solid var(--line); min-width: 0; font-size: .8125rem; color: var(--ink-2); }
.uk-rw legend { padding: 0; font-weight: 700; color: var(--ink); font-size: .8125rem; }
.uk-rw > div { margin-top: 6px; }
.uk-rw-z { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; }
.uk-rw-z input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent, currentColor); }
.uk-rw-b { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; white-space: nowrap; }
.uk-rw-betrag { width: 5.5em; font: 600 .8125rem var(--font-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; min-height: 32px; text-align: right; }
.uk-rw-rat { display: block; margin: 2px 0 0 26px; }
.uk-rw-gruende { margin: 2px 0 0 26px; }
.uk-rw-gruende summary { cursor: pointer; font-weight: 600; min-height: 28px; display: inline-flex; align-items: center; }
.uk-rw-gruende ul { margin: 4px 0 0; padding-left: 18px; line-height: 1.45; }
.uk-rw-hinweis { margin: 8px 0 0; }
.uk-rw .linkbtn { font-size: .8125rem; font-weight: 600; }
.uk-mehr { margin: 0 14px 12px; padding-top: 8px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--ink-2); line-height: 1.5; }
.uk-mehr[hidden] { display: none; }
.uk-drei { display: block; font-weight: 700; color: var(--ink); margin-bottom: 4px; font-variant-numeric: tabular-nums; }

.ue-zeile { margin: 0; font-size: .9375rem; line-height: 1.5; max-width: 72ch; }
.ue-zeile .linkbtn { font-size: .875rem; }
.ue-schwelle { padding-top: 10px; border-top: 1px solid var(--line); }
.ue-grafik > summary { cursor: pointer; font-weight: 600; font-size: .875rem; color: var(--accent); padding: 4px 0; min-height: 32px; }
.ue-grafik[open] > summary { margin-bottom: 8px; }
.ue-luecke { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.ue-luecke[hidden] { display: none; }
.ue-streifen { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 2px; }
.ue-streifen .weg-seg { position: static; display: grid; place-items: center; height: 22px; border-radius: 4px; width: auto; font-size: .6875rem; }
.ue-streifen .weg-seg b { color: var(--ink); background: var(--surface); border-radius: 4px; padding: 0 3px; line-height: 1.3; }
.ue-streifen-legende { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .75rem; color: var(--muted); }
.ue-streifen-legende span { display: inline-flex; align-items: center; gap: 5px; }
.ue-streifen-legende .weg-seg { position: static; display: inline-block; width: 12px; height: 10px; border-radius: 3px; }
.ue-streifen-legende b { color: var(--ink); }
.ue-annahmen { margin: 0; font-size: .8125rem; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--line); }
.ue-annahmen .linkbtn { font-size: .8125rem; }
.ue-premium { display: flex; flex-wrap: wrap; gap: 8px; }
.ue-premium .btn { flex-wrap: wrap; row-gap: 2px; flex: 1 1 15rem; justify-content: center; gap: 8px; min-height: 44px; white-space: normal; text-align: center; }
.ue-premium .btn .ic { width: 18px; height: 18px; flex: none; }
.ue-premium .lk { margin-left: 4px; }
.ue-premium .ue-teaser { flex: 1 1 100%; }
.uk-unter .linkbtn { font-size: .8125rem; font-weight: 600; }

/* Details eingeklappt */
.ue-details > summary { display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 2px 10px; align-items: center; cursor: pointer; list-style: none; }
.ue-details > summary::-webkit-details-marker { display: none; }
.ue-details > summary::after { content: "+"; grid-column: 2; grid-row: 1 / span 2; font-weight: 700; font-size: 1.25rem; color: var(--muted); }
.ue-details[open] > summary::after { content: "−"; }
.ue-details > summary h2 { margin: 0; font-size: 1.125rem; }
.ue-details > summary > span { font-size: .8125rem; color: var(--muted); }
.ue-details[open] { gap: 12px; }
.ue-details #genauer > * { box-shadow: none; }
.pwl-hebel li > span { display: grid; gap: 2px; }
.pwl-hebel small { color: var(--muted); font-size: .8125rem; }
.ue-details .pw-leiste { border-radius: 16px; padding: 14px; }

/* ---------------------------------------------------------------- Premium-Leiste und Sperren */
.pw-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; border: 1.5px solid var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 80%); }
.pw-leiste.premium { border-color: var(--line); background: var(--surface); }
.pwl-t { flex: 1 1 320px; display: grid; gap: 6px; min-width: 0; }
.pwl-t h2, .pwl-t h3 { font-size: 1.0625rem; margin: 0; }
.pwl-t p { font-size: .875rem; color: var(--ink-2); margin: 0; }
.pwl-chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pwl-chips li { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: .8125rem; }
.pwl-chips b { font-variant-numeric: tabular-nums; }
.pwl-chips .ic { width: 12px; height: 12px; color: var(--muted); }
.pwl-hebel { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pwl-hebel li { display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; padding: 6px 0; border-bottom: 1px solid var(--line); }
.pwl-hebel b { font-variant-numeric: tabular-nums; white-space: nowrap; }

.sperre { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--surface-2); border: 1px dashed var(--line); border-radius: 14px; padding: 14px; }
.u-chart .sperre { background: var(--surface); }
.sperre > div { flex: 1 1 220px; min-width: 0; }
.sperre b { display: block; font-size: .9375rem; }
.sperre p { font-size: .8125rem; color: var(--muted); margin: 2px 0 0; }
.sperre-ic { width: 2.25rem; height: 2.25rem; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--ink-2); flex: none; }

/* Gesperrte Inhalte ohne Unschärfe */
.lock { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; font-size: .875rem; color: var(--ink-2); }
.lock > .ic { width: 16px; height: 16px; color: var(--muted); }
.lock .lock-btn { position: static; transform: none; background: none; box-shadow: none; padding: 0; color: var(--accent); font-weight: 600; font-size: .875rem; border-radius: 0; }
.reiter-gesperrt > :not(.pw-overlay) { display: none; filter: none; }
.pw-overlay { position: static; }

/* ---------------------------------------------------------------- Mehr dazu */
.mehrdazu { display: grid; gap: 4px; }
.mehrdazu h2 { margin: 0 0 4px; }
#mehr details.mehr:last-child { border-bottom: 0; }
#mehr details.mehr > summary { grid-template-columns: 2rem minmax(0, 1fr) auto 20px; }
.m-ic { width: 2rem; height: 2rem; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.m-ic .ic { width: 17px; height: 17px; }
#mehr details.mehr > .inhalt { padding-left: calc(2rem + 12px); }
#mehr .inhalt > .answer, .m-h + .answer { font-size: .875rem; color: var(--muted); margin: 0; }
.m-h { font-size: 1rem; margin: 6px 0 2px; }
.m-thema { display: grid; gap: 12px; }
.m-thema h3 { font-size: 1rem; margin: 6px 0 0; }
.m-thema .linkrow { display: none; }
.ag { display: grid; gap: 4px; }
@media (max-width: 560px) {
  #mehr details.mehr > .inhalt { padding-left: 0; }
}
@media (max-width: 420px) {
  #mehr details.mehr > summary { grid-template-columns: 2rem minmax(0, 1fr) 20px; }
  #mehr details.mehr > summary > b { grid-column: 2; grid-row: 2; text-align: left; font-size: .9375rem; }
  #mehr details.mehr > summary::after { grid-column: 3; grid-row: 1 / span 2; }
  #mehr details.mehr > summary > .m-ic { grid-row: 1 / span 2; }
}

/* ---------------------------------------------------------------- To-dos */
.todo-h { font-size: 1rem; margin: 0 0 4px; }
.todos { list-style: none; margin: 0; padding: 0; display: grid; }
.todo { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; gap: 4px 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.todo:last-child { border-bottom: 0; }
.todo-t { display: grid; gap: 2px; min-width: 0; }
.todo-t b { font-size: .9375rem; }
.todo-t p { font-size: .875rem; color: var(--muted); margin: 0; max-width: 70ch; }
.todo-datum { font-weight: 700; font-size: .875rem; }
.todo.dringend .todo-datum { color: var(--warn); }
.todo-stufe { justify-self: start; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; background: var(--surface-2); color: var(--ink-2); }
.todo.hoch .todo-stufe { background: var(--warn-soft); color: var(--warn); }
.todo-betrag { font-weight: 700; text-align: right; white-space: nowrap; display: grid; }
.todo-betrag small { font-weight: 500; font-size: .75rem; color: var(--muted); }
.pill.dringend { font-size: .6875rem; font-weight: 700; background: var(--warn-soft); color: var(--warn); border-radius: 999px; padding: 1px 8px; vertical-align: 2px; margin-left: 4px; }
.todos.kompakt .todo { grid-template-columns: 5rem minmax(0, 1fr) auto; }
@media (max-width: 560px) {
  .todo, .todos.kompakt .todo { grid-template-columns: minmax(0, 1fr) auto; }
  .todo-datum, .todo-stufe { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- Details & Fragen */
.d-kopf { display: grid; gap: 12px; }
.d-kopf .search { max-width: none; box-shadow: none; background: var(--surface-2); }
.d-sprung .chip { min-height: 36px; }
.d-h { font-size: 1.25rem; margin: 10px 4px 10px; }
#d-themen, #d-fragen, #d-experte { scroll-margin-top: 16px; }
#d-fragen #qfilter { margin-bottom: 12px; }
#d-experte > .note { margin: -4px 4px 10px; }

/* ---------------------------------------------------------------- Menü „Bericht & Speichern“ */
.menue-liste { gap: 2px; }
.menue-liste button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: none; border-radius: 12px; padding: 10px 10px; min-height: 48px; color: var(--ink); font-weight: 600; }
.menue-liste button:hover { background: var(--surface-2); }
.menue-liste button > span { display: grid; flex: 1; }
.menue-liste small { font-weight: 500; color: var(--muted); font-size: .8125rem; }
.menue-liste button[data-loeschen] { color: var(--warn); }

/* ---------------------------------------------------------------- Fußzeile */
.ergebnis .disclaimer { font-size: .8125rem; padding: 12px 16px; box-shadow: none; background: none; }
.ergebnis .disclaimer p { margin: 0; }
.d-haftung summary { cursor: pointer; color: var(--accent); font-weight: 600; margin-top: 4px; }
.d-haftung p { margin-top: 6px; }

/* ---------------------------------------------------------------- Handy */
@media (max-width: 860px) {
  .u-chart { margin: 0 -8px; padding: 12px 10px; }
}
@media (max-width: 560px) {
  .ergebnis .card { padding: 18px 16px; }
}
@media print {
  .sw-tabknopf, .sw-tip { display: none; }
}
.d-sprung .delta { opacity: 1; padding: 0; display: inline; color: var(--muted); font-weight: 600; margin-left: 2px; }
@media (max-width: 560px) { .ergebnis .example .zitat { display: none; } }

#schwelle, #sz-schwelle { min-width: 0; max-width: 100%; }

.start .landing { max-width: 1240px; margin: 2rem auto 0; padding-inline: .25rem; }
.l-mehr { margin-top: 18px; color: var(--ink-2); }
.ue-details { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.ue-details > * { min-width: 0; }
.ue-details > :not(summary) { max-width: 100%; }
.ue-details .gm-acc { min-width: 0; }
.ue-details .pwl-t { flex-basis: 100%; }
.ue-details .gm { grid-template-columns: minmax(0, 1fr); }
.ue-details .gm-kopf > * { min-width: 0; }
.ue-details .pw-leiste > * { min-width: 0; max-width: 100%; }
.pwl-t { grid-template-columns: minmax(0, 1fr); }
.pwl-chips li { flex-wrap: wrap; max-width: 100%; }
#mehr details.mehr > summary > b { white-space: normal; min-width: 0; }
#mehr details.mehr > summary > span { min-width: 0; overflow-wrap: anywhere; }
.todo-t, .todo-t b { overflow-wrap: anywhere; }

/* Zeitleiste: Jahreszahlen am Rand nicht abschneiden */
.weg-achse span.rand-l { transform: none; }
.weg-achse span.rand-l::before { left: 0; }
.weg-achse span.rand-r { transform: translateX(-100%); }
.weg-achse span.rand-r::before { left: 100%; }


/* Die eingeklappte Angaben-Schublade liegt rechts neben dem Bildschirm; sie darf kein waagerechtes Scrollen auslösen */
html:has(#screen-result:not([hidden])) { overflow-x: clip; }

/* ================================================================ Übersicht im neuen Stil
   Frist-Banner oben, links Urteil mit Kennzahl-Kästen, rechts Premium- und Hinweis-Karte, am Handy feste Leiste */

.ue-haupt { display: grid; gap: 16px; min-width: 0; }

/* Frist-Banner gelb, sonst ein blauer Hinweis */
.ue-hinweis { border-radius: 14px; box-shadow: none; background: var(--info-soft); color: var(--info-ink); border: 1px solid var(--info-soft-2); }
.ue-hinweis .ic { color: var(--info-ink); }
.ue-hinweis:hover { background: var(--info-soft-2); }
.ue-hinweis.dringend { background: var(--frist-soft); color: var(--frist-ink); border-color: var(--frist-line); box-shadow: none; }
.ue-hinweis.dringend > .ic:first-child, .ue-hinweis.dringend .ic { color: var(--frist-ink); }
.ue-hinweis.dringend:hover { background: color-mix(in srgb, var(--frist-soft) 70%, var(--frist-line)); }

.ue-kopfzeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.ue-kopfzeile .ueberzeile { margin: 0; }

.uk-balken { display: flex; gap: 2px; height: 8px; margin: 2px 14px 6px; border-radius: 999px; overflow: hidden; }
.uk-balken i, .uk-balken-l i { display: block; min-width: 4px; }
.ub-sofort { background: var(--accent); }
.ub-spaeter { background: var(--mint); }
.ub-steuer { background: var(--bar); }
.uk-balken-l { display: flex; flex-wrap: wrap; gap: 2px 12px; padding: 0 14px 10px; font-size: .75rem; color: var(--ink-2); }
.uk-balken-l span { display: inline-flex; align-items: center; gap: 5px; }
.uk-balken-l i { width: 10px; height: 10px; border-radius: 3px; }

/* Einkommenslücke als eigene Fläche */
.ue-luecke { background: var(--surface-2); border-top: 0; border-radius: 16px; padding: 12px 14px; }
.ue-streifen .weg-seg { height: 18px; border-radius: 999px; }
.ue-schwelle { max-width: none; border-top: 0; padding: 12px 14px; border-radius: 16px; background: var(--info-soft); color: var(--ink); }

/* Premium-Karte: dunkel, Preis groß, Liste mit Haken */
.ue-pkarte { display: grid; gap: 12px; background: var(--navy); color: var(--on-navy); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.ue-pkarte h2 { margin: 0; font-size: 1.1875rem; line-height: 1.3; color: inherit; }
.ue-pkarte p { margin: 0; font-size: .875rem; color: var(--on-navy-2); }
.ue-pkarte p b { color: var(--on-navy); }
.ue-pkarte > .pille { letter-spacing: .06em; text-transform: uppercase; }
.ue-pkarte .pwl-chips { margin: 0; }
.ue-pkarte .pwl-chips li { background: var(--navy-2); border-color: transparent; color: var(--on-navy); }
.ue-pkarte .pwl-chips .ic { color: var(--on-navy-2); }
.ue-preis { display: flex; align-items: center; gap: 12px; background: var(--navy-2); border-radius: 16px; padding: 12px 14px; }
.ue-preis b { font: 800 2.25rem/1 var(--font-display); letter-spacing: -.03em; white-space: nowrap; }
.ue-preis span { font-size: .8125rem; color: var(--on-navy-2); line-height: 1.35; }
.ue-haken { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .875rem; }
.ue-haken li { display: flex; gap: 10px; align-items: flex-start; }
.ue-haken .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--mint); stroke-width: 2.4; }
.ue-pknopf { justify-content: center; width: 100%; min-height: 50px; font-size: 1rem; background: var(--mint); color: var(--navy); box-shadow: none; white-space: normal; text-align: center; }
.ue-pknopf:hover { filter: brightness(1.06); }
.ue-pklein { font-size: .75rem !important; text-align: center; }
/* Premium aktiv: helle Karte mit den stärksten Änderungen */
.ue-pkarte.aktiv { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.ue-pkarte.aktiv p { color: var(--ink-2); }
.ue-pkarte.aktiv > .pille { background: var(--accent-soft); color: var(--accent); }
.ue-pkarte .pwl-hebel li { border-color: var(--line); }
.ue-premium .btn { flex: 1 1 17rem; flex-wrap: nowrap; justify-content: flex-start; text-align: left; border-radius: 14px; padding: 10px 14px; }
.ue-premium .btn .lk { margin-left: auto; flex: none; }
.ue-pknoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.ue-pknoepfe .btn { flex: 1 1 9rem; justify-content: center; }

/* Hinweis-Karte: blau, ruhig */
.ue-infokarte { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; background: var(--info-soft); color: var(--ink); border: 1px solid var(--info-soft-2); border-radius: var(--r-lg); padding: 18px; }
.ue-info-ic { width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--info-ink); }
.ue-infokarte h2 { margin: 0 0 4px; font-size: 1rem; }
.ue-infokarte p { margin: 0 0 6px; font-size: .875rem; color: var(--ink-2); }
.ue-infokarte .linkbtn { font-size: .875rem; font-weight: 700; }

/* Feste Leiste am Handy: Kennzahl links, Knopf rechts; über den Reitern */
.ue-fest { display: none; }
@media (max-width: 960px) {
  .ue-fest { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: fixed; left: 8px; right: 8px; z-index: 29; bottom: calc(var(--leiste-h, 52px) + 18px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 8px 8px 8px 14px; box-shadow: 0 10px 30px -10px rgba(19, 27, 46, .35); }
  .panelview[hidden] .ue-fest, #tab-entscheidung[hidden] .ue-fest { display: none; }
  #tab-entscheidung { padding-bottom: 76px; }
  .ue-fest-zahl { display: grid; min-width: 0; line-height: 1.2; }
  .ue-fest-zahl span { font-size: .75rem; color: var(--ink-2); font-weight: 600; }
  .ue-fest-zahl b { font: 800 1.125rem/1.2 var(--font-display); color: var(--accent); white-space: nowrap; }
  .ue-fest-zahl b.warn { color: var(--warn); }
  .ue-fest .btn { flex: none; padding: 10px 14px; font-size: .875rem; box-shadow: none; }
  .ue-fest .btn .ic { width: 16px; height: 16px; }
}
@media (max-width: 380px) { .ue-fest .btn { font-size: .8125rem; padding: 9px 11px; } }

/* ================================================================ To-dos und Fragen im Kartenstil */
#tab-todos > .card, #tab-details > .card { border: 1px solid var(--line); }
.todo-h { font-size: 1.125rem; margin: 0 0 10px; }
.todos { gap: 8px; }
.todo, .todo:last-child { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.todo.dringend { background: var(--frist-soft); border-color: var(--frist-line); }
.todo-datum { justify-self: start; border-radius: 999px; padding: 2px 10px; background: var(--info-soft); color: var(--info-ink); font-size: .8125rem; line-height: 1.4; }
.todo.dringend .todo-datum { background: var(--surface); color: var(--frist-ink); box-shadow: inset 0 0 0 1px var(--frist-line); }
.todo.dringend .pill.dringend { background: var(--surface); color: var(--frist-ink); }
.todo.hoch { border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); }
.todo-betrag { justify-items: end; }
.todos.kompakt .todo { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0; background: none; }
.todos.kompakt .todo:last-child { border-bottom: 0; }
#tab-details .topic, #tab-details .qa { border: 1px solid var(--line); box-shadow: none; }
#tab-details .topic[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
#tab-details .d-h { font-size: .71875rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin: 14px 4px 8px; }
@media (min-width: 561px) { #tab-todos .todo { grid-template-columns: 10rem minmax(0, 1fr) auto; } }
@media (max-width: 480px) { #tab-todos .todo-betrag { grid-column: 1 / -1; justify-items: start; text-align: left; display: flex; gap: 6px; align-items: baseline; } }
/* Feste Leiste bei großer Schrift: kurzer Knopf, Kennzahl darf umbrechen */
.ue-fest-kurz { display: none; }
.ue-fest-zahl { flex: 1 1 auto; }
#tab-entscheidung { container: ueseite / inline-size; }
@container ueseite (max-width: 22rem) {
  .ue-fest-lang { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ue-fest-kurz { display: inline; }
  .ue-fest-zahl b { white-space: normal; }
}

/* ================================================================
   Ergebnis „Ein Stepper für alles“: Urteil, „Dein Geld reicht“, nächste Frist, Kacheln, zwei Zeilen, So haben wir gerechnet
   ================================================================ */
#tab-entscheidung .ue-haupt { container: haupt / inline-size; }

/* Kündigung: Klagefrist zuerst */
.ue-oben:empty { display: none; }
.ue-oben { margin-bottom: 16px; }
.ue-klage, .naechste { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; }
.ue-klage > .ic, .naechste > .ic { width: 22px; height: 22px; margin-top: 2px; color: var(--frist-ink); }
.ue-klage h2, .naechste h2 { margin: 0 0 4px; font-size: 1.0625rem; color: var(--frist-ink); }
.ue-klage p, .naechste p { margin: 0 0 6px; color: var(--ink); }
.ue-klage .klein, .naechste .klein { font-size: .8125rem; color: var(--ink-2); }
.naechste .linkbtn { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; min-height: 44px; }
.naechste .linkbtn .ic { width: 16px; height: 16px; }
.karte.alarm { background: var(--warn-soft); border-color: var(--warn); box-shadow: none; }
.karte.alarm > .ic, .karte.alarm h2 { color: var(--warn); }
/* Kachel „Dein Geld reicht“ */
.card.reicht { border: 1.5px solid var(--accent); display: grid; gap: 10px; }
.reicht p { margin: 0; }
.reicht .klein { font-size: .8125rem; color: var(--ink-2); }
.rw-dauer { font: 800 clamp(2rem, 1.5rem + 2vw, 2.75rem)/1.05 var(--font-display); letter-spacing: -.03em; color: var(--ink); }
.rw-dauer.rw-knapp { color: var(--warn); }
.rw-info { display: flex; gap: 8px; align-items: flex-start; }
.rw-info .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--ink-2); }
.rw-mitzaehlen { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.rw-mitzaehlen > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
.rw-mitzaehlen > summary::-webkit-details-marker { display: none; }
.rw-mitzaehlen > summary > span:first-child { display: grid; gap: 2px; min-width: 0; }
.rw-summe { font-size: .8125rem; color: var(--muted); font-weight: 500; }
.rw-anpassen { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.rw-anpassen .ic { width: 16px; height: 16px; transform: rotate(90deg); transition: transform .2s; }
.rw-mitzaehlen[open] .rw-anpassen .ic { transform: rotate(-90deg); }
.rw-satz { font-size: .8125rem; color: var(--ink-2); margin: 10px 0 !important; }
.rw-liste { display: grid; gap: 8px; }
.rw-z { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; background: var(--surface-2); border-radius: 14px; padding: 12px 14px; }
.rw-z input[type="checkbox"] { width: 22px; height: 22px; margin: 1px 0 0; }
.rw-z.an { box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--accent-soft); }
.rw-inhalt { display: grid; gap: 3px; min-width: 0; }
.rw-inhalt label { font-weight: 700; cursor: pointer; }
.rw-wirk { font-size: .8125rem; font-weight: 700; color: var(--accent); }
.rw-text { font-size: .8125rem; color: var(--ink-2); line-height: 1.5; }
.rw-warum summary { font-size: .8125rem; font-weight: 700; color: var(--accent); cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.rw-warum ul { margin: 4px 0 0; padding-left: 18px; font-size: .8125rem; color: var(--ink-2); display: grid; gap: 4px; }
.rw-betrag { max-width: 16rem; margin-top: 6px; }
.rw-betrag input { font-size: 1rem; }
.rw-betrag .einheit { font-size: .8125rem; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.rw-anlage { font-size: .8125rem; margin-top: 8px !important; color: var(--ink-2); }
.rw-plan { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.rw-plan > p:first-child { display: flex; gap: 8px; align-items: flex-start; }
.rw-plan > p:first-child .ic { color: var(--accent); margin-top: 3px; }
.rw-streifen { display: grid; grid-template-columns: repeat(var(--n, 12), minmax(0, 1fr)); gap: 3px; }
.rw-streifen .weg-seg { position: static; height: 18px; border-radius: 5px; border: 0; padding: 0; }
.rw-streifen-text { font-size: .8125rem; color: var(--ink-2); }
/* Zwei Zeilen: geschätzt / Was du ändern kannst */

.zz { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 16px; padding: 14px 16px; font: inherit; cursor: pointer; min-height: 44px; }
.zz > span { display: block; min-width: 0; }
.zz small { display: block; margin-top: 2px; font-size: .8125rem; color: var(--muted); }
.zz .ic { color: var(--ink-2); }
.zz.prem { background: var(--info-soft); border-color: var(--info-soft-2); }
.zz.prem > .ic:first-child { color: var(--info-ink); }
.zz:hover { border-color: var(--accent); }
.ohne-prem { color: var(--info-ink); font-weight: 600; }

/* So haben wir gerechnet */
.so-gerechnet { display: grid; gap: 10px; }
.so-gerechnet > h2 { margin: 0; font-size: 1.375rem; }
.so-gerechnet > h2:focus { outline: none; }
.sg-stand { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .8125rem; color: var(--muted); margin: 0; }
.sg-unter { margin: 0; font-size: .875rem; color: var(--ink-2); }
.sg-sperre { display: flex; gap: 8px; align-items: flex-start; margin: 0; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; font-size: .8125rem; }
.sg-sperre .ic { width: 16px; height: 16px; margin-top: 2px; flex: none; }
.sg-legende { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0; }
.sg-st { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 9px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.sg-st .ic { width: 13px; height: 13px; }
.sg-dir { background: var(--accent-soft); color: var(--go-ink); }
.sg-best { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.sg-best .ic { color: var(--go-ink); }
.sg-ang { background: var(--ampel-gelb-soft); color: var(--ampel-gelb); }
.sg-std, .sg-prem { background: var(--info-soft-2); color: var(--info-ink); }
.sg-abschnitt { border-top: 1px solid var(--line); }
.sg-abschnitt > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "nr titel chev" ". meta meta"; gap: 2px 10px; align-items: center; padding: 12px 0; min-height: 44px; }
.sg-abschnitt > summary::-webkit-details-marker { display: none; }
.sg-nr { grid-area: nr; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; font-size: .8125rem; }
.sg-nr .ic { width: 15px; height: 15px; }
.sg-titel { grid-area: titel; font-weight: 700; font-size: 1.0625rem; }
.sg-chev { grid-area: chev; transform: rotate(90deg); transition: transform .2s; color: var(--ink-2); }
.sg-abschnitt[open] .sg-chev { transform: rotate(-90deg); }
.sg-meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .8125rem; color: var(--muted); }
.sg-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.sg-meta .ic { width: 14px; height: 14px; }
.sg-p { color: var(--info-ink); font-weight: 700; }
.sg-erkl { background: var(--info-soft); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; display: grid; gap: 6px; min-width: 0; overflow-x: auto; }
.sg-erkl > b { color: var(--info-ink); }
.sg-erkl-inhalt { min-width: 0; font-size: .875rem; }
.sg-zeilen { list-style: none; margin: 0 0 10px; padding: 0; }
.sg-zeilen li + li { border-top: 1px solid var(--line); }
.sg-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n s" "w s"; gap: 2px 12px; align-items: center; width: 100%; text-align: left; background: none; border: 0; color: inherit; font: inherit; padding: 10px 4px; min-height: 44px; cursor: pointer; border-radius: 8px; }
div.sg-zeile { cursor: default; }
button.sg-zeile:hover { background: var(--surface-2); }
.sg-n { grid-area: n; font-weight: 700; }
.sg-w { grid-area: w; font-size: .875rem; color: var(--ink-2); overflow-wrap: break-word; hyphens: auto; }
.sg-s { grid-area: s; display: grid; justify-items: end; gap: 3px; text-align: right; }
.sg-pot { font-size: .75rem; font-weight: 700; color: var(--info-ink); max-width: 12rem; }
.sg-pot.neutral { color: var(--muted); font-weight: 600; }
.sg-fuss { font-size: .8125rem; color: var(--muted); margin: 0 0 12px; }
.sg-slot { margin: 4px 0 12px; }
.sg-slot .u-chart { display: grid; gap: 10px; }
.sg-hervor { box-shadow: 0 0 0 3px var(--accent); }
@container haupt (max-width: 480px) { .sg-zeile { grid-template-columns: minmax(0, 1fr); grid-template-areas: "n" "w" "s"; } .sg-s { justify-items: start; text-align: left; } }
/* Premium-Karte */
.pk-lead { font-size: .8125rem !important; }
.pk-pakete { display: grid; gap: 12px; }
.pk-paket { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.pk-paket > .ic { color: var(--mint); margin-top: 2px; }
.ue-pkarte.aktiv .pk-paket > .ic { color: var(--accent); }
.pk-paket > div { display: grid; gap: 4px; font-size: .875rem; }
.pk-paket span { font-size: .8125rem; color: var(--on-navy-2); }
.ue-pkarte.aktiv .pk-paket span { color: var(--ink-2); }
.pk-paket ul { margin: 2px 0 0; padding-left: 18px; font-size: .8125rem; display: grid; gap: 3px; }
.pk-bericht { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.ue-pkarte .linkbtn { color: var(--mint); font-weight: 700; justify-self: start; min-height: 44px; }
.ue-pkarte.aktiv .linkbtn { color: var(--accent); }
.ue-pkarte .ue-pknopf { justify-content: center; width: 100%; }
.ue-lokal { display: flex; gap: 10px; align-items: flex-start; font-size: .8125rem; color: var(--info-ink); margin: 0; padding: 14px 16px; }
.ue-lokal .ic { width: 18px; height: 18px; flex: none; }
.ue-lokal .linkbtn { color: var(--info-ink); font-weight: 700; text-decoration: underline; }
/* Paywall-Blatt */
.pw-blatt { display: grid; gap: 12px; }
.pw-blatt h2 { margin: 0; font-size: 1.25rem; line-height: 1.3; padding-right: 48px; }
.pw-blatt h2:focus { outline: none; }
.pw-pille { background: var(--info-soft-2); color: var(--info-ink); }
.pw-bed { margin: 0; font-size: .9375rem; }
.pw-wirkung { background: var(--info-soft); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; }
.pw-wirkung b { font: 800 1.125rem/1.35 var(--font-display); }
.pw-wirkung span { font-size: .875rem; color: var(--ink-2); }
.pw-warum { margin: 0; font-size: .875rem; color: var(--ink-2); }
.pw-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .9375rem; }
.pw-liste li { display: flex; gap: 8px; align-items: flex-start; }
.pw-liste .ic { color: var(--accent); margin-top: 2px; }
.pw-fuss { display: grid; gap: 8px; position: sticky; bottom: -29px; margin-bottom: -6px; background: var(--surface); padding: 12px 0 4px; border-top: 1px solid var(--line); }
.pw-fuss .btn { justify-content: center; width: 100%; min-height: 48px; }
.pw-warum-ohne, .pw-garantie { margin: 0; font-size: .8125rem; }
.pw-status:empty { margin: 0; }
.pw-kasse { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.pw-kasse td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.pw-kasse .n { text-align: right; white-space: nowrap; }
.pw-kasse td:first-child { overflow-wrap: normal; word-break: normal; padding-right: 8px; }
@media (max-width: 360px) { .pw-kasse tr:last-child td { display: block; text-align: left; border: 0; padding: 2px 0; } .pw-kasse tr:last-child { border-bottom: 1px solid var(--line); } }
.pw-punkte a, .pw-agb a { color: var(--accent); }
.pw-agb { margin: 0; font-size: .875rem; }
.pw-punkte { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .875rem; }
/* Große Schrift oder niedriges Fenster: Fuß nicht fixieren, damit er Bedingung und Wirkung nicht verdeckt */
@media (max-height: 48em) { .pw-fuss { position: static; } }
/* Bereiche: Hauptüberschrift To-dos und Fragen */
.d-titel { font-size: 1.375rem; margin: 0 0 4px; }
#tab-todos h1, #tab-details h1 { font-size: 1.5rem; margin: 0; }
#tab-todos h1:focus, #tab-details h1:focus { outline: none; }
.todo.vorbei { box-shadow: inset 3px 0 0 var(--warn); background: var(--warn-soft); }
#pw-dialog-inhalt, .pw-blatt { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.pw-dialog { max-height: calc(100dvh - 24px); overflow-y: auto; overflow-x: hidden; }
.pw-fuss .btn { display: block; text-align: center; white-space: normal; line-height: 1.35; }
.sg-slot { min-width: 0; overflow-x: auto; }
.ue-rueck { display: flex; gap: 8px; align-items: center; background: var(--accent-soft); border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; font-size: .875rem; }
.ue-rueck .ic { color: var(--accent); }

/* Fix-Runde: Status „gerechnet“, Warnzeile im Plan, Abgrenzung, KV-Sätze */
.sg-calc { background: var(--surface-2); color: var(--ink-2); }
.rw-info.rw-warn .ic { color: var(--warn); }
.rw-abgrenzung { color: var(--muted); }
.kv-saetze { margin: 4px 0 10px; padding-left: 1.2em; display: grid; gap: 4px; }
/* „Weniger ausgeben“ am Handy mit großer Schrift: Feld und Einheit umbrechen statt herauslaufen */
.rw-z .rw-text { overflow-wrap: anywhere; }
.rw-betrag { display: flex; flex-wrap: wrap; max-width: 100%; }
.rw-betrag input { flex: 1 1 6em; min-width: 5em; }
.rw-betrag .einheit { white-space: normal; flex: 1 1 auto; }
/* Große Schrift am Handy: Paywall-Fuß nicht fixieren, feste Zusammenfassung ausblenden (die Kachel steht im Inhalt) */
@media (max-width: 22rem) {
  .pw-fuss { position: static; margin-bottom: 0; }
}
@media (max-width: 960px) and (max-width: 22rem) {
  .ue-fest { display: none; }
}
/* Fokus nie unter festen Leisten (WCAG 2.4.11): Platz oben für die Kopfzeile, unten für Reiter und Zusammenfassung */
@media (max-width: 960px) {
  html:has(#screen-result:not([hidden])) { scroll-padding-top: 76px; scroll-padding-bottom: calc(var(--leiste-h, 52px) + 110px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 961px) {
  html:has(#screen-result:not([hidden])) { scroll-padding-top: 96px; }
}

/* ================================================================
   Ergebnis auf einen Blick (Struktur 4, ohne Urteil): Blick, Fortschritt, Kaufkasten, Mehr dazu, So haben wir gerechnet
   ================================================================ */
#tab-entscheidung { max-width: 1120px; width: 100%; margin-inline: auto; }
.flash { animation: zahlblitz 1.4s ease-out 1; border-radius: 8px; }
@keyframes zahlblitz { 0% { background: var(--mint); color: #03201C; } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .flash { animation: none; } }

/* Fortschritt und Standardfall */
.genau-zeile { margin: 12px 4px 0; font-size: .875rem; color: var(--ink-2); }
.gz-haupt { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin: 0; }
.gz-balken { display: block; width: 80px; height: 6px; border-radius: 4px; background: var(--bar); overflow: hidden; flex: none; }
.gz-balken i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.gz-haupt .linkbtn { font-weight: 700; min-height: 32px; text-align: left; }
.gz-haupt .mut { color: var(--muted); }
details.gz-std { margin-top: 4px; font-size: .8125rem; color: var(--ink-2); }
details.gz-std summary { cursor: pointer; list-style: none; display: inline-flex; gap: 6px; align-items: center; min-height: 32px; font-weight: 600; }
details.gz-std summary::-webkit-details-marker { display: none; }
details.gz-std summary .ic { width: 14px; height: 14px; flex: none; }
details.gz-std summary .chev { transition: transform .15s; }
details.gz-std[open] summary .chev { transform: rotate(90deg); }
details.gz-std p { margin: 4px 0; }
details.gz-std ul { margin: 4px 0 0; padding-left: 1.2em; display: grid; gap: 2px; }

/* Kaufkasten */
#ue-kauf:empty { display: none; }
#ue-kauf { margin-top: 12px; scroll-margin-top: 90px; }
.kaufkasten { border: 1.5px solid var(--prem-line); gap: 10px; }
.kauf-ueber { color: var(--prem); display: inline-flex; gap: 6px; align-items: center; }
.kauf-ueber .ic { width: 14px; height: 14px; }
.kauf-t { font-size: 1.125rem; font-weight: 800; margin: 0; }
.kauf-t:focus { outline: none; }
.kauf-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kauf-liste li { background: var(--prem-soft); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.kauf-liste b { color: var(--ink); }
.kauf-liste li:has(.kauf-punkt) { padding: 0; }
.kauf-punkt { all: unset; box-sizing: border-box; display: grid; gap: 2px; width: 100%; height: 100%; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.kauf-punkt:hover { box-shadow: inset 0 0 0 1.5px var(--prem-line); }
.kauf-punkt:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.kaufkasten p { margin: 0; }
@media (min-width: 760px) { .kauf-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kauf { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.kauf .preis { font: 800 1.5rem/1 var(--font-display); }
.btn.prem { background: var(--prem); color: #FFFFFF; }
:root[data-theme="dark"] .btn.prem { color: #160F3A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.prem { color: #160F3A; } }
.garantie { font-size: .78125rem; color: var(--ink-2); }
.pille.prem { background: var(--prem-soft); color: var(--prem); }

/* Zwei Spalten: Mehr dazu, So haben wir gerechnet */
.erg-spalten { display: grid; gap: 16px; margin-top: 18px; align-items: start; }
.erg-spalten > * { min-width: 0; }
@media (min-width: 1000px) { .erg-spalten { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.spalte-t { font-size: 1.0625rem; font-weight: 800; margin: 6px 4px 10px; display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; align-items: baseline; }
.spalte-t:focus { outline: none; }
.sg-unter { font-weight: 600; font-size: .8125rem; }
.mehr { display: grid; gap: 10px; }
details.ab { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line); min-width: 0; scroll-margin-top: 90px; }
details.ab > summary { list-style: none; cursor: pointer; padding: 12px 16px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 4px 10px; align-items: center; min-height: 54px; font-weight: 700; }
details.ab > summary::-webkit-details-marker { display: none; }
details.ab > summary > .ic:first-child { color: var(--accent); flex: none; }
details.ab > summary .ab-t { min-width: 0; }
details.ab > summary .rechts { display: inline-flex; min-width: 0; }
details.ab > summary .ab-unter { display: block; font-weight: 500; font-size: .8125rem; color: var(--ink-2); margin-top: 2px; }
details.ab > summary .chev { flex: none; transition: transform .15s; }
details.ab[open] > summary .chev { transform: rotate(90deg); }
.ab-inhalt { padding: 0 16px 16px; display: grid; gap: 10px; font-size: .9375rem; min-width: 0; }
.ab-inhalt p { margin: 0; }
.ab-h3 { font-size: 1rem; margin: 6px 0 0; }
.ab-zahl { font: 800 1.375rem/1.2 var(--font-display); color: var(--ink); }
.ab-sperre { display: flex; gap: 10px; align-items: flex-start; background: var(--prem-soft); border-radius: 12px; padding: 10px 12px; font-size: .875rem; }
.ab-sperre .ic { color: var(--prem); flex: none; margin-top: 2px; }
.drei-groessen { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; font-size: .8125rem; display: grid; gap: 4px; }
.todo-kurz { list-style: none; margin: 0; padding: 0; display: grid; }
.todo-kurz li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.todo-kurz li:last-child { border-bottom: 0; }
.todo-kurz .dat { font-weight: 800; font-size: .8125rem; color: var(--frist-ink); background: var(--frist-soft); border-radius: 8px; padding: 1px 7px; height: fit-content; white-space: nowrap; }
.faktoren { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.hebel { display: grid; gap: 8px; }
.hebel a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px; border-radius: 12px; background: var(--surface-2); text-decoration: none; color: var(--ink); align-items: center; }
.hebel a b.plus { color: var(--gain); }
.hebel a span { font-size: .8125rem; color: var(--ink-2); grid-column: 1; }
.hebel a .ic { grid-column: 2; grid-row: 2; justify-self: end; color: var(--accent); }
.sg-hervor { box-shadow: 0 0 0 3px var(--focus) !important; }
.uk-ende { display: inline-flex; gap: 8px; align-items: center; font-size: .875rem; font-weight: 600; }
.ab-inhalt .u-chart { margin: 0; }
.ab-inhalt .rw-liste { display: grid; gap: 8px; }

/* So haben wir gerechnet */
.so-gerechnet { scroll-margin-top: 80px; }
.so-gerechnet .sg-stand { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8125rem; color: var(--muted); margin: -4px 4px 10px; }
.sg-kat { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 4px 0; min-width: 0; }
.sg-kat + .sg-kat { margin-top: 10px; }
.sg-kat-kopf { display: flex; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 10px 16px 6px; flex-wrap: wrap; }
.sg-kat-kopf h3 { font-size: 1rem; font-weight: 800; display: flex; gap: 8px; align-items: center; margin: 0; }
.sg-kat-kopf .nr { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: .75rem; font-weight: 800; flex: none; }
details.sg { border-top: 1px solid var(--line); min-width: 0; scroll-margin-top: 90px; }
details.sg > summary { list-style: none; cursor: pointer; padding: 10px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 10px; min-height: 48px; align-items: center; }
details.sg > summary::-webkit-details-marker { display: none; }
details.sg .sg-t { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; font-weight: 700; font-size: .9375rem; min-width: 0; }
details.sg .sg-sum { font-size: .8125rem; color: var(--ink-2); grid-column: 1; min-width: 0; overflow-wrap: anywhere; }
details.sg .chev { grid-row: 1 / span 2; grid-column: 2; transition: transform .15s; }
details.sg[open] .chev { transform: rotate(90deg); }
details.sg[open] { background: var(--surface-2); }
details.sg.aus .sg-t { color: var(--muted); }
.sg-inhalt { padding: 0 16px 14px; font-size: .875rem; display: grid; gap: 10px; min-width: 0; }
.sg-inhalt p { margin: 0; }
.sg-sprung { justify-self: start; }
.sg-pille.du { background: var(--accent-soft); color: var(--accent); }
.sg-pille.best { background: var(--gain-soft); color: var(--gain); }
.sg-pille.ann { background: var(--ampel-gelb-soft); color: var(--ampel-gelb); }
.sg-pille.prem { background: var(--prem-soft); color: var(--prem); }
.sg-pille.grau { background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.sg-wirk { display: inline-block; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 0 8px; background: var(--info-soft); color: var(--info-ink); }
.sg-kat .sg-zeilen { list-style: none; margin: 0; padding: 0; }
.sg-kat .sg-zeilen li { border-top: 1px solid var(--line); }
.sg-kat .sg-zeile { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 16px; background: none; border: 0; text-align: left; color: var(--ink); cursor: pointer; font: inherit; }
.sg-kat .sg-zeile .sg-n { font-weight: 700; font-size: .9375rem; }
.sg-kat .sg-zeile .sg-w { grid-column: 1; font-size: .8125rem; color: var(--ink-2); }
.sg-kat .sg-zeile .sg-s { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.sg-kat .sg-zeile:hover { background: var(--surface-2); }
.erg-fuss { margin: 24px 4px 0; font-size: .8125rem; color: var(--muted); max-width: 46rem; }

/* Feste Leiste: die zwei Hauptzahlen, sobald der Kopf aus dem Bild ist */
#ue-fest[hidden] { display: none !important; }
#ue-fest { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; position: fixed; z-index: 29; right: 16px; bottom: 16px; max-width: calc(100% - 32px); background: var(--navy); color: var(--on-navy-2); border-radius: 14px; padding: 8px 14px; font-size: .875rem; box-shadow: 0 10px 30px -10px rgba(19, 27, 46, .45); }
#ue-fest b { color: var(--on-navy); font-variant-numeric: tabular-nums; }
#ue-fest .linkbtn { color: var(--mint); font-size: .8125rem; min-height: 32px; }
@media (max-width: 960px) { #ue-fest { left: 8px; right: 8px; bottom: calc(var(--leiste-h, 52px) + 18px + env(safe-area-inset-bottom, 0px)); } #tab-entscheidung { padding-bottom: 76px; } }
@media print { #ue-fest, #ue-kauf { display: none !important; } }
/* Gestaltung: Link in den Stepper und „Übernehmen“ (dieselbe Angabe) */
.hebel-z { display: grid; gap: 6px; }
.hebel-z > .btn { justify-self: start; }
/* Was du ändern kannst: eine Stelle für die Optimierungen */
.pot-zeile { margin: 0 0 .5rem; font-size: .875rem; color: var(--ink-2); }
.opt-gesamt { margin: .25rem 0 .5rem; }
.opt-liste { list-style: none; margin: .5rem 0; padding: 0; display: grid; gap: .5rem; }
.opt-z { padding: .75rem; border-radius: 12px; background: var(--surface-2); display: grid; gap: .25rem; }
.opt-z .plus { color: var(--gain); }
.opt-z p { margin: 0; }
.opt-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.opt-aktiv { margin: 0 0 .25rem; display: flex; gap: .375rem; align-items: center; }
.opt-aktiv .ic { width: 16px; height: 16px; color: var(--gain); }
/* Schalter „Was darf mitzählen?“ direkt an der Zahl */
.rw-chips { display: flex; flex-wrap: wrap; gap: .375rem; margin: .5rem 0 .25rem; }
.rw-chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .25rem .375rem; min-height: 40px; padding: .25rem .625rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .875rem; font-weight: 600; cursor: pointer; max-width: 100%; }
.rw-chip.an { border-color: var(--accent); background: var(--accent-soft); }
.rw-chip input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.rw-chip small { font-weight: 500; color: var(--ink-2); }
.rw-details { font-size: .875rem; margin: .25rem 0; }
.rw-details .linkbtn { min-height: 44px; display: inline-flex; align-items: center; gap: .25rem; font-weight: 600; }
.rw-details-blatt { display: grid; gap: .75rem; }
.rw-details-blatt .rw-z { display: block; } .rw-details-blatt .rw-inhalt, .rw-details-blatt .rw-text { display: block; }
.rw-details summary { cursor: pointer; color: var(--accent); font-weight: 600; min-height: 32px; }
.rw-details .rw-z { display: block; }
.rw-details .rw-inhalt { display: block; }
.rw-details .rw-text { display: block; }
.blick, .blick-haupt, .blick-haupt > div { min-width: 0; }
.opt-z, .opt-z > * { min-width: 0; overflow-wrap: anywhere; }
/* Checkliste in den To-dos */
.check-fort { margin: 0 0 .5rem; }
.check-liste { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; gap: .5rem; }
.check-z { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .625rem; align-items: start; }
.check-z input { width: 24px; height: 24px; margin: 0; accent-color: var(--accent); }
/* Tippfläche ≥ 44 px um das 24-px-Kästchen (leeres Label darüber), ohne die Zeile zu vergrößern */
.check-z { position: relative; }
.check-ziel { position: absolute; left: -10px; top: -10px; width: 44px; height: 44px; cursor: pointer; }
.check-z p { margin: .125rem 0 0; }
.check-z.fertig b { text-decoration: line-through; color: var(--muted); }
.check-gruppe { border-top: 1px solid var(--line); padding: .5rem 0; }
.check-gruppe summary { cursor: pointer; min-height: 44px; display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; }
/* Wissen: Themen und Fragen nach Kategorie */
.wissen-kat { margin: 0 0 1.25rem; }
.wissen-kat > h3 { font-size: 1.125rem; margin: .5rem 0; }
.wissen-fragen { display: grid; gap: .375rem; margin-top: .5rem; }
.blick-haupt .rw-chip { color: var(--ink); } .blick-haupt .rw-chip small { color: var(--ink-2); } .blick-haupt .rw-details summary { color: inherit; }
/* So haben wir gerechnet: Optimierungspotenzial im Kopf und je Unterkategorie ein deutliches Symbol mit „+ X €“ */
.opt-pot { background: var(--gain-soft); border: 1.5px solid var(--gain); border-radius: var(--r-lg); padding: 12px 16px; margin: 0 0 12px; display: grid; gap: 6px; scroll-margin-top: 90px; }
.opt-pot.zu { background: var(--prem-soft); border-color: var(--prem-line); }
.opt-pot p { margin: 0; }
.opt-pot-z { display: flex; gap: 8px; align-items: center; font-size: 1.0625rem; font-weight: 700; }
.opt-pot-z .ic { width: 22px; height: 22px; color: var(--gain); }
.opt-pot.zu .opt-pot-z .ic { color: var(--prem); }
.opt-pot-z b { color: var(--gain); font-size: 1.25rem; }
.opt-pot.zu .opt-pot-z b { color: var(--prem); }
.sg-opt { display: inline-flex; gap: 4px; align-items: center; border-radius: 999px; padding: 2px 10px 2px 6px; background: var(--gain); color: var(--surface); font-size: .8125rem; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sg-opt .ic { width: 16px; height: 16px; }
.sg-opt.zu { background: var(--prem); }
.pot-zeile { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.pot-zeile .ic { width: 16px; height: 16px; color: var(--gain); }
.rw-sparrest { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; font-size: .8125rem; }
.rw-sparrest input { width: 7rem; min-height: 36px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.blick-haupt .rw-z, .blick-haupt .rw-z b { color: var(--ink); }
/* Wissen: Themen als Fragen, einzeilig und gleich wie die Fragen (Symbol vorne, Kennzahl rechts, Kurztext aufgeklappt oben) */
#tab-details .topic { border-radius: 12px; }
#tab-details .topic > summary { padding: 11px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
#tab-details .topic > summary .q { font-weight: 500; min-width: 0; }
#tab-details .topic > summary .key { font: 500 1rem var(--font-body, inherit); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
#tab-details .topic .st.thema { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
#tab-details .topic .st.thema .ic { width: 13px; height: 13px; }
#tab-details .wissen-kat > .topic + .topic, #tab-details .wissen-kat > .topic + .wissen-fragen { margin-top: .375rem; }
#tab-details .topic .body > .gist { color: var(--muted); margin: 0; }
.sg-opt small { font-size: .6875rem; font-weight: 700; opacity: .9; }

/* ================================================================
   Ergebnis (Entwurf 2): Kopfzahlen, Stellhebel, Fragen, Premium, Angaben und Annahmen, Seitenblatt.
   Schrift in rem, Farben aus den Tokens (design.css); die Balkenteile eg-s1 … eg-s6 hell und dunkel.
   ================================================================ */
:root { --eg-s1: #006A61; --eg-s2: #5ED6C5; --eg-s3: #E3A15A; --eg-s4: #8E9BB8; --eg-s5: #7C6FD6; --eg-s6: #C46A9E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --eg-s1: #3CB59A; --eg-s2: #2C7F78; --eg-s3: #C98A45; --eg-s4: #5D6987; --eg-s5: #8E80DA; --eg-s6: #B86A95; } }
:root[data-theme="dark"] { --eg-s1: #3CB59A; --eg-s2: #2C7F78; --eg-s3: #C98A45; --eg-s4: #5D6987; --eg-s5: #8E80DA; --eg-s6: #B86A95; }
.eg-s1 { background: var(--eg-s1); } .eg-s2 { background: var(--eg-s2); } .eg-s3 { background: var(--eg-s3); }
.eg-s4 { background: var(--eg-s4); } .eg-s5 { background: var(--eg-s5); } .eg-s6 { background: var(--eg-s6); }

#tab-entscheidung:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-content: start; }
#tab-entscheidung > * { min-width: 0; }
#tab-entscheidung > .ue-oben:empty { display: none; }
.eg-h2 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 800; margin: 0; }
.eg-h2:focus { outline: none; }
.nw { white-space: nowrap; }

/* Kopfzahlen */
.blick { display: grid; gap: .75rem; }
.eg-kopf { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .eg-kopf { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.eg-kz { border-radius: var(--r-lg); padding: 1.375rem; display: grid; gap: .875rem; align-content: start; min-width: 0; }
.eg-kz p, .eg-kz h2 { margin: 0; }
.eg-dunkel { background: var(--navy); background-image: var(--hero-grad); color: var(--on-navy); }
.eg-dunkel .ueberzeile { color: var(--mint); }
.eg-hell { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.eg-hell .ueberzeile { color: var(--muted); }
.eg-gross { font: 800 clamp(2rem, 6vw, 2.875rem)/1.08 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.eg-unter { font-size: .875rem; line-height: 1.5; }
.eg-dunkel .eg-unter { color: var(--on-navy-2); }
.eg-hell .eg-unter { color: var(--ink-2); }
.eg-zeilen { display: grid; gap: .375rem; border-radius: 12px; padding: .75rem .875rem; font-size: .875rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.eg-zeile { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .125rem .75rem; }
.eg-zeile b { font-variant-numeric: tabular-nums; }
.eg-kz-fuss { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .375rem 1rem; font-size: .8125rem; }
.eg-dunkel .eg-kz-fuss { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: .75rem; color: var(--on-navy-2); }
.eg-kz-fuss .linkbtn { display: inline-flex; align-items: center; gap: .25rem; min-height: 44px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.eg-kz-fuss .linkbtn .ic { width: 14px; height: 14px; }
.eg-dunkel .linkbtn { color: var(--mint); }
.eg-mit-hebel { display: inline-flex; align-items: center; gap: .3rem; background: rgba(127, 227, 200, .16); color: var(--mint); border-radius: 999px; padding: .125rem .625rem; font-weight: 700; }
.eg-mit-hebel .ic { width: 14px; height: 14px; }
.eg-notiz { color: var(--ink-2); flex: 1 1 14rem; min-width: 0; }
.eg-rw-kopf { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; align-items: flex-start; }
.eg-rw-kopf > div { min-width: 0; display: grid; gap: .25rem; }
.eg-rw-bis { font-size: .8125rem; color: var(--muted); display: grid; justify-items: start; gap: .25rem; }
.eg-rw-bis b { font-size: .9375rem; color: var(--accent); background: var(--accent-soft); border-radius: 10px; padding: .25rem .75rem; white-space: nowrap; }
.eg-leiste { display: flex; height: .875rem; border-radius: 7px; overflow: hidden; background: var(--surface-2); }
.eg-leiste i { display: block; height: 100%; min-width: 3px; transition: flex-grow .35s ease; }
.eg-leiste i + i { box-shadow: inset 2px 0 0 var(--surface); }
.eg-leiste-ach { display: flex; justify-content: space-between; gap: .5rem; font-size: .75rem; color: var(--muted); margin-top: .25rem; }
.eg-legende { margin: 0; gap: .5rem; }
.eg-legende:focus { outline: none; }
.eg-leg-fest { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 700; padding: .25rem .25rem; min-height: 44px; }
.eg-leg-fest i { width: .75rem; height: .875rem; border-radius: 3px; display: inline-block; flex: none; }
.eg-legende .rw-chip { min-height: 44px; }
.eg-box { width: .75rem; height: .875rem; border-radius: 3px; display: inline-block; flex: none; }
.rw-chip:not(.an) .eg-box { opacity: .35; }
.rw-chip.zu { border-style: dashed; border-color: var(--prem-line); color: var(--prem); background: var(--surface); font: inherit; font-size: .875rem; font-weight: 600; }
.rw-chip.zu .ic { width: 14px; height: 14px; }
.eg-streifen { display: flex; flex-wrap: wrap; gap: .375rem .875rem; align-items: center; border-radius: 12px; padding: .5rem .875rem; font-size: .9375rem; margin: 0; }
.eg-streifen > span { flex: 1 1 18rem; min-width: 0; }
.eg-streifen > .ic { flex: none; }
.eg-streifen .linkbtn { min-height: 44px; font-weight: 700; display: inline-flex; align-items: center; }
.eg-gl { background: var(--surface); border: 1px solid var(--line); }
.eg-frist { background: var(--frist-soft); border: 1px solid var(--frist-line); color: var(--frist-ink); }
.eg-frist .linkbtn { color: var(--frist-ink); }
.eg-frist.alarm { background: var(--ampel-rot-soft); border-color: var(--ampel-rot); color: var(--ampel-rot); }
.eg-frist.alarm .linkbtn { color: var(--ampel-rot); }
.eg-entscheid { font-size: .875rem; color: var(--muted); margin: 0; padding-inline: .25rem; }

/* Bänder */
.eg-band { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 1.375rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; min-width: 0; scroll-margin-top: 90px; }
.eg-band:focus { outline: none; }
.eg-band:empty { display: none; }
.eg-band p { margin: 0; }
.eg-band-kopf { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; align-items: flex-end; }
.eg-band-kopf > div:first-child { flex: 1 1 20rem; min-width: 0; display: grid; gap: .25rem; }
.eg-band-kopf > div:first-child > p { color: var(--ink-2); font-size: .9375rem; max-width: 62ch; }
.eg-summe { border: 1px solid var(--accent-soft-2); background: var(--accent-soft); border-radius: 14px; padding: .625rem 1rem; display: grid; gap: .125rem; min-width: 0; }
.eg-summe .ueberzeile { font-size: .6875rem; }
.eg-summe b { font: 800 1.5rem/1.2 var(--font-display); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.eg-summe small { font-size: .8125rem; color: var(--ink-2); }
.eg-rueck { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; background: var(--surface-2); border-radius: 12px; padding: .25rem .5rem .25rem .875rem; font-size: .9375rem; }
.eg-rueck[hidden] { display: none; }
.eg-rueck > span { flex: 1 1 16rem; min-width: 0; }
.eg-rueck .linkbtn { min-height: 44px; padding-inline: .5rem; font-weight: 700; }

/* Stellhebel */
.eg-hebel-liste { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(16.25rem, 100%), 1fr)); }
.eg-hk { border: 1px solid var(--line); border-radius: 14px; padding: .875rem 1rem; display: grid; gap: .375rem; grid-template-rows: auto auto 1fr auto; background: var(--surface); min-width: 0; transition: border-color .2s, background-color .2s; scroll-margin-top: 90px; }
.eg-hk.an { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.eg-hk-kopf { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .25rem .625rem; }
.eg-hk-kopf h3 { font-size: 1rem; font-weight: 750; flex: 1 1 8rem; min-width: 0; margin: 0; padding-top: .5rem; overflow-wrap: break-word; hyphens: auto; }
.eg-opt { font-size: .875rem; color: var(--ink); display: grid; gap: .125rem; }
.eg-opt small { font-size: .6875rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.eg-opt span { font-size: .8125rem; color: var(--ink-2); }
.eg-bed { font-size: .8125rem; color: var(--muted); }
.eg-hk-fuss { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-size: .8125rem; color: var(--muted); padding-top: .25rem; }
.eg-betrag { font-weight: 800; font-size: .875rem; color: var(--ink); background: var(--gain-soft); border-radius: 8px; padding: .125rem .5rem; font-variant-numeric: tabular-nums; }
.eg-schalter { flex: none; position: relative; width: 3.25rem; height: 2.75rem; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; border-radius: 999px; }
.eg-spur { position: relative; width: 2.875rem; height: 1.75rem; border-radius: 999px; background: var(--bar); transition: background-color .2s; }
.eg-spur::before { content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.75rem - 6px); height: calc(1.75rem - 6px); border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.eg-schalter[aria-checked="true"] .eg-spur { background: var(--accent); }
.eg-schalter[aria-checked="true"] .eg-spur::before { transform: translateX(1.125rem); }
.eg-schalter:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.eg-schloss { flex: none; display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; border-radius: 999px; border: 1px dashed var(--prem-line); background: var(--prem-soft); color: var(--prem); font: inherit; font-weight: 700; font-size: .8125rem; padding: 0 .75rem; cursor: pointer; }
.eg-schloss .ic { width: 14px; height: 14px; }
.eg-hk-link { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; flex: none; }
.eg-hebel-mehr { justify-self: start; min-height: 44px; font-weight: 700; }
@media (max-width: 40rem) { .eg-hebel-liste.kurz .eg-hk:nth-child(n+4) { display: none; } }
@media (min-width: 40.0625rem) { .eg-hebel-mehr { display: none !important; } }
.eg-prem-band { display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); align-items: center; background: var(--prem-soft); border: 1px dashed var(--prem-line); border-radius: 14px; padding: .875rem 1rem; font-size: .9375rem; }
@media (min-width: 56rem) { .eg-prem-band { grid-template-columns: minmax(0, 1fr) auto; } }

/* Kaufbaustein */
.eg-kauf { display: grid; gap: .5rem; justify-items: start; min-width: 0; }
.eg-kauf .btn { min-height: 44px; max-width: 100%; flex-wrap: wrap; justify-content: center; text-align: center; }
.eg-kauf .btn .ic { width: 16px; height: 16px; }
.eg-kauf small { font-size: .78125rem; color: var(--ink-2); max-width: 60ch; }
.pw-kaufzeile { margin-top: -.25rem; }

/* Fragen */
.eg-fragen-wrap { display: grid; gap: .875rem; min-width: 0; }
.eg-fragen-wrap:empty { display: none; }
.eg-fragen { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .eg-fragen { grid-template-columns: repeat(2, minmax(0, 1fr)); } .eg-fragen .breit { grid-column: 1 / -1; } }
.eg-fk { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 1.25rem; display: grid; gap: .875rem; align-content: start; min-width: 0; scroll-margin-top: 90px; }
.eg-fk:focus { outline: none; }
.eg-fk p { margin: 0; }
.eg-fk h3 { font-size: 1.125rem; font-weight: 800; margin: 0; }
.eg-fk-unter { font-size: .9375rem; color: var(--ink-2); }
.eg-fk > .linkbtn, .eg-ns .linkbtn { justify-self: start; min-height: 44px; font-weight: 700; display: inline-flex; align-items: center; gap: .25rem; }
.eg-fk .linkbtn .ic { width: 14px; height: 14px; }
.eg-ns { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 56rem) { .eg-ns { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.eg-ns > div { display: grid; gap: .875rem; min-width: 0; }
/* Auswahl „Gerechnet bis Alter“ (67, 85, 90): gleicher Segment-Schalter wie in den Fragen */
.eg-ende { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .75rem; }
.eg-ende-l { font-size: .875rem; font-weight: 650; color: var(--ink-2); }
.eg-ende .eg-wahl button { min-width: 44px; justify-content: center; font-variant-numeric: tabular-nums; }
.eg-sp-z.an { background: var(--surface-2); border-radius: 8px; padding-inline: .5rem; margin-inline: -.5rem; }
.eg-wahl { display: inline-flex; flex-wrap: wrap; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 2px; justify-self: start; max-width: 100%; }
.eg-wahl button { border: 0; background: none; border-radius: 9px; padding: .375rem .875rem; font: inherit; font-weight: 700; font-size: .875rem; cursor: pointer; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; gap: .3rem; }
.eg-wahl button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(19, 27, 46, .12); }
.eg-wahl button[data-paywall] { color: var(--prem); }
.eg-wahl button:disabled { cursor: default; }
.eg-wahl .ic { width: 14px; height: 14px; }
.eg-regler { display: grid; gap: .375rem; }
.eg-regler-kopf { display: flex; justify-content: space-between; gap: .75rem; font-size: .9375rem; font-weight: 650; align-items: center; flex-wrap: wrap; }
.eg-regler output { font-weight: 800; color: var(--accent); }
.eg-regler-zeile { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem; gap: .5rem; align-items: center; }
.eg-pm { width: 2.75rem; height: 2.75rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; font-size: 1.25rem; font-weight: 700; line-height: 1; }
.eg-regler input[type="range"] { width: 100%; accent-color: var(--accent); height: 2.75rem; margin: 0; }
.eg-regler-ach { display: flex; justify-content: space-between; gap: .5rem; font-size: .75rem; color: var(--muted); padding-inline: 3.25rem; }
.eg-gl-zahl { border-radius: 14px; background: var(--surface-2); padding: .875rem 1rem; display: grid; gap: .125rem; }
.eg-gl-t { font-size: .875rem; color: var(--ink-2); font-weight: 650; }
.eg-gl-w { font: 800 1.75rem/1.2 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.eg-gl-w small { font-size: 1rem; font-weight: 700; color: var(--ink-2); letter-spacing: 0; }
.eg-gl-u { font-size: .875rem; color: var(--ink-2); }
.eg-rechnet { font-size: .9375rem; font-weight: 600; color: var(--muted); }
.eg-grafik { display: grid; gap: .25rem; min-width: 0; }
.eg-grafik svg { width: 100%; height: auto; aspect-ratio: 5 / 2; display: block; }
.eg-grafik .eg-linie { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.eg-grafik .eg-flaeche { fill: var(--accent-soft); }
.eg-grafik .eg-heute { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.eg-grafik .eg-gitter { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.eg-grafik .eg-punkt { fill: var(--accent); stroke: var(--surface); stroke-width: 3; }
.eg-grafik .eg-plan { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.eg-ach-x { display: flex; justify-content: space-between; gap: .5rem; font-size: .75rem; color: var(--muted); }
.eg-grafik-leg { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .8125rem; color: var(--ink-2); }
.eg-grafik-leg i { display: inline-block; width: 1rem; height: 0; border-top: 2px dashed var(--muted); vertical-align: middle; margin-right: .3rem; }
.eg-grafik-leg i.l { border-top: 2.5px solid var(--accent); }
.eg-grafik-leg i.p { width: .75rem; height: .75rem; border: 2px solid var(--ink); border-radius: 50%; }
.eg-grafik-leg i.g { width: .75rem; height: .75rem; border: 0; background: var(--accent); border-radius: 50%; }
.eg-tab summary { cursor: pointer; color: var(--accent); font-weight: 600; min-height: 44px; display: flex; align-items: center; font-size: .875rem; }
.eg-tab table { width: 100%; font-size: .875rem; }
.eg-tab tr.me { font-weight: 800; }
.eg-gesperrt { border-radius: 14px; border: 1px dashed var(--prem-line); background: var(--prem-soft); padding: 1rem; display: grid; gap: .5rem; justify-items: start; font-size: .9375rem; min-width: 0; scroll-margin-top: 90px; }
.eg-zwei { display: grid; gap: .625rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 32rem) { .eg-zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.eg-zwei > div { border-radius: 12px; padding: .75rem .875rem; background: var(--surface-2); display: grid; gap: .125rem; min-width: 0; align-content: start; }
.eg-zwei small { font-size: .8125rem; color: var(--muted); font-weight: 650; }
.eg-zwei b { font: 800 1.25rem/1.25 var(--font-display); font-variant-numeric: tabular-nums; }
.eg-zwei span { font-size: .8125rem; color: var(--ink-2); }
.eg-abwaegen { border-left: 3px solid var(--line); padding-left: .75rem; display: grid; gap: .25rem; font-size: .9375rem; color: var(--ink-2); }
.eg-abwaegen b { color: var(--ink); }
.eg-abwaegen ul { margin: 0; padding-left: 1.125rem; }
/* Tabelle „Später“: Raster; am Handy je Zeitpunkt ein Block */
.eg-spaet { display: grid; font-size: .9375rem; container-type: inline-size; }
.eg-sp-z { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: .5rem; padding: .5rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.eg-sp-z > span { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.eg-sp-z > span:first-child { text-align: left; white-space: normal; font-weight: 650; }
.eg-sp-z > span:first-child small { display: block; font-weight: 500; color: var(--muted); font-size: .8125rem; }
.eg-sp-kopf { font-size: .8125rem; color: var(--muted); font-weight: 700; padding-top: 0; }
.eg-sp-z .eg-d { font-weight: 800; }
.eg-lab { display: none; }
.eg-sp-z.zu > .eg-sp-lock { grid-column: 2 / -1; text-align: right; }
@container (max-width: 30rem) {
  .eg-sp-kopf { display: none; }
  .eg-sp-z { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: .25rem; }
  .eg-sp-z > span:first-child { grid-column: 1 / -1; }
  .eg-sp-z > span { text-align: left; white-space: nowrap; }
  .eg-lab { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; }
  .eg-sp-z.zu > .eg-sp-lock { grid-column: 1 / -1; text-align: left; }
}
.eg-zu-knopf { background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; color: var(--prem); font: inherit; font-weight: 700; font-size: .875rem; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.eg-zu-knopf .ic { width: 14px; height: 14px; }
.eg-fk .eg-rente { font-size: .875rem; gap: .25rem .75rem; }
.eg-fk .eg-rente b { white-space: normal; font-weight: 700; }

/* Premium-Kasten */
.eg-prem-ueber { color: var(--prem); display: inline-flex; gap: .375rem; align-items: center; }
.eg-prem-ueber .ic { width: 14px; height: 14px; }
/* Band „Bericht“: Download-Knöpfe wie „Als CSV herunterladen“ im Verlauf (Symbol + Text), mit Schloss ohne Premium */
.eb-knoepfe { display: flex; flex-wrap: wrap; gap: .625rem; }
.eb-knopf { min-height: 44px; justify-content: center; flex: 0 1 auto; }
.eb-knopf .ic { width: 18px; height: 18px; flex: none; }
.eb-knopf .lk { margin-left: 4px; }
.eb-knopf:not(.ghost) .lk { color: inherit; border-color: currentColor; opacity: .85; }
@media (max-width: 30rem) { .eb-knopf { flex: 1 1 100%; } }
.eg-pk { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); }
.eg-pk-p { border: 1px solid var(--line); border-radius: 12px; padding: .75rem .875rem; display: grid; gap: .125rem; align-content: start; min-width: 0; font-size: .875rem; color: var(--ink-2); }
.eg-pk-p b { font-size: .9375rem; color: var(--ink); }
.eg-pk-wert { color: var(--ink); font-weight: 600; }
.eg-pk-wert .linkbtn { min-height: 44px; font-weight: 700; }

/* Angaben und Annahmen */
.eg-ak-legende { display: flex; flex-wrap: wrap; gap: .375rem 1rem; font-size: .8125rem; color: var(--muted); align-items: center; }
.eg-ak-legende span { display: inline-flex; align-items: center; gap: .375rem; }
.eg-ak-legende .ic { width: 14px; height: 14px; }
.eg-angaben .genau-zeile { margin: 0; }
.eg-ak-raster { display: grid; gap: .875rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 40.0625rem) { .eg-ak-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 65rem) { .eg-ak-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.eg-ak { border: 1px solid var(--line); border-radius: 14px; min-width: 0; display: flex; flex-direction: column; container-type: inline-size; }
.eg-ak h3 { font-size: .9375rem; font-weight: 800; display: flex; align-items: center; gap: .5rem; padding: .75rem .875rem .5rem; margin: 0; }
.eg-ak h3 .nr { width: 1.375rem; height: 1.375rem; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: .75rem; display: inline-grid; place-items: center; flex: none; }
.eg-ak ul { list-style: none; margin: 0; padding: 0 .375rem .375rem; display: grid; }
.eg-ak li + li { border-top: 1px solid var(--line); }
.eg-ak li[hidden] { display: none; }
.eg-ak-z { width: 100%; display: grid; grid-template-columns: minmax(min-content, 2fr) minmax(0, 3fr); gap: .125rem .75rem; align-items: baseline; text-align: left; border: 0; background: none; border-radius: 10px; padding: .5rem; cursor: pointer; min-height: 44px; font: inherit; color: var(--ink); scroll-margin-top: 90px; }
@container (max-width: 18.75rem) { .eg-ak-z { grid-template-columns: minmax(0, 1fr); } .eg-ak-wert { text-align: left !important; } }
.eg-ak-z:hover { background: var(--surface-2); }
.eg-ak-z:hover .eg-ak-wert { color: var(--accent); }
.eg-ak-name { font-size: .875rem; color: var(--ink-2); display: flex; align-items: baseline; gap: .375rem; min-width: 0; overflow-wrap: normal; hyphens: manual; }
.eg-ak-wert { font-size: .875rem; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: break-word; hyphens: auto; min-width: 0; }
.eg-ak-wert.std { color: var(--muted); font-weight: 600; }
.eg-st { width: .5rem; height: .5rem; border-radius: 50%; flex: none; display: inline-grid; place-items: center; background: var(--gain); transform: translateY(-1px); }
.eg-st.st-ang { background: var(--held); }
.eg-st.st-std, .eg-st.st-weg { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.eg-st.st-prem { width: auto; height: auto; background: none; color: var(--prem); transform: none; }
.eg-st.st-prem .ic { width: 13px; height: 13px; }
.eg-hb { color: var(--gain); font-size: .75rem; font-weight: 800; white-space: nowrap; }
.eg-ak-mehr { margin: auto .875rem .5rem; align-self: flex-start; min-height: 44px; font-weight: 700; }
.eg-blitz { animation: eg-blitz 1.6s ease; }
@keyframes eg-blitz { 0% { background: var(--accent-soft-2); } 100% { background: transparent; } }

/* Seitenblatt: rechts, am Handy Vollbild */
dialog.eg-blatt { margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(30rem, 100%); max-width: 100%; border: 0; border-radius: 0; padding: 0; background: var(--surface); color: var(--ink); box-shadow: -10px 0 40px rgba(0, 0, 0, .25); }
dialog.eg-blatt[open] { display: flex; flex-direction: column; animation: eg-blatt-rein .25s ease; }
dialog.eg-blatt::backdrop { background: rgba(10, 15, 28, .45); }
@keyframes eg-blatt-rein { from { transform: translateX(100%); } to { transform: none; } }
.eg-blatt-kopf { padding: max(1rem, env(safe-area-inset-top, 0px)) 1.25rem 1rem; border-bottom: 1px solid var(--line); display: flex; gap: .75rem; align-items: flex-start; }
.eg-blatt-kopf > div { min-width: 0; flex: 1; }
.eg-blatt-kopf h2 { font-size: 1.25rem; font-weight: 800; margin: 0; }
.eg-blatt-kopf h2:focus { outline: none; }
.eg-blatt-kopf small { font-size: .8125rem; color: var(--muted); font-weight: 600; }
.eg-x { width: 44px; height: 44px; flex: none; }
.eg-live { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; padding: .75rem 1.25rem; background: var(--surface-2); border-top: 1px solid var(--line); }
.eg-live[hidden] { display: none; }
.eg-live div { display: grid; min-width: 0; }
.eg-live small { font-size: .6875rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.eg-live b { font-size: 1.0625rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.eg-live em { font-style: normal; font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.eg-blatt-inhalt { padding: 1.25rem; overflow-y: auto; display: grid; gap: 1rem; align-content: start; flex: 1; min-height: 0; }
.eg-blatt-inhalt p { margin: 0; }
.eg-blatt-inhalt .eg-sprung { justify-self: start; }
.eg-rw-teil { display: grid; gap: .625rem; scroll-margin-top: 1rem; }
.eg-rw-teil h3 { font-size: 1rem; margin: 0; }
.eg-blatt-fuss { padding: .875rem 1.25rem max(.875rem, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: flex; gap: .625rem; flex-wrap: wrap; }
.eg-blatt-fuss[hidden] { display: none; }
.eg-blatt-fuss .btn { min-height: 44px; justify-content: center; }
.eg-blatt-fuss .btn:first-child { flex: 1 1 10rem; }
@media (prefers-reduced-motion: reduce) { dialog.eg-blatt[open], .eg-blitz { animation: none; } .eg-leiste i, .eg-spur, .eg-spur::before { transition: none; } }
@media (max-width: 32rem) { .eg-band, .eg-fk, .eg-kz { padding: 1.125rem; } }
@media print { .eg-kauf, .eg-prem-band, #ue-premium, #ue-bericht, dialog.eg-blatt { display: none !important; } }
/* Tippflächen im Ergebnis mindestens 44 px */
#tab-entscheidung .rw-details > summary, #tab-entscheidung details.rw-warum > summary { min-height: 44px; display: list-item; padding-block: .625rem; box-sizing: border-box; }
#tab-entscheidung details.gz-std > summary { min-height: 44px; }
#tab-entscheidung .gz-haupt .linkbtn { min-height: 44px; }
#tab-entscheidung #rw-sparrest { min-height: 44px; }
/* To-dos: kostenlos druckbar (Fristen und To-dos, bericht.js art 'todos') */
.todo-kopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1rem; }
.todo-druck { min-height: 44px; }
@media print { .todo-druck { display: none; } }
/* Beratung: Verzeichnisse als Chips (Startseite, Ergebnis) */
.beratung-chips { list-style: none; margin: .75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.beratung-chips a { display: inline-flex; align-items: center; gap: .25rem; min-height: 44px; padding: .375rem .875rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .875rem; text-decoration: none; }
.beratung-chips a:hover { border-color: var(--accent); color: var(--accent); }
.beratung-chips .ic { width: 14px; height: 14px; color: var(--accent); }
@media print { #ue-beratung { display: none !important; } }

/* Kopf des Steppers bricht bei sehr schmalem Bildschirm und großen Abständen um, statt seitlich überzustehen */
.fl-kopf .kopf-innen { flex-wrap: wrap; }

/* Wenig Höhe (Querformat am Handy, 400 % Zoom bei 1280 × 1024): feste und klebende Leisten fließen mit,
   damit sie keinen Inhalt verdecken (WCAG 1.4.10); die Zahlenleiste ist eine Wiederholung und entfällt */
@media (max-height: 30em) {
  .kopfzeile, .tabs, .fl-fuss, .st-leiste, .aktionsleiste, .reiter-unten, .fab, .fl-seite, .s4-nav { position: static; }
  .ue-fest, #ue-fest { display: none !important; }
  /* Reiterleiste steht dann als eigene Zeile im Kopf */
  .e-kopfzeile .kopf-innen { flex-wrap: wrap; }
  .kopf-reiter.tabs.reiter-unten { order: 3; flex: 1 0 100%; }
  #tab-entscheidung { padding-bottom: 0; }
}

/* „So lange reicht sie“: Markierung am Planbeginn oder Rentenbeginn, Lücke schraffiert, Achse an ihren Stellen, Zeile darunter */
.eg-leiste-rahmen { position: relative; }
.eg-leiste .eg-fehlt { background: var(--muster-schraffur), var(--surface-2); }
.eg-plan-marke { position: absolute; top: -.3rem; bottom: -.3rem; width: 0; border-left: 2px solid var(--ink); }
.eg-plan-marke::after { content: ""; position: absolute; top: -.25rem; left: -.3rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--ink); }
.eg-achse { position: relative; height: 2.4rem; font-size: .75rem; color: var(--muted); margin-top: .25rem; }
.eg-achse span { position: absolute; top: 0; white-space: nowrap; }
.eg-achse span.z2 { top: 1.15rem; color: var(--ink); font-weight: 700; }
.eg-puffer { display: flex; gap: .5rem; align-items: flex-start; margin: 0; padding: .625rem .75rem; border-radius: 12px; background: var(--surface-2); font-size: .9375rem; line-height: 1.45; }
.eg-puffer .ic { flex: none; margin-top: .15rem; width: 1.05rem; height: 1.05rem; color: var(--ink-2); }
.eg-puffer b { font-weight: 800; }
.eg-mitplan { margin: 0; padding: .625rem .75rem; border: 1px solid var(--line); border-radius: 12px; font-size: .9375rem; line-height: 1.45; }


/* Handy: Abschnitte im Ergebnis zuklappbar (klappenAnwenden in ui-views.js) */
.klapp-kopf { display: none; }
@media (max-width: 600px) {
  .klappbar > .klapp-kopf { display: flex; align-items: center; gap: .5rem; width: 100%; min-height: 56px; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
  .klapp-t { flex: 1 1 auto; min-width: 0; font-weight: 800; }
  .klapp-z { flex: 0 1 auto; min-width: 0; color: var(--muted); font-size: .875rem; text-align: right; overflow-wrap: anywhere; }
  .klapp-kopf .ic { flex: none; width: 18px; height: 18px; color: var(--accent); transform: rotate(90deg); transition: transform .2s; }
  .klappbar.zu .klapp-kopf .ic { transform: none; }
  .klappbar.zu > :not(.klapp-kopf) { display: none !important; }
  .klappbar.zu { padding: 0; border: 0; background: none; box-shadow: none; }
  .klappbar:not(.zu) > .klapp-kopf { border: 0; box-shadow: none; background: none; padding: 0 0 .25rem; min-height: 44px; }
  .klapp-kopf:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
}
@media (prefers-reduced-motion: reduce) { .klapp-kopf .ic { transition: none; } }

/* Fristen: Titel und Datum, Erklärung zum Aufklappen */
details.frist-d > summary { list-style: none; cursor: pointer; }
details.frist-d > summary::-webkit-details-marker { display: none; }
details.frist-d > summary b::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .4em; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); vertical-align: .15em; }
details.frist-d[open] > summary b::after { transform: rotate(45deg); vertical-align: .3em; }
details.frist-d > p { margin-top: .25rem; }

/* ================================================================
   Ergebnis in zwei Kapiteln (Redesign Oktober 2026): Kapitel-Kacheln, 1 Kurzfristig, 2 Langfristig (eigene Fläche),
   Stellhebel als Liste, Nächste Schritte, Deine Angaben als Liste, Panel „Angaben ändern“ mit Reitern
   ================================================================ */
:root { --lang-bg: #EEF1FB; --lang-line: #DDE3F3; --badge-dir: #E7FCFA; --badge-dir-ink: #005F54; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --lang-bg: #141C30; --lang-line: #26314C; --badge-dir: #0F2B2D; --badge-dir-ink: #7FE3C8; } }
:root[data-theme="dark"] { --lang-bg: #141C30; --lang-line: #26314C; --badge-dir: #0F2B2D; --badge-dir-ink: #7FE3C8; }

#tab-entscheidung:not([hidden]) { gap: 2.5rem; max-width: 920px; }
.zahl, .eg-sw-w, .eg-hk-wert, .eg-lf-v, .eg-lf-d { font-variant-numeric: tabular-nums; }
.eg-h3 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.eg-h3:focus { outline: none; }

/* Kapitel-Kacheln */
.eg-kapitel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: .75rem; margin-bottom: -1rem; }
.eg-kap-kachel { display: flex; gap: .875rem; align-items: center; padding: 1rem 1.125rem; min-height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.eg-kap-kachel.k2 { background: var(--lang-bg); border-color: var(--lang-line); }
.eg-kap-kachel:hover { border-color: var(--accent); color: var(--ink); }
.eg-kap-kachel > span:last-child { display: grid; min-width: 0; }
.eg-kap-kachel small { font-size: .8125rem; color: var(--muted); }
.eg-kap-nr { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--on-navy); display: grid; place-items: center; font-weight: 800; font-size: .875rem; }
.k2 .eg-kap-nr, .eg-lang .eg-kap-nr { background: var(--accent); color: var(--accent-ink); }
.eg-kap-nr.gross { width: 40px; height: 40px; font-size: 1.125rem; }

/* Kapitel */
.eg-kap { display: grid; gap: 1.25rem; min-width: 0; scroll-margin-top: 5rem; }
.eg-kap:focus { outline: none; }
.eg-kap-titel { display: flex; gap: 1rem; align-items: flex-start; }
.eg-kap-titel > div { display: grid; gap: .25rem; min-width: 0; }
.eg-kap-titel .ueberzeile { font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.eg-kap-titel .eg-h2 { font-size: clamp(1.5rem, 3vw, 1.75rem); letter-spacing: -.01em; }
.eg-kap-titel p { margin: 0; color: var(--muted); font-size: .9375rem; max-width: 40rem; }
.eg-lang { background: var(--lang-bg); border: 1px solid var(--lang-line); border-radius: 24px; padding: clamp(1rem, 4vw, 2rem); }
#lang-inhalt { display: grid; gap: 1.25rem; min-width: 0; }

/* Kapitel 1: zwei Karten */
.eg-kurz .eg-kopf { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.eg-kurz .eg-kz { padding: clamp(1.25rem, 3vw, 2rem); }
.eg-kurz .eg-gross { font-size: clamp(2.25rem, 6vw, 3.25rem); }
.eg-kurz .ueberzeile { font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; margin: 0; }
.eg-kurz .eg-dunkel .eg-zeilen { background: none; border: 0; border-top: 1px solid rgba(255, 255, 255, .14); border-radius: 0; padding: .75rem 0 0; color: var(--on-navy-2); }
.eg-kurz .eg-dunkel .eg-zeile b { color: var(--on-navy); }
.eg-hell .eg-unter b { color: var(--ink); font-weight: 600; }
.eg-rw-art { font-size: .8125rem; color: var(--muted); }
.eg-sw-liste { display: grid; border-top: 1px solid var(--line); }
.eg-sw-liste:focus { outline: none; }
.eg-sw-kopf { font-size: .875rem; font-weight: 600; padding: .875rem 0 .25rem; }
.eg-sw-z { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; min-height: 44px; }
.eg-sw-t { flex: 1; min-width: 0; display: grid; gap: .125rem; }
.eg-sw-t label, .eg-sw-n { font-size: .9375rem; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; }
.eg-sw-t small { font-size: .8125rem; color: var(--muted); }
.eg-sw-n .ic { width: 14px; height: 14px; color: var(--prem); }
.eg-sw-w { font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.eg-sw-z.an .eg-sw-w { color: var(--accent); font-weight: 700; }
.eg-sw-feld { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; font-size: .8125rem; color: var(--muted); margin-top: .25rem; }
.eg-sw-feld label { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.eg-sw-feld input { width: 6.5rem; min-height: 40px; border: 1px solid var(--bar); border-radius: 10px; padding: 0 .625rem; font: inherit; text-align: right; background: var(--surface); color: var(--ink); }
.eg-sw-z.zu .btn { flex: none; }
/* Schalter: echte Checkbox mit role="switch" */
.eg-switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 44px; height: 26px; margin: 9px 0; border-radius: 13px; background: var(--bar); cursor: pointer; transition: background-color .2s; }
.eg-switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.eg-switch:checked { background: var(--accent); }
.eg-switch:checked::before { transform: translateX(18px); }
.eg-switch:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.eg-sw-mehr { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; }
.eg-sw-mehr .linkbtn { display: inline-flex; align-items: center; gap: .25rem; min-height: 44px; font-weight: 600; font-size: .875rem; }
.eg-sw-mehr .linkbtn .ic { width: 14px; height: 14px; }
.eg-fristleiste { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; margin: 0; background: var(--frist-soft); color: var(--ink); border-radius: 12px; padding: .75rem 1.125rem; font-size: .9375rem; }
.eg-fristleiste > .ic { color: var(--frist-ink); flex: none; }
.eg-fristleiste b { font-weight: 600; }
.eg-fristleiste span { flex: 1 1 14rem; min-width: 0; color: var(--muted); }
.eg-fristleiste .linkbtn { min-height: 44px; font-weight: 600; }
.eg-fristleiste.alarm { background: var(--ampel-rot-soft); }
.eg-fristleiste.alarm > .ic, .eg-fristleiste.alarm b { color: var(--ampel-rot); }

/* Kapitel 2: Plan-Auswahl, Kennzahlen, Balken */
.eg-lf-wahl { display: grid; gap: .5rem; }
.eg-lf-wahl > span { font-size: .9375rem; font-weight: 600; }
.eg-lf-wahl p { margin: 0; }
.eg-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.eg-pill { display: inline-flex; align-items: center; gap: .375rem; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--bar); background: var(--surface); color: var(--ink); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; }
.eg-pill small { font-size: .75rem; font-weight: 600; color: var(--muted); }
.eg-pill[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.eg-pill[aria-checked="true"] small { color: var(--on-navy-2); }
.eg-pill:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.eg-lf-karte { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; min-width: 0; }
.eg-lf-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.eg-lf-k { padding: 1.5rem; display: grid; gap: .375rem; align-content: start; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; min-width: 0; }
.eg-lf-l { font-size: .875rem; color: var(--muted); display: inline-flex; align-items: center; gap: .3rem; }
.eg-lf-l .ic { width: 14px; height: 14px; color: var(--prem); }
.eg-lf-v { font-size: 2rem; font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.eg-lf-d { font-size: .875rem; color: var(--muted); }
.eg-lf-k.zu { background: var(--prem-soft); }
.eg-lf-k.zu .btn { justify-self: start; margin-top: .25rem; }
.eg-lf-chart { padding: .5rem 1.5rem 1.5rem; }
.eg-lf-leg { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .8125rem; color: var(--muted); padding: .75rem 0 1rem; }
.eg-lf-leg span { display: inline-flex; align-items: center; gap: .5rem; }
.eg-lf-leg i { width: 12px; height: 12px; border-radius: 3px; display: block; }
.eg-lf-leg i.b, .eg-lf-saeulen i.b { background: var(--bar); }
.eg-lf-leg i.p, .eg-lf-saeulen i.p { background: var(--accent); }
.eg-lf-scroll { overflow-x: auto; }
.eg-lf-bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(56px, 1fr); gap: 1rem; min-width: 300px; }
.eg-lf-g { display: grid; gap: .5rem; justify-items: center; }
.eg-lf-saeulen { display: flex; gap: 6px; align-items: flex-end; height: 164px; border-bottom: 1px solid var(--bar); width: 100%; justify-content: center; }
.eg-lf-saeulen i { width: 22px; border-radius: 4px 4px 0 0; display: block; }
.eg-lf-g > span { font-size: .8125rem; color: var(--muted); }
.eg-lf-sperre { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin-top: 1rem; padding: 1rem 1.125rem; border: 1px dashed var(--prem-line); border-radius: 12px; background: var(--prem-soft); }
.eg-lf-sperre > .ic { color: var(--prem); flex: none; }
.eg-lf-sperre p { flex: 1 1 16rem; margin: 0; font-size: .9375rem; }
.eg-lf-gl { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; padding: 1rem 1.5rem; background: var(--bg); border-top: 1px solid var(--line); }
.eg-lf-gl span { flex: 1 1 15rem; min-width: 0; font-size: .9375rem; }
.eg-lf-gl b { font-size: 1.125rem; font-weight: 800; }

/* Stellhebel als Liste */
.eg-hebel { display: grid; gap: .75rem; padding-top: .5rem; min-width: 0; }
.eg-hebel:focus { outline: none; }
.eg-hebel-kopf { display: grid; gap: .25rem; }
.eg-hebel-kopf p { margin: 0; color: var(--muted); font-size: .9375rem; max-width: 40rem; }
.eg-hebel-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.eg-hebel-summe { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: 1.125rem 1.25rem; background: var(--accent-soft); }
.eg-hebel-summe > span { flex: 1 1 14rem; min-width: 0; font-size: .9375rem; display: grid; }
.eg-hebel-summe small { font-size: .8125rem; color: var(--ink-2); }
.eg-hebel-summe b { font-size: 1.375rem; font-weight: 800; color: var(--go-ink); }
.eg-hebel-box .eg-hebel-liste { display: block; }
.eg-hebel-box .eg-hk { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: var(--surface); box-shadow: none; }
.eg-hebel-box .eg-hebel-summe + .eg-hebel-liste .eg-hk:first-child { border-top: 1px solid var(--line); }
.eg-hebel-box .eg-hk.an { background: var(--accent-soft); box-shadow: none; }
.eg-hebel-liste.kurz .eg-hk:nth-child(n+4) { display: none; }
.eg-hk-t { flex: 1; min-width: 0; display: grid; gap: .125rem; }
.eg-hk-titel { font-weight: 600; font-size: 1rem; overflow-wrap: break-word; hyphens: auto; }
.eg-hk-text, .eg-hk-bed { font-size: .875rem; color: var(--muted); }
.eg-hk-t small { font-size: .75rem; color: var(--muted); }
.eg-hk-t small:empty { display: none; }
.eg-hk-wert { font-weight: 700; color: var(--accent); font-size: .9375rem; text-align: right; }
.eg-hebel-mehr { width: 100%; min-height: 44px; border: 0; border-top: 1px solid var(--line); background: var(--surface); padding: 1rem 1.25rem; text-align: left; color: var(--accent); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; }
.eg-hebel-prem { margin: 0; font-size: .875rem; color: var(--muted); }
.eg-prem-link { color: var(--prem); font-weight: 600; min-height: 44px; }
.eg-hebel > .klein { margin: 0; }
@media (max-width: 34rem) { .eg-hebel-box .eg-hk { flex-wrap: wrap; } .eg-hk-t { flex-basis: 100%; } .eg-hk-wert { flex: 1; text-align: left; } }

/* Nächste Schritte */
.eg-schritte { display: grid; gap: 1rem; }
.eg-schritte-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 1rem; }
.eg-schritt { display: grid; gap: .375rem; align-content: start; text-align: left; padding: 1.25rem; min-height: 44px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.eg-schritt:hover { border-color: var(--accent); }
.eg-schritt b { font-weight: 700; }
.eg-schritt span { font-size: .875rem; color: var(--muted); }
.eg-prem-wort { font-style: normal; color: var(--prem); font-weight: 600; }
.eg-schritte .eg-entscheid { margin: 0; }

/* Deine Angaben als Liste */
.eg-angaben { display: grid; gap: 1rem; }
.eg-angaben:focus { outline: none; }
.eg-ang-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .5rem 1rem; }
.eg-ang-kopf > div { display: grid; gap: .375rem; }
.eg-ang-kopf p { margin: 0; color: var(--muted); font-size: .9375rem; }
.eg-ang-aendern { font-weight: 600; min-height: 44px; }
.eg-ang-liste { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.eg-ang-z { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; width: 100%; min-height: 44px; padding: 1rem 1.25rem; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.eg-ang-z:first-child { border-top: 0; }
.eg-ang-z:hover { background: var(--surface-2); }
.eg-ang-t { width: 10.5rem; font-weight: 600; font-size: .9375rem; }
.eg-ang-s { flex: 1 1 14rem; min-width: 0; font-size: .875rem; color: var(--muted); }
.eg-badge { font-size: .75rem; font-weight: 600; padding: .25rem .625rem; border-radius: 999px; white-space: nowrap; }
.eg-badge.dir { background: var(--badge-dir); color: var(--badge-dir-ink); }
.eg-badge.ang { background: var(--frist-soft); color: var(--frist-ink); }

/* Panel „Angaben ändern“: rechts ~560 px, am Handy Vollbild; Reiter oben, eine Zeile je Angabe, fixe Fußleiste */
dialog.eg-blatt.eg-blatt-angaben { width: min(35rem, 100%); }
.eg-bl-tabs { display: flex; flex-wrap: wrap; gap: .375rem; position: sticky; top: -1.25rem; z-index: 1; background: var(--surface); padding: .25rem 0 .75rem; margin-top: -.25rem; border-bottom: 1px solid var(--line); }
.eg-bl-tabs [role="tab"] { min-height: 36px; padding: 0 .875rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.eg-bl-tabs [role="tab"][aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.eg-bl-tabs [role="tab"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.eg-bl-panel { display: grid; gap: 1.25rem; }
.eg-bl-uk { display: grid; gap: .5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); scroll-margin-top: 4rem; }
.eg-bl-uk h3 { font-size: 1rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: .375rem; }
.eg-bl-uk.zu h3 .ic { width: 14px; height: 14px; color: var(--prem); }
.eg-bl-uk.zu .btn { justify-self: start; }
/* Kein Schieberegler im Panel: das Eingabefeld reicht */
.eg-blatt-angaben .fl-regler, .eg-blatt-angaben input[type="range"] { display: none; }
.eg-blatt-angaben .uk-werkzeug:empty { display: none; }
.eg-bl-stepper { margin: 0; }
.eg-bl-stepper .linkbtn { display: inline-flex; align-items: center; gap: .375rem; min-height: 44px; font-weight: 600; }
.eg-live-n { margin: 0; flex-basis: 100%; font-size: .8125rem; color: var(--frist-ink); }
@media (max-width: 600px) { dialog.eg-blatt.eg-blatt-angaben { width: 100%; } }
/* Panel: Geldfelder als eine Zeile, Bezeichnung links, Eingabe rechts (Marken und Spanne des Reglers entfallen) */
.eg-blatt-angaben .fl-geld { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .25rem 1rem; padding: .375rem 0; }
.eg-blatt-angaben .fl-geld > .fl-lab { grid-column: 1; }
.eg-blatt-angaben .fl-geld > .fl-zahl { grid-column: 2; width: 10.5rem; }
.eg-blatt-angaben .fl-geld > :not(.fl-lab):not(.fl-zahl) { grid-column: 1 / -1; }
.eg-blatt-angaben .fl-marken, .eg-blatt-angaben .fl-bandleg { display: none; }
@media (max-width: 380px) { .eg-blatt-angaben .fl-geld { grid-template-columns: minmax(0, 1fr); } .eg-blatt-angaben .fl-geld > .fl-zahl { grid-column: 1; width: 100%; } }
/* Kapitel 1, dunkle Karte: „Weniger Steuer zahlen“ (Auszahlung, Austritt, Ausgleichszahlung, Rürup) */
.eg-steuer { display: grid; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: .25rem; }
.eg-steuer-kopf { font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--mint); padding: .75rem 0 .25rem; }
.eg-steuer .eg-hk { display: flex; align-items: center; gap: .75rem; padding: .75rem 0; border-top: 1px solid rgba(255, 255, 255, .08); background: none; color: var(--on-navy); border-radius: 0; box-shadow: none; }
.eg-steuer .eg-hk:first-of-type { border-top: 0; }
.eg-steuer .eg-hk.an { background: rgba(127, 227, 200, .1); margin: 0 -.75rem; padding: .75rem; border-radius: 10px; }
.eg-steuer .eg-hk-titel { font-size: .9375rem; }
.eg-steuer .eg-hk-text, .eg-steuer .eg-hk-bed, .eg-steuer .eg-hk-t small { color: var(--on-navy-2); }
.eg-steuer .eg-hk-wert { color: var(--mint); font-size: .875rem; }
.eg-steuer .eg-schloss { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); color: var(--on-navy); }
.eg-steuer .eg-hk-link { color: var(--mint); }
.eg-steuer .eg-spur { background: rgba(255, 255, 255, .25); }
.eg-steuer .eg-schalter[aria-checked="true"] .eg-spur { background: var(--mint); }
.eg-hk-ok { flex: none; width: 18px; height: 18px; color: var(--mint); }
@media (max-width: 34rem) { .eg-steuer .eg-hk { flex-wrap: wrap; } .eg-steuer .eg-hk-t { flex-basis: 100%; } .eg-steuer .eg-hk-wert { flex: 1; text-align: left; } }
/* Kapitel 1, weiße Karte: Steuerklasse als Stellhebel unter „Einrechnen“ */
.eg-sw-hebel .eg-hk { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; border: 0; background: none; box-shadow: none; border-radius: 0; }
.eg-sw-hebel .eg-hk.an { background: var(--accent-soft); margin: 0 -.5rem; padding: .5rem; border-radius: 10px; }
.eg-sw-hebel .eg-hk-titel { font-size: .9375rem; font-weight: 500; }
.eg-sw-hebel .eg-hk-text, .eg-sw-hebel .eg-hk-bed { font-size: .8125rem; }
.eg-sw-hebel .eg-hk-wert { font-size: .8125rem; }
/* Kompakte Hebel-Zeilen in Kapitel 1 (dunkle und weiße Karte) */
.eg-hk.kompakt { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: none; align-items: start; gap: .25rem .75rem; border: 0; border-radius: 0; box-shadow: none; padding: .625rem 0; }
.eg-hk.kompakt .eg-hk-t { gap: .125rem; }
.eg-hk.kompakt .eg-hk-t small { font-size: .8125rem; line-height: 1.4; }
.eg-hk-r { display: flex; align-items: center; gap: .5rem; justify-content: flex-end; }
.eg-hk.kompakt .eg-schloss { min-height: 36px; padding: 0 .625rem; font-size: .8125rem; }
.eg-hk-mehr { font-size: .8125rem; }
.eg-hk-mehr summary { cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; font-weight: 600; }
.eg-hk-mehr p { margin: .25rem 0 0; line-height: 1.45; }
.eg-steuer .eg-hk.kompakt { border-top: 1px solid rgba(255, 255, 255, .08); background: none; color: var(--on-navy); }
.eg-steuer .eg-hk.kompakt:first-of-type { border-top: 0; }
.eg-steuer .eg-hk.kompakt.an { background: rgba(127, 227, 200, .1); margin: 0 -.75rem; padding: .625rem .75rem; border-radius: 10px; }
.eg-steuer .eg-hk-mehr summary { color: var(--mint); }
.eg-steuer .eg-hk-mehr p { color: var(--on-navy-2); }
.eg-sw-hebel .eg-hk-mehr summary { color: var(--accent); }
.eg-sw-hebel .eg-hk.kompakt { padding: .5rem 0; background: none; }
.eg-sw-hebel .eg-hk-mehr p, .eg-sw-hebel .eg-hk-t small { color: var(--muted); }
@media (max-width: 34rem) { .eg-steuer .eg-hk.kompakt { grid-template-columns: minmax(0, 1fr); } .eg-steuer .eg-hk.kompakt .eg-hk-r { justify-content: flex-start; } }
.eg-hk.kompakt .eg-hk-wert { text-align: left; font-size: .875rem; }
@media (max-width: 34rem) { .eg-steuer .eg-hk.kompakt { grid-template-columns: minmax(0, 1fr) auto; } .eg-steuer .eg-hk.kompakt .eg-hk-r { justify-content: flex-end; } }
.eg-blatt-angaben .fl-zahl input { font-size: 1.25rem; }
.eg-blatt-angaben .fl-zahl .fl-eh, .eg-blatt-angaben .fl-zahl .fl-ca { font-size: 1rem; }
/* Abwägen (nur mit dem Feature-Schalter „abwaegen“ im Build): Band im Ergebnis, Coaching-Blatt, Regler, Hantel-Diagramm.
   Farben aus den Tokens (design.css); keine Farbe für eine Richtung, keine Ampel. */
.eg-abw-band[hidden] { display: none; }
.abw-fuss { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.abw-fuss small { color: var(--muted); font-size: .8125rem; }
.abw-band-ueb summary { cursor: pointer; font-weight: 700; color: var(--accent); min-height: 44px; display: flex; align-items: center; }
.abw-band-ueb[open] > summary { margin-bottom: .5rem; }
.abw-satz { font-size: .875rem; color: var(--muted); margin: 0; }
.abw-unter { margin: 0; color: var(--muted); font-size: .875rem; }
.abw-hilfe { margin: 0; color: var(--ink-2); font-size: .8125rem; }

/* Blatt */
dialog.eg-blatt.abw-blatt { width: min(36rem, 100%); }
.abw-kopf { padding-block: .625rem; align-items: center; }
.abw-kopf h2 { font-size: 1.125rem; }
.abw-schritt { margin: 0; font-size: .8125rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.abw-frage { font-size: 1.25rem; font-weight: 800; margin: 0; line-height: 1.3; text-wrap: balance; }
.abw-frage:focus { outline: none; }
.abw-krit { border: 0; padding: 0; margin: 0; display: grid; gap: .875rem; min-width: 0; }
.abw-krit legend { padding: 0; float: left; width: 100%; }
.abw-krit legend + * { clear: both; }
.abw-blatt-fuss { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; align-items: center; padding: .5rem 1.25rem max(.5rem, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); }
.abw-blatt-fuss .btn { min-height: 44px; }
.abw-fuss-r { display: flex; gap: .5rem; align-items: center; margin-left: auto; }
.abw-blatt-fuss { flex-wrap: nowrap; }
.abw-blatt-fuss .linkbtn { font-size: .875rem; white-space: nowrap; }
.abw-blatt-fuss .btn { padding-inline: 14px; white-space: nowrap; }
.abw-fl { display: grid; gap: .25rem; font-size: .9375rem; }
.abw-text, .abw-notiz textarea { width: 100%; box-sizing: border-box; min-height: 4.5rem; border: 1px solid var(--rand-feld); border-radius: 10px; padding: .5rem .625rem; font: inherit; font-size: .9375rem; background: var(--surface); color: var(--ink); resize: vertical; }
.abw-notiz summary { cursor: pointer; font-size: .875rem; font-weight: 700; color: var(--accent); min-height: 44px; display: flex; align-items: center; }
.abw-eigen-t { width: 100%; box-sizing: border-box; border: 1px solid var(--rand-feld); border-radius: 10px; padding: .5rem .625rem; font: inherit; font-weight: 700; background: var(--surface); color: var(--ink); min-height: 44px; }
.abw-eigen-t.abw-normal { font-weight: 400; }
.abw-eigen-neu { justify-self: start; }
.abw-gef { display: flex; flex-wrap: wrap; gap: .375rem; }
.abw-gef label { position: relative; border: 1px solid var(--line); border-radius: 999px; padding: .375rem .75rem; min-height: 44px; display: inline-flex; align-items: center; font-size: .875rem; font-weight: 600; cursor: pointer; background: var(--surface); }
.abw-gef input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.abw-gef label:has(input:checked) { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.abw-gef label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.abw-geld { display: grid; gap: .25rem; background: var(--surface-2); border-radius: 10px; padding: .625rem .75rem; }
.abw-geld div { display: flex; justify-content: space-between; gap: .75rem; font-size: .875rem; flex-wrap: wrap; }
.abw-geld div b { font-variant-numeric: tabular-nums; }
.abw-todo { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.abw-todo-ok { font-size: .875rem; color: var(--gain); font-weight: 700; }
.abw-vert { border-top: 1px solid var(--line); padding-top: .875rem; display: grid; gap: .625rem; }
.abw-h3 { font-size: 1.0625rem; font-weight: 800; margin: 0; }
.abw-zehn-l { display: grid; gap: .5rem; padding-top: .5rem; }
.abw-loeschen { border-top: 1px solid var(--line); padding-top: .75rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .875rem; }
.abw-loeschen .btn, .abw-loeschen .linkbtn { min-height: 44px; }

/* Regler: eigene Spur, ohne Wert gestrichelt (Kontrast ≥ 3:1), der Knopf erscheint erst nach dem Einstellen */
.abw-sl { display: grid; gap: .25rem; }
.abw-sl label { font-size: .875rem; font-weight: 700; }
.abw-sl input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.abw-sl input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--ink) var(--p), var(--bar) var(--p)); }
.abw-sl input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--ink) var(--p), var(--bar) var(--p)); }
.abw-sl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); margin-top: -10px; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--ink); }
.abw-sl input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 3px solid var(--surface); }
.abw-sl.unset input[type=range]::-webkit-slider-runnable-track { background: repeating-linear-gradient(90deg, var(--rand-feld) 0 8px, transparent 8px 13px); }
.abw-sl.unset input[type=range]::-moz-range-track { background: repeating-linear-gradient(90deg, var(--rand-feld) 0 8px, transparent 8px 13px); }
.abw-sl.unset input[type=range]::-webkit-slider-thumb { opacity: 0; }
.abw-sl.unset input[type=range]::-moz-range-thumb { opacity: 0; }
.abw-sl input[type=range]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.abw-pole { display: grid; grid-template-columns: 1fr auto 1fr; gap: .5rem; font-size: .8125rem; color: var(--muted); }
.abw-pole b { color: var(--ink); font-variant-numeric: tabular-nums; text-align: center; }
.abw-sl.unset .abw-pole b { color: var(--muted); font-weight: 600; }
.abw-pole span:last-child { text-align: right; }
.abw-reset { justify-self: end; font-size: .8125rem; min-height: 32px; }

/* Hantel-Diagramm: Ring heute, kleiner Punkt wie wichtig darunter, helle Linie dazwischen */
.hantel { margin: 0; display: grid; gap: .5rem; }
.ha-leg { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .8125rem; color: var(--muted); }
.ha-leg span { display: inline-flex; align-items: center; gap: .375rem; }
.ha-leg i { position: static; transform: none; }
.ha-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .375rem; }
.ha-z { display: grid; grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr); gap: .75rem; align-items: center; font-size: .875rem; }
.hantel.klein .ha-z { grid-template-columns: minmax(6rem, 9rem) minmax(0, 1fr); font-size: .8125rem; }
.ha-n { min-width: 0; }
.ha-n.linkbtn { text-align: left; min-height: 32px; font-size: inherit; }
.ha-spur { position: relative; height: 1.5rem; display: block; }
.ha-spur svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ha-achse { stroke: var(--line); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ha-bogen { stroke: var(--bar); stroke-width: 3; vector-effect: non-scaling-stroke; }
.ha-heute, .ha-wichtig { position: absolute; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); display: inline-block; box-sizing: border-box; }
.ha-heute { width: 1.05rem; height: 1.05rem; border: 2.5px solid var(--ink); background: transparent; z-index: 2; }
.ha-wichtig { width: .55rem; height: .55rem; background: var(--accent); z-index: 1; }
.ha-teil { position: absolute; left: 0; top: 100%; font-size: .75rem; color: var(--muted); line-height: 1.2; }
.ha-z:has(.ha-teil) .ha-spur { margin-bottom: 1rem; }
.ha-skala { display: grid; grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr); gap: .75rem; font-size: .75rem; color: var(--muted); }
.hantel.klein .ha-skala { grid-template-columns: minmax(6rem, 9rem) minmax(0, 1fr); }
.ha-sk { display: flex; justify-content: space-between; gap: .5rem; }
@media (max-width: 520px) {
  .ha-z, .hantel.klein .ha-z, .ha-skala, .hantel.klein .ha-skala { grid-template-columns: minmax(0, 1fr); gap: .125rem; }
  .ha-skala > span:first-child { display: none; }
}

/* Band „Bericht“: Schalter für die Abwägung */
.eb-abw-l { display: grid; gap: .5rem; }
.eb-abw { display: flex; gap: .625rem; align-items: flex-start; font-size: .9375rem; min-height: 44px; }
.eb-abw input { width: 1.25rem; height: 1.25rem; margin-top: .1rem; accent-color: var(--accent); flex: none; }
.eb-abw small { display: block; color: var(--muted); font-size: .8125rem; }
.eb-abw-2 { margin-left: 1.875rem; }
.eb-abw-satz { margin: 0; font-size: .875rem; color: var(--muted); }
.eb-knopf .eb-mit { display: block; font-weight: 600; font-size: .75rem; opacity: .85; }

@media print {
  dialog.abw-blatt, #ue-abwaegen { display: none !important; }
  .hantel .ha-achse { stroke: #E2E7F0; } .hantel .ha-bogen { stroke: #8E9BB8; }
  .hantel .ha-heute { border-color: #131B2E; } .hantel .ha-wichtig { background: #006A61; }
}
/* Bereich Verlauf (ui-verlauf.js): Einkommen, Erspartes, Ausgaben je Jahr.
   Farben nur aus den Tokens der App (design.css, ergebnis.css), hell und dunkel ohne eigene Werte:
   Gehen = Petrol durchgezogen, Bleiben = Grau gestrichelt (wie früher „Verlauf bis 85“); Abfindung, Arbeitslosengeld,
   Betriebsrente und Partner in denselben Farben wie die Reichweite im Ergebnis (--eg-s1 … --eg-s6).
   Nie nur Farbe: Stapel in fester Reihenfolge wie die Legende, Tooltip und Tabelle mit Namen, Linien zusätzlich gestrichelt.
   Text nie in Serienfarbe. */
#tab-verlauf {
  --vl-teal-mitte: color-mix(in srgb, var(--eg-s1) 55%, var(--eg-s2));
  /* Einkommen */
  --vl-e-gehalt: var(--eg-s4); --vl-e-abfindung: var(--eg-s1); --vl-e-alg: var(--eg-s2); --vl-e-job: var(--vl-teal-mitte);
  --vl-e-selbst: var(--eg-s3); --vl-e-rente: var(--muted); --vl-e-bav: var(--eg-s6); --vl-e-partner: var(--eg-s5); --vl-e-weitere: var(--bar);
  /* Ausgaben, Steuern und Abgaben */
  --vl-a-leben: var(--eg-s4); --vl-a-kredite: var(--muted); --vl-a-kv: var(--vl-teal-mitte); --vl-a-steuer: var(--eg-s3);
  --vl-a-sozial: var(--eg-s2); --vl-a-weitere: var(--bar);
  /* Erspartes */
  --vl-gehen: var(--accent); --vl-bleiben: var(--muted);
  --vl-gitter: var(--line); --vl-null: var(--rand-feld, var(--muted)); --vl-sperre: var(--surface-2);
  /* Monat für Monat (Streifen aus dem Ergebnis): dieselben Farben wie die Balken, Muster bleiben */
  --w-gehalt: var(--vl-e-gehalt); --w-luecke: var(--rand-feld, var(--muted)); --w-alg: var(--vl-e-alg); --w-neu: var(--vl-e-job);
  --w-selbst: var(--vl-e-selbst);
}
/* Dunkel ist --eg-s2 dunkler als --eg-s1: die mittlere Stufe nimmt dort den hellen Akzent, damit die drei Petroltöne
   (Abfindung, Arbeitslosengeld, neuer Job) nach Helligkeit getrennt bleiben */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #tab-verlauf { --vl-teal-mitte: var(--accent); } }
:root[data-theme="dark"] #tab-verlauf { --vl-teal-mitte: var(--accent); }
#tab-verlauf .weg-seg.rente { background: var(--vl-e-rente); }

/* Seite: Kopf wie To-dos und Wissen */
#tab-verlauf { display: grid; gap: 16px; min-width: 0; }
#tab-verlauf[hidden] { display: none; }
#tab-verlauf h1 { font-size: 1.5rem; margin: 0; }
#tab-verlauf h1:focus { outline: none; }
#vl-inhalt { display: grid; gap: 16px; min-width: 0; }

/* Umschalter wie .eg-wahl im Ergebnis (helle Segmente, gewählt = Fläche mit Schatten) */
.vl-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.vl-seg { display: inline-flex; flex-wrap: wrap; max-width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.vl-seg button { border: 0; background: none; border-radius: 9px; padding: .375rem .875rem; font: inherit; font-weight: 700; font-size: .875rem; line-height: 1.25; color: var(--muted); min-height: 44px; cursor: pointer; display: inline-flex; align-items: center; }
.vl-seg button:hover { color: var(--ink); }
.vl-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(19, 27, 46, .12); }
.vl-seg button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.vl-annahme { margin: 0; font-size: .875rem; flex: 1 1 14rem; min-width: 0; }

/* Hinweis ohne Premium wie die gesperrten Felder im Ergebnis */
.vl-sperre { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--prem-soft); border: 1px dashed var(--prem-line); border-radius: 14px; padding: .875rem 1rem; color: var(--ink); }
.vl-sperre > .ic { width: 18px; height: 18px; color: var(--prem); flex: none; }
.vl-sperre p { margin: 0; flex: 1 1 260px; min-width: 0; font-size: .9375rem; }
.vl-sperre .btn { flex: none; min-height: 44px; }

/* Karten wie die Fragen-Karten im Ergebnis (.eg-fk) */
#vl-inhalt > .card { border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 1.375rem; }
.vl-karte { min-width: 0; gap: .875rem; scroll-margin-top: 90px; }
.vl-khead { display: grid; gap: .25rem; min-width: 0; }
.vl-khead h3 { font-size: 1.125rem; font-weight: 800; line-height: 1.3; margin: 0; }
.vl-khead .note { margin: 0; font-size: .9375rem; color: var(--ink-2); max-width: 70ch; }
.vl-tabkopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .75rem 1.5rem; }
.vl-tabkopf > div { display: grid; gap: .25rem; flex: 1 1 18rem; min-width: 0; }
.vl-tabkopf .vl-csv { min-height: 44px; }
#vl-inhalt .ue-streifen-legende, #vl-inhalt .rw-streifen-text { font-size: .8125rem; }
#vl-inhalt .vl-monate p { margin: 0; }

@media (max-width: 560px) { #vl-inhalt > .card { padding: 1.125rem 1rem; } }

.vl-legende { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .8125rem; color: var(--ink-2); }
.vl-legende li { display: inline-flex; align-items: center; gap: .375rem; }
.vl-key { flex: none; display: inline-block; background: var(--k); }
.vl-key.flaeche { width: .75rem; height: .875rem; border-radius: 3px; }
.vl-key.linie { width: 1.125rem; height: 0; background: none; border-top: 2.5px solid var(--k); }
.vl-key.linie.gestrichelt { border-top-style: dashed; border-top-width: 2px; }
/* Abfindungstopf: dieselbe Farbe wie der Plan, als Fläche */
.vl-key.blass { opacity: .28; }

.vl-panels { display: grid; gap: 1rem 1.5rem; min-width: 0; }
@container vlkarte (min-width: 760px) { .vl-panels[data-n="2"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.vl-karte { container: vlkarte / inline-size; }
.vl-panel { min-width: 0; display: grid; gap: .25rem; }
.vl-ptitel { margin: 0; font-size: .875rem; font-weight: 700; color: var(--ink); }
.vl-box { position: relative; min-width: 0; }
.vl-svg { display: block; max-width: 100%; overflow: visible; font: 500 12px/1 var(--font-body); }
.vl-svg:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 6px; }
.vl-gitter { stroke: var(--vl-gitter); stroke-width: 1; }
.vl-null { stroke: var(--vl-null); stroke-width: 1; }
.vl-achse { fill: var(--muted); font-variant-numeric: tabular-nums; }
.vl-aktiv { fill: var(--surface-2); }
.vl-gesperrt rect { fill: var(--vl-sperre); stroke: var(--prem-line); stroke-dasharray: 4 4; stroke-width: 1; }
.vl-gesperrt text { fill: var(--muted); font-weight: 600; }
.vl-linie { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.vl-linie.gestrichelt { stroke-width: 2; stroke-dasharray: 6 5; stroke-linecap: butt; }
.vl-flaeche { opacity: .16; }
:root[data-theme="dark"] #tab-verlauf .vl-flaeche { opacity: .3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #tab-verlauf .vl-flaeche { opacity: .3; } }
.vl-ende, .vl-punkt { stroke: var(--surface); stroke-width: 2; }
.vl-kreuz { stroke: var(--muted); stroke-width: 1; }
.vl-marke line { stroke: var(--vl-gitter); stroke-width: 1; stroke-dasharray: 3 3; }
.vl-marke circle { fill: var(--surface); stroke: var(--muted); stroke-width: 1.5; }
.vl-marke text { fill: var(--ink); font-size: 11px; font-weight: 700; }

.vl-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 9px 11px; display: grid; gap: 3px; font-size: .78125rem; width: max-content; max-width: min(280px, 100%); transform: translateY(-4px); }
.vl-tip b { font-size: .75rem; color: var(--muted); font-weight: 600; }
.vl-tip span { display: grid; grid-template-columns: 14px auto minmax(0, 1fr); align-items: center; gap: 8px; }
.vl-tip i { width: 14px; height: 0; border-top: 2.5px solid var(--k); }
.vl-tip i.gestrichelt { border-top-style: dashed; border-top-width: 2px; }
.vl-tip i.flaeche { height: 8px; border: 0; border-radius: 2px; background: var(--k); }
.vl-tip i.flaeche.blass { opacity: .35; }
.vl-tip i.leer { border: 0; }
.vl-tip em { font-style: normal; font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vl-tip small { color: var(--ink-2); font-size: .75rem; overflow-wrap: normal; hyphens: auto; }
.vl-tip .vl-tsumme { border-top: 1px solid var(--line); padding-top: 3px; }

.vl-ereignisse { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: .25rem 1rem; font-size: .8125rem; color: var(--ink-2); }
.vl-ereignisse li { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.vl-nr { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--muted); font-size: .6875rem; font-weight: 700; color: var(--ink); }
.vl-ereignisse b { color: var(--ink); font-weight: 600; }

/* Fuß der Karten: Link links wie „Als Tabelle“ im Ergebnis, Pfeil dreht beim Aufklappen */
.vl-fuss { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .25rem 1rem; border-top: 1px solid var(--line); padding-top: .25rem; margin-top: .125rem; }
.vl-fuss .linkbtn { min-height: 44px; display: inline-flex; align-items: center; gap: .25rem; font-weight: 700; font-size: .875rem; color: var(--accent); }
.vl-fuss .linkbtn .ic { width: 14px; height: 14px; transition: transform .2s; }
.vl-fuss .linkbtn[aria-pressed="true"] .ic { transform: rotate(90deg); }

/* Tabellen: Spaltenköpfe in normaler Schrift und umbrechend, Jahr-Spalte und Kopf bleiben beim Scrollen stehen */
.vl-tblwrap { max-height: 70vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; overscroll-behavior-x: contain; }
.vl-tblwrap:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.vl-tbl { font-size: .875rem; border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; }
.vl-tbl th, .vl-tbl td { padding: .5rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.vl-tbl td { white-space: nowrap; }
.vl-tbl th { text-transform: none; letter-spacing: 0; }
.vl-tbl td.vl-0 { color: var(--muted); }
.vl-tbl td.n, .vl-tbl th.n { text-align: right; font-variant-numeric: tabular-nums; }
.vl-tbl thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); vertical-align: bottom; text-transform: none; letter-spacing: 0; font-size: .8125rem; font-weight: 700; color: var(--ink-2); line-height: 1.3; white-space: normal; min-width: 6.5rem; max-width: 9rem; hyphens: auto; }
.vl-tbl thead tr.vl-kopf2 th, .vl-tbl thead tr.vl-kopf2 td { top: 0; height: 2.25rem; }
.vl-tbl thead tr.vl-kopf2 + tr th { top: 2.25rem; }
.vl-tbl thead th.vl-gruppe { text-align: left; color: var(--accent); font-size: .71875rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; max-width: none; vertical-align: middle; }
.vl-tbl thead td { position: sticky; top: 0; left: 0; z-index: 3; background: var(--surface); border-bottom: 1px solid var(--line); }
.vl-tbl .vl-jahr { position: sticky; left: 0; z-index: 2; background: var(--surface); text-align: left; min-width: 5.5rem; box-shadow: inset -1px 0 0 var(--line); }
.vl-tbl thead .vl-jahr { z-index: 3; }
.vl-tbl tbody th.vl-jahr { font-size: .875rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.vl-tbl .vl-klein { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; }
.vl-tbl td.vl-summe { font-weight: 800; background: var(--surface-2); }
.vl-tbl thead th.vl-summe { color: var(--ink); }
.vl-tbl .vl-trenn { box-shadow: inset 2px 0 0 var(--line); }
.vl-tbl tbody tr:last-child > * { border-bottom: 0; }
.vl-tbl tbody tr:hover > td { background: var(--surface-2); }
.vl-tbl tbody tr:hover > td.vl-summe { background: color-mix(in srgb, var(--surface-2) 70%, var(--line)); }
.vl-tbl tr.vl-rentenjahr > th, .vl-tbl tr.vl-rentenjahr > td { background: var(--accent-soft); }
.vl-tbl tr.vl-rentenjahr .vl-klein { color: var(--ink-2); }
/* Betriebsrente je Baustein: kleine Tabelle, gleicher Rahmen */
.vl-bav-tbl th, .vl-bav-tbl td { padding: .5rem .75rem; }

/* Untere Reiterleiste mit fünf Bereichen: Beschriftung passt auch bei 390 px und 150 % Schrift */
@media (max-width: 960px) {
  .kopf-reiter.tabs.reiter-unten { gap: 0; padding-left: 4px; padding-right: 4px; }
  .kopf-reiter.tabs.reiter-unten :is(button, a) { padding: 4px 1px; font-size: min(.75rem, 3vw); letter-spacing: -.01em; }
}
@media print { .vl-leiste, .vl-sperre, .vl-fuss, .vl-csv { display: none; } .vl-tblwrap { max-height: none; overflow: visible; border: 0; } }
/* ================================================================
   Bericht zum Ausdrucken (bericht.js): A4, immer hell, Markenfarben (Petrol, Navy, Mint, Grautöne).
   Farbe nur für Überschriften, Kacheln, Tabellenköpfe, dezente Flächen und kleine Grafiken; alles auch in Schwarzweiß
   lesbar (Gehen dunkel, Bleiben hell, Muster statt nur Farbe). Seitenumbrüche: große Abschnitte auf neuer Seite,
   Kacheln, Karten und Tabellenzeilen nicht geteilt, Überschrift bleibt beim ersten Inhalt, Tabellenköpfe wiederholt.
   Auf dem Bildschirm ist der Bericht unsichtbar (.bericht { display: none } in design.css).
   ================================================================ */
@page bericht {
  size: A4;
  margin: 14mm 14mm 16mm;
  @bottom-left { content: "abfindungsblick.de · Unverbindliche Schätzung, keine Steuer-, Rechts- oder Anlageberatung"; font: 400 7pt "Plus Jakarta Sans", system-ui, sans-serif; color: #586176; }
  @bottom-right { content: "Seite " counter(page) " von " counter(pages); font: 600 7pt "Plus Jakarta Sans", system-ui, sans-serif; color: #586176; }
}
@media print {
  :root { color-scheme: light !important; }
  html, body { background: #fff !important; padding: 0 !important; margin: 0 !important; }
  /* Nur in der App (dort gibt es #bericht); Inhaltsseiten wie /widerruf/ drucken normal */
  body:has(> #bericht) > *:not(#bericht) { display: none !important; }
  .bericht {
    page: bericht;
    display: block; color: #131B2E; background: #fff; font: 400 9.5pt/1.45 var(--font-body);
    /* Feste helle Farben, auch wenn die App dunkel eingestellt ist */
    --ink: #131B2E; --ink-2: #4A5469; --muted: #586176; --line: #DCE2EC; --bg: #fff; --surface: #fff; --surface-2: #F1F4FB;
    --accent: #006A61; --accent-ink: #00594F; --accent-soft: #E7FCFA; --accent-soft-2: #C2F8F1; --mint: #7FE3C8; --navy: #131B2E;
    --bar: #CDD4E2; --pos: #0E7C66; --neg: #AE5609; --held: #99570F; --gain: #0B6E55; --warn: #B8372D; --warn-soft: #FCE5E2;
    --frist-soft: #FFFBEB; --frist-line: #F0C163; --frist-ink: #7A4300;
    --w-gehalt: #AEBBB5; --w-luecke: #C9422F; --w-alg: #2F6DB5; --w-neu: #237F4E; --w-selbst: #B28A00; --w-selbst-ink: #1B1400;
    --eg-s1: #006A61; --eg-s2: #5ED6C5; --eg-s3: #E3A15A; --eg-s4: #8E9BB8; --eg-s5: #7C6FD6; --eg-s6: #C46A9E;
    --b-bleiben: #AEB8CE; --b-steuer: #DCE2EC;
    color-scheme: light;
  }
  .bericht, .bericht * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bericht .nw { white-space: nowrap; }
  .bericht small { font-size: .85em; }

  /* Seiten und Abschnitte */
  .bericht .neue-seite { break-before: page; }
  .bericht h1 { font: 700 19pt/1.2 var(--font-display); color: var(--navy); margin: 12pt 0 6pt; letter-spacing: -.01em; }
  .bericht h2 { font: 700 11.5pt/1.3 var(--font-display); color: var(--navy); margin: 0 0 5pt; break-after: avoid; }
  .bericht h3 { font: 700 10pt/1.3 var(--font-display); color: var(--navy); margin: 12pt 0 4pt; break-after: avoid; }
  .bericht h3 small { font-weight: 500; color: var(--muted); font-size: 8.5pt; margin-left: 4pt; }
  .bericht p { margin: 0 0 5pt; }
  .bericht .b-block { margin-top: 12pt; break-inside: avoid; }
  .bericht .b-block > h2 { border-left: 3pt solid var(--accent); padding-left: 6pt; }
  .b-kap { margin-top: 4pt; }
  .b-kap-kopf { display: flex; align-items: flex-start; gap: 9pt; padding-bottom: 6pt; margin-bottom: 8pt; border-bottom: 1.2pt solid var(--accent); break-after: avoid; break-inside: avoid; }
  .b-kap-kopf h2 { font-size: 15pt; margin: 0 0 2pt; }
  .b-kap-kopf p { margin: 0; font-size: 8.5pt; color: var(--ink-2); }
  .b-nr { flex: none; display: inline-grid; place-items: center; width: 20pt; height: 20pt; border-radius: 50%; background: var(--accent); color: #fff; font: 700 10pt var(--font-display); margin-top: 1pt; }
  .b-kap + .b-kap:not(.neue-seite) { margin-top: 16pt; }
  /* Angaben als Anhang: als Ganzes auf eine Seite, wenn sie dort nicht mehr passen, auf die nächste */
  .b-anhang { break-inside: avoid; }

  /* Kopf auf Seite 1 */
  .b-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 12pt; padding-bottom: 7pt; border-bottom: 1.5pt solid var(--accent); }
  .b-marke { display: flex; align-items: center; gap: 7pt; }
  .b-marke b { font: 700 11.5pt var(--font-display); color: var(--navy); }
  .b-logo { width: 16pt; height: 16pt; background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNDAgMTQwIiBmaWxsPSJub25lIj48Y2lyY2xlIGN4PSI3MCIgY3k9IjcwIiByPSI2MyIgZmlsbD0iI0ZGRkZGRiIgc3Ryb2tlPSIjRTJFOEYwIiBzdHJva2Utd2lkdGg9IjgiLz48cGF0aCBkPSJNNzAgN2E2MyA2MyAwIDAgMSA2MyA2MyIgc3Ryb2tlPSIjMDU5NjY5IiBzdHJva2Utd2lkdGg9IjEyIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48cGF0aCBkPSJNNyA3MGE2MyA2MyAwIDAgMCA2MyA2MyIgc3Ryb2tlPSIjMEYxNzJBIiBzdHJva2Utd2lkdGg9IjEyIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48cGF0aCBkPSJNNzAgMzBsMzQgNDAtMzQgNDAtMzQtNDB6IiBmaWxsPSIjRjhGQUZDIiBzdHJva2U9IiMwRjE3MkEiIHN0cm9rZS13aWR0aD0iOSIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjxwYXRoIGQ9Ik01MCA4MWwyMC0yNyAyMiAxMCAyMi0yOCIgc3Ryb2tlPSIjMTBCOTgxIiBzdHJva2Utd2lkdGg9IjExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48cGF0aCBkPSJNMTAzIDI4aDIxdjIxeiIgZmlsbD0iIzA1OTY2OSIvPjxjaXJjbGUgY3g9IjcwIiBjeT0iNzAiIHI9IjgiIGZpbGw9IiMwNTk2NjkiLz48Y2lyY2xlIGN4PSI3MCIgY3k9IjcwIiByPSIzLjUiIGZpbGw9IiNGRkZGRkYiLz48L3N2Zz4=") center / contain no-repeat; }
  .b-marke .wm-b, .b-marke .wm-d { color: #047857; }
  .b-marke .wm-d { font-weight: 500; }
  .b-meta { font-size: 7.5pt; color: var(--muted); text-align: right; line-height: 1.4; }
  .b-lage { display: grid; grid-template-columns: 1.3fr .8fr 1.5fr .9fr; gap: 4pt 12pt; background: var(--surface-2); border-radius: 6pt; padding: 6pt 9pt; font-size: 8.5pt; margin: 0 0 10pt; break-inside: avoid; }
  .b-lage small { display: block; font-size: 6.5pt; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

  /* Kennzahl-Kacheln */
  .b-kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 8pt; break-inside: avoid; }
  .b-kz { border: .75pt solid var(--line); border-top: 3pt solid var(--accent-soft-2); border-radius: 6pt; padding: 7pt 9pt 8pt; break-inside: avoid; }
  .b-kz.haupt { background: var(--accent-soft); border-color: var(--accent-soft-2); border-top-color: var(--accent); }
  .b-kz.frist { background: var(--frist-soft); border-color: var(--frist-line); border-top-color: var(--frist-line); }
  .b-kz.frist.alarm { background: var(--warn-soft); border-color: var(--warn); }
  .b-kz-l { display: block; font-size: 7pt; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
  .b-kz.frist .b-kz-l { color: var(--frist-ink); }
  .b-kz.alarm .b-kz-l { color: var(--warn); }
  .b-kz-v { display: block; font: 700 18pt/1.15 var(--font-display); color: var(--navy); margin: 2pt 0 2pt; white-space: nowrap; }
  .b-kz-v.klein { font-size: 12pt; white-space: normal; }
  .b-kz small { display: block; font-size: 7.5pt; color: var(--ink-2); line-height: 1.4; margin-top: 2pt; }
  .b-kz ul { list-style: none; margin: 5pt 0 0; padding: 4pt 0 0; border-top: .75pt solid var(--accent-soft-2); font-size: 7.5pt; }
  .b-kz li { display: flex; justify-content: space-between; gap: 8pt; padding: 1pt 0; }

  /* Gehen und Bleiben: Balken je Zeitpunkt */
  .b-sp-grafik { margin: 4pt 0 0; break-inside: avoid; }
  .b-sp-grafik svg { display: block; width: 100%; height: auto; }
  .b-sp-grafik rect.b-sp-gehen { fill: var(--accent); }
  .b-sp-grafik rect.b-sp-bleiben { fill: var(--b-bleiben); }
  .b-sp-grafik rect.b-sp-wahl { fill: var(--accent-soft); }
  .b-sp-null { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 2; }
  .b-sp-t { font: 700 11.5px var(--font-body); fill: var(--navy); }
  .b-sp-u { font: 400 10px var(--font-body); fill: var(--muted); }
  .b-sp-w { font: 700 11px var(--font-body); fill: var(--navy); font-variant-numeric: tabular-nums; }
  .b-sp-w.hell { font-weight: 500; fill: var(--ink-2); }
  .b-leg { display: flex; flex-wrap: wrap; gap: 3pt 12pt; font-size: 7.5pt; color: var(--ink-2); margin-top: 3pt; }
  .b-leg i { display: inline-block; width: 9pt; height: 7pt; border-radius: 1.5pt; margin-right: 4pt; vertical-align: -.5pt; }
  .b-leg i.b-sp-gehen { background: var(--accent); }
  .b-leg i.b-sp-bleiben { background: var(--b-bleiben); }
  .b-leg i.b-sp-wahl { background: var(--accent-soft); border: .75pt solid var(--accent-soft-2); }
  .b-zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 12pt; padding: 5pt 0 0; margin: 6pt 0 0; border-top: .75pt solid var(--line); font-size: 8.5pt; break-inside: avoid; }
  .b-zeile b { text-align: right; }
  .b-zwei { display: flex; justify-content: space-between; align-items: center; gap: 14pt; }
  .b-zwei > div { flex: 1; }
  .b-summe { display: inline-grid; background: var(--accent-soft); border: .75pt solid var(--accent-soft-2); border-radius: 6pt; padding: 5pt 10pt; margin: 0 0 6pt; break-inside: avoid; }
  .b-summe span { font-size: 6.5pt; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
  .b-summe b { font: 700 14pt var(--font-display); color: var(--accent-ink); }
  .b-summe small { font-size: 7pt; color: var(--ink-2); }
  .b-entscheid { margin: 12pt 0 0; padding: 4pt 0 4pt 8pt; border-left: 2.5pt solid var(--mint); font-size: 8.5pt; color: var(--ink-2); break-inside: avoid; }
  .b-gross { font: 700 18pt/1.2 var(--font-display); color: var(--navy); margin: 0 0 3pt; }
  .b-gross small { font: 500 9pt var(--font-body); color: var(--ink-2); }

  /* Abfindung nach Steuer: Rechenweg mit Balken */
  .b-netto { break-inside: avoid; }
  .b-netto-bahn { display: flex; height: 10pt; border-radius: 3pt; overflow: hidden; margin: 2pt 0 6pt; background: var(--b-steuer); }
  .b-netto-bahn i, .b-rechenweg i { display: block; height: 100%; }
  .b-rechenweg i { display: inline-block; width: 8pt; height: 7pt; border-radius: 1.5pt; margin-right: 5pt; vertical-align: -.5pt; }
  .b-n-sofort { background: var(--accent); }
  .b-n-spaeter { background: var(--mint) repeating-linear-gradient(135deg, rgba(0, 0, 0, .18) 0 1.5pt, transparent 1.5pt 3.5pt); }
  .b-n-steuer { background: var(--b-steuer) repeating-linear-gradient(135deg, rgba(19, 27, 46, .16) 0 1pt, transparent 1pt 3pt); }
  .b-rechenweg .summe td, .b-rechenweg .summe th { font-weight: 700; border-top: 1pt solid var(--navy); }
  .b-rechenweg .teil td, .b-rechenweg .teil th { color: var(--ink-2); font-size: 8.5pt; }
  .b-rechenweg .teil > :first-child { padding-left: 12pt; }

  /* So lange reicht sie */
  .b-rw { margin: 2pt 0 6pt; break-inside: avoid; }
  .b-rw-bahn { display: flex; height: 10pt; border-radius: 3pt; overflow: hidden; background: var(--surface-2); }
  .b-rw-bahn i { display: block; height: 100%; }
  .b-rw-bahn i + i { border-left: 1pt solid #fff; }
  .b-rw-ach { display: flex; justify-content: space-between; font-size: 7pt; color: var(--muted); margin-top: 2pt; }

  /* Tabellen */
  .b-tab { width: 100%; border-collapse: collapse; font-size: 8.5pt; margin: 2pt 0 6pt; break-inside: auto; }
  .b-tab thead { display: table-header-group; }
  .b-tab th { text-align: left; background: var(--surface-2); color: var(--navy); font-size: 7.5pt; font-weight: 700; padding: 4pt 6pt; border-bottom: .75pt solid var(--bar); }
  /* Zeilenköpfe (th scope=row) sehen aus wie Zellen; die Auszeichnung dient Screenreadern und dem getaggten PDF */
  .b-tab th:where([scope=row]) { background: none; color: inherit; font-size: inherit; font-weight: inherit; }
  .b-tab td, .b-tab th:where([scope=row]) { text-align: left; padding: 3.5pt 6pt; border-bottom: .5pt solid var(--line); vertical-align: top; }
  .b-tab tr { break-inside: avoid; }
  .b-tab .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .b-tab td small, .b-tab th small { color: var(--muted); }
  .b-tab .b-plan td, .b-tab .b-plan th { background: var(--accent-soft); font-weight: 700; }
  .b-tab .b-plan td small, .b-tab .b-plan th small { font-weight: 400; }
  .b-spaet tbody > tr > :first-child { width: 42%; }
  .b-wege tbody > tr > :first-child { width: 38%; }
  .b-bar-zelle { width: 38%; vertical-align: middle !important; }
  .b-bar { position: relative; display: block; height: 7pt; border-radius: 2pt; background: var(--surface-2); }
  .b-bar i { display: block; height: 100%; border-radius: 2pt; background: #5FA9A1; }
  .b-plan .b-bar i { background: var(--accent); }
  .b-bar em { position: absolute; top: -2pt; bottom: -2pt; width: 1.2pt; background: var(--navy); }
  .b-leg-inline { font-weight: 500; color: var(--muted); }
  .b-heute-i { display: inline-block; width: 1.2pt; height: 8pt; background: var(--navy); margin-right: 4pt; vertical-align: -1pt; }
  .b-fristen tbody > tr > :first-child { width: 22%; }
  .b-datum { display: inline-block; white-space: nowrap; background: var(--frist-soft); border: .75pt solid var(--frist-line); color: var(--frist-ink); border-radius: 8pt; padding: 0 6pt; font-size: 8pt; }
  .b-datum.dringend { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
  .b-termine { list-style: none; margin: 0; padding: 0; font-size: 8.5pt; }
  .b-termine li { display: flex; gap: 8pt; align-items: baseline; padding: 2pt 0; break-inside: avoid; }
  .b-termine .b-datum { min-width: 62pt; text-align: center; }

  /* Grafiken aus der App (Zeitleiste, Verlauf) */
  .b-grafik { break-inside: avoid; margin: 8pt 0 4pt; }
  .b-grafik .answer { font-size: 8pt; color: var(--muted); margin: 0 0 4pt; }
  .b-grafik .weg { margin: 4pt 0; }
  .b-grafik .weg-bahn { height: 20pt; }
  .b-grafik .weg-achse, .b-grafik .weg-marke, .b-grafik .weg-legende, .b-grafik .weg-fakten { font-size: 7.5pt; }
  .b-grafik .weg-fakten { margin-top: 4pt; }
  .b-grafik .weg-fakten span { padding: 1.5pt 6pt; font-size: 7.5pt; }
  .b-chart { margin: 0; break-inside: avoid; }
  .b-chart svg { width: 100%; height: auto; max-height: 190pt; }
  .b-chart text { font-size: 11px !important; }
  .b-chart .b-leg i { height: 3pt; }

  /* Stellhebel */
  .b-hk-liste { display: grid; gap: 5pt; }
  .b-hk { display: flex; justify-content: space-between; gap: 12pt; border: .75pt solid var(--line); border-left: 3pt solid var(--accent); border-radius: 5pt; padding: 6pt 9pt; break-inside: avoid; }
  .b-hk.an { background: var(--accent-soft); }
  .b-hk h3 { margin: 0 0 2pt; font-size: 9.5pt; }
  .b-hk h3 em { font: 600 7pt var(--font-body); font-style: normal; color: var(--accent); background: #fff; border: .75pt solid var(--accent); border-radius: 6pt; padding: 0 4pt; margin-left: 4pt; }
  .b-hk p { margin: 0 0 2pt; font-size: 8pt; }
  .b-hk-opt small { display: block; font-size: 6.5pt; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
  .b-hk-bed { color: var(--ink-2); }
  .b-hk-betrag { flex: none; text-align: right; min-width: 70pt; }
  .b-hk-betrag b { display: block; font: 700 12pt var(--font-display); color: var(--accent-ink); }
  .b-hk-betrag small { display: block; font-size: 7pt; color: var(--muted); }
  .b-hk-kurz { list-style: none; margin: 0; padding: 0; font-size: 8.5pt; }
  .b-hk-kurz li { display: flex; justify-content: space-between; gap: 12pt; padding: 3pt 0; border-bottom: .5pt solid var(--line); break-inside: avoid; }
  .b-hk-kurz li > b { color: var(--accent-ink); }
  .b-warn { list-style: none; margin: 0; padding: 0; font-size: 8pt; }
  .b-warn li { border-left: 2pt solid var(--line); padding: 1pt 0 1pt 7pt; margin-bottom: 4pt; break-inside: avoid; }
  .b-warn li.hoch { border-left-color: var(--frist-line); }

  /* Zum Abhaken: To-dos und Fragen */
  .b-check { list-style: none; margin: 0 0 4pt; padding: 0; font-size: 8.5pt; }
  .b-check li { position: relative; padding: 1.5pt 0 1.5pt 13pt; break-inside: avoid; }
  .b-check li::before { content: ""; position: absolute; left: 0; top: 3.5pt; width: 7pt; height: 7pt; border: .8pt solid var(--ink-2); border-radius: 1.5pt; background: #fff; }
  .b-check small { color: var(--muted); }
  .b-chk { column-count: 2; column-gap: 16pt; }
  .b-chk-gr h3 { margin-top: 6pt; font-size: 8.5pt; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
  .b-chk-gr:first-child h3 { margin-top: 0; }
  .b-fragen-gr { break-inside: avoid; margin-bottom: 4pt; }
  .b-fragen-gr h3 { margin-top: 8pt; }
  .b-notiz { height: 90pt; border: .75pt solid var(--line); border-radius: 5pt; background-image: linear-gradient(to bottom, transparent 17pt, var(--line) 17pt, var(--line) 17.75pt, transparent 17.75pt); background-size: 100% 18pt; background-position: 0 4pt; margin-bottom: 8pt; break-inside: avoid; }
  .b-notiz.gross { height: 92pt; }

  /* Angaben zweispaltig */
  .b-angaben-spalten { column-count: 3; column-gap: 12pt; }
  .b-angaben { font-size: 7pt; line-height: 1.3; margin: 0 0 6pt; }
  .b-angaben thead th { background: none; color: var(--accent); font-size: 7.5pt; padding: 2pt 0; border-bottom: 1pt solid var(--accent); }
  .b-angaben td, .b-angaben th:where([scope=row]) { padding: 1.5pt 3pt 1.5pt 0; }
  .b-angaben tbody > tr > :first-child { width: 46%; color: var(--ink-2); }

  .b-klein { font-size: 8pt; color: var(--ink-2); }
  .b-hinweis { font-size: 7.5pt; color: var(--ink-2); background: var(--surface-2); border-radius: 5pt; padding: 6pt 9pt; margin: 10pt 0 0; break-inside: avoid; }

  /* Kurzfassung: genau eine Seite; die Notizen füllen, was übrig bleibt (und schrumpfen, wenn es eng wird) */
  .b-seite.kurz { display: flex; flex-direction: column; height: 265mm; overflow: hidden; }
  .b-seite.kurz > * { flex: none; }
  .b-seite.kurz .b-notiz-block { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .b-seite.kurz .b-notiz-block .b-notiz { flex: 1 1 auto; height: auto; min-height: 0; margin-bottom: 0; }
  .b-spalten { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16pt; }
  .b-spalten .b-summe { display: grid; }
  .b-seite.kurz h1 { font-size: 16pt; margin: 7pt 0 4pt; }
  .b-seite.kurz .b-kz small + small { display: none; }
  .b-seite.kurz .b-kz { padding: 6pt 9pt 6pt; }
  .b-seite.kurz .b-kacheln { gap: 6pt; }
  .b-seite.kurz .b-hinweis { font-size: 7pt; padding: 5pt 8pt; }
  .b-seite.kurz .b-lage { margin-bottom: 7pt; }
  .b-seite.kurz .b-kz-v { font-size: 15pt; }
  .b-seite.kurz .b-kz-v.klein { font-size: 11pt; }
  .b-seite.kurz .b-block { margin-top: 9pt; }
  .b-seite.kurz .b-entscheid { margin-top: 8pt; }
  .b-seite.kurz .b-hinweis { margin-top: 6pt; }
}
