/* Rechner (Rentenlücke, PKV gegen GKV, BU-Lücke): Aufbau, Logik und Gestaltung unverändert von der früheren Startseite
   (Stand 16.09.2026). Die alten Farbwerte gelten nur innerhalb von #rechner. Genutzt von /rechner/ und den Themenseiten. */
#rechner{--surface:#fff;--r-pill:12px;--r-lg:14px;--tint:#e8edfc;--tint-2:#d2ddfa;--blue-ink:#0b1a44;--sky:#a4bdff;--line:rgba(13,19,33,.10);--shadow:0 4px 24px rgba(13,19,33,.07)}
.calc-sec{padding-top:72px}
.calc-sec .section-title{font-weight:800;font-size:clamp(28px,3.4vw,42px);line-height:1.08;letter-spacing:-.03em;margin:0 0 28px}
#rechner .cta-note{font-size:13.5px;color:var(--muted)}
a.calc-cta-btn{display:inline-flex;align-items:center;gap:8px;text-decoration:none}
@keyframes fadeUp{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:translateY(0)}}
/* ── CALC ── */
.calc-tabs { display:flex; gap:8px; margin-bottom:34px; flex-wrap:wrap; background:var(--surface); padding:6px; border-radius:var(--r-pill); border:1px solid var(--line); width:fit-content; }
.calc-tab { font-size:13.5px; font-weight:600; padding:11px 26px; border-radius:var(--r-pill); border:none; background:transparent; color:var(--muted); cursor:pointer; transition:all .25s; font-family:'Geist',sans-serif; }
.calc-tab.active { background:var(--ink); color:#fff; }
.calc-body { display:none; animation:fadeUp .5s ease; }
.calc-body.active { display:block; }
.calc-grid { display:grid; grid-template-columns:1fr 1fr; gap:30px; align-items:stretch; }
.calc-out { display:flex; flex-direction:column; }
.calc-out .chart-wrap { flex:1; display:flex; flex-direction:column; justify-content:flex-end; }
.calc-controls .big-result { margin-top:auto; }
.calc-controls { display:flex; flex-direction:column; gap:24px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:28px; }
.slider-top { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:11px; }
.slider-label { font-size:13.5px; color:var(--muted); }
.slider-value { font-family:'Geist',sans-serif; font-size:16px; font-weight:700; color:var(--ink); }
input[type="range"] { width:100%; height:6px; -webkit-appearance:none; appearance:none; background:var(--tint-2); border-radius:3px; outline:none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance:none; width:22px; height:22px; border-radius:50%; background:var(--blue); cursor:pointer; border:3px solid #fff; box-shadow:0 2px 10px rgba(37,99,235,.45); transition:transform .15s; }
input[type="range"]::-webkit-slider-thumb:hover { transform:scale(1.12); }
input[type="range"]::-moz-range-thumb { width:22px; height:22px; border-radius:50%; background:var(--blue); cursor:pointer; border:3px solid #fff; }
.result-card { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow); }
.result-header { background:var(--blue-ink); padding:17px 22px; display:flex; align-items:center; justify-content:space-between; }
.result-header-title { font-size:12.5px; color:rgba(235,240,255,.78); }
.result-header-badge { font-size:11px; padding:4px 9px; border-radius:var(--r-pill); background:rgba(105,150,255,.22); color:var(--sky); border:1px solid rgba(105,150,255,.35); }
.result-row { display:flex; align-items:center; justify-content:space-between; padding:13px 22px; border-bottom:1px solid var(--line); font-size:13.5px; }
.result-row:last-child { border-bottom:none; }
.result-key { color:var(--muted); }
.result-val { font-family:'Geist',sans-serif; font-weight:700; color:var(--ink); white-space:nowrap; padding-left:12px; }
.result-val.pos { color:var(--blue-deep); } .result-val.neg { color:var(--red); }
.result-row.hl { background:var(--tint); }
.result-row.hl .result-key { color:var(--ink); font-weight:600; }
.winner-tag { display:inline-flex; align-items:center; gap:3px; font-size:9px; padding:2px 7px; border-radius:var(--r-pill); background:var(--blue); color:#fff; margin-left:7px; }
.big-result { background:var(--blue-ink); border-radius:var(--r-lg); padding:24px; text-align:center; }
.big-result-label { font-size:12.5px; color:rgba(235,240,255,.72); margin-bottom:8px; }
.big-result-num { font-family:'Geist',sans-serif; font-size:36px; font-weight:800; color:var(--sky); letter-spacing:-1px; }
.big-result-sub { font-size:12px; color:rgba(235,240,255,.62); margin-top:7px; }
.chart-wrap { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:20px; margin-top:16px; }
.chart-title { font-size:12px; color:var(--muted); margin-bottom:14px; }
/* Feste Zonen: Wertzeile 18px · Balken-Track 96px · Beschriftung 16px — Werte können den Titel nicht mehr überlagern */
.chart-bars { display:flex; align-items:stretch; gap:12px; }
.chart-bar-wrap { display:flex; flex-direction:column; align-items:center; flex:1; min-width:0; }
.chart-bar-val { flex:none; height:18px; line-height:18px; font-size:11.5px; font-weight:700; color:var(--ink); white-space:nowrap; }
.chart-bar-track { flex:none; width:100%; height:96px; margin-top:5px; display:flex; align-items:flex-end; }
.chart-bar { width:100%; border-radius:6px 6px 0 0; transition:height .6s cubic-bezier(.16,1,.3,1); }
.chart-bar-label { flex:none; margin-top:5px; height:16px; line-height:16px; font-size:11px; color:var(--muted); text-align:center; white-space:nowrap; }
[hidden] { display:none !important; }
.calc-note { font-size:12.5px; color:var(--muted); line-height:1.6; margin-top:14px; }
.calc-check { display:flex; align-items:center; gap:9px; font-size:13.5px; color:var(--ink-2); margin-top:14px; cursor:pointer; }
.calc-check input { width:16px; height:16px; accent-color:var(--blue); cursor:pointer; }
.winner-tag.warn { background:var(--red); }
.seg { display:flex; gap:6px; }
.seg button { flex:1; font-family:'Geist',sans-serif; font-size:13px; font-weight:500; padding:9px 6px; border:1.5px solid var(--line-2); border-radius:var(--r-md); background:var(--surface); color:var(--ink); cursor:pointer; transition:all .18s; }
.seg button:hover { border-color:var(--blue); }
.seg button.active { background:var(--ink); color:#fff; border-color:var(--ink); }
/* Beratungs-Band unter jedem Rechner, volle Breite (23.09.2026, Vorschlag Elena) */
.calc-cta { display:flex; align-items:center; justify-content:space-between; gap:18px 28px; flex-wrap:wrap; background:var(--tint); border-radius:var(--r-lg); padding:24px 28px; margin-top:24px; }
.calc-cta-text { font-size:clamp(17px,1.8vw,20px); font-weight:800; color:var(--ink); letter-spacing:-.3px; line-height:1.25; }
.calc-cta .cta-note { margin-top:4px; }
.calc-cta-btn { font-size:15px; font-weight:600; padding:15px 30px; background:var(--blue); color:#fff; border:none; border-radius:var(--r-pill); cursor:pointer; white-space:nowrap; display:inline-flex; align-items:center; gap:9px; box-shadow:var(--shadow-blue); transition:transform .2s cubic-bezier(.23,1,.32,1), background .2s; font-family:'Geist',sans-serif; }
.calc-cta-btn:hover { background:var(--blue-deep); transform:translateY(-2px); }
.calc-cta-btn:active { transform:scale(.97); }
.calc-foot { font-size:12px; color:var(--muted); margin-top:14px; max-width:none; }
@media(max-width:600px){ .calc-cta { padding:22px; } .calc-cta-btn { width:100%; justify-content:center; } }

@media (max-width:760px){.calc-grid{grid-template-columns:1fr}.calc-tabs{display:grid;grid-template-columns:repeat(3,1fr)}.calc-tab{padding:11px 6px}}
