/* Elektrizitätswerk Leitlein – Stylesheet
   Angelehnt an leitlein.com (Aufbau, Schrift, graue Karten, Pillen-Navigation),
   neutral gehalten, Grün nur als Akzent. Keine externen Schriften, keine Cookies. */

:root {
  --text: #353836;
  --text-leise: #626663;
  --linie: #e2e3e0;
  --flaeche: #f3f3f1;
  --flaeche-tief: #e9eae6;
  --dunkel: #3b3f3c;
  --gruen: #2f7a35;          /* Akzent, Kontrast 5,4:1 auf Weiß */
  --gruen-hell: #e8f1e6;
  --warn: #fff4c2;
  --warn-rand: #c9a400;
  --fehler: #a32a1f;
  --breite: 1160px;
  --radius: 6px;
  --schrift: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; margin: 0; background: #fff; color: var(--text); font-family: var(--schrift); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--gruen); text-underline-offset: 3px; }
a:hover { color: #1f5a24; }
:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 16px; }

h1, h2, h3 { hyphens: manual; color: var(--dunkel); line-height: 1.25; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.01em; }
h2 { font-size: clamp(23px, 2.6vw, 29px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.klein { font-size: 14px; color: var(--text-leise); }
.eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gruen); margin-bottom: .6em; }

/* ---------- Kopf ---------- */
.kopf { position: relative; z-index: 3; }
.kopf-innen { max-width: var(--breite); margin: 0 auto; padding: 12px 16px 8px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.marke { text-decoration: none; color: var(--dunkel); display: flex; flex-direction: column; line-height: 1.1; }
.marke img { height: 58px; width: auto; align-self: flex-start; }
.marke-wort { font-weight: 900; font-size: 30px; letter-spacing: .06em; font-style: italic; }
.marke-wort::after { content: ""; display: block; width: 44px; height: 3px; background: var(--gruen); margin-top: 4px; }
.marke-zusatz { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-leise); margin-top: 6px; }
.kopf-kontakt { display: flex; gap: 28px; flex-wrap: wrap; font-size: 16px; }
.kopf-kontakt p { margin: 0; display: flex; gap: 8px; align-items: baseline; white-space: nowrap; }
.kopf-kontakt a { color: var(--dunkel); font-weight: 700; text-decoration: none; }
.kopf-kontakt .stoerung a { color: var(--gruen); }

.navi { max-width: var(--breite); margin: 0 auto -24px; padding: 0 16px; display: flex; justify-content: flex-end; position: relative; }
.navi ul { list-style: none; margin: 0; padding: 0; }
.navi-gross { display: flex; background: var(--gruen); border-radius: 999px; padding: 4px 10px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.navi-gross a { display: block; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; padding: 9px 16px; border-radius: 999px; }
.navi-gross a:hover { background: rgba(0,0,0,.12); color: #fff; }
.navi-gross a.aktiv { text-decoration: underline; text-decoration-color: #fff; text-decoration-thickness: 3px; text-underline-offset: 7px; }
.navi-mobil { display: none; width: 100%; }
.navi-mobil summary { list-style: none; cursor: pointer; background: var(--gruen); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 10px 18px; border-radius: 999px; display: inline-block; }
.navi-mobil summary::-webkit-details-marker { display: none; }
.navi-mobil summary::after { content: " +"; }
.navi-mobil[open] summary::after { content: " ×"; }
.navi-mobil ul { margin-top: 10px; border: 1px solid var(--linie); border-radius: var(--radius); background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.navi-mobil a { display: block; padding: 12px 16px; border-bottom: 1px solid var(--linie); text-decoration: none; color: var(--dunkel); font-weight: 700; }
.navi-mobil li:last-child a { border-bottom: 0; }
.navi-mobil a.aktiv { color: var(--gruen); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--flaeche); min-height: 380px; display: flex; align-items: flex-end; overflow: hidden; }
/* Titelbild ganz sichtbar, rechts, nach links weich ausgeblendet (Petra, 26.11.2026) */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: url("bild-hero.jpg") right center / auto 100% no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 25%, #000 60%); mask-image: linear-gradient(90deg, transparent 0, transparent 25%, #000 60%); }
.hero::before { z-index: 1; }
.hero-innen { z-index: 2; }
.hero-welle { z-index: 3; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.86) 46%, rgba(255,255,255,0) 78%); }
.hero-innen { position: relative; max-width: var(--breite); width: 100%; margin: 0 auto; padding: 56px 16px 92px; }
.hero-text { max-width: 620px; }
.hero-text p { font-size: 19px; color: var(--text); }
.hero-welle { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 60px; display: block; }
.hero-klein { min-height: 0; }
.hero-klein .hero-innen { padding: 40px 16px 76px; }

/* ---------- Bereiche ---------- */
.bereich { max-width: var(--breite); margin: 0 auto; padding: 48px 16px; }
.bereich + .bereich { padding-top: 8px; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.kachel { background: var(--flaeche); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 6px; border-top: 3px solid transparent; transition: border-color .15s, background .15s; }
a.kachel:hover { border-top-color: var(--gruen); background: var(--flaeche-tief); color: var(--text); }
.kachel h3 { margin: 0; }
.kachel p { margin: 0; color: var(--text-leise); font-size: 16px; }
.kachel .weiter { margin-top: auto; padding-top: 10px; color: var(--gruen); font-weight: 700; font-size: 15px; }
.kachel-stoerung { background: var(--dunkel); color: #fff; }
.kachel-stoerung h3, .kachel-stoerung p { color: #fff; }
.kachel-stoerung a { color: #fff; font-size: 24px; font-weight: 700; text-decoration: none; }

.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.karte { background: var(--flaeche); border-radius: var(--radius); padding: 28px; }

/* ---------- Inhaltsseiten mit Seitennavigation ---------- */
.inhalt-raster > * { min-width: 0; }
.inhalt-raster { max-width: var(--breite); margin: 0 auto; padding: 40px 16px 64px; display: grid; grid-template-columns: 240px 1fr; gap: 48px; }
.seitennavi { position: sticky; top: 16px; align-self: start; font-size: 15px; }
.seitennavi p { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--text-leise); margin-bottom: 8px; }
.seitennavi ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--linie); }
.seitennavi a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text); text-decoration: none; }
.seitennavi a:hover { border-left-color: var(--gruen); color: var(--gruen); }
.abschnitt { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--linie); scroll-margin-top: 16px; }
.abschnitt:last-child { border-bottom: 0; }
.abschnitt h3 { margin-top: 1.4em; }
.lesebreite { max-width: 900px; }

/* Dokumentlisten */
.dokumente { list-style: none; margin: 0 0 1.2em; padding: 0; border-top: 1px solid var(--linie); }
.dokumente li { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 24px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.dokumente a { font-weight: 700; text-decoration: none; color: var(--dunkel); padding-left: 26px; position: relative; }
/* Symbole: Dokument = hochkant, externe Seite = Kasten mit Pfeil, eigene Seite = Pfeil (23.10.2026) */
.dokumente a::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--gruen); font-weight: 700; }
.dokumente a[href$=".pdf"]::before, .dokumente a[href$=".xlsx"]::before, .dokumente a[href$=".zip"]::before, .dokumente a[href$=".csv"]::before,
a.pdf::before { content: ""; position: absolute; left: 0; top: 3px; width: 13px; height: 17px; border: 2px solid var(--gruen); border-radius: 2px; }
.dokumente a[href^="http"]::before { content: "↗"; top: 2px; width: 16px; height: 16px; border: 2px solid var(--gruen); border-radius: 3px; font-size: 12px; line-height: 16px; text-align: center; }
a.pdf { position: relative; padding-left: 24px; font-weight: 700; text-decoration: none; color: var(--dunkel); }
a.pdf:hover { color: var(--gruen); text-decoration: underline; }
.tarife th[scope="row"] { font-weight: 700; }
.tarife td.leer { color: var(--text-leise); font-size: 15px; }
.dokumente li.anlage > a { margin-left: 24px; }
.dokumente a:hover { color: var(--gruen); text-decoration: underline; }
.dokumente .meta { color: var(--text-leise); font-size: 15px; text-align: right; line-height: 1.4; text-wrap: balance; }
.dokumente li > span:first-child { font-weight: 700; padding-left: 26px; position: relative; }
.dokumente li > span:first-child::before { content: ""; position: absolute; left: 1px; top: 4px; width: 12px; height: 16px; border: 2px dashed var(--text-leise); border-radius: 2px; }
@media (max-width: 640px) { .dokumente li { grid-template-columns: 1fr; row-gap: 2px; } .dokumente .meta { text-align: left; padding-left: 26px; } .dokumente li.anlage .meta { padding-left: 50px; } }
details.archiv { margin: -.4em 0 1.2em; }
details.archiv summary { cursor: pointer; color: var(--gruen); font-weight: 700; font-size: 15px; }

/* Tabellen */
.tabelle-huelle { overflow-x: auto; margin-bottom: 1.2em; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
caption { text-align: left; font-weight: 700; padding-bottom: 8px; color: var(--dunkel); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linie); vertical-align: top; }
thead th { background: var(--flaeche); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-leise); }
td.zahl, th.zahl { text-align: right; white-space: nowrap; }

.hinweis { background: var(--gruen-hell); border-left: 4px solid var(--gruen); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.2em; }
.hinweis p:last-child { margin: 0; }
.stand { display: inline-block; font-size: 14px; color: var(--text-leise); background: var(--flaeche); border-radius: 999px; padding: 2px 12px; margin-bottom: 12px; }

/* Platzhalter: vor dem Livegang müssen alle verschwunden sein (pruefen.py) */
.ph { display: inline-block; background: var(--warn); border: 1px dashed var(--warn-rand); color: #5c4a00; font-size: 13px; font-weight: 700; padding: 1px 8px; border-radius: 4px; vertical-align: middle; }
.ph::before { content: "PLATZHALTER: "; }

/* ---------- Formulare ---------- */
.formular { max-width: 760px; }
fieldset { border: 1px solid var(--linie); border-radius: var(--radius); padding: 20px 22px 8px; margin: 0 0 24px; }
legend { font-weight: 700; color: var(--dunkel); padding: 0 6px; font-size: 18px; }
.feld { margin-bottom: 18px; }
.feld label, .feld .label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 16px; }
.feld .hilfe { display: block; font-size: 14px; color: var(--text-leise); margin: -2px 0 6px; }
.pflicht { color: var(--fehler); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], select, textarea {
  width: 100%; font: inherit; font-size: 17px; padding: 11px 12px; border: 1px solid #b9bcb7; border-radius: var(--radius); background: #fff; color: var(--text);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gruen); outline: 2px solid var(--gruen-hell); }
.reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.reihe-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.auswahl label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-bottom: 8px; }
.auswahl input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--gruen); }
.honig { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.knopf { display: inline-block; background: var(--gruen); color: #fff; border: 0; border-radius: 999px; font: inherit; font-weight: 700; font-size: 17px; padding: 13px 28px; cursor: pointer; text-decoration: none; }
.knopf:hover { background: #22602a; color: #fff; }
.knopf-zweit { background: #fff; color: var(--gruen); border: 2px solid var(--gruen); }
.knopf-zweit:hover { background: var(--gruen-hell); color: var(--gruen); }
.datenschutz-hinweis { font-size: 15px; color: var(--text-leise); }
.fehlerliste { background: #fbeceb; border-left: 4px solid var(--fehler); padding: 16px 20px; margin-bottom: 24px; }
.beleg { border: 1px solid var(--linie); border-radius: var(--radius); padding: 20px 24px; margin: 20px 0; background: #fff; }
.beleg dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.beleg dt { font-weight: 700; }
.beleg dd { margin: 0; }

/* ---------- Fuß ---------- */
.fuss { background: var(--flaeche); margin-top: 32px; font-size: 16px; }
.fuss-innen { max-width: var(--breite); margin: 0 auto; padding: 40px 16px 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.fuss h2 { font-size: 16px; text-transform: uppercase; letter-spacing: .06em; color: var(--dunkel); }
.fuss a { color: var(--text); }
.fuss-liste { list-style: none; margin: 0; padding: 0; }
.fuss-liste li { margin-bottom: 6px; }
.fuss a.knopf-pflicht { font-weight: 700; color: var(--gruen); }
.fuss-leiste { border-top: 1px solid var(--linie); }
.fuss-leiste p { max-width: var(--breite); margin: 0 auto; padding: 14px 16px; font-size: 14px; color: var(--text-leise); }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .inhalt-raster { grid-template-columns: 1fr; gap: 16px; }
  .seitennavi { position: static; }
  .zwei { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .navi-gross { display: none; }
  .navi-mobil { display: block; }
  .navi { justify-content: flex-start; }
  .kopf-kontakt { gap: 20px; font-size: 15px; width: 100%; }
  .kopf-kontakt .ph { display: none; }
  .marke-wort { font-size: 26px; }
  .kopf-innen { gap: 14px; }
  .hero::before { background: rgba(255,255,255,.9); }
  .hero-innen { padding: 36px 16px 72px; }
  .reihe, .reihe-3 { grid-template-columns: 1fr; gap: 0; }
  .fuss-innen { grid-template-columns: 1fr; gap: 8px; }
  .beleg dl { grid-template-columns: 1fr; }
  .beleg dd { margin-bottom: 8px; }
}

@media print {
  .kopf .navi, .fuss, .skip, .knopf { display: none !important; }
  .ph { border: 1px solid #000; }
}

/* Stromkennzeichnung als Balken (23.10.2026) */
.mix { display: flex; height: 38px; border-radius: var(--radius); overflow: hidden; margin: 8px 0 10px; font-size: 14px; font-weight: 700; color: #fff; }
.mix span { display: flex; align-items: center; justify-content: center; }
.mix-ee { background: var(--gruen); } .mix-kern { background: var(--dunkel); } .mix-fossil { background: #8a8f8b; }
.mix-legende { list-style: none; padding: 0; margin: 0 0 1.2em; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; color: var(--text-leise); }
.mix-legende span { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.mix-titel { margin: 14px 0 0; font-size: 15px; font-weight: 700; color: var(--dunkel); }
th, td, .kachel, .dokumente, .meta { hyphens: manual; -webkit-hyphens: manual; }
