/* ===================================================================
   ad24-rechner.css — EINZIGE Stelle für Rechner (.calc) (28.10.2026, Regel Alessia)
   Teil 1: Rechner mit Reglern (.calc mit .cgrid/.cs) — Referenz Consorsbank-Kostenrechner, gilt für Reviews und LPs
   Teil 2: Rechner-LPs (.calc.esr: ETF-Sparplan-, Rendite-, Zinseszinsrechner)
   Weitere Teile: aus Bereichs- und Seitendateien zusammengeführte Rechner-Regeln
   Geladen auf allen Seiten mit Rechner direkt vor ad24-global.css.
   =================================================================== */
/* ---------- Teil 1: Rechner mit Reglern ---------- */
/* Interaktive Rechner (.calc) wie auf den LPs: Navy-soft-Panel ohne Rahmen, Regler ohne Kachel, Regler mit Füllung (--p via ad24-lp-blocks.js),
   Ergebnis-Tabelle mit normaler Kopfzeile, Annahmen einklappbar (.srcbox) */
main .calc:has(.cgrid){border:0;border-radius:20px;padding:28px 30px 24px}
main .calc:has(.cgrid) .tool-head .fs{font-size:var(--fs-md);color:var(--muted)}
main .calc:has(.cgrid) .cgrid{gap:24px 40px;margin:4px 0 24px}
main .calc:has(.cgrid) .cs{background:transparent;padding:0;border-radius:0;box-shadow:none}
main .calc:has(.cgrid) .cs label{font-size:var(--fs-md);font-weight:500;color:var(--ink);gap:4px;margin-bottom:14px}
main .calc:has(.cgrid) .cs label output{font-size:18px;font-weight:700;color:var(--head);white-space:nowrap}
main .calc:has(.cgrid) .cs .hint{font-size:var(--fs-md);color:var(--muted)}
main .calc:has(.cgrid) input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:8px;border-radius:99px;background:linear-gradient(var(--navy),var(--navy)) 0/var(--p,50%) 100% no-repeat,#fff;outline:none;cursor:pointer}
main .calc:has(.cgrid) input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;border-radius:50%;background:#fff;border:3px solid var(--navy);box-shadow:0 2px 6px rgba(20,34,75,.2)}
main .calc:has(.cgrid) input[type=range]::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#fff;border:3px solid var(--navy)}
main .calc:has(.cgrid) input[type=range]:focus-visible{outline:2px solid var(--navy);outline-offset:6px}
main .calc:has(.cgrid) .csum>div{background:#fff}
main .calc:has(.cgrid) .cres{border-radius:14px;background:#fff}
main .calc:has(.cgrid) .cres .ctable th{font-size:var(--fs-sm);font-weight:600;letter-spacing:0;text-transform:none;color:var(--ink)}
main .calc:has(.cgrid) .cres .ctable tbody tr:hover{background:var(--bg-2)}
main .calc:has(.cgrid) .cverdict{background:#fff;border-radius:14px;font-size:var(--fs-md);line-height:1.6;padding:16px 18px}
main .calc:has(.cgrid) .cnote{font-size:var(--fs-md);color:var(--muted);margin:16px 0 0}
main .calc:has(.cgrid) .cnote b{color:var(--ink);font-weight:600}
@media(max-width:640px){main .calc:has(.cgrid){padding:20px 16px}main .calc:has(.cgrid) .cgrid{gap:20px}}
.calc:has(.cgrid) .srcbox[open] .src-l{background:#fff;border-radius:14px;padding:14px 18px 16px;margin-top:8px}
.calc:has(.cgrid) .srcbox .src-i:first-child{border-top:0;padding-top:0}
/* Regler in einer Reihe auf gleicher Höhe, auch wenn ein Label umbricht (nur Rechner ohne Hinweiszeilen unter dem Regler) */
main .calc:has(.cgrid) .cgrid{gap:24px 32px}
main .calc:has(.cgrid):not(:has(.cs .hint)) .cs{display:flex;flex-direction:column}
main .calc:has(.cgrid):not(:has(.cs .hint)) .cs>label{flex:1 0 auto}

/* ---------- Teil 2: Rechner-LPs (.calc.esr) ---------- */
/* Rechner-Layout der 3 Rechner-LPs (ETF-Sparplan-, Rendite-, Zinseszinsrechner) (27.10.2026) */
.rband{padding-top:48px}
.rband .rlead{font-size:var(--fs-lg);line-height:1.65;color:var(--ink);max-width:none;margin-top:10px}
.calc.esr{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:16px;align-items:start;border:0;padding:20px;margin:24px 0 14px}
.esr-f{display:block}
.esr-c1,.esr-c2{display:grid;gap:12px;min-width:0}
.esr-in{background:var(--bg);border-radius:var(--r);padding:18px 20px 12px}
.esr-in .tool-head{margin-bottom:4px}
.esr-in .tool-head .ic{background:var(--navy-soft)}
.esr-in .tool-head .ft{font-size:18px;font-weight:600;color:var(--head);line-height:1.3}
.esr-in .cs{background:none;border-radius:0;padding:12px 0 13px;border-top:1px solid var(--line)}
.esr-in .cs label{flex-direction:row;justify-content:space-between;align-items:baseline;gap:12px;font-size:var(--fs-md);font-weight:500;color:var(--ink);margin-bottom:6px}
.esr-in .cs label output{font-size:var(--fs-lg);white-space:nowrap}
.esr-in .clab{display:block;font-size:var(--fs-md);font-weight:500;color:var(--ink);margin-bottom:10px}
.esr-in .hint{display:block;font-size:var(--fs-sm);line-height:1.5;color:var(--muted);margin-top:6px}
.fee-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.fee-row .segmented{flex:none;background:var(--control-bg);}
.fee-row .segmented button{padding:7px 11px;font-size:var(--fs-md)}
.numf{position:relative;display:flex;align-items:center;width:100%}
.fee-row .numf{flex:1;min-width:110px;width:auto}
.numf input{width:100%;font:500 var(--fs-md)/1.2 var(--font-body);color:var(--head);background:var(--control-bg);border:1px solid var(--line-2);border-radius:10px;padding:9px 34px 9px 12px;-moz-appearance:textfield}
.numf input::-webkit-outer-spin-button,.numf input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.numf input:focus{outline:2px solid var(--navy);outline-offset:1px;border-color:var(--navy)}
.numf .unit{position:absolute;right:12px;font-size:var(--fs-md);color:var(--muted);pointer-events:none}
:where(.calc.esr) .esr-tax{position:relative;display:grid;grid-template-columns:22px 1fr;gap:12px;align-items:start;padding:14px 0 6px;border-top:1px solid var(--line);cursor:pointer;font-size:var(--fs-md);line-height:1.5;color:var(--ink)}
:where(.calc.esr) .esr-tax input{position:absolute;opacity:0;width:1px;height:1px}
:where(.calc.esr) .esr-tax .chk-b{width:22px;height:22px;border-radius:6px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--navy-line);display:grid;place-items:center;transition:background .15s}
:where(.calc.esr) .esr-tax .chk-b svg{width:14px;height:14px;color:#fff;opacity:0}
:where(.calc.esr) .esr-tax input:checked+.chk-b{background:var(--navy);box-shadow:none}
:where(.calc.esr) .esr-tax input:checked+.chk-b svg{opacity:1}
body.kbd .esr-tax input:focus-visible+.chk-b{outline:2px solid var(--navy);outline-offset:2px}
.esr-out{display:grid;gap:12px;min-width:0}
.resbig{background:var(--bg);border-radius:var(--r);padding:18px 20px}
.resbig .rb-k{font-size:var(--fs-sm);font-weight:500;color:var(--muted);line-height:1.4}
.resbig .rb-v{font-size:42px;font-weight:700;color:var(--head);letter-spacing:-.02em;line-height:1.15;margin:4px 0;font-variant-numeric:tabular-nums}
.resbig .rb-s{font-size:var(--fs-md);color:var(--muted);line-height:1.5}
.calc.esr .csum{margin:0}
.calc.esr .csum>div{background:var(--bg)}
:where(.calc.esr) .crows{background:var(--bg);border-radius:var(--r);padding:2px 18px}
:where(.calc.esr) .cr{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(50px,1fr) auto;gap:14px;align-items:center;padding:12px 0;border-top:1px solid var(--line)}
:where(.calc.esr) .cr:first-child{border-top:0}
:where(.calc.esr) .crn{font-size:var(--fs-md);font-weight:600;color:var(--head);line-height:1.35}
:where(.calc.esr) .crn small{display:block;font-size:var(--fs-sm);font-weight:400;color:var(--muted)}
:where(.calc.esr) .crbar{height:8px;border-radius:99px;background:var(--bg-3);overflow:hidden}
:where(.calc.esr) .crbar i{display:block;height:100%;border-radius:99px;background:var(--navy-line)}
:where(.calc.esr) .cr.best .crbar i{background:var(--navy)}
:where(.calc.esr) .crv{text-align:right;font-size:var(--fs-md);font-weight:600;color:var(--head);white-space:nowrap;font-variant-numeric:tabular-nums}
:where(.calc.esr) .crv small{display:block;font-size:var(--fs-sm);font-weight:500;color:var(--muted)}
:where(.calc.esr) .crv .neg{color:var(--red-deep)}
.taxbox{display:none;background:var(--bg);border-radius:var(--r);padding:16px 18px 14px}
.taxbox.on{display:block}
.taxbox .th{font-size:var(--fs-md);font-weight:600;color:var(--head);margin-bottom:6px}
.trow{display:flex;justify-content:space-between;gap:16px;padding:7px 0;border-top:1px solid var(--line);font-size:var(--fs-md);line-height:1.45;color:var(--ink)}
.trow span:last-child{white-space:nowrap;font-variant-numeric:tabular-nums}
.trow.tsum{font-weight:600;color:var(--head)}
.tnote{font-size:var(--fs-sm);line-height:1.5;color:var(--muted);margin-top:8px}
.chartbox{background:var(--bg);border-radius:var(--r);padding:14px 16px 12px}
#rChart svg{display:block;width:100%;height:auto}
.clegend{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:var(--fs-sm);color:var(--ink);margin-top:6px}
.clegend span{display:inline-flex;align-items:center;gap:7px}
.clegend i{width:16px;height:4px;border-radius:2px;display:inline-block}
.clegend .lv{background:var(--navy)}
.clegend .lc{background:var(--gold)}
.ytwrap{background:var(--bg);border-radius:var(--r)}
.ytwrap summary{list-style:none;display:flex;align-items:center;gap:8px;padding:13px 18px;font-size:var(--fs-md);font-weight:600;color:var(--navy);cursor:pointer}
.ytwrap summary::-webkit-details-marker{display:none}
.ytwrap summary svg{width:16px;height:16px;transition:transform .2s}
.ytwrap[open] summary svg{transform:rotate(180deg)}
body.kbd .ytwrap summary:focus-visible{outline:2px solid var(--navy);outline-offset:2px;border-radius:var(--r)}
.ytwrap summary:focus{outline:none}
.ytbody{padding:0 18px 12px;max-height:380px;overflow-y:auto}
.ytable{width:100%;border-collapse:collapse;font-size:var(--fs-md);font-variant-numeric:tabular-nums}
.ytable th{text-align:right;font-size:var(--fs-xs);font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);padding:8px 0 8px 10px;border-bottom:1px solid var(--line-2);position:sticky;top:0;background:var(--bg)}
.ytable td{text-align:right;padding:7px 0 7px 10px;border-bottom:1px solid var(--line);color:var(--ink);white-space:nowrap}
.ytable th:first-child,.ytable td:first-child{text-align:left;padding-left:0}
.ytable tr:last-child td{border-bottom:0}
.ytable b{color:var(--head);font-weight:600}
.rband .hint-note{max-width:var(--article)}
.srcmini{margin-top:14px;max-width:var(--article);font-size:var(--fs-sm);line-height:1.55;color:var(--muted)}
.srcmini b{display:block;color:var(--ink);font-weight:600;margin-bottom:4px}
.srcmini ul{list-style:none;margin:0;padding:0}
.article .srcmini li,.srcmini li{margin:0 0 3px;padding-left:14px;position:relative;font-size:var(--fs-sm);line-height:1.55;color:var(--muted)}
.article .srcmini li::before,.srcmini li::before{content:"";position:absolute;left:2px;top:.65em;width:4px;height:4px;border-radius:50%;background:var(--faint)}
@media(max-width:900px){
.calc.esr{grid-template-columns:1fr}
}
@media(max-width:600px){
.calc.esr{padding:12px 10px}
.esr-in{padding:14px 14px 8px}
:where(.calc.esr) .crows{padding:2px 14px}
:where(.calc.esr) .cr{grid-template-columns:minmax(0,1fr) auto}
:where(.calc.esr) .crbar{display:none}
.ytbody{padding:0 14px 10px}
.ytable .yc-hide{display:none}
.resbig{padding:16px}
}
.vsg.esr .vfor{font-size:var(--fs-xs);font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--navy);margin:0 0 4px}
.vsg.esr h3{font-size:var(--fs-lg);font-weight:600;color:var(--head);margin:0 0 8px}
.vsg.esr .flist{margin:0}
.vsg.esr .flist li{display:block;font-size:var(--fs-md);line-height:1.6;margin:0 0 8px;padding:0 0 0 18px}
.vsg.esr .flist li::before{display:block;top:.72em}
.vsg.esr .flist li a{font-weight:600}
.vsg.esr .vex{border-top-color:var(--line-2)}
:where(body:has(.calc.esr)) #aktuelles{padding-top:44px}
.chg{background:var(--bg-2);border-radius:var(--r-lg);padding:18px 22px 10px}
.chg h3{font-size:var(--fs-lg);line-height:1.4;margin:0 0 6px;color:var(--head)}
.chg ul{list-style:none;margin:0;padding:0}
.article .chg li,.chg li{display:grid;grid-template-columns:58px minmax(0,1fr);gap:12px;padding:10px 0;margin:0;border-top:1px solid var(--line);font-size:var(--fs-md);line-height:1.6;color:var(--ink)}
.article .chg li::before,.chg li::before{display:none}
.chg li:first-child{border-top:0}
.chg-d{font-weight:600;color:var(--navy);font-variant-numeric:tabular-nums}
.chg b{color:var(--head);font-weight:600}
@media(max-width:560px){
.chg{padding:16px 16px 8px}
}

/* ---------- Teil 3: zusammengeführt aus ad24-review-shared.css (ohne sichtbare Änderung) ---------- */

@media (max-width:640px){.cres.cres-w3:not(.cres-custom) th:nth-child(2),.cres.cres-w3:not(.cres-custom) td:nth-child(2), .cres.cres-w3:not(.cres-custom) th:nth-child(3),.cres.cres-w3:not(.cres-custom) td:nth-child(3){display:table-cell}}
@media (max-width:640px){.cres.cres-w3:not(.cres-custom) th:first-child,.cres.cres-w3:not(.cres-custom) td:first-child{width:48%;overflow-wrap:normal;hyphens:auto}}
@media (max-width:640px){.cres.cres-w3:not(.cres-custom) th{white-space:normal;font-size:var(--fs-sm);line-height:1.3;overflow-wrap:normal}}
@media (max-width:640px){.cres.cres-w3:not(.cres-custom) td{white-space:normal;line-height:1.4}}
@media (max-width:640px){.cres.cres-w3:not(.cres-custom) td:not(:first-child),.cres.cres-w3:not(.cres-custom) td:not(:first-child) b{white-space:nowrap}}

@media (max-width:640px){.cres.cres-w3:not(.cres-custom) th,.cres.cres-w3:not(.cres-custom) td{padding-right:8px}}
@media (max-width:640px){.cres.cres-w3:not(.cres-custom) th:first-child,.cres.cres-w3:not(.cres-custom) td:first-child{padding-left:12px}}
@media (max-width:640px){.cres.cres-w3:not(.cres-custom) th:last-child,.cres.cres-w3:not(.cres-custom) td:last-child{padding-right:12px;text-align:left}}
@media (max-width:640px){.cres.cres-custom .ctable,.cres.cres-custom thead,.cres.cres-custom tbody{display:block;width:100%}}
@media (max-width:640px){.cres.cres-custom tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media (max-width:640px){.cres.cres-custom th,.cres.cres-custom td{display:block!important;width:auto!important;padding:10px 12px!important;text-align:left!important;white-space:normal;overflow-wrap:normal}}
@media (max-width:640px){.cres.cres-custom th:first-child{display:none!important}}
@media (max-width:640px){.cres.cres-custom td:first-child{grid-column:1/-1;font-weight:600;padding-bottom:0!important;border-bottom:0}}

/* ---------- Teil 3: zusammengeführt aus ad24-ratgeber-blocks.css (ohne sichtbare Änderung) ---------- */
.at-in .clab{font-size:var(--fs-md);color:var(--head)}
.at-in .hint,.cs .hint{font-size:var(--fs-sm);color:var(--muted)}

.calc .calc-note{font-size:var(--fs-md);line-height:1.6;color:var(--muted)}
.at-foot{padding:2px 4px 0}
.at-foot .cnote{font-size:var(--fs-md);line-height:1.6;color:var(--muted);margin:0}

/* ---------- Teil 3: zusammengeführt aus ad24-common-blocks.css (ohne sichtbare Änderung) ---------- */
.calc .srcbox{background:transparent;margin:4px 0 0;border-radius:0}
.calc .srcbox>summary{padding:6px 0;font-size:var(--fs-md);display:inline-flex}
.calc .tool-head .ft,.chk .tool-head .ft{font-size:22px;font-weight:700;color:var(--head);letter-spacing:-.02em;line-height:1.2}
.calc .tool-head:has(+ .fs){margin-bottom:6px}
.calc .tool-head + .fs{font-size:var(--fs-md);color:var(--muted);margin:4px 0 22px}
@media (max-width:600px){.calc .tool-head .ft,.chk .tool-head .ft{font-size:19px}}
.calc .at-in .tool-head .ft,.calc .tool-head .ft,.chkbox .tool-head .ft,.chkwrap .tool-head .ft,.wk-mc .tool-head .ft{font-size:22px;font-weight:700;color:var(--head);letter-spacing:-.01em;line-height:1.25}
.calc .at-in .tool-head{margin-bottom:14px}
@media (max-width:600px){.calc .at-in .tool-head .ft,.calc .tool-head .ft,.chkbox .tool-head .ft,.chkwrap .tool-head .ft,.wk-mc .tool-head .ft{font-size:19px}}
@media (max-width:640px){.clv{min-width:0}}

/* ---------- Teil 3: zusammengeführt aus ad24-review-page.css (ohne sichtbare Änderung) ---------- */

/* ---------- Teil 3: zusammengeführt aus ad24-lp-ratgeber-shared.css (ohne sichtbare Änderung) ---------- */
.csum{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:18px}
.csum>div{background:var(--bg);border-radius:var(--r);padding:12px 16px}
.cres .crk{color:var(--faint);font-weight:600;width:28px}
.cres .crn{display:flex;align-items:center;gap:10px;white-space:nowrap}
.cres .crl{width:28px;height:28px;border-radius:7px;background:var(--bg-2);display:grid;place-items:center;overflow:hidden;flex:none}
.cres .crl img{max-width:22px;max-height:22px}
.cres .crn small{display:block;font-size:var(--fs-sm);color:var(--muted);font-weight:400;white-space:normal;line-height:1.35}
.cres td.num{white-space:nowrap}
.cres tr.best td{background:transparent}
.cres td,.cres th{vertical-align:middle}
@media (max-width:640px){.cres table.kdres th:nth-child(1),.cres table.kdres td:nth-child(1){display:none}}
@media (max-width:640px){.cres table.kdres th:nth-child(3),.cres table.kdres td:nth-child(3),.cres table.kdres th:nth-child(4),.cres table.kdres td:nth-child(4){display:none}}
@media (max-width:640px){.cres table.kdres th:nth-child(2),.cres table.kdres td:nth-child(2){padding-left:14px}}
@media (max-width:640px){.cres table.kdres td:last-child{text-align:right}}
@media (max-width:640px){.cres table.kdres th:nth-child(2),.cres table.kdres td:nth-child(2){display:table-cell}}

/* ---------- Teil 3: zusammengeführt aus ad24-ratgeber-page.css (ohne sichtbare Änderung) ---------- */
.cr .crk{font-size:var(--fs-md);font-weight:600;color:var(--navy);background:var(--navy-soft);border-radius:8px;padding:4px 0;text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}
:is(.fit,.rg-out) .obook{background:var(--bg);border-radius:var(--r);overflow:hidden;font-variant-numeric:tabular-nums}
:is(.fit,.rg-out) .obh{display:grid;grid-template-columns:96px 1fr 78px;gap:10px;padding:9px 16px;font-size:var(--fs-xs);font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);border-bottom:1px solid var(--line)}
:is(.fit,.rg-out) .obh span:last-child{text-align:right}
:is(.fit,.rg-out) .obrow{display:grid;grid-template-columns:96px 1fr 78px;gap:10px;align-items:center;padding:5px 16px;font-size:var(--fs-md)}
:is(.fit,.rg-out) .obrow .obp{font-weight:700}
:is(.fit,.rg-out) .obrow .obbar{height:14px;border-radius:5px;overflow:hidden;display:flex}
:is(.fit,.rg-out) .obrow .obbar i{display:block;height:100%;border-radius:5px}
:is(.fit,.rg-out) .obrow .obv{text-align:right;color:var(--muted);font-weight:600}

:is(.fit,.rg-out) .obrow.ask .obp{color:var(--red-deep)}
:is(.fit,.rg-out) .obrow.ask .obbar i{background:var(--red-soft);box-shadow:inset 0 0 0 1px var(--red)}
:is(.fit,.rg-out) .obrow.bid .obp{color:var(--green-deep)}
:is(.fit,.rg-out) .obrow.bid .obbar i{background:var(--green-soft);box-shadow:inset 0 0 0 1px var(--green)}
:is(.fit,.rg-out) .obmid{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 16px;background:var(--navy-soft);color:var(--head);font-size:var(--fs-md);font-weight:600}
:is(.fit,.rg-out) .obmid .obspread{font-size:var(--fs-sm);color:var(--ink);font-weight:500}
:is(.fit,.rg-out) .obnote{font-size:var(--fs-md);color:var(--ink);margin-top:12px;line-height:1.6}
.rg-out .calc-card{background:var(--bg);border-radius:var(--r);padding:12px 16px}

/* ---------- Teil 3: zusammengeführt aus ad24-ratgeber-shared.css (ohne sichtbare Änderung) ---------- */
@media (max-width:640px){.csum{grid-template-columns:1fr;gap:6px}}
@media (max-width:640px){.csum>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:10px 14px}}
:is(.fit,.rg-out) .obnote b{color:var(--head)}
.rg-out .txr span:last-child{white-space:nowrap;font-variant-numeric:tabular-nums}
.rg-out .calc-takeaway b{color:var(--red-deep);font-weight:700;white-space:nowrap}
@media (max-width:600px){.rg-out .calc-takeaway{flex-direction:column;align-items:flex-start;gap:4px}}
@media (max-width:600px){.rg-out .calc-takeaway b{white-space:normal}}
.at-in .rg-extra .csum{margin:0;grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:480px){.at-in .rg-extra .csum{grid-template-columns:minmax(0,1fr)}}
.at-in .rg-extra .csum>div{background:var(--bg-2)}

/* ---------- Teil 3: zusammengeführt aus ad24-ratgeber-tools.css (ohne sichtbare Änderung) ---------- */

@media (max-width:600px){.crows{padding:2px 14px}}
@media (max-width:600px){.cr{grid-template-columns:minmax(0,1fr) auto}}
@media (max-width:600px){.crbar{display:none}}
@media (max-width:600px){.calc.at .csum{grid-template-columns:minmax(0,1fr)}}
@media (max-width:600px){.calc.at .csum>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px}}
.csum .is-neg .v,.csum .v.neg,.rg-out .v.neg{color:var(--red-deep)}
.csum .v.pos,.rg-out .v.pos{color:var(--green-deep)}
.cr:has(.crk){grid-template-columns:52px minmax(0,1.3fr) minmax(40px,1fr) auto}
@media (max-width:600px){.cr:has(.crk){grid-template-columns:48px minmax(0,1fr) auto}}
.cr.loss .crv{color:var(--red-deep)}

/* ---------- Teil 3: zusammengeführt aus ad24-lp-ratgeber.css (ohne sichtbare Änderung) ---------- */
.cs{background:var(--bg);border-radius:var(--r);padding:14px 16px 16px}
@media (max-width:600px){.cs{padding:12px 12px 14px}}
@media (max-width:600px){.cs label{font-size:var(--fs-sm)}}
@media (max-width:600px){.cs label output{font-size:var(--fs-base)}}

/* ---------- Teil 3: zusammengeführt aus ad24-lp-compare.css (ohne sichtbare Änderung) ---------- */

/* ---------- Teil 3: zusammengeführt aus ad24-components.css (ohne sichtbare Änderung) ---------- */
.cgrid.c3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:860px){.cgrid.c3{grid-template-columns:1fr}}
.cln-t{flex:1;height:8px;border-radius:99px;background:var(--bg-2);overflow:hidden;min-width:40px}
.cln-t i{display:block;height:100%;border-radius:99px;background:var(--navy-line)}
.cres tr.best .cln-t i{background:var(--green)}
.clv b{display:block;font-weight:600;color:var(--head)}

.cres .stres td.num{width:46%}
@media (max-width:640px){.cres table.stres th:nth-child(1),.cres table.stres td:nth-child(1){display:none}}
@media (max-width:640px){.cres table.stres th:nth-child(2),.cres table.stres td:nth-child(2),.cres table.stres th:nth-child(3),.cres table.stres td:nth-child(3){display:table-cell}}
@media (max-width:640px){.cres table.stres th:nth-child(2),.cres table.stres td:nth-child(2){padding-left:14px}}
@media (max-width:640px){.cres .stres td.num{width:auto}}
@media (max-width:640px){.cres .stres td{padding-left:12px;padding-right:12px}}
@media (max-width:640px){.cres .stres td:last-child{padding-left:0}}
@media (max-width:640px){.cres .stres .crn small{font-size:var(--fs-sm)}}
@media (max-width:640px){.cres table.stres thead th{white-space:normal}}
.calc .ctip b{color:var(--head);font-weight:600}
.calc .ctax b{color:var(--head);font-weight:600}
@media (max-width:640px){.cres.cres-w3 th:nth-child(2),.cres.cres-w3 td:nth-child(2),.cres.cres-w3 th:nth-child(3),.cres.cres-w3 td:nth-child(3){display:table-cell}}
@media (max-width:640px){.cres.cres-w3 th:last-child,.cres.cres-w3 td:last-child{text-align:left}}
@media (min-width:761px){.cgrid.cgrid--2{grid-template-columns:1fr 1fr;gap:14px}}

/* ---------- Teil 3: zusammengeführt aus ad24-base.css (ohne sichtbare Änderung) ---------- */
.cres .best td{background:transparent}
.cres td a{font-weight:700;color:var(--head);text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:3px}
.cres td a:hover{color:var(--navy);text-decoration-color:var(--navy)}

.cbest{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);margin-left:8px;vertical-align:2px}
.cverdict{margin-top:14px;font-size:var(--fs-md);font-weight:500;color:var(--head);background:var(--bg);border-radius:var(--r-sm);padding:13px 16px;line-height:1.55}
.cnote{font-size:var(--fs-sm);color:var(--faint);margin-top:14px;line-height:1.6}
/* ===== Zusammengeführt (28.10.2026, DR-478/479): Rechner-Regeln aus anderen Dateien ===== */
.calc .fs{font-size:var(--fs-md);color:var(--muted);margin-bottom:22px}
.cres{margin-top:18px;overflow-x:auto;background:var(--bg);border-radius:var(--r);padding:4px 0}
.cres .ctable{margin:0;border-top:0}
@media (max-width:600px){.crows .crv small{white-space:normal}
}
.csum .k{font-size:var(--fs-sm);color:var(--muted);line-height:1.35}
.csum .v{font-size:var(--fs-lg);font-weight:600;color:var(--head);margin-top:2px}
.cres td small.w{display:block;font-size:var(--fs-sm);color:var(--red-deep);white-space:normal}
@media (max-width:640px){.cres .crn{white-space:normal;align-items:flex-start}
}
.at-in{background:var(--bg);border-radius:var(--r);padding:16px 20px 8px}
.at-in .tool-head{margin-bottom:2px}
.at-in .tool-head .ic{background:var(--navy-soft)}
.at-in .tool-head .ft{font-size:var(--fs-lg);font-weight:600;color:var(--head);line-height:1.3}
@media (max-width:760px){.at-in .cs label{min-height:0}
}
.at-out{display:grid;gap:12px;min-width:0}
.at-in .rg-sel select{appearance:auto}
.rg-out .calc-takeaway:empty{display:none}
.at-in .rg-extra{padding:10px 0 8px;border-top:1px solid var(--line)}
@media (max-width:640px){.csum .v{font-size:var(--fs-base);margin:0;white-space:nowrap}
}
.cres .crn b{color:var(--head);font-weight:600}
.cres td b.pos{color:var(--green-deep)}
@media (max-width:640px){.cres.cres-w3:not(.cres-custom) .ctable{font-size:var(--fs-sm);table-layout:fixed;width:100%}
.cres.cres-custom td b,.cres.cres-custom td span{white-space:normal!important}
}
.calc.at .csum .v{font-variant-numeric:tabular-nums;white-space:nowrap}
@media (max-width:600px){.at-in{padding:14px 14px 6px}
}
.calc-tgl+.cres{margin-top:18px}
.at-in .hint b{color:var(--ink);font-weight:600}
@media (max-width:640px){.cres.cres-w3 .ctable{font-size:var(--fs-sm);table-layout:fixed;width:100%}
}
.cres td b.neg{color:var(--red-deep)}
@media (max-width:640px){.cres.cres-w3 th:first-child,.cres.cres-w3 td:first-child{width:40%}
.cres.cres-w3 th:first-child,.cres.cres-w3 td:first-child{width:48%}
.cres.cres-w3 th{white-space:normal;font-size:var(--fs-sm);line-height:1.3}
.cres.cres-w3 td:not(:first-child) b,.cres.cres-w3 td:not(:first-child) span{white-space:nowrap}
.cres.cres-w3 th:first-child,.cres.cres-w3 td:first-child{padding-left:12px}
}
.cres tr.best .clv b{color:var(--green-deep)}
.calc .cdiff{margin:14px 0 0;font-size:var(--fs-md);line-height:1.6;color:var(--ink)}
.calc .cdiff b{color:var(--head);font-weight:600}
@media (max-width:640px){.cres .fxres .crl{display:none}
}
.at-in .tool-head .ft{font-size:18px}
.article .calc .tool-head .fs{font-size:18px;font-weight:600;color:var(--head)}
.article .calc .cres{border-radius:14px}
.article .calc .cnote{font-size:var(--fs-md);color:var(--muted)}
.article .calc .cgrid{gap:24px 40px;margin:4px 0 24px}
@media (max-width:640px){.article .calc .cgrid{gap:20px}
}
.calc .srcbox .src-i:first-child{border-top:0}
.article .calc .cnote{margin-bottom:0}
.article .calc .cs .cs-l{font-size:var(--fs-md);font-weight:500;color:var(--head)}
.article .calc .cs .cs-l output{font-weight:700}
.calc.esr .esr-in .cs label{font-size:var(--fs-md);color:var(--head)}
.calc.esr .esr-in .cs label output{font-size:18px;font-weight:700}
.calc.esr .esr-in .clab{font-size:var(--fs-md);color:var(--head)}
.calc.esr .esr-in .hint{font-size:var(--fs-sm);color:var(--muted)}
.esr-tax b{display:block;font-weight:600;color:var(--head);font-size:var(--fs-md)}
.esr-tax small{display:block;font-size:var(--fs-sm);color:var(--muted);margin-top:2px}
.calc.esr .cnote{font-size:var(--fs-md);line-height:1.6;color:var(--muted);margin:0}
.calc.esr .cnote b{color:var(--ink);font-weight:600}
@media (min-width:901px){.calc.esr .esr-out{position:sticky;top:88px;align-self:start}
}
.calc.esr .crv{text-align:right;font-variant-numeric:tabular-nums}

/* DR-482: Ergebniszeilen auf schmalen Bildschirmen untereinander lesen. */
@media(max-width:640px){
  .calc .cres--mobile-stack .ctable,
  .calc .cres--mobile-stack .ctable thead,
  .calc .cres--mobile-stack .ctable tbody{display:block;width:100%}
  .calc .cres--mobile-stack .ctable tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;padding:12px;border-top:1px solid var(--line)}
  .calc .cres--mobile-stack .ctable thead tr{border-top:0}
  .calc .cres--mobile-stack .ctable th,
  .calc .cres--mobile-stack .ctable td{width:auto;min-width:0;padding:0;border:0;white-space:normal;overflow-wrap:normal}
  .calc .cres--mobile-stack .ctable tr>:first-child{grid-column:1/-1;width:auto;padding:0}
  .calc .cres--mobile-stack .ctable tr>:last-child{width:auto;padding:0}
  .calc .cres--mobile-stack:not(.cres--wf):not(.cres-w3) .ctable thead tr>:is(:first-child,:last-child,:nth-child(2)){grid-column:auto}
  .calc .cres--mobile-stack:not(.cres--wf):not(.cres-w3) .ctable tr>:last-child{grid-column:1/-1;text-align:right}
  .calc .cres--mobile-stack :is(.kdres,.jdres) tr>:nth-child(2){grid-column:1/-1}
  .calc .cres--mobile-stack .crn{min-width:0}
  .calc .cres--mobile-stack .crn>span:last-child{min-width:0}
  .calc .cres--mobile-stack .crn .crl{display:none}
  .calc .cres--mobile-stack .ctable td b,
  .calc .cres--mobile-stack .ctable td span{white-space:normal}
}

/* Long slider labels must fit narrow phones without shrinking the type. */
@media (max-width:360px){
  .calc .cs label{overflow-wrap:anywhere;flex-wrap:wrap}
}

/* DR-536: one calculator panel, with unframed input and result groups inside. */
main :is(.calc.esr,.calc.at,.calc) :is(.esr-in,.at-in,.resbig,.csum,.csum>div,.sumc,.at-read,.calc-card,.res-card,.cverdict,.ctgls,.copts,.big,.hl,.sumimpact,.calc-takeaway,.wk-mc),
main .calc:has(.cgrid) :is(.csum>div,.cverdict),
main .calc:has(.cgrid) .srcbox[open] .src-l{
  background:transparent;border-radius:0;box-shadow:none;
}
main :is(.calc.esr,.calc.at,.calc) :is(.cres,.crows),main .calc:has(.cgrid) .cres{background:transparent;border-radius:0;box-shadow:none}
main :is(.calc.esr,.calc.at,.calc) :is(.chartbox,.taxbox){border-radius:0;box-shadow:none}
main :is(.calc.esr,.calc.at,.calc) .csum>div{background:transparent;padding:12px 0;border-bottom:1px solid var(--line)}
main .calc .cverdict{padding-left:0;padding-right:0;border-top:1px solid var(--line)}
main .calc:has(.cgrid) .cverdict{padding-left:0;padding-right:0}
main :is(.calc.esr,.calc.at,.calc) :is(.ctgls,.copts){padding-left:0;padding-right:0}
main .calc .wk-mc{border:0;border-top:1px solid var(--line)}
@media(max-width:760px){.resbig .rb-v{font-size:32px}}

/* Depotübertrag options: shared calculator rules, moved from lp-blocks. */
#duCalc .copts{background:transparent;border-radius:0;padding:16px 0;display:grid;gap:8px;margin:0 0 12px}
#duCalc .copt-h{font-size:var(--fs-xs);font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin-top:4px}
#duCalc .copt-h+div,#duCalc .copt-h+label{margin-bottom:6px}
#duCalc .copts .fopt{display:flex;align-items:flex-start;gap:10px;font-size:var(--fs-md);line-height:1.5;margin:4px 0}
#duCalc .ctip{font-size:var(--fs-md);margin:0 0 4px}
#duCalc .ctax{font-size:var(--fs-md);color:var(--muted)}

/* Compact yield calculator results remain rows in the same panel. */
.maincol .calc.esr .csum{grid-template-columns:1fr;gap:0;background:transparent;border-radius:0;padding:2px 16px}
.maincol .calc.esr .csum>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:10px 0;border-radius:0;border-top:1px solid var(--line)}
.maincol .calc.esr .csum>div:first-child{border-top:0}
.maincol .calc.esr .csum .v{white-space:nowrap}

/* Zinseszinsrechner: gemeinsame Fläche der Intervall-Auswahl. */
.zz-int .segmented{background:var(--control-bg)}

/* 01.11.2026: Rechenergebnisse nur an regulären Wortgrenzen umbrechen. */
body .calc table :is(th,td){overflow-wrap:normal;word-break:normal}

#et-cost-calc .ctable td:first-child{white-space:normal;overflow-wrap:normal}

@media(max-width:360px){
 :is(#ct-cost-calc,#lx-cost-calc) .ctable{table-layout:auto}
 :is(#ct-cost-calc,#lx-cost-calc) .ctable :is(th,td):first-child{width:auto;padding-left:8px}
 :is(#ct-cost-calc,#lx-cost-calc) .ctable :is(th,td):last-child{padding-right:8px}
}

/* Lange Prämien-Bezeichnungen dürfen die Summe auf schmalen Displays nicht verdrängen. */
@media(max-width:640px){
 #duCalc .csum>div{flex-wrap:wrap;row-gap:4px}
 #duCalc .csum .v{flex-shrink:0;margin-left:auto}
}
