/* =====================================================================
   Vorsorgebilanz – Designsystem "Navy"
   Farben: Navy-Basis, Diagrammpalette D2 (farbenblind-geprüft)
   ===================================================================== */
:root {
  /* Flächen & Text */
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --ink: #0F172A;
  --muted: #475569;          /* 7.6:1 auf Weiß */
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --soft: #EEF2F7;
  --primary: #1E3A8A;        /* Navy-Blau für Bedienelemente, 10.4:1 auf Weiß */
  --primary-soft: #E6ECF8;
  --danger: #B42318;         /* 6.5:1 auf Weiß */

  /* Ergebnis-Panel */
  --panel: #0F172A;
  --panel-2: #16213A;
  --panel-ink: #F8FAFC;
  --panel-muted: #CBD5E1;    /* 11.7:1 auf Navy */
  --panel-line: rgba(255, 255, 255, 0.12);

  /* Diagramm D2 – Reihenfolge fest */
  --s-own: #3987E5;          /* Eigener Nettoaufwand */
  --s-zul: #D95926;          /* Zulagen */
  --s-tax: #199E70;          /* Steuerersparnis */
  --s-label: #0F172A;        /* Beschriftung auf allen drei Flächen ≥ 4.6:1 */

  /* Rhythmus */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px;
  --focus: 0 0 0 3px #FFFFFF, 0 0 0 6px #2563EB;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, fieldset { margin: 0; }
ul { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); font-weight: 400; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }

.skip { position: absolute; left: var(--sp-4); top: -60px; background: var(--primary); color: #fff; padding: var(--sp-2) var(--sp-4); border-radius: var(--r-sm); z-index: 50; }
.skip:focus { top: var(--sp-3); }

/* ------------------------------------------------------------ Kopfzeile */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--panel); color: var(--panel-ink); }
.topbar-inner { max-width: 1440px; margin: 0 auto; padding: 0 var(--sp-8); height: 64px; display: flex; align-items: center; gap: var(--sp-10); }
.brand { display: flex; align-items: center; gap: var(--sp-3); color: inherit; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
img.brand-mark { display: block; width: 32px; height: 32px; border-radius: var(--r-sm); }
.brand-mark { width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--s-own); color: var(--s-label); display: grid; place-items: center; font-weight: 800; }
.mainnav [role=tablist] { display: flex; gap: var(--sp-1); }
.mainnav [role=tab] { border: 0; background: transparent; color: var(--panel-muted); padding: 8px 16px; border-radius: 999px; font-weight: 500; cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease); }
.mainnav [role=tab]:hover { color: var(--panel-ink); background: rgba(255, 255, 255, .06); }
.mainnav [role=tab][aria-selected=true] { background: rgba(255, 255, 255, .12); color: var(--panel-ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--s-own); }
.mainnav [role=tab]:focus-visible { box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px #93C5FD; border-radius: 999px; }

/* ------------------------------------------------------------ Buttons */
.btn { display: inline-flex; align-items: center; gap: var(--sp-2); border-radius: var(--r-sm); padding: 10px 16px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: background .15s var(--ease), border-color .15s var(--ease), transform .1s; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: translateY(1px); }
.btn-ghost { margin-left: auto; background: transparent; color: var(--panel-ink); border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-ghost:focus-visible { box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px #93C5FD; }
.btn-add { background: var(--surface); color: var(--primary); border: 1px dashed var(--line-strong); width: 100%; justify-content: center; }
.btn-add:hover { border-color: var(--primary); background: var(--primary-soft); }
.btn-cta { background: #FFFFFF; color: var(--ink); padding: 14px 24px; font-size: 16px; font-weight: 700; }
.btn-cta:hover { background: #E2E8F0; }
.btn-cta:focus-visible { box-shadow: 0 0 0 3px var(--panel), 0 0 0 6px #93C5FD; }

/* ------------------------------------------------------------ Layout */
.layout { max-width: 1440px; margin: 0 auto; padding: var(--sp-6) var(--sp-8) var(--sp-10); display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: var(--sp-8); align-items: start; }
.inputs h1 { font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.lede { color: var(--muted); margin: var(--sp-2) 0 var(--sp-5); max-width: 56ch; }

/* ------------------------------------------------------------ Akkordeon */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: var(--sp-3); }
.panel-head { font-size: inherit; }
.panel-head button { width: 100%; display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); background: none; border: 0; text-align: left; cursor: pointer; border-radius: var(--r-md); min-height: 56px; }
.panel-head button:hover .panel-title { color: var(--primary); }
.panel-title { font-weight: 700; font-size: 16px; transition: color .15s var(--ease); }
.panel-sum { margin-left: auto; color: var(--muted); font-size: 14px; text-align: right; }
.chev { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; transition: transform .2s var(--ease); transform: rotate(-90deg); }
[aria-expanded=true] .chev { transform: rotate(0); }
[aria-expanded=true] .panel-sum { visibility: hidden; }
.panel-body { padding: 0 var(--sp-5) var(--sp-5); display: grid; gap: var(--sp-4); }
.panel.has-error { border-color: var(--danger); }

/* ------------------------------------------------------------ Felder */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field { display: grid; gap: var(--sp-2); align-content: start; }
.field-label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; padding: 0; }
.field-label .unit { margin-left: auto; color: var(--muted); font-weight: 400; font-size: 13px; }
input[type=number], input[data-geld] { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); font-weight: 600; font-variant-numeric: tabular-nums; transition: border-color .15s var(--ease); }
input[type=number]:hover, input[data-geld]:hover { border-color: var(--muted); }
input[type=number]:focus-visible, input[data-geld]:focus-visible { border-color: var(--primary); }
select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
select:hover { border-color: var(--muted); }
select:focus-visible { border-color: var(--primary); }
input[aria-invalid=true] { border-color: var(--danger); background: #FEF3F2; }
.err { color: var(--danger); font-size: 13px; font-weight: 500; min-height: 0; }
.err:empty { display: none; }
.static-value { height: 44px; display: flex; align-items: center; gap: 6px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sub { font-size: 13px; font-weight: 700; color: var(--muted); padding-top: var(--sp-3); border-top: 1px solid var(--line); margin-top: var(--sp-1); }

/* Slider + Zahl */
.slider-row { display: grid; grid-template-columns: 1fr 140px; gap: var(--sp-4); align-items: center; }
.slider-row.compact { grid-template-columns: 1fr 76px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --fill: 50%; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--primary) var(--fill), var(--line) var(--fill)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--primary); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); transition: transform .15s var(--ease); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); }
input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.12); }
input[type=range]:focus-visible { box-shadow: none; }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: var(--focus); }

/* Segment-Buttons (Radio-Gruppen) */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: grid; place-items: center; min-height: 44px; padding: 0 var(--sp-3); font-weight: 500; color: var(--muted); cursor: pointer; border-left: 1px solid var(--line-strong); transition: background .15s var(--ease), color .15s var(--ease); text-align: center; line-height: 1.2; }
.seg label:first-of-type { border-left: 0; }
.seg label:hover { background: var(--soft); color: var(--ink); }
.seg input:checked + label { background: var(--primary); color: #FFFFFF; font-weight: 600; }
.seg input:focus-visible + label { box-shadow: inset 0 0 0 3px #2563EB, inset 0 0 0 5px #FFFFFF; }
.seg-sm label { min-height: 40px; font-size: 14px; }
/* Untereinander statt nebeneinander – für drei längere Optionen in schmalen Spalten */
.seg-stack { grid-auto-flow: row; }
.seg-stack label { border-left: 0; border-top: 1px solid var(--line-strong); min-height: 36px; }
.seg-stack label:first-of-type { border-top: 0; }
.seg-dark { border-color: var(--panel-line); background: transparent; }
.seg-dark label { color: var(--panel-muted); border-color: var(--panel-line); min-height: 36px; font-size: 14px; }
.seg-dark label:hover { background: rgba(255, 255, 255, .06); color: var(--panel-ink); }
.seg-dark input:checked + label { background: rgba(255, 255, 255, .14); color: var(--panel-ink); }

/* Schalter */
.toggle { display: flex; align-items: center; gap: var(--sp-3); cursor: pointer; font-weight: 500; min-height: 36px; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-ui { flex: none; width: 40px; height: 24px; border-radius: 99px; background: var(--line-strong); position: relative; transition: background .2s var(--ease); }
.toggle-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .3); transition: transform .2s var(--ease); }
.toggle input:checked + .toggle-ui { background: var(--primary); }
.toggle input:checked + .toggle-ui::after { transform: translateX(16px); }
.toggle input:focus-visible + .toggle-ui { box-shadow: var(--focus); }
.toggle input:disabled ~ span { opacity: .5; cursor: not-allowed; }
.switches { display: grid; gap: var(--sp-1); }
.partner-toggle { padding-bottom: var(--sp-2); }
.person-fields { display: grid; gap: var(--sp-4); }

/* Info-Tooltips */
.info { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--muted); background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; line-height: 1; display: inline-grid; place-items: center; cursor: help; padding: 0; font-family: Georgia, serif; font-style: italic; vertical-align: middle; }
.info:hover { border-color: var(--primary); color: var(--primary); }
.info-dark { border-color: var(--panel-muted); color: var(--panel-muted); margin-left: 4px; width: 18px; height: 18px; }
.info-dark:hover { border-color: #fff; color: #fff; }
.tooltip { position: fixed; z-index: 100; max-width: 300px; background: var(--ink); color: #F8FAFC; padding: 10px 12px; border-radius: var(--r-sm); font-size: 13px; line-height: 1.45; box-shadow: 0 8px 24px rgba(15, 23, 42, .25); pointer-events: none; }
.tooltip.light { background: #FFFFFF; color: var(--ink); }
.tooltip .tt-head { font-weight: 700; margin-bottom: 4px; }
.tooltip .tt-row { display: flex; justify-content: space-between; gap: 18px; font-variant-numeric: tabular-nums; }
.tooltip .tt-row.on { font-weight: 700; }
.tooltip .tt-key { display: inline-flex; align-items: center; gap: 6px; }
.tooltip .tt-key i { width: 10px; height: 10px; border-radius: 3px; }

/* Kinder-Liste */
.kinder { display: grid; gap: var(--sp-2); }
.kinder li { display: grid; grid-template-columns: 1fr 44px; gap: var(--sp-2); align-items: end; }
.kinder .field-label { font-size: 13px; }
.icon-btn { width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--danger); color: var(--danger); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Annahmen-Tabelle */
.assume { width: 100%; border-collapse: collapse; }
.assume th { font-size: 13px; font-weight: 600; color: var(--muted); text-align: left; padding: 0 var(--sp-1) var(--sp-2); white-space: nowrap; }
.assume th .info { width: 16px; height: 16px; font-size: 10px; margin-left: 2px; }
.assume td { padding: var(--sp-1); }
.assume td:first-child { font-weight: 600; padding-right: var(--sp-3); white-space: nowrap; }
.assume input[type=number] { height: 40px; text-align: right; }

/* ------------------------------------------------------------ Ergebnis */
.result { position: sticky; top: 88px; }
.result:focus { outline: none; }
.result-card { background: var(--panel); color: var(--panel-ink); border-radius: var(--r-lg); padding: var(--sp-8) var(--sp-8) var(--sp-6); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
.result-card > * { min-width: 0; }
.result-card.stale [role=tabpanel] { opacity: .4; transition: opacity .2s; }
.result-error { background: #FEF3F2; color: var(--danger); border-radius: var(--r-sm); padding: var(--sp-3) var(--sp-4); font-weight: 600; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.result-head h2 { font-size: 16px; font-weight: 600; color: var(--panel-muted); }

/* Zahlen links, Säulendiagramm rechts; wird die Karte schmal, rutscht das Diagramm darunter */
#view-ueberblick { container-type: inline-size; }
.hero-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 27%); gap: var(--sp-5); align-items: stretch; }
.rente-saeulen { margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); padding-left: var(--sp-6); border-left: 1px solid var(--panel-line); min-width: 0; }
.chart-v { flex: 1; min-height: 190px; }
.chart-v svg { overflow: visible; }
.toggle-sm { font-size: 13px; color: var(--panel-muted); }
@container (max-width: 520px) {
  .hero-wrap { grid-template-columns: minmax(0, 1fr); }
  .rente-saeulen { padding-left: 0; border-left: 0; padding-top: var(--sp-4); border-top: 1px solid var(--panel-line); }
}
.hero { display: grid; grid-template-columns: repeat(3, 1fr); }
.hero-item { container-type: inline-size; grid-template-columns: minmax(0, 1fr); }
.hero-item { display: grid; gap: 2px; padding: 0 var(--sp-5); min-width: 0; border-left: 1px solid var(--panel-line); }
.hero-item:first-child { padding-left: 0; border-left: 0; }
.hero-name { font-weight: 600; font-size: 15px; display: flex; align-items: center; hyphens: manual; }
.hero-value { font-size: clamp(26px, 22cqi, 56px); white-space: nowrap; line-height: 1.05; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: var(--sp-1) 0; }
.hero-unit { font-size: .4em; font-weight: 600; color: var(--panel-muted); margin-left: 6px; letter-spacing: 0; }
.hero-sub { color: var(--panel-muted); font-size: 14px; font-variant-numeric: tabular-nums; }

.chart-block { border-top: 1px solid var(--panel-line); padding-top: var(--sp-5); margin-top: var(--sp-6); }
.chart-title { font-size: 14px; font-weight: 600; color: var(--panel-muted); }
.takeaway { font-size: 18px; font-weight: 600; line-height: 1.45; margin: var(--sp-2) 0 var(--sp-4); max-width: 64ch; min-height: calc(2 * 1.45em); } /* immer 2 Zeilen Platz: nichts springt */
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .bar-hit { cursor: pointer; }
.chart .bar-hit:focus-visible { outline: none; }
.chart .bar-hit:focus-visible .focus-ring { stroke: #93C5FD; }
.chart .dim { opacity: .35; transition: opacity .15s; }
.legend { display: flex; flex-wrap: wrap; gap: var(--sp-5); margin-top: var(--sp-3); color: var(--panel-muted); font-size: 14px; }
.legend li { display: inline-flex; align-items: center; gap: var(--sp-2); }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.taxline { color: var(--panel-muted); font-size: 13px; line-height: 1.5; margin-top: var(--sp-4); font-variant-numeric: tabular-nums; min-height: 3em; } /* 2 Zeilen reserviert */

.result-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); border-top: 1px solid var(--panel-line); padding-top: var(--sp-5); }
.result-foot p { color: var(--panel-muted); font-size: 13px; max-width: 40ch; }

/* ------------------------------------------------------------ Breite Ansichten: Alle Werte & Rechenweg */
body.wide .layout { grid-template-columns: minmax(0, 1fr); }
body.wide .inputs { display: none; }
body.wide .result { position: static; }
body.wide .result-card { padding: var(--sp-8) var(--sp-10) var(--sp-6); }
body.wide .layout { padding-bottom: var(--sp-6); }
[role=tabpanel]:not(#view-ueberblick) { display: grid; gap: var(--sp-6); }

.vhead { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-6); }
.vhead h2 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.vhead p { color: var(--panel-muted); margin-top: var(--sp-1); max-width: 70ch; }
.btn-back { background: transparent; color: var(--panel-ink); border-color: rgba(255, 255, 255, .28); white-space: nowrap; }
.btn-back:hover { background: rgba(255, 255, 255, .08); }
.btn-back:focus-visible { box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px #93C5FD; }

/* Kennzahl-Kacheln */
.tiles { display: grid; gap: var(--sp-3); }
.tiles-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { background: var(--panel-2); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); min-width: 0; }
.tile span { display: block; color: var(--panel-muted); font-size: 13px; }
.tile b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tiles-4 .tile b { font-size: 18px; }

/* Karten mit Vergleichstabelle */
.vgrid { display: grid; gap: var(--sp-5); }
/* Zwei Personen nur nebeneinander, wenn die Tabelle mit vier Produktspalten Platz hat – sonst untereinander */
.vgrid.two-up { grid-template-columns: repeat(auto-fit, minmax(min(100%, 720px), 1fr)); }
.vgrid.one-up { grid-template-columns: minmax(0, 1180px); }
.vcard { background: var(--panel-2); border-radius: var(--r-lg); padding: var(--sp-5) var(--sp-6) var(--sp-6); display: grid; gap: var(--sp-4); min-width: 0; overflow-x: auto; }
.vcard h3 { font-size: 18px; font-weight: 700; display: flex; align-items: baseline; gap: var(--sp-3); }
.vcard h3 small { color: var(--panel-muted); font-size: 14px; font-weight: 500; }
.vcard-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.vcard .tile { background: rgba(255, 255, 255, .05); }
.facts { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; }
.facts div { display: flex; align-items: baseline; gap: var(--sp-2); background: rgba(255, 255, 255, .06); border-radius: 999px; padding: 6px 14px; }
.facts dt { color: var(--panel-muted); font-size: 13px; }
.facts dd { margin: 0; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }

.ctable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ctable th, .ctable td { padding: 11px var(--sp-3); border-bottom: 1px solid var(--panel-line); }
.ctable thead th { text-align: right; font-size: 13px; font-weight: 600; color: var(--panel-muted); padding-top: 0; }
.ctable tbody th { text-align: left; font-weight: 500; color: var(--panel-muted); padding-left: 0; }
.ctable td { text-align: right; font-weight: 600; white-space: nowrap; }
.ctable tr.sub th { padding-left: var(--sp-4); font-size: 14px; }
.ctable tr.sub td { font-weight: 500; color: var(--panel-muted); font-size: 14px; }
.ctable tr.total th, .ctable tr.total td { border-bottom: 0; padding-top: var(--sp-4); font-size: 18px; font-weight: 800; color: var(--panel-ink); }
.ctable .na { color: rgba(203, 213, 225, .5); }

/* Formel-Karten */
.formulas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.formula { background: var(--panel-2); border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-6) var(--sp-5); display: grid; gap: var(--sp-2); align-content: start; }
.f-label { color: var(--panel-muted); font-size: 14px; font-weight: 600; }
.f-value { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.f-value.f-text { font-size: 22px; line-height: 1.3; }
.formula p { color: var(--panel-muted); font-size: 14px; }
.note { display: flex; align-items: center; gap: var(--sp-2); color: var(--panel-muted); font-size: 14px; }
.note i { width: 14px; height: 14px; border-radius: 3px; background: rgba(217, 89, 38, .35); box-shadow: inset 3px 0 0 #D95926; flex: none; }

/* Jahrestabelle */
.table-wrap { max-height: max(300px, calc(100vh - 615px)); overflow: auto; border-radius: var(--r-md); background: rgba(255, 255, 255, .03); }
.ytable { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ytable th, .ytable td { text-align: right; padding: 9px var(--sp-4); border-bottom: 1px solid var(--panel-line); white-space: nowrap; }
.ytable thead th { position: sticky; background: #1B2742; color: var(--panel-muted); font-weight: 600; font-size: 13px; z-index: 1; }
.ytable thead tr:first-child th { top: 0; }
.ytable thead tr:nth-child(2) th { top: 37px; }
.ytable tr.group th { color: var(--panel-ink); font-weight: 700; text-align: center; border-bottom-color: rgba(255, 255, 255, .2); }
.ytable tr.group th:first-child { text-align: left; vertical-align: bottom; }
.ytable tbody th { text-align: left; font-weight: 600; }
.ytable .edge { border-right: 1px solid rgba(255, 255, 255, .2); }
.ytable tbody tr:hover { background: rgba(255, 255, 255, .04); }
.ytable tbody tr.cut { background: rgba(217, 89, 38, .14); }
.ytable tbody tr.cut th { box-shadow: inset 3px 0 0 #D95926; }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1280px) {
  .layout { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: var(--sp-6); }
  .vgrid.two-up, .formulas { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .result { position: static; }
  .tiles-5, .tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vhead { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .topbar-inner { padding: 0 var(--sp-4); gap: var(--sp-3); overflow-x: auto; }
  .brand span:last-child, .btn-ghost { display: none; }
  .layout { padding: var(--sp-4); }
  .two { grid-template-columns: 1fr; }
  .result-card { padding: var(--sp-5); }
  .hero { grid-template-columns: 1fr; gap: var(--sp-4); }
  .hero-item { padding: 0; border: 0; }
  .hero-value { font-size: 44px; white-space: normal; }
  .result-foot { flex-direction: column; align-items: stretch; }
  .slider-row { grid-template-columns: 1fr 110px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
/* Druck: siehe druck.css (eigenes A4-Seitenlayout) */

/* =====================================================================
   Zusatzfunktionen: Profile, Hinweise, Anzeige-Schalter, Verlauf
   ===================================================================== */
/* Beispielprofile */
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin: var(--sp-3) 0 var(--sp-3); font-size: 13px; color: var(--muted); }
.presets .chip { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 500; cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease); }
.presets .chip:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }

/* Hinweise direkt am Feld */
.hint-note { font-size: 13px; line-height: 1.45; color: #1E3A8A; background: var(--primary-soft); border-radius: var(--r-sm); padding: 8px 10px; margin: 0; }

/* Person: Riester und AVD nebeneinander */
/* Personenangaben: Beiträge je Produkt als Reiter */
.ptabs { margin-top: var(--sp-1); }
.ptabs small { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.ptabs [aria-selected=true] small { color: inherit; }
.ptabs .hat-hinweis::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: #D95926; vertical-align: 2px; }
.ppane { display: grid; gap: var(--sp-4); padding-top: var(--sp-4); min-width: 0; }
.ppane[hidden] { display: none; }
.ppane .seg-sm label { font-size: 13px; padding: 0 6px; }
.ppane .static-value { height: auto; min-height: 32px; line-height: 1.4; }

/* Ergebnis-Kopf: Brutto/Netto + Kaufkraft */
.result-head { flex-wrap: wrap; row-gap: var(--sp-2); }
.result-head h2 { display: flex; align-items: center; gap: 6px; }
.rentenart { color: var(--panel-ink); font-weight: 600; }
.result-controls { display: flex; align-items: center; gap: var(--sp-4); margin-left: auto; }
.result-controls .seg-dark label { min-height: 32px; padding: 0 12px; }
.toggle-dark { color: var(--panel-muted); font-size: 14px; min-height: 32px; }
.toggle-dark .toggle-ui { background: rgba(255, 255, 255, .22); }
.toggle-dark input:focus-visible + .toggle-ui { box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px #93C5FD; }
.hero-kpi { color: var(--panel-muted); font-size: 13px; font-variant-numeric: tabular-nums; min-height: 1.4em; }

/* Fußzeile im Ergebnis: Teilen, PDF */
.foot-actions { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: nowrap; justify-content: flex-end; flex: none; }
.foot-actions .btn-back { padding: 10px 14px; }
.result-foot p { max-width: 24ch; flex: 1 1 auto; min-width: 0; }
.result-foot { gap: var(--sp-4); }

/* Kurzmeldung */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 200; background: var(--ink); color: #F8FAFC; padding: 12px 18px; border-radius: var(--r-md); font-weight: 500; box-shadow: 0 10px 30px rgba(15, 23, 42, .3); display: grid; gap: 8px; max-width: min(640px, 90vw); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast input { width: 100%; height: 36px; border-radius: var(--r-sm); border: 1px solid #334155; background: #1E293B; color: #F8FAFC; padding: 0 10px; font: 13px var(--font); }

/* Verlauf */
.vcard-verlauf { gap: var(--sp-3); }
.takeaway-sm { font-size: 16px; min-height: 0; margin: 0; }
.vchart { width: 100%; height: clamp(240px, calc(100vh - 560px), 360px); }
.vchart svg { display: block; }
.vchart svg:focus-visible { outline: none; box-shadow: 0 0 0 2px #93C5FD; border-radius: 6px; }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles-3 .tile span { white-space: normal; }
.note-plain { color: var(--panel-muted); font-size: 13px; margin: 0; }

@media (max-width: 1280px) { .tiles-3 { grid-template-columns: 1fr; } .result-controls { margin-left: 0; } }

/* Personen-Schritt kompakter, damit er auch mit Partner ohne Scrollleiste passt */
.person-fields { gap: var(--sp-3); }
.switches { grid-template-columns: 1fr 1fr; column-gap: var(--sp-4); }
.switches .toggle { font-size: 14px; align-items: flex-start; line-height: 1.3; }
.switches .toggle .toggle-ui { margin-top: 1px; }
.partner-toggle { padding-bottom: 0; }
.person-fields .sub { padding-top: var(--sp-2); }

/* Basisrente ohne eigene Überschriftszeile; Hinweise kompakt */

.hint-note { font-size: 12.5px; line-height: 1.4; padding: 6px 9px; }

/* Ergebnis-Kopf mit festem Raster: Umschalten verschiebt nichts
   Zeile 1: Überschrift | Personenwahl   Zeile 2: Brutto/Netto | Kaufkraft */
.result-head { display: grid; grid-template-columns: auto auto 1fr auto; grid-template-rows: 36px 32px; align-items: center; column-gap: var(--sp-4); row-gap: var(--sp-2); }
.result-head h2 { grid-column: 1 / 4; grid-row: 1; white-space: nowrap; }
.result-head .result-controls { display: contents; }
.result-controls > .seg:first-child { grid-column: 1; grid-row: 2; }
.result-controls > .toggle { grid-column: 2; grid-row: 2; }
.result-controls > .seg-basis { grid-column: 3; grid-row: 2; justify-self: start; }
.result-head #personSwitch { grid-column: 4; grid-row: 1; }
/* Ausgleich für den zweizeiligen Kopf: etwas weniger Luft darüber und darunter */
body:not(.wide) .result-card { padding-top: var(--sp-6); }
.result-head { margin-bottom: var(--sp-2); }

/* =====================================================================
   Tablet und Handy: Kopfleiste zweizeilig, Rechtslinks immer sichtbar,
   Eingabebox wächst mit dem Inhalt (keine doppelte Scrollleiste)
   ===================================================================== */
@media (max-width: 1024px) {
  .topbar-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 8px; row-gap: 8px; column-gap: var(--sp-3); overflow: visible; }
  .mainnav { order: 3; flex-basis: 100%; }
  .mainnav [role=tablist] { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mainnav [role=tab] { padding: 8px 4px; text-align: center; white-space: nowrap; }
  .legal-links { margin-left: auto; }
  html { scroll-padding-top: 120px; }
  [data-variant=stepper] .gbox .panel-body { height: auto; min-height: 0; max-height: none; overflow: visible; }
}
@media (max-width: 640px) {
  .topbar-inner { padding: 10px var(--sp-4) 8px; overflow-x: visible; }
  .brand span:last-child { display: inline; }
  .brand { font-size: 16px; }
  .legal-links a { padding: 6px 7px; font-size: 13px; }
  .mainnav [role=tab] { font-size: 13px; padding: 8px 2px; }
  .result-head { grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; }
  .result-head h2 { grid-column: 1 / -1; white-space: normal; }
  .result-head #personSwitch { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
  .result-controls > .toggle { grid-column: 2; }
  .foot-actions { flex-wrap: wrap; justify-content: stretch; }
  .foot-actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 1024px) {
  body[data-variant=stepper] .gbox .panel-body { height: auto; min-height: 0; max-height: none; overflow: visible; }
}
@media (max-width: 640px) {
  .brand { font-size: 15px; gap: 8px; }
  .legal-links { gap: 0; }
  .legal-links a { padding: 6px 5px; font-size: 12.5px; }
}
@media (max-width: 370px) { .brand span:last-child { display: none; } }

/* =====================================================================
   Überblick ohne Scrollen: Die Ergebnis-Karte ist genau so hoch wie der sichtbare
   Bereich. Teilen/PDF stehen immer unten; das Einzahlungs-Diagramm nimmt den Rest
   ein und passt seine Balkenhöhe an (siehe renderBalken, Option fit).
   ===================================================================== */
.foot-text { display: grid; gap: 2px; min-width: 0; }
.result-foot .foot-text p { max-width: 80ch; }
.result-foot .taxline { margin: 0; min-height: 0; font-size: 12.5px; }
.chart-v { flex: 1 1 0; min-height: 150px; }
@container (max-width: 520px) { .chart-v { min-height: 200px; } }

@media (min-width: 1025px) and (min-height: 560px) {
  /* Die rechten Karten sind so hoch wie die Eingabespalte links – unten bündig mit Zurück/Weiter */
  body:not(.wide):not([data-variant=schnell]) .layout { padding-bottom: var(--sp-6); align-items: stretch; }
  body:not(.wide):not([data-variant=schnell]) .result-card {
    display: flex; flex-direction: column; height: 100%;
    padding: var(--sp-5) var(--sp-8) var(--sp-4); gap: var(--sp-3);
  }
  body:not(.wide):not([data-variant=schnell]) #view-ueberblick:not([hidden]) { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; }
  body:not(.wide):not([data-variant=schnell]) .result-head { flex: none; }
  body:not(.wide):not([data-variant=schnell]) .hero-wrap { flex: none; }
  body:not(.wide):not([data-variant=schnell]) .chart-block { flex: 1 1 0; min-height: 200px; display: flex; flex-direction: column; margin-top: var(--sp-4); padding-top: var(--sp-4); }
  body:not(.wide):not([data-variant=schnell]) .chart-block .takeaway { font-size: 15px; min-height: 0; margin: var(--sp-1) 0 var(--sp-2); }
  body:not(.wide):not([data-variant=schnell]) #chart { flex: 1 1 0; min-height: 110px; overflow: hidden; }
  body:not(.wide):not([data-variant=schnell]) .chart-block .legend { margin-top: var(--sp-2); }
  body:not(.wide):not([data-variant=schnell]) .result-foot { flex: none; padding-top: var(--sp-3); }
}

/* Annahmen: Unterreiter je Produkt statt langer Liste */
.subtabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.subtabs [role=tab] { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.subtabs [role=tab]:hover { color: var(--ink); }
.subtabs [role=tab][aria-selected=true] { color: var(--primary); border-bottom-color: var(--primary); }
.subtabs [role=tab]:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: 4px; }
.subpane { display: grid; gap: var(--sp-3); align-content: start; }
.subpane > .sub:first-child { border-top: 0; padding-top: 0; }
.subpane-note { color: var(--muted); font-size: 13px; }
.subpane-note:empty { display: none; }

/* =====================================================================
   Variante 2 (body.saeulen-seitlich, ab 1360 px Breite): breiteres Layout mit drei Spalten –
   Eingaben | Ergebnis | eigene Karte mit dem Säulendiagramm. Gesetzt von platziereSaeulen (app.js).
   ===================================================================== */
.rente-card { display: none; }
.rente-art { font-weight: 500; color: var(--panel-muted); font-size: 12.5px; }
body.saeulen-seitlich .topbar-inner { max-width: 1760px; }
body.saeulen-seitlich:not(.wide) .layout { max-width: 1760px; grid-template-columns: minmax(0, 560px) minmax(0, 1fr) minmax(220px, 260px); gap: var(--sp-6); }
body.saeulen-seitlich .hero-wrap { grid-template-columns: minmax(0, 1fr); }
body.saeulen-seitlich:not(.wide) .rente-card {
  display: flex; flex-direction: column; position: sticky; top: 88px;
  background: var(--panel); color: var(--panel-ink); border-radius: var(--r-lg); padding: var(--sp-6) var(--sp-5) var(--sp-5);
}
body.saeulen-seitlich .rente-card .rente-saeulen { flex: 1 1 auto; padding: 0; border: 0; gap: var(--sp-3); }
body.saeulen-seitlich .rente-card .chart-title { display: grid; gap: 2px; font-size: 15px; color: var(--panel-ink); }
body.saeulen-seitlich .rente-card .chart-v { min-height: 260px; }
@media (min-height: 560px) {
  /* gleiche Höhe wie die Ergebnis-Karte (über die Zeilenhöhe des Rasters); das Diagramm füllt den Platz */
  body.saeulen-seitlich .rente-card .chart-v { flex: 1 1 0; min-height: 0; max-height: 560px; }
}
/* Schmale Ergebnis-Karte: Steuerzeile im Fuß ausblenden (steht auch unter „Alle Werte“) */
.result-card { container-type: inline-size; }
@container (max-width: 720px) { .result-foot .taxline { display: none; } }

/* Wechsel-Check: drei Wege nebeneinander, der beste grün markiert */
.w-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.w-opt { background: rgba(255, 255, 255, .04); border: 1px solid var(--panel-line); border-top: 4px solid #3987E5; border-radius: var(--r-md); padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.w-opt.w-best { border-top-color: #199E70; background: rgba(25, 158, 112, .08); }
.w-opt h4 { font-size: 17px; font-weight: 700; }
.w-text { color: var(--panel-muted); font-size: 14px; line-height: 1.45; min-height: 4.4em; }
.w-wert { font-size: 38px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.w-wert small { font-size: 15px; font-weight: 600; color: var(--panel-muted); letter-spacing: 0; }
.w-zahlen { display: grid; gap: 6px; border-top: 1px solid var(--panel-line); padding-top: var(--sp-3); margin-top: var(--sp-1); font-size: 14px; }
.w-zahlen div { display: flex; justify-content: space-between; gap: var(--sp-3); }
.w-zahlen dt { color: var(--panel-muted); }
.w-zahlen dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.w-tag { align-self: flex-start; margin-top: var(--sp-2); background: #199E70; color: #fff; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.w-leer p { color: var(--panel-muted); max-width: 70ch; line-height: 1.55; }
.w-leer .btn-cta { justify-self: start; }
@media (max-width: 1100px) { .w-grid { grid-template-columns: minmax(0, 1fr); } .w-text { min-height: 0; } }

/* Alle Werte: Spalte „AVD + Basis“ leicht abgesetzt */
.ctable .kombi-col { border-left: 1px solid var(--panel-line); }

/* Rentenvergleich ohne Basisrente: nur zwei Spalten */
.hero.zwei { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .hero.zwei { grid-template-columns: 1fr; } }

/* Alle Werte: Untertitel in den Spaltenköpfen (AVD gleicher Beitrag / dein Beitrag) */
.ctable thead th small { display: block; font-size: 11.5px; font-weight: 500; }

/* Teilen: Auswahl zwischen vollem Link und Kundenlink */
.share { position: relative; }
.share-menu { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 50; width: min(300px, 86vw); display: grid; gap: 4px; padding: 6px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 12px 32px rgba(15, 23, 42, .28); }
.share-menu[hidden] { display: none; }
.share-menu button { display: grid; gap: 2px; text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: var(--r-sm); font: inherit; color: inherit; cursor: pointer; }
.share-menu button:hover, .share-menu button:focus-visible { background: var(--bg); outline: none; }
.share-menu button:focus-visible { box-shadow: inset 0 0 0 2px var(--primary); }
.share-menu b { font-size: 14px; }
.share-menu span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* Kundenlink: Annahmen gesperrt */
.lock-note { margin: 0 0 var(--sp-3); padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg); color: var(--muted); font-size: 13.5px; border-left: 3px solid var(--primary); }
body.kunde #p-annahmen input:disabled, body.kunde #p-annahmen select:disabled { opacity: .7; cursor: not-allowed; }
body.kunde #p-annahmen .toggle { cursor: not-allowed; }

/* Kunden (Berater-Zugang, js/konto.js) */
#view-kunden { display: grid; gap: var(--sp-5); }
#view-kunden[hidden] { display: none; }
.k-karte { max-width: 760px; align-content: start; }
.k-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: var(--sp-5); align-items: start; }
.k-grid .k-karte { max-width: none; }
@media (max-width: 1100px) { .k-grid { grid-template-columns: minmax(0, 1fr); } }
.k-form { display: grid; gap: var(--sp-3); max-width: 420px; }
.k-feld { display: grid; gap: 6px; }
.k-feld label { font-size: 14px; font-weight: 600; color: var(--panel-muted); }
#view-kunden input[type=text], #view-kunden input[type=email], #view-kunden input[type=password], #view-kunden input[type=search] { width: 100%; height: 44px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: var(--panel-ink); font: inherit; }
#view-kunden input:focus-visible { outline: none; border-color: #93C5FD; box-shadow: 0 0 0 3px rgba(147, 197, 253, .3); }
#view-kunden input::placeholder { color: rgba(203, 213, 225, .6); }
.k-aktionen { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-1); }
.k-link { background: none; border: 0; padding: 4px 2px; color: #93C5FD; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.k-link:hover { color: #BFDBFE; }
.k-link:focus-visible { outline: 2px solid #93C5FD; outline-offset: 2px; border-radius: 4px; }
.k-gefahr { color: #FCA5A5; }
.k-gefahr:hover { color: #FECACA; }
.k-hinweis { color: var(--panel-muted); font-size: 13.5px; line-height: 1.5; }
.k-meldung { padding: 10px 14px; border-radius: var(--r-sm); font-size: 14px; }
.k-ok { background: rgba(25, 158, 112, .16); border-left: 3px solid #199E70; }
.k-fehler { background: rgba(239, 68, 68, .14); border-left: 3px solid #F87171; }
.k-konto { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; color: var(--panel-muted); font-size: 14px; }
.k-konto b { color: var(--panel-ink); }
.k-konto .btn-back { margin-left: auto; }
.k-offen { display: grid; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: rgba(57, 135, 229, .12); border: 1px solid rgba(57, 135, 229, .35); }
.k-neu { border-top: 1px solid var(--panel-line); padding-top: var(--sp-3); }
.k-offen + .k-neu, .k-meldung + .k-neu { border-top: 0; padding-top: 0; }
.k-karte > .vcard-head + .k-neu { border-top: 0; padding-top: 0; }
.k-suche { max-width: 240px; }
.k-leer { color: var(--panel-muted); }
.k-liste { list-style: none; margin: 0; padding: 0; display: grid; }
.k-zeile { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) 0; border-top: 1px solid var(--panel-line); }
.k-zeile:first-child { border-top: 0; }
.k-aktiv { box-shadow: inset 3px 0 0 #3987E5; padding-left: var(--sp-3); }
.k-info { display: grid; gap: 4px; min-width: 0; }
.k-name { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.k-name small { font-size: 12px; font-weight: 600; color: #93C5FD; margin-left: 6px; }
.k-notiz { color: var(--panel-muted); font-size: 13.5px; overflow-wrap: anywhere; }
.k-renten { display: flex; flex-wrap: wrap; gap: 4px var(--sp-4); color: var(--panel-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.k-renten b { color: var(--panel-ink); }
.k-knoepfe { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; justify-content: flex-end; flex: none; }
.btn-sm { padding: 7px 12px; font-size: 14px; }
.k-umbenennen { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }
.k-umbenennen input { max-width: 280px; }
@media (max-width: 760px) { .k-zeile { flex-direction: column; align-items: stretch; } .k-knoepfe { justify-content: flex-start; } }
