/* Steuerhebel PRO · V4.9 – Vereinfachte Ansicht (reine Darstellung, keine Inline-Styles wegen CSP; Breiten/Höhen über data-css). */
.v50 { max-width: 1240px; margin: 0 auto; display: grid; gap: 1rem; color: var(--tinte); }
.v50 h1 { font-size: 1.5rem; margin: 0; color: var(--petrol); }
.v50 h2 { font-size: 1.05rem; margin: 0 0 .7rem; color: var(--petrol); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.v50 h2 small { font-weight: 400; color: var(--grau); font-size: .8rem; flex-basis: 100%; }
.v50 h3 { font-size: .92rem; margin: .2rem 0 .4rem; display: flex; gap: .4rem; align-items: baseline; flex-wrap: wrap; }
.v50 small { color: var(--grau); }
.v50-kopf { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.v50-kopf p { margin: .15rem 0 0; color: var(--grau); }
.v50-kopf-r { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.v50-seg { display: inline-flex; border: 1px solid var(--linie); border-radius: 8px; overflow: hidden; background: var(--flaeche); }
.v50-seg button { border: 0; background: transparent; padding: .45rem .8rem; font: inherit; font-size: .85rem; cursor: pointer; color: var(--petrol); }
.v50-seg button[aria-pressed="true"] { background: var(--petrol); color: #fff; font-weight: 600; }
.v50-leiste { display: flex; justify-content: flex-end; margin-bottom: .6rem; }
.v50-karte, .v50-ziele { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 1rem 1.1rem; box-shadow: var(--schatten, none); min-width: 0; }
.v50-h-ico { display: inline-flex; width: 1.7rem; height: 1.7rem; align-items: center; justify-content: center; color: var(--gold); }
.v50-h-ico svg { width: 1.4rem; height: 1.4rem; }
.v50-ziele { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem 1.2rem; align-items: center; }
.v50-ziele h2 { grid-column: 1 / -1; margin: 0; }
.v50-ziel-k, .v50-ueb { display: flex; gap: .7rem; align-items: center; }
.v50-ziel-k > span:nth-child(2), .v50-ueb > span:nth-child(2) { display: grid; flex: 1; }
.v50-ico-g { color: var(--petrol); display: inline-flex; }
.v50-gross { font-size: 1.5rem; font-weight: 700; color: var(--petrol); font-variant-numeric: tabular-nums; }
.v50-ueb { padding: .6rem .8rem; border-radius: 10px; }
.v50-ueb.ok { background: var(--gruen-hell); color: var(--gruen); }
.v50-ueb.offen { background: var(--gold-hell); color: #6b5300; }
.v50-reihe { display: grid; gap: 1rem; }
.v50-r2, .v50-r3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.v50-r3 { align-items: start; }
.v50-r4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.v50-a-zeile { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 1rem; align-items: center; }
@media (max-width: 560px) { .v50-a-zeile { grid-template-columns: 1fr; } }
.v50-zl { display: grid; gap: .45rem; }
.v50-z { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; padding: .5rem .7rem; border-radius: 10px; background: var(--petrol-hell); }
.v50-z.gruen { background: var(--gruen-hell); }
.v50-z.rot { background: var(--rot-hell); }
.v50-z.blau { background: var(--petrol-hell); }
.v50-z-ico svg { width: 1.5rem; height: 1.5rem; display: block; }
.v50-z-t { display: grid; line-height: 1.25; }
.v50-z-w { font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.v50-klein { font-size: .82rem; color: var(--grau); margin: .6rem 0 0; }
.v50-pp { display: inline-block; background: var(--gruen-hell); color: var(--gruen); font-weight: 600; padding: .1rem .5rem; border-radius: 999px; margin-right: .3rem; }
.v50-ns { color: var(--grau); font-style: italic; font-weight: 400; font-size: .85em; }
.v50-gedaempft { color: var(--grau); font-size: 1.1rem; }
.v50-link { background: none; border: 0; color: var(--blau); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
/* Anzeigen: Halbkreis, Ring */
.v50-gauge { position: relative; text-align: center; }
.v50-gauge svg { width: 100%; max-width: 220px; height: auto; display: block; margin: 0 auto; }
.v50-g-bg { fill: none; stroke: var(--linie); stroke-width: 11; stroke-linecap: round; }
.v50-g-w { fill: none; stroke-width: 11; stroke-linecap: round; }
.v50-f-gruen { stroke: var(--gruen); } .v50-f-bernstein { stroke: var(--gold); } .v50-f-rot { stroke: var(--rot); } .v50-f-neutral { stroke: var(--blau); }
.v50-g-zahl { display: block; font-size: 1.7rem; margin-top: -1.9rem; position: relative; color: var(--petrol); }
.v50-g-sub { display: block; font-size: .78rem; color: var(--grau); }
.v50-ring { position: relative; width: 120px; height: 120px; justify-self: center; }
.v50-ring svg { width: 100%; height: 100%; }
.v50-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--petrol); }
.v50-frei-rein { display: grid; gap: .3rem; }
/* C: Budget */
.v50-balken { display: flex; height: 2.4rem; border-radius: 8px; overflow: hidden; background: var(--linie2); margin: .3rem 0 .9rem; }
.v50-balken i { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; font-style: normal; font-size: .78rem; color: #fff; white-space: nowrap; }
.v50-s-best { background: var(--petrol); } .v50-s-neu { background: var(--gruen); } .v50-s-rest { background: #9aa8b5; }
.v50-pkt { display: inline-block; width: .75rem; height: .75rem; border-radius: 50%; flex: none; }
.v50-c-zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.v50-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.v50-liste li { display: grid; grid-template-columns: 1fr auto; gap: .1rem .6rem; font-size: .9rem; border-bottom: 1px dashed var(--linie); padding-bottom: .25rem; }
.v50-liste li small { grid-column: 1 / -1; }
.v50-leer { color: var(--grau); }
.v50-wirk { font-size: .85rem; margin: .5rem 0 0; }
/* D: Steuerhebel */
.v50-sw { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .6rem; font-weight: 600; }
.v50-switch { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--linie); background: var(--flaeche); border-radius: 999px; padding: .2rem .7rem .2rem .25rem; cursor: pointer; font: inherit; color: var(--petrol); }
.v50-switch i { width: 2.2rem; height: 1.2rem; border-radius: 999px; background: #9aa8b5; position: relative; transition: background .15s; }
.v50-switch i::after { content: ""; position: absolute; top: .1rem; left: .1rem; width: 1rem; height: 1rem; border-radius: 50%; background: #fff; transition: left .15s; }
.v50-switch[aria-checked="true"] i { background: var(--gruen); }
.v50-switch[aria-checked="true"] i::after { left: 1.1rem; }
.v50-switch:disabled { opacity: .5; cursor: not-allowed; }
.v50-d-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem 1.5rem; align-items: start; }
.v50-d-z { display: grid; grid-template-columns: 1fr auto; gap: .5rem; padding: .4rem 0; border-bottom: 1px dashed var(--linie); font-size: .88rem; }
.v50-d-z span { display: grid; }
.v50-d-z b.pos { color: var(--gruen); }
.v50-d-m { display: flex; gap: 1rem; justify-content: space-around; flex-wrap: wrap; }
.v50-paar { margin: 0; text-align: center; }
.v50-paar figcaption { font-size: .8rem; font-weight: 600; color: var(--petrol); margin-bottom: .4rem; }
.v50-bars { display: flex; align-items: flex-end; justify-content: center; gap: .4rem; }
.v50-bar { display: flex; flex-direction: column; align-items: center; width: 5rem; text-align: center; font-size: .75rem; gap: .25rem; }
.v50-bar b { font-size: .82rem; white-space: nowrap; }
.v50-bar-w { height: 110px; width: 100%; display: flex; align-items: flex-end; }
.v50-bar-s { display: block; width: 100%; border-radius: 6px 6px 0 0; }
.v50-bar-s.hell { background: #9aa8b5; } .v50-bar-s.dunkel { background: var(--gruen); }
.v50-pf { align-self: center; color: var(--grau); }
.v50-gruen { display: flex; gap: .7rem; align-items: flex-start; background: var(--gruen-hell); color: var(--gruen); border-radius: 10px; padding: .8rem; font-size: .92rem; margin-top: .8rem; }
.v50-gi { flex: none; display: inline-flex; }
.v50-gruen p { margin: 0; }
.v50-gruen small { display: block; margin-top: .4rem; color: var(--grau); }
.v50-nw { white-space: nowrap; }
.v50-frei-split { margin-top: .6rem; }
/* E: Versorgung */
.v50-e-zeile { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; align-items: center; }
@media (max-width: 560px) { .v50-e-zeile { grid-template-columns: 1fr; justify-items: center; } }
.v50-donut { position: relative; width: 150px; height: 150px; }
.v50-donut svg { width: 100%; height: 100%; }
.v50-donut > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.v50-arc { fill: none; stroke-width: 18; }
.v50-g1 { stroke: var(--petrol); background: var(--petrol); } .v50-g2 { stroke: #4a6d99; background: #4a6d99; } .v50-g3 { stroke: var(--gruen); background: var(--gruen); }
.v50-g4 { stroke: var(--gold); background: var(--gold); } .v50-g5 { stroke: #9aa8b5; background: #9aa8b5; }
.v50-e-l ul { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: .3rem; }
.v50-e-l li { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem; align-items: start; font-size: .88rem; }
.v50-e-l li span { display: grid; }
.v50-e-l h3 b { margin-left: auto; }
/* F, G */
.v50-f-drei { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; }
.v50-fk { background: var(--petrol-hell); border-radius: 10px; padding: .8rem; display: grid; gap: .2rem; text-align: center; justify-items: center; }
.v50-fk h3 { justify-content: center; margin: 0; }
.v50-fk .v50-gross { font-size: 1.25rem; }
.v50-fk span { color: var(--petrol); }
.v50-det { margin-top: .7rem; }
.v50-det summary { cursor: pointer; font-weight: 600; color: var(--petrol); }
.v50-chip { display: inline-block; background: var(--petrol); color: #fff; padding: .25rem .8rem; border-radius: 999px; font-weight: 600; font-size: .85rem; }
.v50-g-k { margin: .6rem 0 .2rem; font-weight: 600; }
.v50-haken { list-style: none; margin: .5rem 0; padding: 0; display: grid; gap: .4rem; font-size: .9rem; }
.v50-haken li::before { content: "✓"; color: var(--gruen); font-weight: 700; margin-right: .45rem; }
/* H: Mehr erfahren (Ein-/Ausklappen nutzt die vorhandene .hi-akk-Darstellung) */
.v50-h .hi-akk { margin: .5rem 0; }
.v50-kette { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.v50-kette li { display: grid; grid-template-columns: 2rem 1fr; gap: .6rem; }
.v50-kette p { margin: .1rem 0 0; font-size: .88rem; }
.v50-nr { width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--petrol); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.v50-tab-wrap { overflow-x: auto; }
.v50-tab { width: 100%; border-collapse: collapse; font-size: .88rem; }
.v50-tab th, .v50-tab td { padding: .4rem .5rem; border-bottom: 1px solid var(--linie); text-align: right; }
.v50-tab th:first-child, .v50-tab td:first-child { text-align: left; }
.v50-fuss { display: grid; gap: .8rem; justify-items: center; padding-bottom: 1rem; }
.v50-fuss p { font-size: .8rem; color: var(--grau); margin: 0; }
.v50-cta { background: var(--petrol); color: #fff; border: 0; border-radius: 10px; padding: .85rem 1.6rem; font: inherit; font-weight: 700; cursor: pointer; }
.v50-cta:hover { background: #0b3a73; }
/* Seitenleiste: freies Vermögensziel */
.v50-vzf { display: grid; gap: .4rem; margin: .6rem 0; font-size: .88rem; }
.v50-vzf input[type="number"] { width: 100%; }
/* V4.9.1 */
.v50-tag { font-size: .72rem; font-weight: 600; background: var(--petrol-hell); color: var(--petrol); border-radius: 999px; padding: .1rem .55rem; }
.v50-r1 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.v50-r2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.v50-r3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.v50-i { display: inline-flex; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--petrol-hell); color: var(--petrol); font-size: .72rem; font-weight: 700; align-items: center; justify-content: center; margin-right: .4rem; }
.v50-info { margin-top: .7rem; border-top: 1px solid var(--linie); padding-top: .5rem; font-size: .88rem; }
.v50-info > summary { cursor: pointer; color: var(--petrol); font-weight: 600; }
.v50-info-t { margin-top: .5rem; display: grid; gap: .5rem; }
.v50-info-t p { margin: 0; }
.v50-tile { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: center; justify-content: space-between; padding: .6rem .8rem; border-radius: 10px; background: var(--petrol-hell); min-width: 0; flex: 1 1 150px; }
.v50-tile-k { display: flex; gap: .55rem; align-items: center; min-width: 0; }
.v50-tile-ico { display: inline-flex; flex: none; color: var(--petrol); }
.v50-tile-t { display: grid; line-height: 1.25; min-width: 0; }
.v50-tile-t small { font-size: .74rem; }
.v50-tile-w { font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.v50-tile.gruen, .v50-tile.neu { background: var(--gruen-hell); } .v50-tile.gruen .v50-tile-ico, .v50-tile.neu .v50-tile-ico, .v50-tile.gruen .v50-tile-w, .v50-tile.neu .v50-tile-w { color: var(--gruen); }
.v50-tile.best .v50-tile-ico, .v50-tile.best .v50-tile-w { color: var(--petrol); }
.v50-tile.rot { background: rgba(200, 80, 70, .12); } .v50-tile.rot .v50-tile-ico, .v50-tile.rot .v50-tile-w { color: var(--rot); }
.v50-ziele-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 190px); gap: 1rem; align-items: center; }
@media (max-width: 640px) { .v50-ziele-g { grid-template-columns: 1fr; } }
.v50-z-spalte { display: grid; gap: .5rem; min-width: 0; }
.v50-z-reihe { display: flex; flex-wrap: wrap; gap: .5rem; }
.v50-gauge-w { display: grid; gap: .4rem; justify-items: center; }
.v50-b-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; margin-bottom: .3rem; }
.v50-xl { font-size: 2.1rem; font-weight: 800; color: var(--petrol); font-variant-numeric: tabular-nums; }
.v50-xl2 { font-size: 1.6rem; font-weight: 800; }
.v50-b-sub { color: var(--grau); font-size: .85rem; }
.v50-kacheln { display: flex; flex-wrap: wrap; gap: .6rem; }
.v50-chip-b { background: var(--petrol); color: #fff; padding: .15rem .7rem; border-radius: 999px; font-size: .9rem; white-space: nowrap; }
.v50-legende { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .9rem; }
.v50-legende li { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem; align-items: center; }
.v50-legende b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.v50-q-liste { display: grid; gap: .45rem; align-content: start; min-width: 0; }
.v50-q { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .6rem; align-items: center; padding: .45rem .6rem; border-radius: 10px; background: var(--petrol-hell); }
.v50-q-ico { color: var(--petrol); display: inline-flex; }
.v50-q-t { display: grid; line-height: 1.25; font-size: .9rem; min-width: 0; }
.v50-q-t small { font-size: .74rem; }
.v50-q-w { white-space: nowrap; font-variant-numeric: tabular-nums; }
.v50-q.summe { background: var(--gruen-hell); } .v50-q.summe .v50-q-w, .v50-q.summe .v50-q-ico { color: var(--gruen); }
.v50-q.zulage { background: transparent; border: 1px dashed var(--linie); }
.v50-nomtag { font-weight: 400; }
.v50-vorschau { font-size: .78rem; font-weight: 400; background: var(--gold); color: #14233a; border-radius: 999px; padding: .1rem .6rem; }
.v50-trenn li { grid-template-columns: minmax(0, 1fr); }
.v50-trenn li b { overflow-wrap: anywhere; }
.v50-e-zeile { grid-template-columns: 150px minmax(0, 1fr); }
.v50-e-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem .6rem; font-weight: 700; margin-top: .4rem; }
.v50-e-kopf b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.v50-e-l li b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.v50-e-l li span { overflow-wrap: break-word; min-width: 0; }
.v50-e-zus { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem .6rem; background: var(--gruen-hell); color: var(--gruen); border-radius: 10px; padding: .45rem .7rem; font-weight: 600; margin-top: .3rem; }
.v50-e-zus b { white-space: nowrap; }
.v50-fk b { overflow-wrap: anywhere; }
.v50-bb-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1rem; align-items: start; }
.v50-bb-var { border: 1px solid var(--linie); border-radius: 12px; padding: .8rem; display: grid; gap: .5rem; min-width: 0; }
.v50-bb-b { opacity: .7; border-style: dashed; }
.v50-bb-ziel { margin: 0; font-size: .9rem; }
.v50-bb-hinweis { display: grid; gap: .1rem; padding: .6rem .8rem; border-radius: 10px; background: var(--gruen-hell); color: var(--gruen); }
.v50-bb-hinweis.rot { background: rgba(200, 80, 70, .12); color: var(--rot); }
.v50-sub { margin: -.4rem 0 .6rem; color: var(--grau); font-size: .88rem; }
/* V4.9.2 · Textumbrüche (G-1): nichts abschneiden, Betrag steht immer eigenständig */
.v50-tile { flex: 1 1 210px; }
.v50-tile-t, .v50-tile-t b, .v50-tile-t small, .v50-q-t b, .v50-q-t small, .v50-fk h3, .v50-fk small, .v50-e-kopf span, .v50-legende span { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: break-word; hyphens: auto; }
.v50-tile-w { margin-left: auto; }
.v50-diff { flex-wrap: nowrap; }
.v50-diff-i { display: grid; gap: .25rem; min-width: 0; flex: 1; }
.v50-diff-z { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .1rem .8rem; }
.v50-diff-z span { min-width: 0; overflow-wrap: break-word; }
.v50-delta { font-size: 1.3rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.v50-delta.mi { color: var(--tinte); }
.v50-diff-n { margin-top: .3rem; color: inherit; opacity: .85; }
.v50-diff small { color: inherit; opacity: .85; }
.v50-gruen-t { display: block; margin-bottom: .2rem; }
/* Dunkelmodus */
html[data-theme="dark"] .v50-karte, html[data-theme="dark"] .v50-ziele { background: var(--flaeche); }
html[data-theme="dark"] .v50 h1, html[data-theme="dark"] .v50 h2, html[data-theme="dark"] .v50-gross, html[data-theme="dark"] .v50-g-zahl, html[data-theme="dark"] .v50-ring b { color: var(--tinte); }
html[data-theme="dark"] .v50-z, html[data-theme="dark"] .v50-fk { background: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .v50-z.gruen, html[data-theme="dark"] .v50-ueb.ok, html[data-theme="dark"] .v50-gruen { background: rgba(60, 160, 110, .18); color: #8fd6b0; }
html[data-theme="dark"] .v50-z.rot { background: rgba(200, 80, 70, .2); }
html[data-theme="dark"] .v50-ueb.offen { background: rgba(193, 167, 93, .18); color: #e8d48c; }
html[data-theme="dark"] .v50-seg button { color: var(--tinte); }
html[data-theme="dark"] .v50-seg button[aria-pressed="true"] { background: var(--gold); color: #14233a; }
html[data-theme="dark"] .v50-cta { background: var(--gold); color: #14233a; }
html[data-theme="dark"] .v50-g1 { stroke: #8fb4e8; background: #8fb4e8; }
@media print { .v50-seg, .v50-sw { display: none; } }
html[data-theme="dark"] .v50-tile, html[data-theme="dark"] .v50-q { background: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .v50-tile.gruen, html[data-theme="dark"] .v50-tile.neu, html[data-theme="dark"] .v50-q.summe, html[data-theme="dark"] .v50-e-zus, html[data-theme="dark"] .v50-bb-hinweis { background: rgba(60, 160, 110, .18); color: #8fd6b0; }
html[data-theme="dark"] .v50-tile.gruen .v50-tile-w, html[data-theme="dark"] .v50-tile.neu .v50-tile-w, html[data-theme="dark"] .v50-tile.gruen .v50-tile-ico, html[data-theme="dark"] .v50-tile.neu .v50-tile-ico { color: #8fd6b0; }
html[data-theme="dark"] .v50-xl, html[data-theme="dark"] .v50-tile-w, html[data-theme="dark"] .v50-tile.best .v50-tile-w, html[data-theme="dark"] .v50-tile.best .v50-tile-ico { color: var(--tinte); }
html[data-theme="dark"] .v50-s-best { background: #8fb4e8; }
