/* Energiebörse – Website. Farben aus ci/build/farben.py (CI), Schriften selbst gehostet. */
@font-face { font-family: "Source Sans 3"; src: url("../fonts/sourcesans3.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Code Pro"; src: url("../fonts/sourcecodepro.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --tinte: #28323A;
  --rot: #A82E24;
  --rot-tief: #902219;
  --grau: #5C6B7E;
  --eis: #EEF2F6;
  --weiss: #FFFFFF;
  --gelb: #E8AF22;
  --blau: #24598D;
  --linie: rgb(40 50 58 / .14);
  --linie-hell: rgb(255 255 255 / .22);

  --schrift: "Source Sans 3", "Source Sans Pro", sans-serif;
  --ziffern: "Source Code Pro", ui-monospace, monospace;

  --rand: 24px;
  --kopf: 80px;
  --logo: 56px;
  --ab-oben: 88px;
  --ab-unten: 72px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 768px) { :root { --rand: 48px; } }
@media (min-width: 1024px) { :root { --kopf: 112px; --logo: 80px; --ab-oben: 120px; --ab-unten: 104px; } }
@media (min-width: 1280px) { :root { --rand: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf) + 16px); }
body {
  margin: 0; background: var(--weiss); color: var(--tinte);
  font: 400 17px/1.6 var(--schrift);
  font-variant-numeric: lining-nums;
  hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 18px; } }
::selection { background: var(--rot); color: var(--weiss); }
:focus-visible { outline: 2px solid var(--rot); outline-offset: 2px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; hyphens: manual; }
p { margin: 0; text-wrap: pretty; }
.abschnitt p + p { margin-top: 16px; }
.firma p + p, .person p + p { margin-top: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 2 * var(--rand), 1280px); margin-inline: auto; }
.nur-leser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprung { position: absolute; left: 16px; top: -64px; z-index: 50; background: var(--tinte); color: var(--weiss); padding: 12px 16px; border-radius: 6px; }
.sprung:focus { top: 16px; }

h2 { font-size: 30px; line-height: 1.12; letter-spacing: -.01em; }
h3 { font-size: 21px; line-height: 1.25; }
.lead { font-size: 19px; line-height: 1.5; }
.klein { font-size: 15px; line-height: 1.5; color: var(--grau); }
@media (min-width: 1024px) {
  h2 { font-size: 48px; letter-spacing: -.015em; }
  h3 { font-size: 24px; }
  .lead { font-size: 22px; }
}

/* ---------------------------------------------------------------- Knöpfe und Links */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px; border: 0; border-radius: 6px;
  background: var(--rot); color: var(--weiss);
  font: 600 18px/1.2 var(--schrift); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 150ms ease, transform 160ms var(--ease-out);
}
.knopf:active { transform: scale(.97); }
.knopf:disabled { opacity: .55; cursor: progress; }
.textlink { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em;
  transition: text-decoration-thickness 150ms ease; }
@media (hover: hover) and (pointer: fine) {
  .knopf:hover { background: var(--rot-tief); }
  .textlink:hover, .kopf-nav a:hover { text-decoration-thickness: 2px; }
}

/* ---------------------------------------------------------------- Kopf */
.kopf { position: sticky; top: 0; z-index: 20; background: var(--weiss); border-bottom: 1px solid var(--linie); }
.kopf .wrap { height: var(--kopf); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.kopf-logo { display: block; flex: none; }
.kopf-logo img { height: var(--logo); width: auto; }
.kopf-nav { display: none; }
.kopf-kurz { min-height: 44px; padding: 0 14px; font-size: 15px; margin-left: auto; white-space: nowrap; }
@media (max-width: 479px) {
  .kopf .wrap { gap: 12px; }
  .menue-wort { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menue-knopf { min-width: 44px; justify-content: center; }
}
@media (max-width: 359px) { .kopf-kurz { display: none; } }
@media (min-width: 1024px) { .kopf-kurz { display: none; } }
.menue-knopf {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 4px;
  background: none; border: 0; color: var(--tinte); font: 600 18px/1 var(--schrift); cursor: pointer;
}
.menue-knopf .striche { width: 22px; height: 14px; position: relative; }
.menue-knopf .striche::before, .menue-knopf .striche::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; }
.menue-knopf .striche::before { top: 2px; } .menue-knopf .striche::after { bottom: 2px; }
.menue {
  position: fixed; inset: var(--kopf) 0 0 0; z-index: 19; background: var(--weiss);
  padding: 16px var(--rand) 32px; display: none; flex-direction: column;
}
.menue.offen { display: flex; }
.menue a:not(.knopf) { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--linie); font-size: 21px; font-weight: 600; text-decoration: none; }
.menue .knopf { margin-top: 24px; }
@media (min-width: 1024px) {
  .menue-knopf, .menue { display: none !important; }
  .kopf-nav { display: flex; align-items: center; gap: 32px; }
  .kopf-nav a:not(.knopf) { font-weight: 600; text-decoration: none; font-size: 18px; padding: 12px 0; }
  .kopf-nav .knopf { min-height: 48px; padding: 0 22px; font-size: 17px; }
}
@media (min-width: 1024px) and (max-width: 1199px) { .kopf-nav { gap: 22px; } .kopf-nav .nav-privat { display: none; } }

/* ---------------------------------------------------------------- Hero „Vom Markt ins Quartier“ (Entwurf 2)
   Ebenen im Hero (isolation): Börsenhimmel 2 · 1 Quartier (Canvas) · 2 Leitung (SVG) · 3 Pins, Kurs-Punkt,
   Kursschild · 4 Text. Laptop: Text links, Quartier rechts unten, „heute“ rechts oben. Handy: Text oben, Quartier
   in der Mitte, Knopf unten. */
.hero { position: relative; height: calc(100svh - var(--kopf)); min-height: 560px; overflow: hidden; background: var(--weiss); isolation: isolate; }
@media (min-width: 768px) { .hero { min-height: 640px; max-height: 1080px; } }

/* Börsenhimmel 2 (css/himmel2.css, js/himmel2.js; Startseite umgestellt 21.11. nachmittags): Einzelteile ohne Rand statt
   Himmelbild + Auslauf-Verlauf. Der Grund jeder Fläche hat die Farbe ihrer Nachbarn (Hero und 404: Weiß, Anfrage: --eis),
   die Teile enden vor den Übergangskanten, also nirgends eine Kante beim Scrollen. Mit JS setzt himmel2.js die Lage nach
   Text, Karte und Quartier (js/hero.js, js/seite.js, bau/404.html); die Werte hier sind das Standbild ohne JS (aus den
   JS-Lagen bei 1440 × 900 bzw. 390 × 844 übernommen). Licht gibt es nur mit JS. */
.hero > .himmel2 { z-index: 0; }
.anfrage > .himmel2, .nicht-da > .himmel2 { z-index: -1; }
.hero .h2-grund { --x: 50%; --y: 33.4%; --rx: 105%; --ry: 60.1%; }
.hero .h2-dunst { --x: 102%; --y: 9.1%; --rx: 62%; --ry: 20.9%; }
.hero .h2-dunst + .h2-dunst { --x: 55%; --y: 53.2%; --rx: 95%; --ry: 35.7%; }
.hero .h2-zug { --x: 50%; --y: 67.8%; --rx: 72%; --ry: 21.2%; }
@media (min-width: 1024px) {
  .hero .h2-grund { --x: 42%; --y: 36%; --rx: 78%; --ry: 57.5%; }
  .hero .h2-dunst { --x: 103%; --y: 30%; --rx: 40%; --ry: 59%; }
  .hero .h2-dunst + .h2-dunst { --x: 60%; --y: 24%; --rx: 28%; --ry: 42%; }
  .hero .h2-zug { --x: 62%; --y: 68%; --rx: 52%; --ry: 20%; }
}

/* Quartier (Canvas) und Pins. Die Lage hier ist der Standard; js/hero.js (platz) rückt die Bühne, wenn das Quartier
   sonst an Text stößt (Laptop nach rechts, Handy/Tablet nach unten), und begrenzt den Maßstab (rahmen). */
.hero-quartier { position: absolute; left: 0; right: 0; top: 34%; bottom: 88px; }
.q-buehne { position: absolute; inset: 0; z-index: 1; }
.q-buehne canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.zieht .q-buehne canvas { cursor: grabbing; }
.q-pins { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
html:not(.js) .hero-quartier, .ohne-3d .hero-quartier { display: none; }

.q-pin { position: absolute; left: 0; top: 0; pointer-events: auto; color: var(--tinte); text-decoration: none; }
.q-pin .punkt { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--rot); box-shadow: 0 0 0 3px var(--weiss); }
.q-pin .schild { position: absolute; left: 0; bottom: 18px; translate: calc(-50% + var(--dx, 0px)) 0;
  display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 6px; background: var(--weiss);
  width: max-content; white-space: nowrap; box-shadow: 0 1px 2px rgb(40 50 58 / .14), 0 8px 20px -10px rgb(40 50 58 / .28); }
.q-pin .schild::after { content: ""; position: absolute; left: calc(50% - var(--dx, 0px)); bottom: -8px; width: 2px; height: 8px; background: inherit; translate: -50% 0; }
.q-pin img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; }
.s-text { display: flex; flex-direction: column; line-height: 1.15; }
.s-name { font-size: 15px; font-weight: 600; }
.s-ort { margin-top: 2px; font-size: 13px; color: var(--grau); }
.s-zahl { padding-left: 7px; font: 600 28px/1 var(--ziffern); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.q-pin.solar .schild { padding: 7px 12px 8px; background: var(--gelb); }
.q-pin.solar .s-ort { color: var(--tinte); }
.q-pin:focus-visible { outline: none; }
.q-pin:focus-visible .schild { outline: 2px solid var(--rot); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .q-pin:hover .s-name { text-decoration: underline; text-underline-offset: .2em; } }

/* Pins interaktiv (21.11.): Hover/Fokus lässt das ganze Schild mit Feder wachsen. Nur am .schild (scale), nie am .q-pin
   (dessen transform setzt js/quartier.js). Erst nach dem Einstieg (.pins-fertig), sonst gälten dessen Verzögerungen. */
.q-pin:not(.kurs) { cursor: pointer; }
.q-pin:not(.kurs):hover, .q-pin:not(.kurs):focus-visible { z-index: 2000 !important; }
@media (prefers-reduced-motion: no-preference) {
  .hero.pins-fertig .q-pin .schild { transition: opacity 260ms ease 420ms, scale 200ms var(--ease-out), box-shadow 200ms ease; }
  .hero.pins-fertig .q-pin .punkt { transition: scale 200ms var(--ease-out); }
  .pins-fertig .q-pin:not(.kurs):is(:hover, :focus-visible) .schild {
    scale: 1.08; box-shadow: 0 1px 2px rgb(40 50 58 / .16), 0 14px 28px -12px rgb(40 50 58 / .38);
    transition: opacity 260ms ease 420ms, box-shadow 200ms ease,
      scale 620ms linear(0, 0.055, 0.184, 0.343, 0.503, 0.649, 0.771, 0.867, 0.937, 0.985, 1.015, 1.031, 1.038, 1.038, 1.034, 1.028, 1.022, 1.016, 1.011, 1.007, 1.004, 1.001, 1, 0.999, 0.999, 0.999, 1);
  }
  .pins-fertig .q-pin:not(.kurs):is(:hover, :focus-visible) .punkt { scale: 1.15; }
}

/* Fokus: Karte offen. Text und andere Pins treten zurück, das aktive Schild ist zur Karte geworden (der Punkt bleibt
   am Gebäude). Zurück: erst die Kamera, dann kommen Text und Pins wieder. */
.hero-inhalt { transition: opacity 360ms ease 320ms; }
.hero.fokus .hero-inhalt { opacity: 0; transition: opacity 180ms ease; }
.hero .q-pin { transition: opacity 300ms ease 380ms; }
.hero.fokus .q-pin:not(.aktiv) { opacity: 0; transition: opacity 160ms ease; }
.hero.fokus .q-pin { pointer-events: none; }
.hero.fokus .q-pin.aktiv .schild { opacity: 0; transition: opacity 120ms ease; }
.hero.fokus .q-pin.aktiv.nur-breit { display: block !important; }
.hero.fokus .q-buehne canvas { cursor: default; }
/* Im Fokus (gezoomt) reicht das Modell bis an den Rand der Bühne: Rand weich auslaufen lassen statt harter Schnittkante
   (Laptop links, wo die Bühne bei 34 % beginnt; Handy oben und unten, die Bühne ist kürzer als der Hero). */
.hero.rand-weich .q-buehne { -webkit-mask-image: linear-gradient(to right, transparent, #000 180px); mask-image: linear-gradient(to right, transparent, #000 180px); }
@media (max-width: 1023px) {
  .hero.rand-weich .q-buehne { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40px, #000 calc(100% - 64px), transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 40px, #000 calc(100% - 64px), transparent); }
}
@media (max-width: 1023px) {
  .hero-quartier { transition: translate 750ms cubic-bezier(0.65, 0, 0.35, 1); }
  .hero.verschoben .hero-quartier { translate: 0 calc(-1 * var(--q-hoch, 0px)); transition-duration: 950ms; }
}
@media (prefers-reduced-motion: reduce) { .hero-quartier { transition: none !important; } }

/* Kundenkarte. Laptop: links, wo sonst der Text steht, senkrecht mittig. Handy/Tablet: Blatt von unten. */
.q-karte-platz { position: absolute; inset: 0; z-index: 5; pointer-events: none; display: flex; align-items: flex-end; justify-content: center; }
.q-karte { position: relative; pointer-events: auto; width: min(100%, 640px); color: var(--tinte); outline: none; }
.q-karte[hidden] { display: none; }
.qk-flaeche { position: absolute; inset: 0; background: var(--weiss); border-radius: 14px 14px 0 0; transform-origin: 0 0;
  box-shadow: 0 -1px 2px rgb(40 50 58 / .1), 0 -16px 40px -20px rgb(40 50 58 / .35); }
.qk-inhalt { position: relative; display: grid; grid-template-columns: 88px 1fr; grid-template-areas: "bild name" "bild zeile" "satz satz" "link link";
  column-gap: 16px; align-content: start; padding: 20px 20px 0; }
.qk-bild { grid-area: bild; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--eis); align-self: start; }
.qk-bild > img { width: 100%; height: 100%; object-fit: cover; }
.qk-name { grid-area: name; align-self: end; padding-right: 44px; font-size: 22px; line-height: 1.12; font-weight: 700; letter-spacing: -.015em; }
.qk-zeile { grid-area: zeile; margin-top: 4px; padding-right: 8px; font-size: 14px; line-height: 1.35; color: var(--grau); }
.qk-satz { grid-area: satz; margin-top: 14px; font-size: 16px; line-height: 1.5; min-height: 6em; }
.qk-link { grid-area: link; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }
.qk-plakette { position: absolute; left: 12px; bottom: 12px; max-width: 60%; padding: 8px 10px; border-radius: 4px; background: var(--weiss);
  box-shadow: 0 1px 2px rgb(40 50 58 / .14), 0 8px 20px -10px rgb(40 50 58 / .28); }
.qk-plakette.dunkel { background: var(--tinte); }
.qk-plakette img { height: 30px; width: auto; max-width: 100%; object-fit: contain; }
.qk-bild .qk-plakette { display: none; }
/* 126: Zahl + ein Punkt je Lieferstelle (18 x 7) auf Anthrazit; Solar: 10 ct/kWh auf Gelb */
.qk-bild.punkte { background: var(--tinte); color: var(--weiss); }
.qk-bild.solar { background: var(--gelb); color: var(--tinte); }
.qk-gross { position: absolute; left: 10px; top: 8px; font: 600 28px/1 var(--ziffern); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.qk-einheit { margin-left: 4px; font: 600 13px var(--schrift); letter-spacing: 0; }
.qk-netto { display: none; position: absolute; left: 10px; bottom: 8px; font-size: 12px; font-weight: 600; line-height: 1.2; }
.qk-punkte { position: absolute; left: 10px; right: 10px; bottom: 10px; aspect-ratio: 53 / 14;
  background: radial-gradient(circle, var(--weiss) 22%, transparent 27%) 0 0 / calc(100% / 53) calc(100% / 14); opacity: .9; }
.qk-bild.punkte .qk-punkte { display: none; }
.qk-fuss { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  margin-top: 10px; padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linie); }
.qk-blaettern { display: flex; align-items: center; gap: 2px; }
.qk-pfeil { position: relative; width: 44px; height: 44px; border: 1px solid rgb(40 50 58 / .3); border-radius: 6px; background: var(--weiss); color: var(--tinte); cursor: pointer;
  transition: border-color 150ms ease, transform 160ms var(--ease-out); }
.qk-pfeil::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
  translate: -30% -50%; rotate: 45deg; }
.qk-weiter::before { translate: -70% -50%; rotate: -135deg; }
.qk-pfeil:active { transform: scale(.97); }
.qk-zahl { min-width: 48px; text-align: center; font: 500 14px/1 var(--ziffern); color: var(--grau); font-variant-numeric: tabular-nums; }
.qk-alle { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.qk-zu { position: absolute; top: 10px; right: 10px; z-index: 1; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--weiss); color: var(--tinte); cursor: pointer;
  transition: background-color 150ms ease, transform 160ms var(--ease-out); }
.qk-zu::before, .qk-zu::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: currentColor; translate: -50% -50%; rotate: 45deg; }
.qk-zu::after { rotate: -45deg; }
.qk-zu:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) {
  .qk-pfeil:hover { border-color: var(--tinte); }
  .qk-zu:hover { background: var(--eis); }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .qk-inhalt { grid-template-columns: 128px 1fr; padding: 24px 28px 0; }
  .qk-fuss { padding-inline: 28px; }
  .qk-satz { min-height: 4.5em; }
}
@media (min-width: 1024px) {
  .q-karte-platz { align-items: center; justify-content: flex-start; padding-left: max(var(--rand), calc((100% - 1280px) / 2)); }
  .q-karte { width: clamp(360px, 32vw, 460px); }
  .qk-flaeche { border-radius: 8px; box-shadow: 0 1px 2px rgb(40 50 58 / .14), 0 24px 48px -24px rgb(40 50 58 / .4); }
  .qk-inhalt { grid-template-columns: 1fr; grid-template-areas: "bild" "name" "zeile" "satz" "link"; padding: 8px 8px 0; }
  .qk-bild { aspect-ratio: 16 / 10; border-radius: 4px; }
  .qk-bild .qk-plakette { display: block; }
  .qk-name, .qk-zeile, .qk-satz, .qk-link { margin-inline: 20px; }
  .qk-name { margin-top: 20px; padding-right: 0; font-size: 28px; }
  .qk-zeile { font-size: 15px; }
  .qk-satz { font-size: 17px; min-height: 4.5em; }
  .qk-zu { top: 18px; right: 18px; box-shadow: 0 1px 2px rgb(40 50 58 / .16); }
  .qk-gross { left: 24px; top: 22px; font-size: 72px; }
  .qk-einheit { font-size: 22px; margin-left: 8px; }
  .qk-netto { display: block; left: 24px; bottom: 22px; font-size: 16px; }
  .qk-bild.punkte .qk-punkte { display: block; left: 24px; right: 24px; bottom: 22px; }
  .q-karte { width: clamp(384px, 32vw, 460px); }
  .qk-fuss { padding-inline: 16px; }
  .qk-zahl { min-width: 40px; }
}
/* niedrige Laptops (1024 x 768, 1280 x 720): Bild flacher, damit die Karte mit Luft in den Hero passt */
@media (min-width: 1024px) and (max-height: 820px) {
  .qk-bild { aspect-ratio: 2 / 1; }
  .qk-name { margin-top: 16px; font-size: 24px; }
  .qk-satz { margin-top: 10px; font-size: 16px; }
  .qk-gross { font-size: 56px; }
}
/* sehr schmale Handys (320): Blatt dichter, damit über ihm das Gebäude Platz hat */
@media (max-width: 359px) {
  .qk-inhalt { grid-template-columns: 64px 1fr; column-gap: 12px; padding: 16px 16px 0; }
  .qk-name { font-size: 19px; }
  .qk-zeile { font-size: 13px; }
  .qk-satz { margin-top: 10px; font-size: 15px; min-height: 0; }
  .qk-fuss { padding-inline: 16px; margin-top: 4px; }
  .qk-gross { font-size: 22px; left: 8px; top: 6px; }
  .qk-einheit { display: none; }
}

/* Pin „kurs“: Punkt „heute“ im Kurs-Ring (3D) mit Schild Wert + Quelle; Puls nach der Landung */
.q-pin.kurs { margin: 0; }
.q-pin.kurs .punkt .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--rot); opacity: 0; }
.q-pin.kurs .schild { flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 12px 9px; }
.ks-wert { font: 600 22px/1.1 var(--ziffern); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ks-text { margin-top: 3px; font-size: 13px; line-height: 1.3; color: var(--grau); }
@media (max-width: 767px) { .ks-wert { font-size: 18px; } .ks-text { font-size: 12px; } .q-pin.kurs .schild { padding: 6px 10px 7px; } }
@media (prefers-reduced-motion: no-preference) {
  .kurs-da .q-pin.kurs .ring { animation: puls 2400ms var(--ease-out) 600ms infinite; }
}
@keyframes puls { from { transform: scale(1); opacity: .8; } to { transform: scale(3.4); opacity: 0; } }

/* Text */
.hero-inhalt { position: relative; z-index: 4; height: 100%; display: flex; flex-direction: column; padding: 28px 0 24px; pointer-events: none; }
.hero-inhalt > * { pointer-events: auto; }
.hero h1 { font-size: 44px; font-weight: 800; line-height: .95; letter-spacing: -.035em; }
.hero h1 .zeile { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .zeile > span { display: inline-block; }
.satzpunkt { color: var(--rot); }
.hero .lead { margin-top: 14px; max-width: 30ch; font-size: 18px; line-height: 1.45; }
.hero-aktionen { margin-top: auto; display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.hero-fakt { margin-top: 24px; font-size: 17px; font-weight: 600; }
.hero-aktionen .textlink { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; }
/* Text-Blöcke nur so breit wie ihr Text (21.11. abends): Als Blöcke über die volle Spalte fingen sie Klick, Hover und
   Ziehen auf Pins und Quartier rechts neben dem Text ab. Handy: Knopf bleibt volle Breite. */
.hero h1, .hero-fakt { align-self: flex-start; }
@media (max-width: 767px) { .nur-breit { display: none !important; } }
@media (min-width: 768px) {
  .hero-inhalt { padding: 56px 0 40px; }
  .hero h1 { font-size: 72px; }
  .hero .lead { max-width: 36ch; font-size: 21px; margin-top: 20px; }
  .hero-aktionen { flex-direction: row; align-items: center; gap: 32px; align-self: flex-start; }
  .hero-quartier { top: 36%; bottom: 120px; }
}
@media (min-width: 1024px) {
  .hero-inhalt { padding: clamp(64px, 11vh, 120px) 0 0; }
  .hero h1 { font-size: clamp(80px, 7.2vw, 128px); }
  .hero .lead { margin-top: 28px; max-width: 34ch; font-size: 22px; }
  .hero-aktionen { margin-top: 40px; }
  .hero-quartier { left: 34%; top: 0; bottom: 0; }
}

/* Einstieg (nur mit JS, nur ohne reduzierte Bewegung). Pins und Schilder werden nie über transform animiert
   (das setzt js/quartier.js bzw. die Lage), sondern über scale/translate/opacity. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 .zeile > span { animation: zeile-rein 700ms var(--ease-settle) both; }
  .js .hero h1 .zeile:nth-child(2) > span { animation-delay: 80ms; }
  .js .hero .lead, .js .hero-aktionen { animation: auf 520ms var(--ease-out) both; }
  .js .hero .lead { animation-delay: 380ms; }
  .js .hero-aktionen { animation-delay: 460ms; }
  .js .q-buehne { opacity: 0; translate: 0 24px; transition: opacity 900ms ease 200ms, translate 1200ms var(--ease-settle) 200ms; }
  .js .bereit .q-buehne { opacity: 1; translate: 0 0; }
  .js .q-pin .punkt { transition: scale 380ms var(--ease-settle) calc(var(--i) * 110ms); }
  .js .q-pin .schild { transform-origin: 50% 100%; transition: opacity 260ms ease calc(var(--i) * 110ms + 120ms), scale 460ms var(--ease-settle) calc(var(--i) * 110ms + 120ms); }
}
.js .hero:not(.pins-an) .q-pin .punkt { scale: 0; }
.js .hero:not(.pins-an) .q-pin .schild { opacity: 0; scale: .85; }
.js .hero:not(.pins-an) .q-pin { pointer-events: none; }
.js .hero.kurs-laeuft .q-pin.kurs .punkt, .js .hero.kurs-da .q-pin.kurs .punkt { scale: 1; transition: none; }
.js .hero.kurs-da .q-pin.kurs .schild { opacity: 1; scale: 1; transition: opacity 240ms ease, scale 420ms var(--ease-settle); }
@keyframes zeile-rein { from { transform: translateY(105%); } to { transform: none; } }
@keyframes auf { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- Abschnitte */
.abschnitt { padding: var(--ab-oben) 0 var(--ab-unten); }
.abschnitt.eis { background: var(--eis); }
.kopfzeile { display: grid; gap: 20px; }
@media (min-width: 1024px) {
  .kopfzeile { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
  .kopfzeile > :first-child { grid-column: 1 / span 6; }
  .kopfzeile > :last-child { grid-column: 7 / span 6; padding-top: 8px; }
}

/* Beschaffung: Kurs-Chart + drei Wege */
.kurs { margin-top: 48px; }
.kurs-titel { font-size: 19px; font-weight: 600; }
.kurs-quelle { margin-top: 4px; }
.kurs-svg { margin-top: 16px; width: 100%; height: auto; overflow: visible; }
.k-gitter { stroke: var(--linie); stroke-width: 1; }
.k-achse, .k-monat, .k-datum { font-family: var(--ziffern); font-weight: 400; fill: var(--grau); }
.k-monat { font-family: var(--schrift); }
.kurs-schmal { display: none; }
.k-linie { fill: none; stroke: var(--tinte); stroke-width: 2.2; stroke-linejoin: round; }
.k-punkt { fill: var(--rot); }
.k-wert { font-family: var(--ziffern); font-weight: 600; fill: var(--tinte); }
@media (max-width: 767px) { .kurs-breit { display: none; } .kurs-schmal { display: block; } }
.wege { margin-top: 56px; display: grid; gap: 32px; }
.wege li { border-top: 1px solid var(--linie); padding-top: 20px; }
.wege p { margin-top: 10px; }
@media (min-width: 900px) { .wege { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.fussnote { margin-top: 40px; max-width: 70ch; }

/* Raster Text links, Bild rechts (Anfrage) */
.split { display: grid; gap: 48px; }
@media (min-width: 1024px) {
  .split { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
  .split > :first-child { grid-column: 1 / span 5; }
  .split > :last-child { grid-column: 7 / span 6; }
}
.rechnung { background: var(--weiss); border-radius: 8px; padding: 24px; border: 1px solid var(--linie); }
@media (min-width: 768px) { .rechnung { padding: 40px; } }
.rechnung-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; padding-bottom: 16px; border-bottom: 2px solid var(--tinte); }
.rechnung-kopf h4 { margin: 0; font-size: 19px; font-weight: 600; }
.etikett { display: inline-block; font-size: 14px; font-weight: 600; line-height: 1; padding: 6px 10px; border-radius: 4px; white-space: nowrap; }
.etikett.strom { background: var(--gelb); color: var(--tinte); }
.etikett.gas { background: var(--blau); color: var(--weiss); }
.posten li { position: relative; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--linie); font-size: 19px; }
.posten .grund { font-size: 15px; color: var(--grau); text-align: right; }
.posten .weg .name { color: var(--grau); }
.posten .weg::after {
  content: ""; position: absolute; left: 0; width: 46%; top: 50%; height: 2px; background: var(--rot);
  transform-origin: left center;
}
@media (min-width: 768px) { .posten .weg::after { width: 34%; } }
.rechnung-summe { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 16px; padding-top: 20px; }
.rechnung-summe .was { font-weight: 600; }
.rechnung-summe .zahl { font: 600 64px/1 var(--ziffern); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rechnung-summe .einheit { font: 600 20px var(--schrift); letter-spacing: 0; margin-left: 6px; }
.rechnung-summe .netto { display: block; text-align: right; font-size: 15px; color: var(--grau); margin-top: 6px; }
@media (min-width: 1024px) { .rechnung-summe .zahl { font-size: 88px; } }

/* Der Moment: Posten werden beim Durchscrollen gestrichen (an den Scrollbalken gekoppelt). Ohne Unterstützung: Endzustand. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .posten .weg::after { animation: streichen linear both; animation-timeline: --rechnung; animation-range: entry 40% cover 35%; }
    .posten .weg .name { animation: blass linear both; animation-timeline: --rechnung; animation-range: entry 40% cover 35%; }
    .posten li:nth-child(4)::after { animation-range: entry 70% cover 42%; }
    .rechnung { view-timeline: --rechnung block; }
  }
}
@keyframes streichen { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes blass { from { color: var(--tinte); } to { color: var(--grau); } }

/* Portfolio (dunkel) */
.dunkel { background: var(--tinte); color: var(--weiss); }
.dunkel .klein { color: #C3CBD4; }
.portfolio-liste { margin-top: 20px; display: grid; gap: 6px; font-weight: 600; }
.zahl-zeile { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--linie-hell); display: grid; gap: 8px; }
.zahl-zeile .zahl { font: 600 72px/1 var(--ziffern); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.zahl-zeile .zahl-text { font-size: 21px; font-weight: 600; }
.zahl-zeile .klein { max-width: 52ch; }
/* 742 Lieferstellen als 742 Punkte (53 x 14, Laptop 106 x 7), eine je Lieferstelle (Hüseyin, 01.12.2026) */
.punktfeld { display: block; width: min(100%, 504px); aspect-ratio: 53 / 14; margin-top: 16px; background: radial-gradient(circle, var(--weiss) 22%, transparent 26%) 0 0 / calc(100% / 53) calc(100% / 14); opacity: .9; }
@media (min-width: 1024px) {
  .zahl-zeile { grid-template-columns: auto 1fr; column-gap: 40px; align-items: end; }
  .zahl-zeile .zahl { font-size: 96px; grid-row: span 3; }
  .punktfeld { grid-column: 1 / -1; grid-row: 4; margin-top: 40px; width: 100%; max-width: none; aspect-ratio: 106 / 7; background-size: calc(100% / 106) calc(100% / 7); background-image: radial-gradient(circle, var(--weiss) 17%, transparent 21%); }
}

/* Kunden (Entwurf 2): Kennzahlen mit Gesichtern, Branchen-Reiter, Karten mit Foto/Logo, Text, Website */
.kennzahlen { margin-top: 56px; display: grid; gap: 28px; padding: 32px 0; border-block: 1px solid var(--linie); }
.kennzahlen li, .kz-ganz { display: flex; flex-direction: column; align-items: flex-start; }
.kz-ganz { text-decoration: none; }
.kz-gesichter, .kz-person, .kz-punkte { height: 52px; margin-bottom: 16px; }
.kz-zahl { font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kz-zahl.ziffer { font-family: var(--ziffern); font-weight: 600; letter-spacing: -.04em; }
.kz-text { margin-top: 8px; font-size: 16px; line-height: 1.4; color: var(--grau); max-width: 30ch; }
.kz-gesichter { display: flex; padding-left: 14px; }
.kz-gesichter img { width: 52px; height: 52px; margin-left: -14px; border-radius: 50%; object-fit: cover; border: 3px solid var(--weiss); }
.kz-person { display: grid; place-items: center; width: 52px; border-radius: 50%; background: var(--tinte); color: var(--weiss); font-weight: 700; font-size: 18px; letter-spacing: .02em; }
/* 742 Lieferstellen als 742 Punkte (53 x 14, 02.12.) */
.kz-punkte { width: 185.5px; height: 49px; margin-top: 3px; background: radial-gradient(circle, var(--tinte) 32%, transparent 40%) 0 0 / calc(100% / 53) calc(100% / 14); }
@media (hover: hover) and (pointer: fine) { .kz-ganz:hover .kz-text { color: var(--tinte); text-decoration: underline; text-underline-offset: .2em; } }
@media (min-width: 900px) { .kennzahlen { grid-template-columns: repeat(3, 1fr); column-gap: 32px; } }
@media (min-width: 1024px) { .kz-zahl { font-size: 48px; } }

.reiter { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 8px; }
html:not(.js) .reiter { display: none; }
.reiter-knopf { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid rgb(40 50 58 / .3);
  border-radius: 6px; background: var(--weiss); color: var(--tinte); font: 600 16px/1 var(--schrift); cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out); }
.reiter-knopf .anz { font: 500 13px/1 var(--ziffern); color: var(--grau); }
.reiter-knopf[aria-pressed="true"] { background: var(--tinte); border-color: var(--tinte); color: var(--weiss); }
.reiter-knopf[aria-pressed="true"] .anz { color: #C3CBD4; }
.reiter-knopf:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .reiter-knopf:hover { border-color: var(--tinte); } }
@media (max-width: 767px) {
  .reiter { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--rand)); padding: 0 var(--rand) 6px; scrollbar-width: none; }
  .reiter-knopf { flex: none; }
}

.kunden-karten { margin-top: 32px; display: grid; gap: 48px 24px; }
@media (min-width: 640px) { .kunden-karten { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .kunden-karten { grid-template-columns: repeat(3, 1fr); row-gap: 64px; } }
.kk-karte[hidden] { display: none; }
.mehr-knopf { margin-top: 40px; }
.mehr-knopf[hidden] { display: none; }
.formular.karte .datei label .klein { font-weight: 400; }
/* 02.12. Hüseyin: Verbrauch sichtbar, Jahresabrechnung groß und deutlich kein Pflichtfeld */
.verbrauch .klein { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--tinte); }
.datei > label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.frei { display: inline-block; padding: 3px 9px; border: 1px solid var(--tinte); border-radius: 999px; background: var(--weiss);
  font: 700 13px/1.2 var(--schrift); letter-spacing: .01em; color: var(--tinte); vertical-align: 1px; white-space: nowrap; }
.kk-karte { scroll-margin-top: calc(var(--kopf) + 24px); }
.kk-bild { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--eis); }
.kk-bild > img { width: 100%; height: 100%; object-fit: cover; }
.kk-plakette { position: absolute; left: 12px; bottom: 12px; max-width: 60%; padding: 8px 10px; border-radius: 4px; background: var(--weiss);
  box-shadow: 0 1px 2px rgb(40 50 58 / .14), 0 8px 20px -10px rgb(40 50 58 / .28); }
.kk-plakette.dunkel { background: var(--tinte); }
.kk-plakette img { height: 28px; width: auto; max-width: 100%; object-fit: contain; }
.kk-bild.nur-logo { display: grid; place-items: center; padding: 14% 18%; }
.kk-bild.nur-logo img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.kk-bild.nur-logo.dunkel { background: var(--tinte); }
.kk-bild.nur-logo.breit { padding: 8% 7%; }   /* sehr breite Logos (Tesch) */
/* Kunde ohne Foto und Logo: Name als Pin (weißes Schild + roter Punkt, wie im Hero) auf dem Börsenhimmel */
.kk-bild.nur-name { display: grid; place-items: center; align-content: center; padding: 8%; text-align: center;
  background: #F4F6F9 url("../img/himmel_streifen_2400.webp") var(--hx, 64%) 50% / cover no-repeat; }
.kk-karte:nth-child(3n+1) .nur-name { --hx: 78%; }
.kk-karte:nth-child(3n+2) .nur-name { --hx: 46%; }
.nn-schild { position: relative; max-width: 100%; padding: 10px 16px 11px; border-radius: 6px; background: var(--weiss);
  font-size: 22px; font-weight: 700; line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; hyphens: manual;
  box-shadow: 0 1px 2px rgb(40 50 58 / .14), 0 8px 20px -10px rgb(40 50 58 / .28); }
.nn-schild::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 2px; height: 10px; background: var(--weiss); translate: -50% 0; }
.nn-punkt { width: 16px; height: 16px; margin-top: 10px; border-radius: 50%; background: var(--rot); box-shadow: 0 0 0 3px var(--weiss); }
.kk-text { margin-top: 18px; }
.kk-text h3 { font-size: 21px; }
.abschnitt .kk-ort { margin-top: 2px; font-size: 15px; color: var(--grau); }
.abschnitt .kk-ort + p { margin-top: 10px; }
.kk-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; }

/* Versorger: ruhiges Raster, graustufig */
.versorger { margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--linie); }
.versorger h3 { font-size: 19px; }
.versorger-raster { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px 24px; }
.versorger-raster li { display: grid; place-items: center; height: 76px; padding: 12px 8px; }
.versorger-raster img { width: auto; height: auto; max-width: 100%; max-height: 40px; object-fit: contain; }   /* 02.12. Hüseyin: Originalfarben statt grau */
@media (max-width: 639px) { .versorger-raster { grid-template-columns: repeat(3, 1fr); gap: 4px 16px; } .versorger-raster li { height: 60px; padding: 8px 4px; } .versorger-raster img { max-height: 30px; } }

/* Solar ohne Invest (Entwurf 2): Phasen-Scroll an der Halle. Laptop: Bühne rechts bleibt stehen. Handy: Bühne
   zwischen Kopf und Phasen, nichts festgehalten. */
.sp-raster { display: grid; gap: 32px; }
.sp-kopf .lead { margin-top: 20px; }
.phasen { display: grid; gap: 40px; counter-reset: ph; }
.phase { counter-increment: ph; padding-top: 20px; border-top: 1px solid var(--linie); }
.phase::before { content: counter(ph) " / 4"; display: block; margin-bottom: 12px; font: 500 15px/1 var(--ziffern); color: var(--grau); }
.phase h3 { font-size: 26px; line-height: 1.15; }
.abschnitt .phase p { margin-top: 10px; max-width: 46ch; }
.phase .rechnung { margin-top: 24px; }
.phase .knopf { margin-top: 28px; }
.sp-sticky { position: relative; height: min(78vw, 440px); }
.sp-sticky .q-buehne { -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); }
.solar-phasen.ohne-3d .sp-buehne { display: none; }
html:not(.js) .sp-buehne { display: none; }
@media (max-width: 1023px) {
  .sp-text { display: contents; }
  .sp-kopf { order: 1; } .sp-buehne { order: 2; } .phasen { order: 3; }
  /* Handy/Tablet: Bühne bis an den Bildschirmrand, Ränder weich ausblenden statt hart an der Spalte abschneiden */
  .sp-buehne { margin-inline: calc(-1 * var(--rand)); }
  .sp-sticky { height: min(96vw, 520px); }
  .sp-sticky .q-buehne { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 66%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 66%, transparent 100%); }
}
@media (min-width: 1024px) {
  .sp-raster { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
  .sp-text { grid-column: 1 / span 5; }
  .sp-buehne { grid-column: 6 / span 7; align-self: stretch; }
  .sp-sticky { position: sticky; top: calc(var(--kopf) + 24px); height: calc(100vh - var(--kopf) - 48px); max-height: 760px; }
  .phasen { margin-top: 24px; gap: 0; }
  .phase { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; border-top: 0; padding: 48px 0; }
  .phase h3 { font-size: 34px; }
}
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .js .phase { opacity: .3; transition: opacity 400ms ease; }
  .js .solar-phasen[data-phase="1"] .phase[data-phase="1"], .js .solar-phasen[data-phase="2"] .phase[data-phase="2"],
  .js .solar-phasen[data-phase="3"] .phase[data-phase="3"], .js .solar-phasen[data-phase="4"] .phase[data-phase="4"] { opacity: 1; }
}

/* Sorgen-Liste am Ende von Solar */
.sorgen { margin-top: 72px; padding-top: 32px; border-top: 2px solid var(--tinte); }
.sorgen h3 { font-size: 21px; }
.sorgen-liste { margin: 24px 0 0; display: grid; gap: 24px; }
.sorgen-liste dt { font-size: 19px; font-weight: 600; }
.sorgen-liste dd { margin: 4px 0 0; }
@media (min-width: 900px) { .sorgen-liste { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
@media (min-width: 1280px) { .sorgen-liste { grid-template-columns: repeat(4, 1fr); column-gap: 32px; } }

/* Ablauf + Privat */
.schritte { margin-top: 56px; display: grid; gap: 32px; counter-reset: s; }
.schritte li { counter-increment: s; border-top: 1px solid var(--linie); padding-top: 20px; }
.schritte li::before { content: counter(s); display: block; font: 600 32px/1 var(--ziffern); margin-bottom: 16px; }
.schritte p { margin-top: 8px; }
@media (min-width: 900px) { .schritte { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.privat { margin-top: 80px; padding-top: 40px; border-top: 2px solid var(--tinte); display: grid; gap: 16px; }
.privat h2 { font-size: 26px; }
@media (min-width: 1024px) {
  .privat { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
  .privat > div:first-child { grid-column: 1 / span 6; }
  .privat > div:last-child { grid-column: 7 / span 6; }
  .privat h2 { font-size: 32px; }
}
.privat .textlink { display: inline-flex; min-height: 44px; align-items: center; margin-top: 12px; }

/* Anfrage */
.streifen { height: 120px; overflow: hidden; background: #F4F6F9; }
.streifen img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
@media (min-width: 1024px) { .streifen { height: 180px; } }
.anfrage .split > :first-child > p { margin-top: 20px; }
/* Anfrage auf dem Börsenhimmel 2: Grund --eis wie #ablauf und Fragen, Text links, Formular als weiße Karte rechts
   (Handy darunter). Standbild ohne JS (Lage mit JS: js/seite.js). */
.anfrage { position: relative; isolation: isolate; overflow: hidden; background: var(--eis); }
.anfrage .h2-grund { --x: 50%; --y: 13.9%; --rx: 105%; --ry: 9.1%; }
.anfrage .h2-dunst { --x: 102%; --y: 13.3%; --rx: 62%; --ry: 5.7%; }
.anfrage .h2-dunst + .h2-dunst { --x: 55%; --y: 20.2%; --rx: 95%; --ry: 10.2%; }
.anfrage .h2-zug { display: none; }
@media (min-width: 1024px) {
  .anfrage .h2-grund { --x: 16.4%; --y: 44.5%; --rx: 75%; --ry: 38.2%; }
  .anfrage .h2-dunst { --x: 105.2%; --y: 43.3%; --rx: 53.1%; --ry: 32.8%; }
  .anfrage .h2-dunst + .h2-dunst { --x: 59.6%; --y: 36.8%; --rx: 39.2%; --ry: 26.3%; }
  .anfrage .h2-zug { display: block; --x: 45%; --y: 74%; --rx: 60%; --ry: 15.4%; }
}
.anfrage .person { border-top-color: rgb(40 50 58 / .2); }
@media (min-width: 1024px) { .anfrage .split > :first-child { padding-top: 32px; } }
.person { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--linie); }
.person .name { font-weight: 600; font-size: 21px; }
.person .rolle { color: var(--grau); font-size: 16px; }
.person ul { margin-top: 12px; display: grid; gap: 4px; }
.person a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

.formular { display: grid; gap: 20px; }
.formular fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.formular legend, .formular label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.formular .pflicht { color: var(--rot); }
.formular input[type=text], .formular input[type=email], .formular input[type=tel], .formular input[type=number],
.formular input[type=date], .formular select, .formular textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid rgb(40 50 58 / .35); border-radius: 8px;
  background: var(--weiss); color: var(--tinte); font: 400 18px/1.4 var(--schrift); caret-color: var(--rot);
}
.formular textarea { min-height: 120px; resize: vertical; }
.formular input:focus-visible, .formular select:focus-visible, .formular textarea:focus-visible { outline: 2px solid var(--rot); outline-offset: 1px; border-color: var(--tinte); }
.zwei { display: grid; gap: 20px; }
@media (min-width: 600px) { .zwei { grid-template-columns: 1fr 1fr; } }
.wahl { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgb(40 50 58 / .35); border-radius: 8px; overflow: hidden; }
/* Knopf füllt seine Zelle ganz: kein Label-Abstand aus .formular.karte label, gleiche Höhe wie der Nachbar mit Umbruch */
.wahl label, .formular.karte .wahl label { margin: 0; position: relative; display: flex; }
.wahl input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wahl span { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 12px; text-align: center; font-weight: 600; font-size: 17px; }
.wahl label + label span { border-left: 1px solid rgb(40 50 58 / .35); }
.wahl input:checked + span { background: var(--tinte); color: var(--weiss); }
.wahl input:focus-visible + span { outline: 2px solid var(--rot); outline-offset: -4px; }
.datei { border: 1px dashed rgb(40 50 58 / .45); border-radius: 8px; padding: 16px; background: var(--eis); }
.datei input { width: 100%; font: 400 16px var(--schrift); min-height: 44px; }
.datei .klein { margin-top: 6px; }
.datei input::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 1px solid rgb(40 50 58 / .35); border-radius: 6px;
  background: var(--weiss); color: var(--tinte); font: 600 15px/1.2 var(--schrift); cursor: pointer; transition: border-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .datei input::file-selector-button:hover { border-color: var(--tinte); } }
.formular details summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; gap: 12px; list-style: none; }
.formular details summary::-webkit-details-marker { display: none; }
.formular details summary::before { content: ""; flex: none; width: 7px; height: 7px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: -45deg; transition: rotate 200ms var(--ease-out); }
.formular details[open] summary::before { rotate: 45deg; }
.formular details[open] summary { margin-bottom: 12px; }
.formular details > div { display: grid; gap: 20px; }
.formular .zustimmung { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: 16px !important; line-height: 1.5; }
.zustimmung input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--rot); flex: none; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular .knopf { width: 100%; }
.formular-hinweis { font-size: 15px; color: var(--grau); }
#status:empty { display: none; }
/* Rückmeldung nach dem Absenden (haupt.html, Skript am Seitenende): ruhig, eine Farbe je Zustand, kein Toast */
#status { padding: 12px 14px; border-radius: 6px; font-size: 16px; line-height: 1.45; border-left: 4px solid var(--tinte); background: var(--eis); }
#status.status-fehler { border-left-color: var(--rot); }

/* Gut zu wissen + Fuß */
.fragen { display: grid; gap: 28px; }
.fragen dt { font-weight: 600; font-size: 19px; }
.fragen dd { margin: 8px 0 0; }
.fuss { margin-top: 88px; padding-top: 32px; border-top: 1px solid var(--linie); display: grid; gap: 24px; align-items: end; }
.fuss img { height: 56px; width: auto; }
.fuss nav ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.fuss nav a { display: inline-flex; min-height: 44px; align-items: center; }
@media (min-width: 1024px) { .fuss { grid-template-columns: auto 1fr auto; column-gap: 48px; } }

/* ---------------------------------------------------------------- Gewerbeseite (gewerbe/): Hero mit Formular
   Laptop: Text links auf dem Himmel, Formular rechts als weiße Fläche. Handy: Text oben, Formular direkt darunter. */
.hero-gewerbe { position: relative; overflow: hidden; background: #F4F6F9; isolation: isolate; }
.hg-raster { position: relative; z-index: 2; display: grid; gap: 28px; padding: 28px 0 40px; }
.hero-gewerbe h1 { font-size: 44px; font-weight: 800; line-height: .95; letter-spacing: -.035em; }
.hero-gewerbe h1 .zeile { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-gewerbe h1 .zeile > span { display: inline-block; }
.hero-gewerbe .lead { margin-top: 14px; max-width: 34ch; font-size: 18px; line-height: 1.45; }
.hg-fakt { margin-top: 12px; font-size: 16px; font-weight: 600; }
.hg-anruf { margin-top: 20px; font-size: 17px; }
.hg-anruf .textlink { display: inline-flex; align-items: center; min-height: 44px; }
/* kleiner Kurs-Hinweis: Punkt + Schild wie der Kurs-Pin der Hauptseite */
.kurs-hinweis { margin-top: 20px; display: flex; align-items: center; }
.kurs-hinweis .punkt { position: relative; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--rot); box-shadow: 0 0 0 3px var(--weiss); }
.kurs-hinweis .schild { position: relative; margin-left: 16px; display: flex; flex-direction: column; padding: 7px 12px 8px; border-radius: 6px;
  background: var(--weiss); box-shadow: 0 1px 2px rgb(40 50 58 / .14), 0 8px 20px -10px rgb(40 50 58 / .28); }
.kurs-hinweis .schild::before { content: ""; position: absolute; left: -12px; top: 50%; width: 12px; height: 2px; background: var(--weiss); translate: 0 -50%; }
.kurs-hinweis .ks-wert { font-size: 18px; }
.kurs-hinweis .ks-text { font-size: 12px; }
@media (min-width: 768px) {
  .hg-raster { padding: 48px 0 56px; }
  .hero-gewerbe h1 { font-size: 64px; }
  .hero-gewerbe .lead { margin-top: 20px; font-size: 21px; }
  .kurs-hinweis .ks-wert { font-size: 22px; }
  .kurs-hinweis .ks-text { font-size: 13px; }
}
@media (min-width: 1024px) {
  .hg-raster { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; min-height: calc(100svh - var(--kopf)); padding: 22px 0; }
  .hg-text { grid-column: 1 / span 7; }
  .hero-gewerbe .formular { grid-column: 8 / span 5; }
  .hero-gewerbe h1 { font-size: clamp(64px, 6.2vw, 96px); }
  .hero-gewerbe .lead { margin-top: 28px; max-width: 40ch; font-size: 22px; }
  .hg-fakt { margin-top: 16px; font-size: 17px; }
  .kurs-hinweis { margin-top: 36px; }
}

/* Formular als weiße Fläche (kompakter als das Anfrage-Formular der Hauptseite, damit es auf den ersten Screen passt) */
.formular.karte { background: var(--weiss); border-radius: 8px; padding: 24px 20px 20px; gap: 12px;
  box-shadow: 0 1px 2px rgb(40 50 58 / .14), 0 24px 48px -24px rgb(40 50 58 / .35); }
@media (min-width: 768px) { .formular.karte { padding: 28px 32px 24px; } }
.formular.karte .karte-titel { font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.formular.karte legend, .formular.karte label { margin-bottom: 6px; font-size: 15px; }
.formular.karte input[type=text], .formular.karte input[type=email], .formular.karte input[type=tel], .formular.karte input[type=number],
.formular.karte input[type=date], .formular.karte select { min-height: 46px; padding: 9px 12px; font-size: 17px; }
.formular.karte .zwei { grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.formular.karte .zustimmung { font-size: 14px !important; line-height: 1.45; }
.formular.karte .zustimmung input { width: 20px; height: 20px; }
.formular.karte details summary { font-size: 15px; }
.formular.karte .formular-hinweis { font-size: 14px; line-height: 1.4; }
.formular.karte .datei { padding: 12px 14px; }
.wahl.drei { grid-template-columns: repeat(3, 1fr); }
.wahl.drei span { min-height: 46px; padding: 0 6px; font-size: 15px; }
.wahl span { hyphens: manual; }
/* sehr schmale Handys (320): Felder untereinander, Strom/Gas-Wahl als Liste */
@media (max-width: 359px) {
  .formular.karte .zwei { grid-template-columns: 1fr; }
  .wahl.drei { grid-template-columns: 1fr; }
  .wahl.drei label + label span { border-left: 0; border-top: 1px solid rgb(40 50 58 / .35); }
}
.mit-einheit { position: relative; }
.formular .mit-einheit input { padding-right: 52px; }
.mit-einheit span { position: absolute; right: 12px; top: 50%; translate: 0 -50%; font: 500 14px/1 var(--ziffern); color: var(--grau); pointer-events: none; }

/* Einstieg Gewerbe-Hero (nur mit JS, ohne reduzierte Bewegung) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-gewerbe h1 .zeile > span { animation: zeile-rein 700ms var(--ease-settle) both; }
  .js .hero-gewerbe h1 .zeile:nth-child(2) > span { animation-delay: 80ms; }
  .js .hg-text > p { animation: auf 520ms var(--ease-out) 380ms both; }
  .js .hero-gewerbe .formular { animation: auf 620ms var(--ease-out) 240ms both; }
}

/* Passend zu Ihrem Verbrauch: drei Zeilen, Überschrift links, Text rechts */
.verbrauch-zeilen { margin-top: 48px; border-top: 2px solid var(--tinte); }
.verbrauch-zeilen li { display: grid; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--linie); }
@media (min-width: 1024px) {
  .verbrauch-zeilen { margin-top: 64px; }
  .verbrauch-zeilen li { grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: 32px 0; }
  .verbrauch-zeilen h3 { grid-column: 1 / span 6; }
  .verbrauch-zeilen p { grid-column: 7 / span 6; }
  #verbrauch .kurs { margin-top: 72px; }
}

/* Links unter Leads (Portfolio, Referenzen) */
.portfolio-link, .alle-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; }
.abschluss-knopf { margin-top: 28px; }
.abschluss .person { margin-top: 40px; }

/* Fünf Kunden der Gewerbeseite: Laptop in einer Reihe, Handy als Zeilen (Bild klein links) */
@media (min-width: 1200px) {
  .kunden-karten.fuenf { grid-template-columns: repeat(5, 1fr); column-gap: 24px; }
  .kunden-karten.fuenf .kk-text h3 { font-size: 20px; }
  .kunden-karten.fuenf .nn-schild { font-size: 18px; padding: 8px 12px 9px; }
}
@media (max-width: 639px) {
  .kunden-karten.fuenf { gap: 28px; }
  .kunden-karten.fuenf .kk-karte { display: grid; grid-template-columns: 112px 1fr; column-gap: 16px; align-items: start; }
  .kunden-karten.fuenf .kk-bild { aspect-ratio: 1; }
  .kunden-karten.fuenf .kk-text { margin-top: 0; }
  .kunden-karten.fuenf .kk-plakette { display: none; }
  .kunden-karten.fuenf .nn-schild { font-size: 13px; padding: 6px 8px 7px; }
  .kunden-karten.fuenf .nn-punkt { width: 12px; height: 12px; }
}

/* 404 (site/404.html aus bau/404.html): Pin „Fehler 404“ auf dem Börsenhimmel, Text links im hellen Teil */
.nicht-da { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  min-height: calc(100svh - var(--kopf) - 120px); padding: 64px 0 80px; background: var(--weiss); }
/* Börsenhimmel 2, Standbild ohne JS (Lage mit JS: Modul unten in bau/404.html) */
.nicht-da .h2-grund { --x: 50%; --y: 29.8%; --rx: 105%; --ry: 63.7%; }
.nicht-da .h2-dunst { --x: 102%; --y: 26.9%; --rx: 62%; --ry: 62.1%; }
.nicht-da .h2-dunst + .h2-dunst { --x: 55%; --y: 56.8%; --rx: 95%; --ry: 32.2%; }
.nicht-da .h2-zug { display: none; }
@media (min-width: 1024px) {
  .nicht-da .h2-grund { --y: 37.3%; --ry: 56.2%; }
  .nicht-da .h2-dunst { --y: 27.3%; --ry: 61.7%; }
  .nicht-da .h2-dunst + .h2-dunst { --y: 53%; --ry: 36%; }
  .nicht-da .h2-zug { display: block; --x: 72%; --y: 66.7%; --rx: 42%; --ry: 22.3%; }
}
.nd-pin { display: flex; flex-direction: column; align-items: center; width: max-content; margin-bottom: 32px; }
.nd-pin .nn-schild { font-size: 18px; }
.nicht-da h1 { font-size: 44px; font-weight: 800; line-height: .98; letter-spacing: -.035em; max-width: 12ch; }
.nicht-da .lead { margin-top: 20px; max-width: 36ch; }
.nd-aktionen { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.nd-aktionen .textlink { display: inline-flex; align-items: center; min-height: 44px; }
.nd-anruf { margin-top: 24px; font-size: 16px; }
.nd-anruf a { font-weight: 600; }
.nd-fuss { margin-top: 0; padding-bottom: 32px; }
@media (min-width: 1024px) { .nicht-da h1 { font-size: 80px; } .nd-fuss { grid-template-columns: 1fr auto; } }

/* Impressum + Datenschutz (bau/recht.html, Texte von Hüseyin in bau/recht/) */
.recht { padding: 64px 0 88px; }
.recht h1 { font-size: 44px; font-weight: 800; line-height: .98; letter-spacing: -.035em; }
.recht-text { margin-top: 40px; max-width: 70ch; }
.recht-text h2 { font-size: 22px; line-height: 1.25; font-weight: 700; margin-top: 40px; }
.recht-text h3 { font-size: 18px; font-weight: 700; margin-top: 24px; }
.recht-text p, .recht-text ul, .recht-text ol { margin-top: 12px; }
.recht-text ul { list-style: disc; padding-left: 1.2em; }
.recht-text ol { list-style: decimal; padding-left: 1.4em; }
.recht-text a { text-decoration: underline; }
@media (min-width: 1024px) { .recht { padding: 96px 0 120px; } .recht h1 { font-size: 64px; } }

/* Einwilligung Meta-Pixel (js/einwilligung.js): Anthrazit-Karte unten, „Ablehnen“ und „Akzeptieren“ gleich groß und gleich rot */
.einwilligung {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - 24px); overflow-y: auto;
  padding: 20px 20px 16px; border: 1px solid var(--linie-hell); border-radius: 8px;
  background: var(--tinte); color: var(--weiss); font-size: 15px; line-height: 1.5;
  box-shadow: 0 1px 2px rgb(40 50 58 / .14), 0 24px 48px -24px rgb(40 50 58 / .4);
}
.einwilligung[hidden] { display: none; }
.ew-titel { font-size: 18px; font-weight: 700; line-height: 1.25; }
.ew-text { margin-top: 8px; }
.ew-text p + p { margin-top: 8px; }
.einwilligung a { font-weight: 600; }
.einwilligung :focus-visible { outline-color: var(--weiss); }
.ew-knoepfe { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ew-knoepfe .knopf { min-height: 48px; padding: 0 12px; font-size: 17px; }
@media (min-width: 768px) { .einwilligung { left: auto; right: 24px; bottom: 24px; width: 440px; padding: 24px 24px 20px; } }
@media (prefers-reduced-motion: no-preference) { .einwilligung { animation: ew-rein 280ms var(--ease-out) both; } }
@keyframes ew-rein { from { opacity: 0; transform: translateY(12px); } }
.fuss nav button { display: inline-flex; min-height: 44px; align-items: center; padding: 0; border: 0; background: none; color: inherit;
  font: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
