/* Steuerhebel PRO · V4.2 Entwicklungsstand – geführte Kundenpräsentation (nur Darstellung). Keine Inline-Styles (CSP). */
.ansicht-umschalter { display: inline-flex; border: 1px solid var(--line, #dce6ed); border-radius: 999px; overflow: hidden; background: var(--paper, #fff); }
.ansicht-umschalter button { border: 0; background: transparent; color: var(--ink, #092746); font: inherit; font-size: .86rem; font-weight: 600; padding: .45rem .9rem; min-height: 40px; cursor: pointer; }
.ansicht-umschalter button[aria-pressed="true"] { background: var(--ink, #092746); color: var(--paper, #fff); }
html[data-theme="dark"] .ansicht-umschalter button[aria-pressed="true"] { background: var(--green); color: #07261c; }
.ansicht-umschalter button:focus-visible, .p42 button:focus-visible, .p42 summary:focus-visible, .p42 a:focus-visible { outline: 3px solid var(--blue, #174f86); outline-offset: 2px; }
body.praes-an #ansichtMarke { display: none; }

/* Kompass in der Kundenpräsentation: geöffnet ca. 1/3 der Breite, zu = schmale Leiste (bestehende Streifen-Logik) */
body.praes-an .raster.flow:not(.kompass-zu):not(.mitte-zu) { --c3: minmax(340px, 33%); }
body.praes-an .raster.flow:not(.mitte-zu) { --c2: minmax(0, 3fr); }

.p42 { color: var(--ink, #092746); }
.p42 * { box-sizing: border-box; }
.p42-top { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1rem; }
.p42-nav { display: flex; flex-wrap: wrap; gap: .4rem; }
.p42-nav [role="tab"] { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 12px; padding: .55rem .9rem; font: inherit; font-weight: 600; min-height: 44px; cursor: pointer; display: inline-flex; gap: .5rem; align-items: center; }
.p42-nav [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
html[data-theme="dark"] .p42-nav [role="tab"][aria-selected="true"] { background: var(--green); color: #07261c; border-color: var(--green); }
.p42-nav [role="tab"][aria-selected="true"] .p42-nr { background: var(--paper); color: var(--ink); }
.p42-nr { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--tint); color: var(--ink); font-size: .8rem; }
.p42-leiste { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.p42-gruppe { display: flex; flex-direction: column; gap: .25rem; }
.p42-lbl { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--sub); font-weight: 600; }
.p42-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.p42-seg button { border: 0; border-right: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: .88rem; padding: .45rem .8rem; min-height: 40px; cursor: pointer; }
.p42-seg button:last-child { border-right: 0; }
.p42-seg button[aria-pressed="true"] { background: var(--tint); color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--green); }
.p42-panel { min-width: 0; }
.p42-panel h2 { font-size: 1.5rem; margin: 0 0 .2rem; color: var(--ink); }
.p42-panel > p.p42-sub, .p42-satz { color: var(--sub); margin: 0 0 1rem; }
.p42-hero, .p42-karte, .p42-fluss, .p42-vgl { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); padding: 1.1rem 1.25rem; margin: 0 0 1rem; }
.p42-karte h3, .p42-hero h3 { margin: 0 0 .5rem; font-size: 1.05rem; color: var(--ink); }
.p42-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .9rem; margin-bottom: 1rem; }
.p42-kpi { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); padding: 1rem 1.15rem; }
.p42-kpi.haupt { border-left: 6px solid var(--green); background: var(--tint); }
.p42-kpi .zahl, .p42-zahl { display: block; font-size: 2.1rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink); }
.p42-kpi.haupt .zahl { font-size: 2.5rem; color: var(--green); }
.p42-sek .zahl { font-size: 1.45rem; }
.p42-klein, .p42-note, .p42-hinweis { font-size: .86rem; color: var(--sub); margin: .3rem 0; }
.p42-hinweis { padding: .6rem .8rem; border-radius: 10px; background: var(--tint); border: 1px solid var(--line); color: var(--ink); }
.p42 .pos { color: var(--green); } .p42 .neg { color: #a4281c; }
html[data-theme="dark"] .p42 .neg { color: #ffb4a8; }
.p42-balken { display: flex; height: 22px; border-radius: 11px; overflow: hidden; background: var(--line); margin: .5rem 0; }
.p42-balken i { display: block; height: 100%; }
.p42-seg-grv, .p42-seg-best, .p42-seg-neu { }
i.p42-seg-grv { background: #6b7f94; } i.p42-seg-best { background: #9fb4c9; } i.p42-seg-neu { background: var(--green); }
html[data-theme="dark"] i.p42-seg-grv { background: #8ea2b6; } html[data-theme="dark"] i.p42-seg-best { background: #5d7690; }
.p42-legende, .p42-liste { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .35rem; }
.p42-legende li { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; }
.p42-pkt { display: inline-block; width: .85rem; height: .85rem; border-radius: 50%; }
.p42-fluss { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; counter-reset: s; }
.p42-fluss-schritt { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem; border-radius: 12px; border: 1px solid var(--line); background: var(--ground); }
.p42-fluss-schritt h4 { margin: 0 0 .15rem; font-size: .92rem; } .p42-fluss-schritt b { font-size: 1.3rem; font-variant-numeric: tabular-nums; display: block; } .p42-fluss-schritt p { margin: .2rem 0 0; font-size: .84rem; color: var(--sub); }
.p42-fluss-nr { flex: none; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 700; }
html[data-theme="dark"] .p42-fluss-nr { background: var(--green); color: #07261c; }
.p42-split, .p42-vgl-raster, .p42-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 760px) { .p42-split, .p42-vgl-raster, .p42-zwei { grid-template-columns: 1fr; } .p42-kpi .zahl, .p42-kpi.haupt .zahl { font-size: 1.9rem; } }
.p42-dl { margin: 0; display: grid; gap: .35rem; } .p42-dl > div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dotted var(--line); padding: .2rem 0; } .p42-dl dt { color: var(--sub); } .p42-dl dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.p42 details { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); margin: .6rem 0; } .p42 details > summary { cursor: pointer; padding: .75rem 1rem; font-weight: 700; min-height: 44px; } .p42 details > :not(summary) { padding: 0 1rem 1rem; }
.p42-bst-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; }
.p42-bst { border: 1px solid var(--line); border-radius: 12px; padding: .8rem; background: var(--paper); }
.p42-vorschau { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); padding: 1rem; display: grid; gap: .8rem; }
.p42-vs-flaeche { min-height: 360px; max-height: 70vh; overflow: auto; background: var(--ground); border-radius: 10px; display: grid; justify-items: center; padding: .6rem; }
.p42-vs-flaeche canvas { box-shadow: 0 1px 6px rgba(0,0,0,.25); background: #fff; }
.p42-vs-nav, .p42-aktionen, .p42-versand { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.p42-thumbs { display: flex; gap: .4rem; overflow-x: auto; }
.p42 .primaer, .p42 .zweit, .p42-kbtn, .p42-versand-btn { min-height: 44px; }
.p42-stand { font-size: .8rem; color: var(--sub); }
.p42-fuss { display: flex; justify-content: space-between; margin-top: 1.2rem; gap: .6rem; }
.p42-chip { display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: var(--tint); font-size: .8rem; font-weight: 600; }
dialog.p42-dialog { max-width: min(560px, 94vw); border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); padding: 1.2rem; }
dialog.p42-dialog::backdrop { background: rgba(0,0,0,.5); }
@media (max-width: 1100px) { body.praes-an .raster.flow:not(.kompass-zu):not(.mitte-zu) { --c3: minmax(0, 1fr); } }
.p42-kbtn { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; padding: .5rem 1rem; cursor: pointer; align-self: flex-start; }
.p42-kbtn[aria-expanded="true"] { background: var(--tint); }
.p42-tab-wrap { overflow-x: auto; } table.p42-tab { width: 100%; border-collapse: collapse; font-size: .9rem; } table.p42-tab th, table.p42-tab td { padding: .45rem .5rem; border-bottom: 1px solid var(--line); text-align: right; } table.p42-tab th:first-child, table.p42-tab td:first-child { text-align: left; } table.p42-tab caption { text-align: left; }
.p42-panel h2 { display: flex; align-items: center; gap: .6rem; }

/* V4.3 · Wirtschaftlicher Gesamtvergleich (GW-0.1, ungeprüft) */
.p42-gw { text-align: left; }
.p42-gw-zahl { margin: .2rem 0 0; font-size: clamp(2.6rem, 7vw, 4rem); font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.p42-gw-zahl.pos { color: var(--green); } .p42-gw-zahl.neg { color: #a4281c; } .p42-gw-zahl.neu, .p42-gw-zahl.na { color: var(--ink); }
html[data-theme="dark"] .p42-gw-zahl.neg { color: #ffb4a8; }
.p42-gw-text { margin: .1rem 0 .8rem; font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.p42-gw-warn { margin: .6rem 0; padding: .65rem .85rem; border-radius: 10px; border: 2px dashed #b7791f; background: #fff7e0; color: #5c3b00; font-size: .9rem; }
html[data-theme="dark"] .p42-gw-warn { background: #3a2f10; color: #ffe2a3; border-color: #d9a441; }
.p42-gw-sz { margin: .6rem 0; }
.p42 td.pos, .p42 td.neg { font-weight: 700; }

/* V4.3.1 (Audit A-08): Szenariovergleich „Mit und ohne Wiederanlage“ – fehlende Rasterregeln (Spalten fielen zusammen) */
.p42-rv-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: .4rem 0 .6rem; }
.p42-rv { border: 1px solid var(--line); border-radius: 12px; padding: .75rem .9rem; background: var(--paper); }
.p42-rv.aktiv { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.p42-rv h4 { margin: 0 0 .5rem; font-size: .98rem; color: var(--ink); }
.p42-rv-kopf, .p42-rv-z { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: .6rem; align-items: baseline; }
.p42-rv-kopf { font-size: .78rem; font-weight: 600; color: var(--sub); border-bottom: 1px solid var(--line); padding-bottom: .3rem; margin-bottom: .2rem; }
.p42-rv-kopf span:not(:first-child), .p42-rv-z b { text-align: right; font-variant-numeric: tabular-nums; }
.p42-rv-z { padding: .32rem 0; border-bottom: 1px dotted var(--line); font-size: .92rem; }
.p42-rv-z:last-child { border-bottom: 0; }
.p42-rv-z span { overflow-wrap: anywhere; }
@media (max-width: 760px) { .p42-rv-raster { grid-template-columns: 1fr; } }
/* V4.3.1: Kopf Kapitel C ohne Gesamtzahl */
.p42-c-status { margin: .2rem 0 .6rem; font-size: 1rem; color: var(--ink); }

/* V4.4 – GW-0.2 (25-Jahre-Netto-Kapitalwertvergleich): neutrale Darstellung, keine Gewinnerfarbe */
.p42-gw2-zahl { margin: .2rem 0 0; font-size: clamp(2.4rem, 6.5vw, 3.6rem); font-weight: 800; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.p42-gw2-text { margin: .15rem 0 .5rem; font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.p42-gw2-text span { font-weight: 400; font-size: .92rem; color: var(--sub); }
.p42-gw2-diff { margin: .2rem 0 .6rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.p42-gw2-fakten { margin: .3rem 0 .6rem; padding-left: 1.1rem; color: var(--ink); font-size: .93rem; }
.p42-gw2-fakten li { margin: .2rem 0; }
.p42-gw2-warn { color: #7a2a12; }
html[data-theme="dark"] .p42-gw2-warn { color: #ffc2ae; }
.p42-gw2-pm { margin: 0 0 .6rem; padding: .5rem .75rem; border: 2px dashed #a4281c; border-radius: 10px; background: #fdecea; color: #6d1a11; font-size: .9rem; }
html[data-theme="dark"] .p42-gw2-pm { background: #3b1712; color: #ffd0c7; border-color: #ff8f7d; }
.p42-gwpm { margin-top: .4rem; font: inherit; font-size: .88rem; padding: .4rem .75rem; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.p42-gwpm[aria-pressed="true"] { border-color: #a4281c; }
.p42-gw2-gesperrt { border-style: dashed; }
.p42-kw { display: flex; justify-content: space-between; gap: .8rem; align-items: baseline; margin: .2rem 0 .6rem; padding: .55rem .7rem; border-radius: 10px; background: var(--tint); color: var(--ink); }
.p42-kw span { font-size: .92rem; } .p42-kw b { font-size: 1.25rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.p42-tab tr.std th, .p42-tab tr.std td { font-weight: 700; }
.p42-tab tr.summe th, .p42-tab tr.summe td { border-top: 2px solid var(--line); }
/* V4.4: Beträge in den Vergleichskarten nicht umbrechen (mobil) */
.p42-vgl .p42-dl dd b { white-space: nowrap; }
/* V4.5 · 25-Jahre-Modellvergleich: Prozent und Euro gleichrangig, neutrale Farben (keine Gewinnerfarbe), Vorteil/Nachteil gleich gestaltet */
.p42-gw2-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; }
.p42-gw2-kopf span { font-weight: 400; font-size: .9rem; color: var(--sub); }
.p42-gw2-ergebnis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 1.6rem; align-items: end; margin: .4rem 0 .5rem; padding: .9rem 1rem; border-radius: 14px; background: var(--tint); }
.p42-gw2-haupt, .p42-gw2-euro { min-width: 0; }
.p42-gw2-euro { border-left: 1px solid var(--line); padding-left: 1.4rem; }
.p42-gw2-ergebnis .p42-gw2-zahl { margin: 0; font-size: clamp(2.6rem, 7vw, 4.2rem); }
.p42-gw2-ergebnis .p42-gw2-text { margin: .25rem 0 0; font-size: 1.08rem; font-weight: 700; }
.p42-gw2-eur { margin: 0; font-size: clamp(2.2rem, 5.8vw, 3.5rem); font-weight: 800; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.p42-gw2-eur-t { margin: .25rem 0 0; font-weight: 600; color: var(--ink); font-size: .98rem; }
.p42-gw2-eur-t span { font-weight: 400; color: var(--sub); font-size: .88rem; }
.p42-gw2-rahmen { margin: .1rem 0 .5rem; color: var(--sub); font-size: .9rem; }
.p42-gw2-erkl { margin: .5rem 0; padding: .6rem .8rem; border-left: 4px solid var(--line); background: var(--paper); color: var(--ink); font-size: .92rem; }
.p42-gw2.art-nahezu_gleich .p42-gw2-ergebnis .p42-gw2-zahl { font-size: clamp(2.2rem, 6vw, 3.4rem); }
/* V4.5.1: Euro gleichrangig zur Prozentzahl (Entscheidung Projektinhaber); KV-Zeile und fallbezogene Sperre */
.p42-gw2.art-nahezu_gleich .p42-gw2-eur { font-size: clamp(1.9rem, 5vw, 2.9rem); }
.p42-gw2-kv { margin: 0 0 .5rem; color: var(--ink); font-size: .92rem; }
.p42-gw2-sperre { margin: .4rem 0 .6rem; padding: .55rem .8rem; border: 1px solid var(--line); border-left: 4px solid var(--sub); border-radius: 8px; background: var(--paper); color: var(--ink); font-size: .92rem; }
.p42-tab tr.std th, .p42-tab tr.std td { font-weight: 700; }
@media (max-width: 720px) {
  .p42-gw2-ergebnis { grid-template-columns: 1fr; }
  .p42-gw2-euro { border-left: 0; border-top: 1px solid var(--line); padding: .8rem 0 0; }
  .p42-gw2-eur { white-space: normal; }
}
