/* ═══ ELMETIC Energieportal · Studio-Ebene (20.10.2026) ═══════════════════════════════════════════════════════════════
   Bringt das Portal auf die Gestaltungssprache von elmetic.com (Studio-Masterplan 2026-10, Token-Map FINAL v2, Anhang E/F/J).
   Wird NACH dem eingebetteten portal-design.css geladen und überschreibt nur Werte – keine Logik, kein Markup, kein Rechenkern.
   Regeln
   - Die drei Token-Ebenen des Portals (.ep → --ep-*, body.ep-app → --app-* / Energiefarben, .ep-dk → Dachkarte) bekommen die
     Website-Werte. Fertige Hex-Werte, keine Aliase (Masterplan 3 (4)): jede Ebene löst selbst auf.
   - Hell/Dunkel automatisch per prefers-color-scheme. Knopffläche bleibt in beiden Modi #CC321B mit weißer Schrift (5,20:1).
   - Kontrastwerte stehen hinter den Tokens (WCAG, gemessen mit werkzeuge/kontrast_rechner.js); Abnahme: werkzeuge/abnahme.js.
   ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */

/* ── 1 Tokens hell ───────────────────────────────────────────────────────────────────────────────────────────────────── */
.ep{
  --ep-bg:#FFFFFF; --ep-surface:#FFFFFF; --ep-tint:#F2F2EF;          /* = --karte / --surface */
  --ep-ink:#0A0A0A;                                                   /* = --ink 19,4:1 */
  --ep-ink-2:#4A4A46;                                                 /* 8,51 paper · 7,94 tint */
  --ep-ink-3:#5E5E5A;                                                 /* = --muted 6,51 karte · 5,81 tint */
  --ep-border:#7F817E;                                                /* = --rahmen-ui 3,93 karte */
  --ep-line:#D4D4D0;                                                  /* = --hair */
  --ep-red:#CC321B; --ep-red-strong:#CC321B; --ep-red-hover:#A8270F;  /* = --red / --knopf / --knopf-hover */
  --ep-green:#17733F;                                                 /* = --gruen-text */
  --ep-chart-ist:#2E3238; --ep-chart-cmp:#8A9199; --ep-chart-sim:#17733F; --ep-chart-sim-fill:#D2E6DA;
  --ep-chart-grid:#D4D4D0; --ep-chart-ref:#CC321B;
  --ep-warn-text:#8A5A00;                                             /* = --orange-text 5,93 karte */
  --ep-shadow-overlay:0 4px 12px rgba(0,0,0,.08),0 32px 64px rgba(0,0,0,.10);   /* = --schatten-tief */
  --ep-r-ctl:10px; --ep-r-card:14px;                                  /* Knöpfe/Felder 10 px wie .btn, Karten 14 px */
  color-scheme:light;
}
body.ep-app{
  --app-paper:#FAFAF7; --app-sheet:#FFFFFF; --app-tint:#F2F2EF; --app-grid-a:#F2F2EF; --app-grid-b:#E5E5E2;
  --app-ink:#0A0A0A; --app-ink-2:#4A4A46; --app-ink-3:#5E5E5A; --app-off:#5E5E5A;
  --app-border:#7F817E; --app-line:#D4D4D0; --app-hair:#E5E5E2;
  --app-red:#CC321B; --app-red-action:#CC321B; --app-red-hover:#A8270F; --app-sim:#17733F;
}
.ep-dk{
  --paper:#FAFAF7; --sheet:#FFFFFF; --tint:#F2F2EF; --ink:#0A0A0A; --ink-2:#4A4A46; --ink-3:#5E5E5A;
  --border:#7F817E; --line:#D4D4D0; --hair:#E5E5E2; --red:#CC321B; --red-action:#CC321B; --red-hover:#A8270F;
}
html:has(body.ep-app){ background:#FAFAF7; }

/* ── 2 Tokens dunkel (Schieferstufen wie elmetic.com, kein Fast-Schwarz) ─────────────────────────────────────────────── */
@media (prefers-color-scheme:dark){
  .ep{
    --ep-bg:#262B30; --ep-surface:#262B30; --ep-tint:#2E3238;         /* karte / surface-2 */
    --ep-ink:#EDEBE5;                                                 /* 12,0 karte */
    --ep-ink-2:#C9CBCF;                                               /* 8,79 karte · 7,93 tint */
    --ep-ink-3:#A9ACB1;                                               /* 6,27 karte · 5,66 tint */
    --ep-border:#868A8F;                                              /* 4,11 karte (UI ≥ 3) */
    --ep-line:#3E444B;
    --ep-red:#FF8A73; --ep-red-strong:#CC321B; --ep-red-hover:#D83C24;   /* Akzent hell · Knopf konstant · Hover weiß 4,57 */
    --ep-green:#7FDDA8;
    --ep-chart-ist:#C9CBCF; --ep-chart-cmp:#8A9199; --ep-chart-sim:#6EE7A7; --ep-chart-sim-fill:#24433A;
    --ep-chart-grid:#3E444B; --ep-chart-ref:#FF8A73;
    --ep-warn-text:#F2B83B;
    --ep-shadow-overlay:0 2px 8px rgba(0,0,0,.45),0 20px 40px rgba(0,0,0,.50);
    color-scheme:dark;
  }
  body.ep-app{
    --app-paper:#1E2226; --app-sheet:#262B30; --app-tint:#2E3238; --app-grid-a:#23272C; --app-grid-b:#2E3238;
    --app-ink:#EDEBE5; --app-ink-2:#C9CBCF; --app-ink-3:#A9ACB1; --app-off:#A9ACB1;
    --app-border:#868A8F; --app-line:#3E444B; --app-hair:#33383E;
    --app-red:#FF8A73; --app-red-action:#CC321B; --app-red-hover:#D83C24; --app-sim:#7FDDA8;
    --ep-pv:#E0A92E; --ep-pv-flaeche:#3A3222; --ep-netz:#93A3BB; --ep-netz-flaeche:#2B323C;
    --ep-speicher:#4CC59A; --ep-speicher-flaeche:#1E3A31; --ep-eauto:#93A9F0; --ep-eauto-flaeche:#26304A;
    --ep-waerme:#F0957A; --ep-waerme-flaeche:#3E2A24; --ep-verbrauch:#C9CBCF; --ep-verbrauch-flaeche:#33373C;
  }
  .ep-dk{
    --paper:#1E2226; --sheet:#262B30; --tint:#2E3238; --ink:#EDEBE5; --ink-2:#C9CBCF; --ink-3:#A9ACB1;
    --border:#868A8F; --line:#3E444B; --hair:#33383E; --red:#FF8A73; --red-action:#CC321B; --red-hover:#D83C24;
    --amber:#F2B83B; --amber-fill:#3A3222;
  }
  html:has(body.ep-app){ background:#1E2226; }
  body.ep-app{ background:#1E2226; color:#EDEBE5; }
  /* Original-Logo: im Dunkeln weiß per Filter, wie .brand-logo auf elmetic.com (Regel „Logo nur Original“) */
  .ep-app-wortmarke, .ep-brand img{ filter:brightness(0) invert(1); }
}

/* ── 3 Feste Farbwerte des Portal-Stylesheets im Dunkelmodus (generiert) ───────────────────────────────────────── */
/* DUNKEL-GENERIERT START – werkzeuge/dunkel_generator.py, nicht von Hand ändern */
@media (prefers-color-scheme:dark){
  .ep input:checked+.ep-mark--box::after{border-color:#262B30}
  .ep dialog::backdrop{background:rgba(0,0,0,1)}
  body.ep-fokus .skip-link{background:#262B30;color:#EDEBE5;border:2px solid #EDEBE5}
  body.ep-fokus .skip-link:focus,body.ep-fokus .skip-link:focus-visible{outline:3px solid #FF8A73}
  header.ep-sitehead{background:#262B30}
  .ep-vorschau{background:#2E3238;color:#EDEBE5;border-bottom:1px solid #3E444B}
  .ep-legal.ep .ep-ds-verz{border:1px solid var(--ep-line,#3E444B);background:var(--ep-tint,#2E3238)}
  .ep-faq-item{background:#262B30;border:1px solid #3E444B}
  .ep-faq-a{color:#C9CBCF}
  .ep-faq-a a{color:#EDEBE5}
  dialog.ep-dialog.ep{background:#262B30;color:#EDEBE5;box-shadow:0 8px 24px rgba(0,0,0,0.35)}
  dialog.ep-dialog.ep::backdrop{background:rgba(0,0,0,1)}
  .ep .ep-zg-karte{border-left:4px solid var(--ep-red-action,#FF8A73)}
  .ep .ep-zg-ico{color:var(--ep-ink,#EDEBE5)}
  .ep .ep-zg-t{color:var(--ep-ink,#EDEBE5)}
  .ep .ep-zg-s{color:var(--ep-ink-2,#C9CBCF)}
  .ep .ep-zg-hinweis{color:var(--ep-ink-2,#C9CBCF)}
  .ep .ep-zg-link{color:var(--ep-ink,#EDEBE5)}
  .ep .ep-zg-link:focus-visible,.ep .ep-zg-btn:focus-visible{outline:2px solid var(--ep-ink,#EDEBE5)}
  .ep-zg-meldung{background:#EDEBE5;color:#1E2226;box-shadow:0 6px 18px rgba(0,0,0,0.66)}
  .ep .ep-zg-weg__l{color:var(--ep-ink,#EDEBE5)}
  .ep .ep-zg-wahl{background:var(--ep-bg,#262B30);color:var(--ep-ink,#EDEBE5)}
  .ep .ep-zg-wahl:hover{border-color:var(--ep-ink,#EDEBE5)}
  .ep .ep-zg-wahl:focus-visible{outline:2px solid var(--ep-ink,#EDEBE5)}
  .ep .ep-zg-wahl__s{color:var(--ep-ink-2,#C9CBCF)}
  .ep-speicherhinweis{background:#3A3222;color:#F2B83B;border-bottom:1px solid #E0A92E}
  body:not(.ep-fokus) .skip-link{background:#262B30;color:#EDEBE5;border:2px solid #EDEBE5}
  body:not(.ep-fokus) .skip-link:focus,body:not(.ep-fokus) .skip-link:focus-visible{outline:3px solid #FF8A73}
  body.ep-fokus > header{background:#262B30}
  .ep .ep-app-nav a:hover{background:#2E3238}
  .ep .ep-app-konto__btn:hover{background:#2E3238}
  .ep .ep-plan-li.is-aktiv .ep-pos__n{color:#1E2226}
  .ep .ep-plan-pop{box-shadow:0 6px 18px rgba(0,0,0,0.26)}
  dialog.ep-app-dialog.ep{box-shadow:0 12px 32px rgba(0,0,0,0.53)}
  dialog.ep-app-dialog.ep::backdrop{background:rgba(0,0,0,1)}
  dialog.ep-app-dialog .ep-app-dialog__fuss{background:var(--app-sheet,#262B30)}
  .ep-dk-adrinfo[data-art=fehler],.ep-dk-adrinfo[data-art=unplausibel]{color:#FF8A73}
  .ep-dk-adrinfo[data-art=genau]{color:#7FDDA8}
  .ep-dk-adrinfo[data-art=ungefaehr]{color:#F2B83B}
  .ep-dk-guete-genau{color:#7FDDA8;background:#1E3A2C;border-color:#7FDDA8}
  .ep-dk-guete-ungefaehr{color:#F2B83B}
  .ep-dk-guete-unplausibel{color:#FF8A73;background:#3E2A26;border-color:#FF8A73}
  .ep-dk-adrmarker{box-shadow:0 0 0 2px #262B30,0 1px 4px rgba(0,0,0,0.99)}
  .ep-dk-btn:hover{background:#2E3238}
  .ep-dk-leiste .ep-dk-btn{box-shadow:0 1px 3px rgba(0,0,0,0.55)}
  .ep-dk-tipp{background:rgba(38,43,48,.95)}
  .dk-label{background:rgba(0,0,0,1)}
  .ep-dk-ton-a{box-shadow:inset 4px 0 0 #FF8A73}
  .ep-dk-ton-b{box-shadow:inset 4px 0 0 #93A3BB}
  .ep-dk-seite{background:rgba(38,43,48,.94)}
  .ep-dk-endpunkt{background:#262B30}
  .ep-dk-schnee[data-stufe=hoch] .ep-dk-schnee-ampel{background:#3E2A26}
  #ep-dk-module-einsetzen[aria-disabled=true]{background:#33383E;border-color:#4A5057;color:#C9CBCF}
  @media (max-width:820px) and (not ((orientation:landscape) and (max-height:520px))){.ep-dk .ep-dk-panel{box-shadow:0 -2px 10px rgba(0,0,0,0.31)}}
  .ep-dk-wz-btn:focus-visible{box-shadow:inset 0 0 0 5px #262B30}
  .ep-dk-masse.ep-dk-masse-summe{background:#EDEBE5;color:#1E2226;border-color:#EDEBE5}
  .ep-dk-zug-zahl{background:#EDEBE5;color:#1E2226}
  .ep-dk-mk{border:1px solid var(--line,#3E444B)}
  .ep-dk-mk-marke{background:#EDEBE5;color:#1E2226}
  .ep-dk-kat{background:rgba(0,0,0,0.99)}
  .ep-dk-kat-box{background:#262B30;color:#EDEBE5;box-shadow:0 8px 32px rgba(0,0,0,0.66)}
  .ep-dk-kat-filter{border:1px solid #3E444B}
  .ep-dk .ep-dk-kat-haken input[type=checkbox]{accent-color:#EDEBE5}
  .ep-dk-kat-wahl{background:#262B30;border:1px solid #868A8F}
  .ep-dk-kat-wahl[aria-pressed=true]{border:2px solid #EDEBE5;background:#2E3238}
  .ep-dk-kat-wahl:focus-visible,.ep-dk-kat-db:focus-visible{outline:3px solid #FF8A73}
  .ep-dk-kat-text small{color:#C9CBCF}
  .ep-dk-kat-leer{color:#C9CBCF}
  .ep-dk-mk-schema{color:#C9CBCF}
  .ep-dk-kat-frage{border:2px solid #EDEBE5;background:#3A3222}
  .ep-str-team{border-left:4px solid #EDEBE5;background:#2E3238}
  .ep-str-feld{border:1px solid var(--line,#3E444B)}
  .ep-str-tabelle caption{color:var(--ink-2,#C9CBCF)}
  .ep-str-tabelle th,.ep-str-tabelle td{border-bottom:1px solid var(--hair,#33383E)}
  .ep-str-tabelle thead th{color:var(--ink-2,#C9CBCF)}
  .ep-str-farbe{border:1px solid #EDEBE5}
  .ep-str-f10{background:#3E444B}
  .ep-str-ampel[data-ampel=ok]{color:#7FDDA8;background:#1E3A2C}
  .ep-str-ampel[data-ampel=hinweis]{color:#F2B83B;background:#3A3222}
  .ep-str-ampel[data-ampel=fehler]{color:#FF8A73;background:#3E2A26}
  .ep-str-ampel[data-ampel=offen]{color:var(--ink-2,#C9CBCF);background:var(--tint,#2E3238)}
  .ep-str-stufe[data-stufe=ok]{color:#7FDDA8}
  .ep-str-stufe[data-stufe=hinweis]{color:#F2B83B}
  .ep-str-stufe[data-stufe=fehler]{color:#FF8A73}
  .ep-str-stufe[data-stufe=info]{color:#93A3BB}
  .leaflet-tooltip.ep-dk-str-etikett{background:#EDEBE5;color:#1E2226}
  .ep-dk-foto-griff{background:#262B30;border:3px solid #EDEBE5;box-shadow:0 1px 4px rgba(0,0,0,0.99)}
  .ep-dk-foto-griff-drehen{border-color:#FF8A73}
  .leaflet-marker-icon.ep-dk-foto-pp{color:#EDEBE5;border:2px solid #EDEBE5}
  .leaflet-marker-icon.ep-dk-foto-pp-karte{background:#262B30;border-color:#FF8A73;color:#FF8A73}
  .ep-dk-foto-pp-offen{box-shadow:0 0 0 3px #262B30}
  .ep-dk-foto-tipp{background:#EDEBE5;color:#1E2226}
  .ep-dk .ep-dk-foto-haken input[type=checkbox]{accent-color:#EDEBE5}
  .ep-pl-meldung{background:#3E2A26;color:#FF8A73}
  .ep-pl-meldung[data-art=ok]{background:#1E3A2C;color:#7FDDA8}
  .ep-pl-gruppe li{border-bottom:1px solid rgba(0,0,0,0.18)}
  .ep-pl-tabelle th,.ep-pl-tabelle td{border-bottom:1px solid rgba(0,0,0,0.18)}
  .ep-str-liste tr{border-bottom:1px solid var(--hair,#33383E)}
  .ep-str-liste td[data-titel]::before{color:var(--ink-2,#C9CBCF)}
  .ep-str-punkte tr{border-bottom:1px solid var(--hair,#33383E)}
  .leaflet-tooltip.ep-dk-kante{border:1px solid #EDEBE5;background:#262B30;color:#EDEBE5;box-shadow:0 1px 2px rgba(0,0,0,0.66)}
  .ep-dk>.ep-dk-sumleiste .ep-dk-btn[aria-disabled=true]{background:#33383E;border-color:#4A5057;color:#C9CBCF}
  .ep-dk-seite-chip{background:rgba(0,0,0,1);box-shadow:0 2px 8px rgba(0,0,0,0.77)}
  .ep-dk-seite-chip[data-leer=true]{background:rgba(38,43,48,.96)}
  .ep-dk-seite-weg:focus-visible{outline:3px solid #262B30}
  .ep-dk-wz-toast{background:rgba(0,0,0,1)}
  .ep-dk-lage-skizzen rect{fill:#93A3BB}
  .ep-dk-sum-flag{color:var(--amber,#F2B83B)}
  .ep-dk-ctx{box-shadow:0 10px 30px rgba(0,0,0,0.66)}
  @media (min-width:821px),(max-width:820px) and (orientation:landscape) and (max-height:520px){.ep-dk.ep-dk-mitkarte .ep-dk-panel{box-shadow:0 10px 30px rgba(0,0,0,0.66)}}
  .ep .ep-wz-balken i{background:var(--app-red,#CC321B)}
  .ep .ep-wz-karte:has(input:checked){border-color:var(--app-red,#FF8A73);box-shadow:inset 0 0 0 1px var(--app-red,#FF8A73)}
  .ep .ep-wz-karte:has(input:checked) .ep-wz-karte__mark{background:var(--app-red,#CC321B);border-color:var(--app-red,#FF8A73)}
  .ep .ep-wz-regler input{accent-color:var(--app-red,#FF8A73)}
  .ep .ep-wz-tab thead th{background:var(--app-tint,#2E3238)}
  .ep .ep-wz-nutzen{border-left:3px solid var(--app-red,#FF8A73);background:var(--app-tint,#2E3238)}
  .ep-dk3d-ansicht{background:#2E3238}
  .ep-dk3d-dachlabel{background:rgba(38,43,48,.95);box-shadow:0 1px 2px rgba(0,0,0,0.18)}
  .ep-dk3d-nord{background:rgba(38,43,48,.92)}
  .ep-dk3d-ansichten{background:rgba(38,43,48,.92)}
  .ep-dk3d-fehler{background:#3E2A26}
  .ep-dk3d-annahme{color:#F2B83B}
  .ep .ep-ku-zeile.is-widerspruch{border-color:#FF8A73}
  .ep .ep-ku-warn{color:#FF8A73;border:1px solid #FF8A73}
  .ep .ep-ku-ampel--fehlt i{background:#CC321B}
  .ep .ep-wz-knopf[aria-disabled="true"]{background:#33383E;color:#C9CBCF;border-color:#4A5057}
  .ep .ep-wz-weiter-h{color:var(--app-ink-2,#C9CBCF)}
  .ep .ep-wz summary:focus-visible,.ep .ep-wz-zurueck:focus-visible{outline:3px solid var(--app-ink,#EDEBE5)}
  body.ep-tastatur .ep h1.ep-wz-frage:focus-visible{outline:3px solid var(--app-ink,#EDEBE5)}
  .ep .ep-ku-hinweis{color:var(--ep-warn-text,#F2B83B)}
  .ep .ep-wz-kern{border-left:4px solid var(--app-ink,#EDEBE5);background:var(--app-tint,#2E3238)}
  .ep .ep-wz-beratung{border-left:4px solid var(--app-ink,#EDEBE5)}
  .ep .ep-wz-mehrbox{border-top:1px solid var(--app-line,#3E444B)}
  .ep .ep-stand-zeile{color:var(--ep-ink-2,#C9CBCF)}
  .ep .ep-stand-zeile .ep-link:focus-visible{outline:2px solid var(--app-ink,#EDEBE5)}
  #ep-dk .ep-dk-modultool>.ep-dk-zwischen{color:#C9CBCF}
  .ep .ep-hero{background:linear-gradient(135deg,#262B30 0%,#1E2226 58%,#3A3222 190%)}
  .ep .ep-q .ep-zg-wahl{background:#262B30}
  .ep .ep-q .ep-zg-wahl:hover{box-shadow:0 2px 10px rgba(0,0,0,0.18)}
  .ep .ep-q .ep-zg-wahl--haupt{background:linear-gradient(180deg,#262B30 40%,#3A3222 230%)}
  .ep .ep-q .ep-zg-wahl__b{color:#1E2226}
  @media (min-width:761px){.ep .ep-steps li::before{background:#262B30}}
  @media (min-width:761px){.ep .ep-steps li.is-done::before{color:#1E2226}}
  @media (min-width:761px){.ep .ep-steps li.is-now::before{color:#1E2226}}
  .ep #ep-root[data-tool="pv"] .ep-kpis .ep-kpi--sub{background:#262B30;border-top:4px solid var(--ep-pv,#E0A92E)}
  .ep #ep-root[data-tool="pv"] .ep-kpis .ep-kpi--sub+.ep-kpi--sub{border-top:4px solid var(--ep-pv,#E0A92E)}
  .ep #ep-root[data-tool="pv"] .ep-kpis .ep-kpi--main{background:var(--app-tint,#2E3238)}
  #ep-dk .ep-dk-vorhang{background-color:#2E3238}
  #ep-dk .ep-dk-vorhang-inhalt{box-shadow:0 8px 28px rgba(0,0,0,0.22)}
  @media (min-width:1000px) and (min-height:700px){#ep-dk .ep-dk-start-hilfe{background:rgba(38,43,48,.92);box-shadow:0 8px 28px rgba(0,0,0,0.18)}}
  @media (min-width:1000px) and (min-height:700px){#ep-dk .ep-dk-start-bsp .ep-dk-bsp{background:#262B30}}
  @media (max-width:999px) and (min-height:700px){#ep-dk .ep-dk-start-schritte li{background:rgba(38,43,48,.92)}}
}
/* DUNKEL-GENERIERT ENDE */

/* ── 4 Fläche: Papier wie elmetic.com, Karten weiß mit Haarlinie ───────────────────────────────────────────────────── */
body.ep-app .ep-app-main{ background:var(--app-paper); }

/* ── 5 Typografie (Masterplan Anhang E: Gewicht 600, enge Laufweite, Mono-Marken in Versalien) ──────────────────────── */
.ep .ep-h1, .ep .ep-h2, .ep .ep-h3, .ep .ep-hero__t{ font-weight:600; }
.ep .ep-vhead .ep-h1{ font-size:clamp(1.75rem,1.4rem + .9vw,2.25rem); line-height:1.08; letter-spacing:-.02em; }
.ep .ep-hero__t{ letter-spacing:-.02em; line-height:1.1; }
.ep .ep-h2{ letter-spacing:-.01em; }
/* Kicker wie .sec-head-num: JetBrains Mono, Versalien, Laufweite .06em, Akzentrot */
.ep .ep-hero__kick{ font-family:var(--app-mono,"JetBrains Mono",ui-monospace,monospace); font-size:12px; font-weight:500; letter-spacing:.06em; text-transform:uppercase; color:var(--ep-red); }
.ep .ep-app-navgrp__t{ font-size:12px; letter-spacing:.06em; text-transform:uppercase; }
/* (Abschnittsmarken „01 /“ am 21.10.2026 entfernt – wirkten technisch, Studio 2 gliedert über Karten und Titel) */

/* ── 6 Knöpfe wie .btn auf elmetic.com: 10 px Radius, Hauptknopf Rot mit Glanzschatten, Umrissknopf in Tinte ─────────── */
.ep .ep-btn{ border-radius:10px; letter-spacing:-.005em; }
.ep .ep-btn--primary{ background:#CC321B; color:#fff; box-shadow:0 1px 2px rgba(204,50,27,.2),0 8px 24px rgba(204,50,27,.15); }
.ep .ep-btn--primary:hover{ background:var(--ep-red-hover); }
.ep .ep-btn--secondary{ border-color:var(--ep-ink); color:var(--ep-ink); }
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .ep .ep-btn{ transition:color .25s cubic-bezier(.2,.8,.2,1),background .25s cubic-bezier(.2,.8,.2,1),border-color .25s cubic-bezier(.2,.8,.2,1),transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s cubic-bezier(.2,.8,.2,1); }
  .ep .ep-btn--primary:hover{ transform:translateY(-1px); }
}
@media (prefers-color-scheme:dark){
  .ep .ep-btn--primary{ box-shadow:0 0 0 1px rgba(255,255,255,.08),0 8px 24px rgba(0,0,0,.35); }
}

/* ── 7 Karten: Übersicht als Karten statt Prüfraster (Wege und Reihenfolge bleiben) ─────────────────────────────────── */
.ep .ep-cells--start{ gap:12px; border:0; background:none; }
.ep .ep-cells--start > .ep-cell{ border:1px solid var(--app-line); border-radius:14px; background:var(--app-sheet); box-shadow:0 1px 2px rgba(0,0,0,.02),0 8px 24px rgba(0,0,0,.04); }
@media (hover:hover){ .ep .ep-cells--start > .ep-cell:hover{ border-color:var(--app-ink); } }
@media (prefers-color-scheme:dark){ .ep .ep-cells--start > .ep-cell{ box-shadow:0 1px 2px rgba(0,0,0,.35),0 6px 16px rgba(0,0,0,.30); } }

/* ── 8 Fokus sichtbar (wie elmetic.com :focus-visible), auch an Feldern ────────────────────────────────────────────── */
body.ep-app :focus-visible, .ep :focus-visible{ outline:2px solid var(--ep-red,#CC321B); outline-offset:3px; }
.ep input:focus-visible, .ep select:focus-visible, .ep textarea:focus-visible{ outline:2px solid var(--ep-red,#CC321B); outline-offset:1px; }

/* ── 9 Tippziele ≥ 44 px am Touch-Gerät (Masterplan Anhang F) ──────────────────────────────────────────────────────── */
@media (pointer:coarse){
  .ep .ep-cell .ep-link, .ep .ep-vhead a, .ep .ep-btn--text, .ep a.ep-link, .ep button.ep-link{ min-height:44px; display:inline-flex; align-items:center; }
}

/* ── 10 Safari/iPhone: Leisten unten über dem Home-Balken (safe-area) ─────────────────────────────────────────────── */
body.ep-app nav.ep-app-tabs{ padding-bottom:env(safe-area-inset-bottom,0px); }
.ep .ep-sticky{ padding-bottom:calc(8px + env(safe-area-inset-bottom,0px)); }

/* ── 11 Rückweg zur Website (Markup von werkzeuge/einbinden.py) ─────────────────────────────────────────────────────── */
.ep .ep-app-zurueck{ display:inline-flex; align-items:center; gap:6px; min-height:44px; font-weight:600; color:var(--app-ink); text-decoration:none; }
.ep .ep-app-zurueck::before{ content:"←"; content:"←" / ""; }
@media (hover:hover){ .ep .ep-app-zurueck:hover{ color:var(--ep-red); } }

/* ── 12 Feinschliff ─────────────────────────────────────────────────────────────────────────────────────────────────── */
.ep .ep-btn--primary:disabled, .ep .ep-btn--primary[aria-disabled="true"]{ box-shadow:none; transform:none; }
.ep .ep-vhead{ padding-top:12px; }
/* 404: Telefonlink trägt ein Inline-Rot (#C8201A) – im Dunkeln Akzentrot der Token-Map (Inline-Stil nur per !important zu übersteuern) */
@media (prefers-color-scheme:dark){ a[href^="tel:"][style*="C8201A"]{ color:#FF8A73 !important; } }

/* ── 13 Abnahme-Restliste (Messung 20.10.) ─────────────────────────────────────────────────────────────────────────── */
/* Fokusring an Feldern: portal-design.css setzt „outline:none“ mit höherer Spezifität → hier bewusst !important */
.ep input:focus-visible, .ep select:focus-visible, .ep textarea:focus-visible{ outline:2px solid var(--ep-red,#CC321B) !important; outline-offset:1px !important; }
/* Mindestschrift wie elmetic.com (Anhang E): Fließ-/Hilfetext ≥ 14 px; 13 px nur Chips (Handy-Leiste, Unterzeile im Menü) */
.ep .ep-small, .ep .ep-help, .ep .ep-hint, .ep .ep-app-dialog__s, .ep .ep-app-sidefoot__legal, .ep .ep-num, .ep .ep-tbtn,
.ep .ep-team-anmeldung, .ep .ep-zg-sub{ font-size:14px !important; }
.ep .ep-app-sidefoot__legal a{ font-size:inherit; }
body.ep-fokus .hero-eyebrow strong{ font-family:var(--font-mono,"JetBrains Mono",ui-monospace,monospace); font-size:12px; letter-spacing:.06em; }
/* Tippziele am Touch-Gerät: Zurück-, Rechenweg- und Quellenlinks, Inhaltsverzeichnis */
@media (pointer:coarse){
  .ep .ep-back, .ep summary, .ep button.ep-link, main li > a:only-child, .ep .ep-toc a, .ep .ep-vhead__meta a,
  .ep a[href*="#ep-erkl"], .ep a[href*="faq"], .ep .ep-app-sidefoot__legal a, .ep .ep-cell .ep-link, .ep .ep-ds-toc a,
  .ep a[href^="#ep-"]:not(.ep-btn), main p > a:only-child, .ep .ep-back, .ep summary, .ep button.ep-link{ min-height:44px !important; display:inline-flex; align-items:center; }
  .ep summary{ display:flex; }
}
/* Kartentitel-Links der Übersicht am Desktop: WCAG 2.5.8 (≥ 24 px) */
.ep .ep-cells--start .ep-h3 .ep-link{ display:inline-flex; align-items:center; min-height:24px; }
/* Kopf der Portal-App als eigene z-Ebene: elmetic.css gibt dem Kopf view-transition-name:kopf (eigener Stapelkontext
   auf Ebene 0) → die feste Handy-Leiste darin lag sonst unter später folgenden Karten (live gemessen 20.10.2026). */
body.ep-app header.ep-sitehead{ position:relative; z-index:50; }
/* ── 14 Startansicht sofort sichtbar (Ladezeit, LCP mobil 9,9 s → Messung _mess/perfA-*; Klassen aus portal-frueh.js) ──── */
/* Bisher blieb die ganze Übersicht unsichtbar, bis alle Portal-Skripte gelaufen waren (Inline-CSS „Layoutsprung-Ruhe“, Punkt 2).
   Jetzt: Kopf der Übersicht (Kicker, H1, Einleitung, Kennzahlen) erscheint mit dem ersten Bild. Die Abschnitte darunter
   (Anlass-Karten, Anlagenschema) bleiben bis zum Start verdeckt – das Programm baut sie dabei um, sichtbar würde es springen
   (Prototyp gemessen: CLS 1,03). Tiefenlinks (ep-tief), ohne JavaScript und mit Skriptfehler (ep-js-aus) wie bisher. */
/* Am Desktop wächst die Leiste mit gespeicherten Angaben beim Start von 0 auf ~110 px (gemessen CLS 0,069) → dort nur ohne
   Angaben früh zeigen; Handy/Tablet reservieren ihre Höhe schon im Inline-CSS (gemessen CLS 0 mit Angaben). */
.ep-js.ep-ohne-angaben:not(.ep-tief):not(.ep-js-aus) body.ep-app:not(.ep-app-js) .ep .ep-app-view[data-ep-view="uebersicht"]{ visibility:visible; }
@media (max-width:1023.98px){ .ep-js:not(.ep-tief):not(.ep-js-aus) body.ep-app:not(.ep-app-js) .ep .ep-app-view[data-ep-view="uebersicht"]{ visibility:visible; } }
/* Ohne gespeicherte Angaben blendet portal-app.js die Leiste „Meine Angaben“ beim Start aus → schon vorher weglassen (kein Sprung) */
.ep-js.ep-ohne-angaben:not(.ep-js-aus) body.ep-app:not(.ep-app-js) .ep .ep-angaben{ display:none; }
/* ── 15 Kein Sprung, wenn die ServiceHub-Antwort nach dem Programmstart kommt ──────────────────────────────────────────── */
/* Seit Stufe B startet das Programm vor der Antwort von app.elmetic.com (Basis gemessen 20.10.2026, Antwort +0,6 s:
   1280 px 0,0306 / mit Angaben 0,0758, 1024 px 0,1191 / 0,2154, 768 px 0,0118 / 0,0104, Handy 0,0001). Danach ändert sich:
   a) page-portal.js zeigt erst die eingebaute Standard-Konfiguration (p2p aus), dann die des Servers (p2p „Strom teilen“ an)
      und fügt die Karte ein → 7. Karte im Raster der sechs gleich hohen Anlass-Karten (F1B-S), eine Zeile mehr (+168 px).
      Lösung: diese Zeile von Anfang an gleich hoch reservieren. Die Gesamtprüfung steht dann wie live in Zeile 3, nur
      gleich hoch wie die anderen Karten (F1B-S „alle gleich hoch“). Ohne Server bzw. mit p2p aus bleibt die Zeile leer.
      Die Energieakte (volle Breite) steht fest hinter dem expliziten Raster (grid-row:-1), sonst füllte sie die leere Zeile.
   b) Leiste „Meine Angaben“: portal-app.js setzt „Code eingeben“ erst bei Zugang „an“ ein (vorher leer + hidden) → die
      Spalten rücken 174 px zusammen. Lösung: Platz des Knopfs ab 1024 px immer freihalten (Knopf 134,4 px, Bricolage 15 px
      halbfett + Innenabstand der Spanne). Bei Zugang „aus“ bleibt rechts in der Leiste dieser Raum frei.
   c) „Bereits eine Energieakte? Auswertung öffnen“ erscheint bei Zugang „an“ in der Kopfzeile der Karten (Spalte 2) und
      bricht bei 768–1024 px zweizeilig um → Überschrift und Karten rutschen 8/16 px. Lösung: Platz auch versteckt halten
      (unsichtbar, nicht bedienbar; die Spalte ist ohnehin Füllraum). */
@media (min-width:1024px){ .ep .ep-cells--start{ grid-template-rows:repeat(3,1fr); } }
@media (min-width:761px) and (max-width:1023.98px){ .ep .ep-cells--start{ grid-template-rows:repeat(4,1fr); } }
@media (min-width:761px){ .ep .ep-cells--start > .ep-cell--akte{ grid-row:-1; } }
@media (min-width:761px){ .ep [data-ep-view="uebersicht"] .ep-app-sec[aria-labelledby="ep-wahl-h"] > .ep-akte-link[hidden]{ display:block !important; visibility:hidden; } }
@media (min-width:1024px){
  .ep .ep-angaben > .ep-angaben__code{ min-width:calc(135px + var(--app-pad)); }
  .ep .ep-angaben > .ep-angaben__code[hidden]{ display:flex !important; visibility:hidden; }
}
@media (min-width:1024px) and (max-width:1366px) and (pointer:coarse){ .ep .ep-angaben > .ep-angaben__code{ min-width:143px; } }

/* STUDIO-2 START – werkzeuge/studio2_css.py (21.10.2026), nicht von Hand ändern */
/* ── 16 Studio 2: Übersicht wie der Website-Hero – Einstieg, Kartenhierarchie, ruhige Leiste ─────────────────────────
   Philipp 21.10.: „Wo ist der Studiostil zu erkennen?“ → sichtbarer Einstieg statt Formular-Optik. Wege bleiben alle erhalten;
   Markup-Ergänzungen (Hauptknopf, Energiefluss-Karte, Knopf „Strom teilen prüfen“) setzt werkzeuge/einbinden.py. */

/* Einstieg: Titel groß mit roter zweiter Zeile, ein roter Hauptknopf, Energiefluss-Karte rechts */
.ep [data-ep-view="uebersicht"] .ep-vhead{ display:grid; grid-template-columns:minmax(0,1.3fr) minmax(280px,.8fr); column-gap:clamp(24px,4vw,56px); row-gap:20px; align-items:center;
  padding:clamp(20px,3vw,40px) 0 clamp(20px,2.4vw,32px); border-bottom:0; }
.ep [data-ep-view="uebersicht"] .ep-vhead > div:first-child{ min-width:0; }
.ep [data-ep-view="uebersicht"] .ep-vhead .ep-h1{ font-size:clamp(2rem,1.3rem + 2.6vw,3.4rem); line-height:1.04; letter-spacing:-.03em; max-width:none; margin:0; }
.ep .ep-st-akzent{ color:var(--ep-red); display:block; }
.ep [data-ep-view="uebersicht"] .ep-vhead__lead{ font-size:clamp(1.0625rem,1rem + .35vw,1.2rem); line-height:1.5; color:var(--app-ink-2); max-width:52ch; margin:16px 0 0; }
.ep .ep-st-hero__akt{ display:flex; flex-wrap:wrap; align-items:center; gap:12px 22px; margin-top:24px; }
.ep a.ep-st-cta{ display:inline-flex; align-items:center; gap:10px; min-height:52px; padding:0 24px; border-radius:10px; background:#CC321B; color:#fff;
  font-weight:600; font-size:1rem; letter-spacing:-.005em; text-decoration:none; box-shadow:0 1px 2px rgba(204,50,27,.2),0 8px 24px rgba(204,50,27,.15); }
.ep a.ep-st-cta:hover{ background:#A8270F; color:#fff; }
.ep .ep-st-pfeil::before{ content:"→"; font-weight:500; }
.ep a.ep-st-neben{ display:inline-flex; align-items:center; min-height:44px; font-weight:600; color:var(--app-ink); text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:1px; }
.ep a.ep-st-neben:hover{ color:var(--ep-red); }
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .ep a.ep-st-cta{ transition:background .25s cubic-bezier(.2,.8,.2,1),transform .25s cubic-bezier(.2,.8,.2,1); }
  .ep a.ep-st-cta:hover{ transform:translateY(-1px); }
}
/* Energiefluss-Karte: Schiefer wie die Hero-Karte der Website, in beiden Modi gleich */
.ep .ep-st-ef{ margin:0; padding:18px 20px 16px; border-radius:18px; background:#2E3238; color:#fff; border:1px solid rgba(255,255,255,.08);
  box-shadow:0 4px 12px rgba(0,0,0,.08),0 32px 64px rgba(0,0,0,.10); align-self:center; }
.ep .ep-st-ef__t{ font-family:var(--app-mono,"JetBrains Mono",ui-monospace,monospace); font-size:12px; font-weight:500; letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,.78); }
.ep .ep-st-ef .ef-svg{ margin:10px 0 8px; max-height:150px; }
.ep .ep-st-ef .ef-knoten circle{ fill:#262B30; }
.ep .ep-st-ef__m{ margin:0; font-size:14px; line-height:20px; color:rgba(255,255,255,.78); }
/* Kennzeilen statt Mono-Zeile: ruhige Pillen */
.ep [data-ep-view="uebersicht"] .ep-vhead__meta{ grid-column:1 / -1; display:flex; flex-flow:row wrap; gap:8px; margin:0; font-family:inherit; grid-template-columns:none; }
.ep [data-ep-view="uebersicht"] .ep-vhead__meta > div{ flex:0 0 auto; width:auto; max-width:100%; display:inline-flex; white-space:nowrap; gap:6px; align-items:baseline; padding:6px 14px; border:1px solid var(--app-line); border-radius:999px; background:var(--app-sheet); }
.ep [data-ep-view="uebersicht"] .ep-vhead__meta dt, .ep [data-ep-view="uebersicht"] .ep-vhead__meta dd{ display:block !important; flex:none; position:static !important; width:auto !important; margin:0 !important; transform:none !important; white-space:nowrap; font-family:inherit; font-size:14px; line-height:20px; margin:0; letter-spacing:0; }
.ep [data-ep-view="uebersicht"] .ep-vhead__meta dt{ color:var(--app-ink-3); font-weight:400; }
.ep [data-ep-view="uebersicht"] .ep-vhead__meta dd{ color:var(--app-ink); font-weight:600; }
@media (min-width:1024px){ .ep [data-ep-view="uebersicht"] .ep-vhead{ padding-top:64px; } }   /* Abstand zum festen Knopf „Code eingeben“ */
@media (max-width:1023.98px){ .ep [data-ep-view="uebersicht"] .ep-vhead__meta{ display:none; } }   /* wie bisher: Kennzeilen am Handy/Tablet aus */
@media (min-width:1024px){ .ep [data-ep-view="uebersicht"] .ep-vhead__meta div:nth-child(3){ display:none; } }
/* Energiefluss-Karte erst ab 1200 px: darunter wäre die Textspalte so schmal, dass der Schriftwechsel (Bricolage lädt nach)
   Titel und Einleitung neu umbricht → Layoutsprung (live gemessen 21.10.: CLS 0,066 bei 1024 px). */
@media (max-width:1199.98px){
  .ep [data-ep-view="uebersicht"] .ep-vhead{ grid-template-columns:minmax(0,1fr); }
  .ep .ep-st-ef{ display:none; }
}
@media (max-width:640px){
  .ep a.ep-st-cta{ width:100%; justify-content:center; }
}

/* Abschnittstitel in Website-Größe */
.ep [data-ep-view="uebersicht"] .ep-sech .ep-h2{ font-size:clamp(1.35rem,1.15rem + .8vw,1.75rem); letter-spacing:-.02em; line-height:1.15; }

/* Karten mit Hierarchie: Photovoltaik als Hauptkarte, Gesamtprüfung breit, Energieakte über die volle Breite */
@media (min-width:1024px){
  .ep .ep-cells--start{ grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:none; grid-auto-flow:row dense; }
  .ep .ep-cells--start > [data-ep-kachel="pv"]{ grid-column:span 2; }
  .ep .ep-cells--start > .ep-cell--gesamt{ grid-column:span 2; }
  .ep .ep-cells--start > .ep-cell--akte{ grid-column:span 3; }   /* span statt 1/-1: feste Spalten würde das Grid zuerst setzen (Akte wäre oben) */
}
@media (max-width:1023.98px){
  .ep .ep-cells--start{ grid-template-rows:none; }
  .ep .ep-cells--start > [data-ep-kachel="pv"], .ep .ep-cells--start > .ep-cell--akte{ grid-column:span 2; }
}
@media (max-width:359.98px){   /* dort hat das Raster nur eine Spalte – span 2 würde eine leere Zusatzspalte erzeugen */
  .ep .ep-cells--start > [data-ep-kachel="pv"], .ep .ep-cells--start > .ep-cell--akte{ grid-column:auto; }
}
.ep .ep-cells--start > .ep-cell:not(.ep-cell--akte){ padding:22px 22px 20px; }
.ep .ep-cells--start > .ep-cell:not(.ep-cell--akte)::before{ content:""; display:block; width:44px; height:44px; margin-bottom:14px; border-radius:12px;
  background-color:rgba(204,50,27,.08); background-repeat:no-repeat; background-position:center; background-size:24px 24px; }
.ep .ep-cells--start > .ep-cell .ep-h3{ font-size:1.125rem; line-height:1.3; letter-spacing:-.01em; }
.ep .ep-cells--start > [data-ep-kachel="pv"]{ background:linear-gradient(135deg,var(--app-sheet) 55%,rgba(204,50,27,.06)); }
.ep .ep-cells--start > [data-ep-kachel="pv"] .ep-h3{ font-size:clamp(1.35rem,1.15rem + .7vw,1.65rem); }
.ep .ep-cells--start > [data-ep-kachel="pv"] .ep-help{ font-size:16px !important; line-height:24px; max-width:46ch; }
.ep .ep-cells--start > .ep-cell--gesamt{ background:var(--app-sheet); }
/* Knöpfe in den Karten: ruhig (Umriss in Tinte, 10 px wie .btn), mit Pfeil; Rot gibt es nur einmal oben */
.ep .ep-cells--start .ep-cell:not(.ep-cell--akte) .ep-cell__go a{ border-radius:10px; gap:8px; padding:0 18px; }
.ep .ep-cells--start .ep-cell:not(.ep-cell--akte) .ep-cell__go a::after{ content:"→"; content:"→" / ""; font-weight:500; }
@media (hover:hover){
  .ep .ep-cells--start > .ep-cell:not(.ep-cell--akte):hover{ border-color:var(--app-ink); box-shadow:0 16px 40px rgba(0,0,0,.08); }
  .ep .ep-cells--start .ep-cell:not(.ep-cell--akte) .ep-cell__go a:hover{ background:var(--app-ink); color:var(--app-sheet); }
}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .ep .ep-cells--start > .ep-cell:not(.ep-cell--akte){ transition:border-color .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s cubic-bezier(.2,.8,.2,1),transform .3s cubic-bezier(.2,.8,.2,1); }
  .ep .ep-cells--start > .ep-cell:not(.ep-cell--akte):hover{ transform:translateY(-2px); }
}
.ep .ep-cells--start > .ep-cell:focus-within{ border-color:var(--app-ink); }
/* Energieakte immer zuletzt (Sortierung des Rasters verbindlich, unabhängig von der Platzierung) */
.ep .ep-cells--start > .ep-cell--akte{ order:10; grid-row:auto; }   /* Portal-CSS setzt grid-row:-1 → ohne feste Zeilen wäre das Zeile 1 */
/* Handy (GF 09.10.: zwei Spalten niedriger Karten bleiben): kompakt, kleines Piktogramm, Titel 15 px, ohne Pfeil */
@media (max-width:760px){
  .ep .ep-cells--start > .ep-cell:not(.ep-cell--akte){ padding:14px 14px 14px; }
  .ep .ep-cells--start > .ep-cell:not(.ep-cell--akte)::before{ width:34px; height:34px; margin-bottom:10px; border-radius:10px; background-size:20px 20px; }
  .ep .ep-cells--start > .ep-cell .ep-h3, .ep .ep-cells--start > [data-ep-kachel="pv"] .ep-h3{ font-size:15px; line-height:20px; letter-spacing:0; }
  .ep .ep-cells--start .ep-cell:not(.ep-cell--akte) .ep-cell__go a{ padding:0 12px; }
  .ep .ep-cells--start .ep-cell:not(.ep-cell--akte) .ep-cell__go a::after{ content:none; }
}
/* Energieakte: Hinweis statt grauer, scheinbar defekter Knöpfe */
.ep .ep-cells--start .ep-cell--akte{ background:var(--app-sheet); padding:20px 22px; }
.ep .ep-cells--start .ep-cell--akte .ep-mono{ display:none; }
.ep .ep-cells--start .ep-cell--akte [data-ep-gesamt-text]{ position:static !important; width:auto !important; height:auto !important; margin:4px 0 0 !important; overflow:visible !important; clip:auto !important; white-space:normal !important;
  font-size:15px !important; line-height:22px; color:var(--app-ink-2); }
.ep .ep-cell--akte .ep-btn[aria-disabled="true"]{ background:transparent !important; color:var(--app-ink-3) !important; border:1px dashed var(--app-border) !important; box-shadow:none !important; cursor:not-allowed; gap:8px; }
.ep .ep-cell--akte .ep-btn[aria-disabled="true"]::before{ content:""; width:18px; height:18px; flex:none; background:no-repeat center/18px 18px; }

/* Rot nur einmal: der Assistent-Knopf im leeren Anlagenschema wird ruhig (Umriss), der Hauptknopf steht oben im Einstieg */
.ep [data-ep-view="uebersicht"] .ep-plan-leer__btn.ep-btn--primary{ background:transparent !important; color:var(--app-ink) !important; border:1px solid var(--app-ink) !important; box-shadow:none !important; }
@media (hover:hover){ .ep [data-ep-view="uebersicht"] .ep-plan-leer__btn.ep-btn--primary:hover{ background:var(--app-ink) !important; color:var(--app-sheet) !important; } }

/* Angaben eintragen: Karte im Website-Stil statt grauem Kasten */
.ep .ep-app-einstieg .ep-einstieg, .ep .ep-app-einstieg > form, .ep .ep-app-einstieg .ep-k1{ background:var(--app-sheet) !important; border:1px solid var(--app-line); border-radius:14px; box-shadow:0 1px 2px rgba(0,0,0,.02),0 8px 24px rgba(0,0,0,.04); }

/* Seitenleiste: ruhige Navigation mit klarem aktivem Zustand, Gruppentitel ohne Mono */
.ep .ep-app-navgrp__t{ font-family:var(--ep-font) !important; font-size:14px !important; font-weight:600; letter-spacing:.04em; color:var(--app-ink-3); }
.ep .ep-app-nav a{ border-radius:10px; }
.ep .ep-app-nav a[aria-current="page"]{ background:var(--app-sheet); box-shadow:0 1px 2px rgba(0,0,0,.04),0 6px 16px rgba(0,0,0,.05); font-weight:600; }
@media (hover:hover){ .ep .ep-app-nav a:not([aria-current]):hover{ background:var(--app-sheet); } }
.ep .ep-app-sidefoot > .ep-mono{ font-family:var(--ep-font); font-size:14px; letter-spacing:0; color:var(--app-ink-3); }

/* Rechner-Startseiten: Einstiegskarte und Titel im Website-Maß */
.ep .ep-hero{ border-radius:18px; box-shadow:0 1px 2px rgba(0,0,0,.02),0 8px 24px rgba(0,0,0,.04); }
.ep .ep-hero__t{ font-size:clamp(1.75rem,1.3rem + 1.6vw,2.6rem); letter-spacing:-.03em; line-height:1.05; }

/* Piktogramme (hell) */
@media (prefers-color-scheme:light), not all and (prefers-color-scheme:dark){
  .ep .ep-cells--start > .ep-cell[data-ep-kachel="pv"]::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CC321B' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7' cy='6' r='2.4'/%3E%3Cpath d='M7 1.5v1.2M7 9.3v1.2M2.5 6h1.2M10.3 6h1.2M3.9 2.9l.8.8M9.3 8.3l.8.8M3.9 9.1l.8-.8M9.3 3.7l.8-.8'/%3E%3Cpath d='M8 21l3-8h11l-3 8z'/%3E%3Cpath d='M12.5 17h8M15 13l-2 8M18.5 13l-2 8'/%3E%3C/svg%3E"); }
  .ep .ep-cells--start > .ep-cell[data-ep-kachel="speicher"]::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CC321B' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='6' width='14' height='15' rx='2'/%3E%3Cpath d='M9 3.5h6M9 13.5h6M12 10.5v6'/%3E%3C/svg%3E"); }
  .ep .ep-cells--start > .ep-cell[data-ep-kachel="wallbox"]::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CC321B' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='10' height='18' rx='2'/%3E%3Cpath d='M7 7h4M9.5 11l-2 3h3l-2 3'/%3E%3Cpath d='M14 10h2.5a2 2 0 0 1 2 2v5a1.5 1.5 0 0 0 3 0V9l-2-2'/%3E%3C/svg%3E"); }
  .ep .ep-cells--start > .ep-cell[data-ep-kachel="foerder"]::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CC321B' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M15.5 8.6a4.2 4.2 0 1 0 0 6.8M7 10.8h6.5M7 13.4h6.5'/%3E%3C/svg%3E"); }
  .ep .ep-cells--start > .ep-cell[data-ep-kachel="lastspitzen"]::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CC321B' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20h18'/%3E%3Cpath d='M3 16l3.5-3 3 2 3.5-8 3 6 2-2 3 3'/%3E%3Cpath d='M16.5 4.5h3v3'/%3E%3C/svg%3E"); }
  .ep .ep-cells--start > .ep-cell[data-ep-tools="p2p"]::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CC321B' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='12' r='2.6'/%3E%3Ccircle cx='18' cy='6' r='2.6'/%3E%3Ccircle cx='18' cy='18' r='2.6'/%3E%3Cpath d='M8.3 10.8l7.4-3.6M8.3 13.2l7.4 3.6'/%3E%3C/svg%3E"); }
  .ep .ep-cells--start > .ep-cell.ep-cell--gesamt::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CC321B' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3.5' width='14' height='17' rx='2'/%3E%3Cpath d='M9 3.5V2h6v1.5M8.5 9l1.5 1.5 3-3M8.5 15l1.5 1.5 3-3M15 9.5h1.5M15 15.5h1.5'/%3E%3C/svg%3E"); }
  .ep .ep-cell--akte .ep-btn[aria-disabled="true"]::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E5E5A' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
}
@media (prefers-color-scheme:dark){
  .ep .ep-cells--start > .ep-cell[data-ep-kachel="pv"]::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF8A73' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7' cy='6' r='2.4'/%3E%3Cpath d='M7 1.5v1.2M7 9.3v1.2M2.5 6h1.2M10.3 6h1.2M3.9 2.9l.8.8M9.3 8.3l.8.8M3.9 9.1l.8-.8M9.3 3.7l.8-.8'/%3E%3Cpath d='M8 21l3-8h11l-3 8z'/%3E%3Cpath d='M12.5 17h8M15 13l-2 8M18.5 13l-2 8'/%3E%3C/svg%3E"); }
  .ep .ep-cells--start > .ep-cell[data-ep-kachel="speicher"]::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF8A73' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='6' width='14' height='15' rx='2'/%3E%3Cpath d='M9 3.5h6M9 13.5h6M12 10.5v6'/%3E%3C/svg%3E"); }
  .ep .ep-cells--start > .ep-cell[data-ep-kachel="wallbox"]::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF8A73' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='10' height='18' rx='2'/%3E%3Cpath d='M7 7h4M9.5 11l-2 3h3l-2 3'/%3E%3Cpath d='M14 10h2.5a2 2 0 0 1 2 2v5a1.5 1.5 0 0 0 3 0V9l-2-2'/%3E%3C/svg%3E"); }
  .ep .ep-cells--start > .ep-cell[data-ep-kachel="foerder"]::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF8A73' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M15.5 8.6a4.2 4.2 0 1 0 0 6.8M7 10.8h6.5M7 13.4h6.5'/%3E%3C/svg%3E"); }
  .ep .ep-cells--start > .ep-cell[data-ep-kachel="lastspitzen"]::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF8A73' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20h18'/%3E%3Cpath d='M3 16l3.5-3 3 2 3.5-8 3 6 2-2 3 3'/%3E%3Cpath d='M16.5 4.5h3v3'/%3E%3C/svg%3E"); }
  .ep .ep-cells--start > .ep-cell[data-ep-tools="p2p"]::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF8A73' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='12' r='2.6'/%3E%3Ccircle cx='18' cy='6' r='2.6'/%3E%3Ccircle cx='18' cy='18' r='2.6'/%3E%3Cpath d='M8.3 10.8l7.4-3.6M8.3 13.2l7.4 3.6'/%3E%3C/svg%3E"); }
  .ep .ep-cells--start > .ep-cell.ep-cell--gesamt::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF8A73' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3.5' width='14' height='17' rx='2'/%3E%3Cpath d='M9 3.5V2h6v1.5M8.5 9l1.5 1.5 3-3M8.5 15l1.5 1.5 3-3M15 9.5h1.5M15 15.5h1.5'/%3E%3C/svg%3E"); }
  .ep .ep-cell--akte .ep-btn[aria-disabled="true"]::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9ACB1' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
  .ep .ep-cells--start > .ep-cell:not(.ep-cell--akte)::before{ background-color:rgba(255,138,115,.14); }
  .ep .ep-cells--start > [data-ep-kachel="pv"]{ background:linear-gradient(135deg,var(--app-sheet) 55%,rgba(255,138,115,.08)); }
  .ep a.ep-st-cta{ box-shadow:0 0 0 1px rgba(255,255,255,.08),0 8px 24px rgba(0,0,0,.35); }
  .ep a.ep-st-cta:hover{ background:#D83C24; }
  .ep .ep-st-ef{ border-color:rgba(255,255,255,.12); box-shadow:0 2px 8px rgba(0,0,0,.45),0 20px 40px rgba(0,0,0,.5); }
  .ep .ep-cells--start > .ep-cell:not(.ep-cell--akte):hover{ box-shadow:0 10px 24px rgba(0,0,0,.45); }
  .ep .ep-app-nav a[aria-current="page"]{ box-shadow:0 1px 2px rgba(0,0,0,.35),0 6px 16px rgba(0,0,0,.30); }
  .ep .ep-app-einstieg .ep-einstieg, .ep .ep-app-einstieg > form, .ep .ep-app-einstieg .ep-k1{ box-shadow:0 1px 2px rgba(0,0,0,.35),0 6px 16px rgba(0,0,0,.30); }
}
/* STUDIO-2 ENDE */
/* ZUGANG-2 START – Zugang 2.0 „Meine Energieakte“ (docs/SPEZ-ZUGANG-2.md §7, 14.11.2026). Nur vorhandene Tokens. */
/* Handy-Leiste: sechster Eintrag „Akte“, sobald die Energieakte verfügbar ist (portal-app.js zugangSichtbarkeit) */
/* Spalten nach Inhalt (gleich verteilter Rest): bei 6 gleich breiten Spalten bräche „Übersicht“ am Handy mitten im Wort um */
.ep .ep-app-tabs:has(> [data-ep-tab-akte]:not([hidden])){grid-template-columns:repeat(6,auto)}
.ep .ep-app-tabs:has(> [data-ep-tab-akte]:not([hidden])) > * > span:not(.ep-mono){overflow-wrap:normal;word-break:normal;hyphens:manual}
/* Energieakte (portal-konto.js): Einträge, Detail, Formulare */
.ep .ep-akte-item .ep-konto-panel{flex-basis:100%}
.ep .ep-konto-panel{margin-top:var(--ep-sp-2)}
.ep .ep-akte .ep-akte-t strong{overflow-wrap:anywhere}
.ep .ep-akte-sum{white-space:pre-line}
.ep .ep-konto-detail .ep-akte-dl{margin-bottom:var(--ep-sp-4)}
.ep .ep-konto-hilfe{margin-top:var(--ep-sp-3)}
.ep .ep-konto-liste,.ep .ep-konto-anmelden,.ep .ep-konto-link{margin-top:var(--ep-sp-2)}
.ep .ep-akte .ep-in.ep-konto-ta{height:auto;min-height:96px;padding:var(--ep-sp-2) var(--ep-sp-3);resize:vertical;max-width:560px}
.ep .ep-konto-status{margin:var(--ep-sp-2) 0 0}
.ep [data-ep-teilen-slot],.ep [data-wz-save-slot]{margin-top:var(--ep-sp-3)}   /* Übersicht/Assistent: Knopf nicht an der Auswahl kleben */
.ep .ep-konto-liste:has(.ep-akte-list) + .ep-akte-end{border-top:0;padding-top:0}   /* keine doppelte Linie unter der Liste */
/* Sekundärknopf in Akte und Dialog umrandet (die Brücke „.ep .ep-akte .ep-btn{border:1px solid transparent}“ war spezifischer) */
.ep .ep-akte .ep-btn--secondary,.ep-dialog.ep .ep-btn--secondary{background:var(--ep-surface);border-color:var(--ep-ink);color:var(--ep-ink)}
.ep .ep-akte .ep-btn--secondary:hover,.ep-dialog.ep .ep-btn--secondary:hover{background:var(--ep-tint)}
/* Dunkel: angehakte Kästchen haben hellen Grund (--ep-ink) – Häkchen dann dunkel statt weiß (vorher unsichtbar) */
@media (prefers-color-scheme:dark){
  .ep-save.ep .ep-check input:checked,.ep-dialog.ep .ep-check input:checked,.ep .ep-akte .ep-check input:checked{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23262B30' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
}
/* ZUGANG-2 ENDE */
