/* Vorschlag B – Bereich Finanzen: Finanz-Themenseiten (Inhalt 1:1 aus gronau-epe.net, _bau/genet/) und die Hüllen des
   Offenen Haushalts. Geladen nur auf diesen Seiten, nach stil.css. Nur Hausfarben für Flächen und Bedienelemente; die
   Datenfarben der Grafiken (Ist/vorläufig/Plan, Aufgabenfelder) bleiben wie im Original. */

/* ---------- Reiter des Offenen Haushalts (Unternavigation: stil.css, Mega-Panel) ---------- */
@media (max-width:599px){.hh-reiter a{padding:0 12px;font-size:.95rem}}

/* ---------- Seitenkopf der Themenseiten ---------- */
.seitenkopf .kopf-stand{color:#fff;font-size:.9rem;margin:0;max-width:46em;opacity:1}
.seitenkopf .kopf-stand time{font-weight:800}

/* ---------- Themenseite: Raster mit „Auf dieser Seite“ und „Weitere Finanzthemen“ links ---------- */
.fthema{--leit:var(--stadtblau);--leit-hell:var(--stadtblau-hell)}
.fthema.leit-gruen{--leit:var(--gruen);--leit-hell:var(--gruen-hell)}
.fthema .thema-raster{display:grid;gap:28px;grid-template-columns:minmax(0,1fr)}
.fthema .thema-text{min-width:0}
.fthema .thema-text>p,.fthema .thema-text>ul,.fthema .thema-text>ol,.fthema .thema-text section>p,.fthema .thema-text section>ul,.fthema .thema-text section>ol{max-width:var(--lese)}
.fthema .thema-text section.quellen>ol,.fthema .thema-text section.offen>ul{max-width:none}
.inhalt-auf{border:1px solid var(--linie);background:#fff}
.inhalt-auf summary{cursor:pointer;min-height:48px;display:flex;align-items:center;gap:8px;padding:0 16px;font-weight:800;list-style:none}
.inhalt-auf summary::-webkit-details-marker{display:none}
.inhalt-auf summary::after{content:"+";margin-left:auto;font-size:1.4rem;font-weight:400;color:var(--blau)}
.inhalt-auf[open] summary::after{content:"–"}
.inhalt-auf summary small{font-weight:400;color:var(--leise);font-size:.86rem}
.leiste-liste{list-style:none;margin:0;padding:0 16px 10px}
.leiste-liste li{border-top:1px solid var(--linie-2);margin:0}
.leiste-liste a{display:flex;align-items:center;min-height:44px;padding:6px 0;font-size:.92rem;line-height:1.35;color:var(--text);text-decoration:none}
.leiste-liste a:hover{color:var(--blau);text-decoration:underline}
.leiste-liste a[aria-current=page]{font-weight:800;color:var(--tinte);box-shadow:inset 4px 0 0 var(--leit);padding-left:12px}
.weitere{border-top:2px solid var(--tinte);padding-top:10px}
.weitere .leiste-liste{padding:0}
.leiste-titel{font:800 .8rem/1.3 var(--f);letter-spacing:.1em;text-transform:uppercase;color:var(--leise);margin:0 0 6px}
@media (min-width:1000px){
  .fthema .thema-raster{grid-template-columns:minmax(220px,270px) minmax(0,1fr);grid-template-rows:auto auto 1fr;column-gap:clamp(40px,4vw,80px);row-gap:28px}
  .inhalt-auf{grid-column:1;grid-row:1;border:0;background:none;border-top:2px solid var(--tinte)}
  .inhalt-auf summary{pointer-events:none;padding:10px 0 4px;min-height:0;font:800 .8rem/1.3 var(--f);letter-spacing:.1em;text-transform:uppercase;color:var(--leise)}
  .inhalt-auf summary::after,.inhalt-auf summary small{display:none}
  .inhalt-auf .leiste-liste{padding:0}
  .weitere{grid-column:1;grid-row:2;align-self:start}
  .fthema .thema-text{grid-column:2;grid-row:1 / span 3}
}

/* ---------- Artikelinhalt ---------- */
.fthema h2{font-size:clamp(1.4rem,1vw + 1.1rem,1.9rem);margin:0 0 .6em;scroll-margin-top:20px}
.fthema h3{font-size:1.18rem;margin:1.6em 0 .5em}
.fthema section{margin-top:44px}
.fthema section>h2:first-child{display:flex;align-items:center;gap:12px;border-top:2px solid var(--tinte);padding-top:14px}
.fthema section>h2:first-child::before{content:"";flex:none;width:.55em;height:.78em;background:var(--leit);clip-path:polygon(42% 0,100% 0,58% 100%,0 100%)}
.fthema li{margin:6px 0}
.fthema blockquote{margin:16px 0;padding:14px 18px;background:var(--flaeche);border-left:6px solid var(--leit);max-width:var(--lese)}
.fthema .kurz{position:relative;background:var(--flaeche);border-top:5px solid var(--leit);padding:18px 22px 8px;margin-bottom:8px}
.fthema .kurz h2{font-size:1.25rem;margin:0 0 8px}
.fthema .kurz ul{margin:0 0 10px;padding-left:1.2em}
.fthema .zeitleiste{list-style:none;border-left:3px solid var(--linie);margin:16px 0 16px 6px;padding:0 0 0 22px;display:grid;gap:16px}
.fthema .zeitleiste div{position:relative}
.fthema .zeitleiste div::before{content:"";position:absolute;left:-30px;top:.35em;width:13px;height:13px;background:var(--leit);clip-path:polygon(35% 0,100% 0,65% 100%,0 100%)}
.fthema .zeitleiste b{display:block;color:var(--stadtblau);font-weight:800;font-variant-numeric:tabular-nums}
.fthema section.offen{background:var(--flaeche);padding:16px 22px 6px}
.fthema section.quellen{background:var(--stadtblau-hell);border-top:5px solid var(--stadtblau);padding:16px 22px 8px;font-size:.92rem}
.fthema section.offen>h2:first-child,.fthema section.quellen>h2:first-child{border:0;padding-top:0;font-size:1.25rem}
.fthema section.offen>h2:first-child::before,.fthema section.quellen>h2:first-child::before{display:none}
.fthema .quellen li{margin:8px 0;overflow-wrap:anywhere}
.fthema .schritte{list-style:decimal;display:block;padding-left:1.4em;margin:0 0 1em;max-width:var(--lese)}
.fthema .schritte li{display:list-item;margin:10px 0;font-size:inherit;line-height:inherit}
.fthema .schritte li::before{content:none}
.fthema .schritte b{display:inline}
.fthema .portale{background:var(--stadtblau-hell);border-top:5px solid var(--stadtblau);padding:16px 22px 6px}
.fthema .bald{background:var(--gelb-hell);padding:12px 16px;margin:14px 0;color:var(--tinte);max-width:var(--lese)}
.fthema .beispiel{background:var(--stadtblau-hell);padding:16px 20px;margin:16px 0}
.fthema .beispiel h3{margin:0 0 6px;font-size:1.1rem}
.fthema .beispiel p{margin:0}
.fthema .hinweis{font-size:.88rem;color:var(--leise);margin:6px 0 0;line-height:1.5}
.fthema .hinweis .kontakt-link{display:inline;min-height:0;padding:0;border:0;background:none;color:var(--blau);font:inherit;text-decoration:underline;text-underline-offset:.18em;cursor:pointer}
.fthema .datei-art{font-weight:400;white-space:nowrap}
.fthema .rede-zitat{margin:24px 0;padding:4px 0 4px 24px;border-left:6px solid var(--leit);background:none;font:400 clamp(1.2rem,.9vw + 1rem,1.6rem)/1.4 var(--f-fein);color:var(--tinte);max-width:34em}
.fthema .rede-zitat footer{font:400 .88rem/1.4 var(--f);color:var(--leise);margin-top:8px}
.fthema .rede-schritte{counter-reset:s;list-style:none;padding:0;display:grid;gap:10px;max-width:var(--lese)}
.fthema .rede-schritte li{counter-increment:s;position:relative;padding:12px 14px 12px 60px;background:#fff;border:1px solid var(--linie);margin:0}
.fthema .rede-schritte li::before{content:counter(s);position:absolute;left:14px;top:11px;width:32px;height:32px;background:var(--stadtblau);color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;clip-path:polygon(18% 0,100% 0,82% 100%,0 100%)}
.fthema .wortprotokoll{margin-top:16px;border:1px solid var(--linie);background:#fff;padding:4px 18px;max-width:var(--lese)}
.fthema .wortprotokoll summary,.fthema .erm-tabelle summary{cursor:pointer;font-weight:800;color:var(--blau);min-height:44px;display:flex;align-items:center}
.fthema .wortprotokoll p{font-size:.96rem;line-height:1.65}

/* Tabellen */
.fthema table{min-width:0;font-size:.94rem;background:#fff}
.fthema th,.fthema td{padding:8px 10px}
.fthema caption{text-align:left;font-weight:800;padding:4px 0 6px;caption-side:top}
.fthema .tabelle-rollen{overflow-x:auto;margin:12px 0;border:1px solid var(--linie)}
.fthema .tabelle-rollen:focus-visible{outline:3px solid var(--tinte);outline-offset:2px}
.fthema .tabelle-rollen table{min-width:520px}
.fthema .tabelle-rollen caption{padding:10px 12px 6px}

/* Grafiken (SVG im Text): Rahmen wie .grafikrahmen, Datenfarben wie im Original */
.fthema .erm-grafik{margin:20px 0;padding:16px 16px 12px;border:1px solid var(--linie);background:#fff}
.fthema .erm-grafik figcaption b{display:block;font:800 1.15rem/1.25 var(--f);color:var(--tinte)}
.fthema .erm-grafik figcaption span{display:block;color:var(--leise);font-size:.88rem;margin-top:2px}
.fthema .erm-legende{list-style:none;padding:0;margin:10px 0 4px;display:flex;flex-wrap:wrap;gap:4px 16px;font-size:.88rem;color:var(--tinte)}
.fthema .erm-legende li{display:flex;align-items:center;gap:6px;margin:0}
.fthema .erm-sw{display:inline-block;width:14px;height:14px}
.fthema .erm-sw.dunkel{background:#004da8}
.fthema .erm-sw.hell{background:#6fa3e0}
.fthema .erm-sw.punkt{width:10px;height:10px;border-radius:50%;background:#1e1f1f;box-shadow:0 0 0 2px #fff,0 0 0 3px var(--linie)}
.fthema .erm-sw.kp-gruen{background:#009636}
.fthema .erm-sw.ku-vorl{background:#5a8bcb}
.fthema .erm-sw.ku-plan{background:#a9c3e6}
.fthema .erm-sw.ku-ank{background:repeating-linear-gradient(45deg,#fff 0 3px,#b3c9e8 3px 5px);outline:1.5px dashed #004da8;outline-offset:-1.5px}
.fthema .erm-sw.as-schlechter{background:#8a8d8f}
.fthema .erm-sw.hh27-raute{width:10px;height:10px;background:#1e1f1f;transform:rotate(45deg);margin:0 2px}
.fthema .erm-svg{display:block;width:100%;max-width:520px;height:auto;margin:4px 0}
.fthema .erm-svg text,.fthema .ku-svg text,.fthema .as-svg text,.fthema .hh27-svg text{font-family:"Mulish","Helvetica Neue",Arial,sans-serif;fill:#575757}
.fthema .erm-svg text{font-size:12.5px}
.fthema .erm-svg .erm-jahr{fill:#111;font-weight:700}
.fthema .erm-svg .erm-wert{fill:#111;font-size:12px}
.fthema .erm-zeile:hover rect[fill="transparent"],.fthema .ku-jahr:hover rect[fill="transparent"],.fthema .as-zeile:hover rect[fill="transparent"]{fill:#f4f4f4}
.fthema .erm-quelle{font-size:.88rem;color:var(--leise);margin:6px 0 0}
.fthema .erm-tabelle{margin-top:10px}
.fthema .erm-tabelle table{font-size:.88rem;margin-top:8px;min-width:0}
.fthema .erm-tabelle td{text-align:right;white-space:nowrap}
.fthema .erm-tabelle th[scope=col],.fthema .as-ueberblick th[scope=col]{background:var(--stadtblau-hell);color:var(--tinte)}
.fthema .erm-tabelle td.links,.fthema .erm-tabelle-fest td.links{text-align:left;white-space:normal}
.fthema .erm-tabelle-fest{font-size:.94rem;margin:10px 0}
.fthema .erm-tabelle-fest td{white-space:nowrap}
.fthema .ku-svg,.fthema .as-svg{display:block;width:100%;max-width:620px;height:auto;margin:4px 0}
.fthema .ku-svg text{font-size:12px}
.fthema .ku-svg .ku-panel{fill:#111;font-weight:700;font-size:13px}
.fthema .ku-svg .ku-wert{fill:#111;font-weight:600;font-size:12px}
.fthema .ku-svg .fett{font-weight:800;fill:#111}
.fthema .ku-svg .ku-marke{fill:#111;font-weight:800;font-size:12px}
.fthema .ku-svg .ku-ank{fill:#004da8;font-weight:700;font-size:12px}
.fthema .as-svg text{font-size:12px}
.fthema .as-svg .as-name{fill:#111}
.fthema .as-svg .as-wert{fill:#111;font-weight:700}
.fthema .as-svg .as-gruppe{fill:#004da8;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.fthema .as-svg .as-name,.fthema .as-svg .as-gruppe,.fthema .as-svg .as-wert{paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round}
.fthema .as-ueberblick{font-size:.94rem}
.fthema .as-ueberblick td{text-align:right;white-space:nowrap}
.fthema .as-ueberblick tr.summe th,.fthema .as-ueberblick tr.summe td{font-weight:800;border-top:2px solid var(--stadtblau)}
.fthema .as-rangliste li{margin:4px 0}
.fthema .hh27-quer{display:block}
.fthema .hh27-hoch{display:none}
.fthema .hh27-svg{display:block;width:100%;height:auto;margin:8px 0 4px}
.fthema .hh27-svg text{font-size:12.5px}
.fthema .hh27-svg .w{fill:#111;font-weight:700;font-size:13px;paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round}
.fthema .hh27-svg .n{fill:#111;font-size:14px}
.fthema .hh27-svg .j{fill:#111;font-weight:700;font-size:13.5px}
.fthema .hh27-svg .z{font-size:12px}
.fthema .hh27-svg .b{fill:#004da8;font-weight:800;font-size:12px;letter-spacing:.06em;text-transform:uppercase}
.fthema .hh27-svg .e{font-size:12px}
.fthema .hh27-folie{margin:20px 0;border:1px solid var(--linie);background:#fff;padding:clamp(8px,1.2vw,16px)}
.fthema .hh27-folie img{display:block;width:100%;height:auto}
.fthema .hh27-folie figcaption{font-size:.86rem;color:var(--leise);margin-top:8px;line-height:1.45}
.fthema .hh27-kacheln{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 6px}
.fthema .hh27-kachel{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:16px 12px 14px;background:#fff;border:1px solid var(--linie);border-top:4px solid var(--stadtblau)}
.fthema .hh27-kachel svg{width:100%;max-width:120px;height:72px;margin-bottom:6px}
.fthema .hh27-kachel b{font:800 1.35rem/1.15 var(--f);color:var(--tinte)}
.fthema .hh27-kachel .name{font-weight:800;color:var(--gruen-text);font-size:.88rem;line-height:1.25}
.fthema .hh27-kachel small{color:var(--leise);font-size:.88rem;line-height:1.35;margin-top:2px}
@media (min-width:760px){.fthema .hh27-kacheln{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:640px){.fthema .hh27-quer{display:none}.fthema .hh27-hoch{display:block}}
@media (max-width:600px){
  .fthema .erm-svg text{font-size:15px}.fthema .erm-svg .erm-wert{font-size:14px}
  .fthema .ku-svg text{font-size:13px}.fthema .ku-svg .ku-panel{font-size:14px}.fthema .ku-svg .ku-wert{font-size:12.5px}
  .fthema .as-svg text,.fthema .as-svg .as-name,.fthema .as-svg .as-wert,.fthema .as-svg .as-gruppe{font-size:13px}
}
@media print{.inhalt-auf,.weitere{display:none!important}}

/* ---------- Offener Haushalt: Einstieg mit „Kurz erklärt #1“ ---------- */
.hh-seite{padding-top:clamp(24px,3vw,44px)}
.hh-start{display:grid;gap:24px;margin:0 0 8px}
.hh-start .hh-einleitung{max-width:var(--lese)}
.hh-start .lern{margin:0;background:var(--flaeche);border-top:5px solid var(--stadtblau);padding:14px 16px 10px}
.hh-start .lern .yt{margin:0 0 10px}
.hh-start .lern figcaption{font-size:.9rem;line-height:1.45}
.hh-start .lern figcaption b{display:block;font:800 1.05rem/1.3 var(--f);color:var(--tinte)}
@media (min-width:1000px){.hh-start{grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr);gap:clamp(28px,3vw,56px);align-items:start}}

/* ---------- Kurz erklärt (Finanzen) ---------- */
.kurz-videos{display:grid;gap:36px;grid-template-columns:minmax(0,1fr)}
@media (min-width:900px){.kurz-videos{grid-template-columns:1fr 1fr;gap:clamp(24px,3vw,48px)}}
.kurz-videos figure{margin:0}
.kurz-videos figcaption{font-size:.95rem;line-height:1.5}
.kurz-videos figcaption b{display:block;font:800 1.2rem/1.3 var(--f);color:var(--tinte);margin-bottom:4px}
.kurz-videos .film-dach{display:block;font:800 .72rem/1.2 var(--f);letter-spacing:.09em;text-transform:uppercase;color:var(--leise);margin-bottom:6px}
