/* Overlay (im App-Shell) + gemeinsames Layout der Lernmodule. */

/* ---- Overlay, das das Modul im iframe zeigt ---- */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(12, 40, 40, .55);
  display: flex; align-items: stretch; justify-content: center;
  padding: 0; animation: einblenden .22s ease;
}
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }
.overlay .rahmen {
  background: var(--bg, #f4f7f7); width: 100%; max-width: 980px; margin: 0 auto;
  display: flex; flex-direction: column; box-shadow: 0 0 60px rgba(0,0,0,.3);
  animation: hoch .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes hoch { from { transform: translateY(18px); opacity: .6; } to { transform: none; opacity: 1; } }
.overlay .leiste {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--line, #e2eaea);
}
.overlay .leiste .titel { font-weight: 600; font-size: 15px; }
.overlay iframe { flex: 1; width: 100%; border: 0; background: var(--bg, #f4f7f7); }
.overlay .schliessen { background: none; border: 0; cursor: pointer; font-size: 22px; line-height: 1; color: var(--muted, #6b7f7f); padding: 4px 8px; }
.overlay .schliessen:hover { color: var(--text, #1c2b2b); }

/* ---- Modul-Innenlayout (im iframe) ---- */
.modul-doc { max-width: 820px; margin: 0 auto; padding: 24px 20px 64px; }
.modul-doc h1 { font-size: 24px; margin: 0 0 4px; }
.modul-doc .lead { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.modul-doc section { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 16px 0; box-shadow: 0 2px 10px rgba(15,110,110,.06); }
.modul-doc h2 { font-size: 17px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.modul-doc h2 .ic { font-size: 18px; }
.modul-doc p { margin: 8px 0; }
.modul-doc ul { margin: 8px 0; padding-left: 20px; }
.modul-doc li { margin: 4px 0; }

/* Rollen-Karte (SVG) */
.karte-wrap { position: relative; }
.karte-schalter { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.karte-schalter button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 13px; color: var(--muted); transition: all .15s; }
.karte-schalter button.active { background: var(--petrol); color: #fff; border-color: var(--petrol); }
svg.rollenkarte { width: 100%; height: auto; display: block; }
svg.rollenkarte .knoten rect { fill: #fff; stroke: var(--petrol); stroke-width: 1.5; rx: 10; transition: fill .15s, stroke .15s; cursor: pointer; }
svg.rollenkarte .knoten:hover rect, svg.rollenkarte .knoten.aktiv rect { fill: #eef6f6; stroke: var(--gruen); stroke-width: 2.5; }
svg.rollenkarte .knoten text { font-size: 12px; fill: var(--text); pointer-events: none; font-weight: 600; }
svg.rollenkarte .knoten text.sub { font-size: 10px; fill: var(--muted); font-weight: 400; }
svg.rollenkarte line.verb { stroke: #cfdede; stroke-width: 2; }
svg.rollenkarte line.verb.an { stroke: var(--petrol); stroke-width: 2.5; }
svg.rollenkarte .fluss { fill: var(--gruen); }
.rollen-detail { margin-top: 12px; background: #eef6f6; border-radius: 10px; padding: 14px; font-size: 14px; min-height: 48px; border: 1px solid #d6e8e8; }
.rollen-detail strong { color: var(--petrol-dark); }

/* Quiz */
.frage { margin: 14px 0; }
.frage .q { font-weight: 600; margin-bottom: 8px; }
.opt { display: block; width: 100%; text-align: left; padding: 10px 12px; margin: 6px 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 14px; transition: all .12s; }
.opt:hover { border-color: var(--petrol); }
.opt.richtig { border-color: var(--gruen); background: #eafaf1; }
.opt.falsch { border-color: #e4a0a0; background: #fdeeee; }
.opt:disabled { cursor: default; }
.quiz-ergebnis { margin-top: 12px; font-weight: 600; }

.praxis { border-left: 4px solid var(--gruen); }
.abschluss-leiste { position: sticky; bottom: 0; background: linear-gradient(0deg, var(--bg) 70%, transparent); padding: 16px 0; margin-top: 10px; display: flex; justify-content: center; }
button.abschluss { padding: 13px 24px; font-size: 16px; font-weight: 600; color: #fff; border: 0; border-radius: 10px; cursor: pointer; background: linear-gradient(135deg, var(--petrol), var(--petrol-dark)); transition: transform .12s, box-shadow .2s, opacity .2s; }
button.abschluss:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15,110,110,.28); }
button.abschluss:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }

/* ---- D1: Preis-Schichttorte ---- */
.szenario { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.szenario button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 13px; color: var(--muted); transition: all .15s; }
.szenario button.active { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.stack-wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-end; }
.stack { width: 130px; height: 360px; display: flex; flex-direction: column-reverse; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(15,110,110,.14); }
.seg { color: #fff; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; min-height: 2px; transition: height .55s cubic-bezier(.2,.8,.2,1); text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.legende { flex: 1; min-width: 260px; }
.legende .row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.legende .row .name { display: flex; align-items: center; }
.legende .sw { width: 13px; height: 13px; border-radius: 3px; display: inline-block; margin-right: 8px; }
.legende .wert { font-variant-numeric: tabular-nums; color: var(--text); }
.gesamt { font-weight: 700; font-size: 20px; margin-top: 12px; color: var(--petrol-dark); }
.regler { margin: 16px 0 4px; }
.regler label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.regler input[type=range] { width: 100%; accent-color: var(--petrol); }
.callout { background: #eef6f6; border: 1px solid #d6e8e8; border-radius: 10px; padding: 12px 14px; margin-top: 14px; font-size: 13px; }
.disclaimer { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---- H3: Einwand-Trainer ---- */
.einwaende { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.einwand-chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 13px; color: var(--text); transition: all .15s; }
.einwand-chip:hover { border-color: var(--petrol); transform: translateY(-1px); }
.einwand-chip.active { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.einwand-detail { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: 0 2px 10px rgba(15,110,110,.06); animation: hoch .25s cubic-bezier(.2,.8,.2,1); }
.technik-badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--petrol), var(--gruen)); padding: 3px 10px; border-radius: 6px; margin-bottom: 8px; }
.einwand-detail .zitat { font-style: italic; color: var(--muted); margin: 6px 0; }
.einwand-detail .antwort { background: #eef6f6; border-left: 3px solid var(--gruen); border-radius: 8px; padding: 10px 12px; margin-top: 10px; }
.einwand-detail .warum { font-size: 13px; color: var(--muted); margin-top: 10px; }
.schritte { counter-reset: s; list-style: none; padding-left: 0; }
.schritte li { counter-increment: s; position: relative; padding-left: 38px; margin: 10px 0; }
.schritte li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--petrol), var(--gruen)); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }

/* ---- K1: interaktive Musterrechnung ---- */
.rechnung { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(15,110,110,.06); }
.rechnung tr.pos { cursor: pointer; transition: background .12s; }
.rechnung tr.pos:hover { background: #f2f8f8; }
.rechnung tr.pos.active { background: #eef6f6; }
.rechnung td { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: middle; }
.rechnung td.betrag { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rechnung tr.summe td { font-weight: 700; background: #fafcfc; border-bottom: 0; }
.rechnung .rtitel { background: #eef6f6; color: var(--petrol-dark); font-weight: 600; font-size: 13px; }
.badge-b { font-size: 10px; padding: 2px 7px; border-radius: 5px; font-weight: 600; white-space: nowrap; }
.badge-b.ja { background: #eafaf1; color: #2f7a4e; }
.badge-b.teils { background: #fff3dc; color: #9a6b00; }
.badge-b.nein { background: #eef1f1; color: #6b7f7f; }
.pos-detail { margin-top: 12px; background: #eef6f6; border: 1px solid #d6e8e8; border-radius: 10px; padding: 14px; min-height: 60px; animation: hoch .2s cubic-bezier(.2,.8,.2,1); }
.pos-detail .kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-weight: 600; color: var(--petrol-dark); }
.pos-detail .tipp { margin-top: 8px; font-size: 13px; }
.kennzahlen { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.kennzahl { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.kennzahl b { display: block; font-size: 18px; color: var(--petrol-dark); font-variant-numeric: tabular-nums; }

/* ---- K2: Lastgang / Peak-Shaving ---- */
.lastgang { width: 100%; height: auto; display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.lastgang .achse { stroke: #e2eaea; stroke-width: 1; }
.lastgang .label { font-size: 10px; fill: var(--muted); }
.lastgang .cap { stroke: var(--petrol-dark); stroke-width: 2; stroke-dasharray: 6 4; }
.lastgang .caplabel { font-size: 11px; fill: var(--petrol-dark); font-weight: 600; }
.k2-ersparnis { font-weight: 700; font-size: 18px; color: var(--petrol-dark); margin-top: 10px; }

/* ---- A1: Wasser-Maschine (Spannung/Strom/Leistung) ---- */
.wasser { width: 100%; height: auto; display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.wasser .tankw { fill: rgba(31,138,138,.10); stroke: var(--petrol); stroke-width: 2; }
.wasser .fill { fill: rgba(31,138,138,.45); transition: y .25s ease, height .25s ease; }
.wasser .rohr { stroke: #b9cccc; stroke-width: 14; stroke-linecap: round; }
.wasser .tropfen { fill: var(--petrol); }
.wasser .rad { fill: #eef6f6; stroke: var(--petrol); stroke-width: 2; }
.wasser .speiche { stroke: var(--petrol); stroke-width: 2; }
.wasser .lbl { font-size: 12px; fill: var(--muted); }
.wasser .lblw { font-size: 13px; font-weight: 700; fill: var(--petrol-dark); }
.formel { font-size: 18px; font-weight: 700; text-align: center; margin: 14px 0 4px; color: var(--text); }
.formel .u { color: var(--petrol); }
.formel .i { color: #1f8a7a; }
.formel .p { color: #d98f3d; }
.regler-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .regler-paar { grid-template-columns: 1fr; } }

/* ---- A2: Zwei-Posten-Rechner (Arbeit vs Leistung) ---- */
.hbar-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.hbar-label { width: 160px; font-size: 13px; color: var(--text); flex-shrink: 0; }
.hbar-track { flex: 1; background: var(--line); border-radius: 999px; height: 28px; overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 999px; transition: width .55s cubic-bezier(.2,.8,.2,1); display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; min-width: 2px; }
.hbar-fill.arbeit { background: linear-gradient(90deg, var(--petrol), #1f8a7a); }
.hbar-fill.leistung { background: linear-gradient(90deg, #e0a44a, #d98f3d); }
.hbar-gesamt { font-weight: 700; font-size: 18px; color: var(--petrol-dark); margin-top: 12px; }
.hbar-insight { background: #eef6f6; border: 1px solid #d6e8e8; border-radius: 10px; padding: 12px 14px; margin-top: 12px; font-size: 13px; }

/* ---- F1: SLP vs RLM ---- */
.f1-typ { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 6px; }
.f1-typ .big { font-size: 22px; font-weight: 800; }
.f1-typ .big.slp { color: var(--petrol); }
.f1-typ .big.rlm { color: #d98f3d; }
.f1-typ .sub { color: var(--muted); font-size: 13px; }
.f1-facts { width: 100%; border-collapse: collapse; margin-top: 10px; }
.f1-facts td { padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: top; }
.f1-facts td:first-child { color: var(--muted); width: 42%; }
.f1-facts td:last-child { font-weight: 600; }

/* ---- G1: Tarif-Vergleich ---- */
.tarif-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
@media (max-width: 580px) { .tarif-grid { grid-template-columns: 1fr; } }
.tarif-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; box-shadow: 0 2px 10px rgba(15,110,110,.06); transition: border-color .2s, box-shadow .2s; }
.tarif-card.best { border-color: var(--gruen); box-shadow: 0 6px 18px rgba(76,175,125,.18); }
.tarif-card h4 { margin: 0 0 2px; font-size: 15px; }
.tarif-card .sub { color: var(--muted); font-size: 12px; min-height: 30px; }
.tarif-price { font-size: 26px; font-weight: 800; color: var(--petrol-dark); font-variant-numeric: tabular-nums; margin: 6px 0; }
.tarif-price small { font-size: 13px; font-weight: 600; color: var(--muted); }
.risk { font-size: 11px; padding: 2px 8px; border-radius: 6px; font-weight: 700; }
.risk.low { background: #eafaf1; color: #2f7a4e; }
.risk.mid { background: #fff3dc; color: #9a6b00; }
.risk.high { background: #fdeeee; color: #c0392b; }
.best-tag { display: inline-block; font-size: 10px; font-weight: 700; color: #2f7a4e; margin-left: 6px; }

/* ---- B1 Spannungsebenen ---- */
.b1-wrap { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 18px; align-items: start; margin: 12px 0; }
.b1-pyr { width: 100%; height: auto; display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.b1-pyr .b1-lbl { font-size: 13px; font-weight: 700; fill: #fff; pointer-events: none; }
.b1-pyr .b1-lbl2 { font-size: 11px; fill: #fff; opacity: .92; pointer-events: none; }
.b1-pyr .b1-band:hover polygon { fill-opacity: .85; }
.b1-detail { background: #eef6f6; border: 1px solid #d6e8e8; border-radius: 12px; padding: 14px 16px; min-height: 180px; animation: hoch .2s cubic-bezier(.2,.8,.2,1); }
.b1-dkopf { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.b1-drolle { font-size: 13px; color: var(--text); margin-bottom: 10px; }
.b1-dtab { width: 100%; border-collapse: collapse; }
.b1-dtab td { padding: 7px 8px; border-bottom: 1px solid #dceaea; font-size: 13px; vertical-align: top; }
.b1-dtab td:first-child { color: var(--muted); width: 38%; }
.b1-netz { margin-top: 16px; }
.b1-netz-kopf { font-weight: 600; color: var(--petrol-dark); margin-bottom: 8px; }
.b1-hint { font-weight: 400; color: var(--muted); font-size: 12px; }
.b1-nbar-row { display: flex; align-items: center; gap: 10px; margin: 7px 0; padding: 4px 6px; border-radius: 8px; transition: background .2s; }
.b1-nbar-row.on { background: #eef6f6; }
.b1-nbar-lbl { width: 130px; font-size: 13px; flex-shrink: 0; }
.b1-nbar-track { flex: 1; background: var(--line); border-radius: 999px; height: 24px; overflow: hidden; }
.b1-nbar-fill { height: 100%; border-radius: 999px; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; min-width: 2px; transition: width .55s cubic-bezier(.2,.8,.2,1); }
.b1-merk { background: #fff3dc; border: 1px solid #f0dcae; border-radius: 10px; padding: 12px 14px; margin-top: 12px; font-size: 13px; }
@media (max-width: 640px) { .b1-wrap { grid-template-columns: 1fr; } }

/* ---- E1 Netzentgelte / §19 ---- */
.hbar-fill.e1-std { background: linear-gradient(90deg, #8aa0a0, #6b7f7f); }
.hbar-fill.e1-red { background: linear-gradient(90deg, var(--gruen), #2f7a4e); }
.k2-ersparnis { font-weight: 700; font-size: 18px; color: var(--petrol-dark); margin-top: 10px; }

/* ---- I1 Erneuerbare & Volatilität ---- */
.i1-chart { margin-top: 4px; }
.i1-legende { display: flex; gap: 16px; flex-wrap: wrap; margin: 10px 0 2px; font-size: 12px; color: var(--muted); }
.i1-legende span { display: inline-flex; align-items: center; gap: 6px; }
.i1-legende .sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.i1-legende .sw.solar { background: rgba(233,185,73,.80); }
.i1-legende .sw.wind { background: rgba(31,138,138,.70); }
.i1-legende .sw.surplus { background: rgba(76,175,125,.70); }
.i1-legende .sw.last { background: transparent; border: 0; height: 0; width: 18px; border-top: 2px dashed #334; border-radius: 0; }

/* ---- J1 Positionierung ---- */
.j1-grid .tarif-card { box-shadow: none; }
.j1-txt { font-size: 13px; color: var(--text); line-height: 1.45; }
.j1-pitch { margin-top: 14px; background: #eef6f6; border: 1px solid #d6e8e8; border-left: 4px solid var(--petrol); border-radius: 10px; padding: 14px 16px; font-size: 14px; font-style: italic; color: var(--petrol-dark); animation: hoch .2s cubic-bezier(.2,.8,.2,1); }
.j1-pitch-kopf { font-style: normal; font-weight: 700; font-size: 13px; color: var(--petrol-dark); margin-bottom: 6px; }

/* ---- C2 Liberalisierung & Unbundling ---- */
.c2-stage { margin: 12px 0; }
.c2-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.c2-cont { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; animation: hoch .28s cubic-bezier(.2,.8,.2,1); }
.c2-cont.mono { background: #f3f5f5; border-color: #d7dede; }
.c2-cont.netz { background: #eef6f6; border-color: #cfe4e4; }
.c2-cont.wett { background: #fff6ec; border-color: #f0dcc0; }
.c2-cont-kopf { font-weight: 700; font-size: 14px; margin-bottom: 10px; color: var(--petrol-dark); }
.c2-cont.wett .c2-cont-kopf { color: #b5701f; }
.c2-cont-fuss { font-size: 12px; color: var(--muted); margin-top: 10px; }
.c2-boxes { display: flex; flex-wrap: wrap; gap: 8px; }
.c2-box { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: #fff; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s; text-align: left; }
.c2-box:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(15,110,110,.12); }
.c2-box.sel { border-color: var(--petrol); box-shadow: 0 4px 14px rgba(15,110,110,.18); }
.c2-box.reg { border-left: 4px solid var(--petrol); }
.c2-box.comp { border-left: 4px solid #d98f3d; }
.c2-box.mix { border-left: 4px solid #9a8cd0; }
.c2-ic { font-size: 18px; }
.c2-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); }
.c2-box.reg .c2-tag { color: var(--petrol); }
.c2-box.comp .c2-tag { color: #b5701f; }
.c2-box.mix .c2-tag { color: #6b5bb0; }
@media (max-width: 640px) { .c2-split { grid-template-columns: 1fr; } }

/* ---- F2 Intelligente Messsysteme ---- */
.f2-toggles { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.f2-tgl { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 13px; color: var(--muted); transition: all .15s; }
.f2-tgl.on { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.f2-result { border-radius: 12px; padding: 14px 16px; margin-top: 4px; animation: hoch .2s cubic-bezier(.2,.8,.2,1); border: 1px solid var(--line); }
.f2-result.imsys { background: #eef6f6; border-color: #cfe4e4; }
.f2-result.mme { background: #f3f5f5; border-color: #d7dede; }
.f2-r-typ { font-size: 18px; font-weight: 800; color: var(--petrol-dark); }
.f2-result.mme .f2-r-typ { color: #5b6b6b; }
.f2-r-sub { font-size: 13px; color: var(--text); margin-top: 4px; }
.f2-r-gruende { margin: 10px 0 0; padding-left: 0; list-style: none; }
.f2-r-gruende li { font-size: 13px; color: #2f7a4e; padding: 2px 0; }
.f2-flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; justify-content: center; }
.f2-node { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 22px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; min-width: 96px; transition: opacity .25s; }
.f2-node span { font-size: 11px; color: var(--text); text-align: center; line-height: 1.3; }
.f2-node.dim { opacity: .4; }
.f2-arrow { font-size: 22px; font-weight: 700; transition: color .25s; }
.f2-arrow.on { color: var(--petrol); }
.f2-arrow.off { color: #ccd6d6; }

/* ---- H2 Bedarfsanalyse-Stepper ---- */
.h2-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.h2-step { flex: 1; min-width: 92px; display: flex; flex-direction: column; align-items: center; gap: 5px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 8px; cursor: pointer; transition: all .18s; }
.h2-step-nr { width: 26px; height: 26px; border-radius: 50%; background: #eef1f1; color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; transition: all .18s; }
.h2-step-lbl { font-size: 12px; font-weight: 600; color: var(--muted); }
.h2-step.done .h2-step-nr { background: #d7efe2; color: #2f7a4e; }
.h2-step.active { border-color: var(--petrol); box-shadow: 0 4px 14px rgba(15,110,110,.15); }
.h2-step.active .h2-step-nr { background: var(--petrol); color: #fff; }
.h2-step.active .h2-step-lbl { color: var(--petrol-dark); }
.h2-progress { height: 6px; background: var(--line); border-radius: 999px; margin: 12px 0; overflow: hidden; }
.h2-progress-fill { height: 100%; background: linear-gradient(90deg, var(--petrol), var(--gruen)); border-radius: 999px; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.h2-detail { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; animation: hoch .22s cubic-bezier(.2,.8,.2,1); }
.h2-d-kopf { font-size: 17px; font-weight: 800; color: var(--petrol-dark); }
.h2-d-ziel { font-size: 13px; margin: 8px 0 12px; }
.h2-d-label { font-size: 12px; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.h2-chips { display: flex; flex-direction: column; gap: 6px; }
.h2-chip { background: #eef6f6; border: 1px solid #d6e8e8; border-radius: 8px; padding: 8px 12px; font-size: 13px; color: var(--petrol-dark); }
.h2-falle { margin-top: 12px; background: #fdeeee; border: 1px solid #f3d4d4; border-radius: 8px; padding: 9px 12px; font-size: 13px; color: #a23b3b; }
.h2-reaktion { margin-top: 10px; font-size: 13px; color: var(--text); }

/* ---- D4 Tranchenbeschaffung / Portfolio ---- */
.d4-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.d4-btn { padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text); transition: all .15s; }
.d4-btn:hover:not(:disabled) { border-color: var(--petrol); }
.d4-btn.primary { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.d4-btn.primary:hover:not(:disabled) { background: var(--petrol-dark); }
.d4-btn:disabled { opacity: .55; cursor: default; }
.d4-bar { display: flex; height: 34px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; margin: 6px 0 14px; }
.d4-bar-fix { background: linear-gradient(90deg, var(--petrol), var(--gruen)); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; white-space: nowrap; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.d4-bar-open { background: repeating-linear-gradient(45deg, #eef1f1, #eef1f1 8px, #e4e9e9 8px, #e4e9e9 16px); color: var(--muted); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; white-space: nowrap; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.d4-tranchen { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.d4-chip { background: #eef6f6; border: 1px solid #d6e8e8; border-radius: 7px; padding: 5px 10px; font-size: 12px; font-weight: 600; color: var(--petrol-dark); font-variant-numeric: tabular-nums; animation: hoch .2s cubic-bezier(.2,.8,.2,1); }
.d4-chip.guenstig { background: #eafaf1; border-color: #bfe6cf; color: #2f7a4e; }
.d4-chip.teuer { background: #fdeeee; border-color: #f3d4d4; color: #a23b3b; }
.d4-leer { font-size: 13px; color: var(--muted); font-style: italic; }

/* ---- I6 PPA ---- */
.i6-gruen { background: #eafaf1; border: 1px solid #bfe6cf; border-radius: 10px; padding: 12px 14px; margin-top: 12px; font-size: 13px; color: #2f7a4e; }

/* ---- E4 Cheat-Sheet ---- */
.e4-suche { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; margin: 4px 0 14px; box-sizing: border-box; }
.e4-suche:focus { outline: none; border-color: var(--petrol); }
.e4-liste { display: grid; gap: 10px; }
.e4-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; animation: hoch .18s cubic-bezier(.2,.8,.2,1); }
.e4-card-kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.e4-card-meta { font-size: 12px; color: var(--muted); margin: 4px 0 6px; }
.e4-card-info { font-size: 13px; color: var(--text); }
.e4-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; padding: 2px 7px; border-radius: 5px; }
.e4-tag.steuer { background: #eef6f6; color: var(--petrol-dark); }
.e4-tag.netz { background: #eafaf1; color: #2f7a4e; }
.e4-tag.umlage { background: #fff3dc; color: #9a6b00; }
.e4-tag.invest { background: #f0ecfb; color: #6b5bb0; }
.e4-tag.erloes { background: #fdeeee; color: #c0392b; }
.e4-leer { font-size: 13px; color: var(--muted); font-style: italic; padding: 8px 0; }

/* ---- A3 Leistungsdreieck ---- */
.a3-tri { width: 100%; max-width: 480px; height: auto; display: block; margin: 10px auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.a3-tri .a3-lbl { font-size: 13px; font-weight: 700; }

/* ---- B3 Frequenz-Tacho ---- */
.b3-gauge { width: 100%; max-width: 480px; height: auto; display: block; margin: 8px auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
/* ---- B4 Redispatch ---- */
.b4-grid { width: 100%; height: auto; display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.b4-grid .b4-lbl { font-size: 12px; font-weight: 700; }
.b4-grid .b4-sub { font-size: 10px; fill: var(--muted); }
