@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff") format("woff"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3.woff") format("woff"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/dm-mono-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/dm-mono-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }

/* Layout: Jede Seite beginnt mit einem Himmel über einer Häuserzeile, der der Uhrzeit folgt. Die Kopfzeile bleibt beim Scrollen stehen. Darunter helle Abschnitte auf max. 1120px, jede Seite endet mit einem Abendband zur Terminanfrage. */
:root {
  --bg: #F3F5F8;
  --surface: #FFFFFF;
  --ink: #0F1B2B;
  --muted: #56637A;
  --line: #D5DBE4;
  --kupfer: #B5541C;
  --amber: #F3A548;
  --on-amber: #1B1408;
  --tint: #FBF1E4;
  --gas: #2470C4;
  --gas-tint: #E7F0FB;
  --shadow: 0 1px 2px rgba(15, 27, 43, 0.06), 0 14px 34px rgba(15, 27, 43, 0.10);
  /* Abendhimmel: bewusst in beiden Themes gleich */
  --dusk-1: #0A1424;
  --dusk-2: #16264A;
  --dusk-3: #3B3767;
  --dusk-4: #8A5266;
  --dusk-back: #1C2B4E;
  --dusk-fg: #F2F5FA;
  --dusk-muted: #B9C4D8;
  --zaehler: #10141A;
  --zaehler-fg: #F4F4F0;
  --zaehler-rot: #C4372C;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C121B; --surface: #151E2A; --ink: #E7ECF3; --muted: #97A4B8; --line: #263243;
    --kupfer: #F0A060; --amber: #F3A548; --on-amber: #1B1408; --tint: #231C16; --gas: #7DB8F5; --gas-tint: #14263A;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 34px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C121B; --surface: #151E2A; --ink: #E7ECF3; --muted: #97A4B8; --line: #263243;
  --kupfer: #F0A060; --amber: #F3A548; --on-amber: #1B1408; --tint: #231C16; --gas: #7DB8F5; --gas-tint: #14263A;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 34px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
}
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 36px); }
a { color: inherit; text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-stretch: 108%; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.75rem, 3.9vw, 2.5rem); font-weight: 750; line-height: 1.1; letter-spacing: -0.015em; }
h3 { font-size: 1.22rem; font-weight: 700; line-height: 1.25; }
p { margin: 0; }
.label { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
svg.ic { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.ic text { fill: currentColor; stroke: none; font-family: var(--body); font-weight: 600; }

/* ---------- Abendband: Kopf und Hero ---------- */
.dusk {
  color: var(--dusk-fg);
  --wave: var(--amber);
  background:
    radial-gradient(ellipse 55% 26% at 26% 100%, rgba(255, 190, 110, 0.55), transparent 72%),
    linear-gradient(180deg, var(--dusk-1) 0%, var(--dusk-2) 48%, var(--dusk-3) 76%, var(--dusk-4) 91%, #D98A56 100%);
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(28px, 5vw, 60px) clamp(28px, 4vw, 44px);
}
.hero-text { display: grid; gap: 22px; min-width: 0; }
.hero-text .label { color: var(--dusk-muted); }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.7rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.022em; }
h1 em {
  font-style: normal; color: var(--amber);
  text-shadow: 0 0 30px rgba(243, 165, 72, 0.6), 0 0 5px rgba(243, 165, 72, 0.45);
  animation: anknipsen 1.9s linear both;
  transition: color 0.5s ease, text-shadow 0.5s ease;
}
.dusk[data-mode="gas"] { --wave: #7DB8F5; }
.dusk[data-mode="gas"] h1 em { color: #9CCBFB; text-shadow: 0 0 30px rgba(110, 175, 245, 0.65), 0 0 5px rgba(110, 175, 245, 0.5); }
@keyframes anknipsen {
  0% { opacity: 0.2; }
  7% { opacity: 1; }
  11% { opacity: 0.3; }
  18% { opacity: 1; }
  24% { opacity: 0.45; }
  32%, 100% { opacity: 1; }
}
.wave { position: absolute; left: 0; width: 100%; bottom: clamp(96px, 14.5vw, 185px); height: clamp(64px, 9vw, 110px); z-index: 0; pointer-events: none; }
.wave path { fill: none; stroke: var(--wave); vector-effect: non-scaling-stroke; transition: stroke 0.5s ease; }
.wave .w1 { stroke-width: 2.2; opacity: 0.75; filter: drop-shadow(0 0 6px var(--wave)); animation: welle 3.4s linear infinite; }
.wave .w2 { stroke-width: 1.3; opacity: 0.35; animation: welle2 5.5s linear infinite; }
@keyframes welle { to { transform: translateX(-300px); } }
@keyframes welle2 { to { transform: translateX(-400px); } }
.lead { font-size: 1.2rem; max-width: 33em; color: var(--dusk-fg); }
.actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.btn {
  display: inline-block;
  background: linear-gradient(90deg, #FFD592 0 50%, var(--amber) 50% 100%);
  background-size: 200% 100%; background-position: 100% 0;
  color: var(--on-amber);
  font-weight: 600; text-decoration: none;
  padding: 0.78em 1.4em;
  border-radius: 999px;
  box-shadow: 0 8px 26px rgba(243, 165, 72, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-position 0.35s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(243, 165, 72, 0.42); background-position: 0 0; }

/* Zähler und Beispielrechnung */
.meter {
  margin: 0;
  background: var(--surface); color: var(--ink);
  border-radius: 18px;
  --glowc: rgba(243, 165, 72, 0.5);
  box-shadow: 0 24px 60px rgba(4, 9, 18, 0.45), 0 0 110px -18px var(--glowc);
  transition: box-shadow 0.5s ease;
  padding: clamp(18px, 3vw, 28px);
  display: grid; gap: 18px;
  min-width: 0;
}
.counter-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.counter { --dh: clamp(40px, 10vw, 52px); display: flex; gap: 3px; background: var(--zaehler); padding: 6px; border-radius: 8px; }
.counter .digit {
  width: clamp(26px, 7vw, 36px);
  height: var(--dh);
  overflow: hidden;
  font-family: var(--mono);
  font-size: clamp(1.3rem, 4.4vw, 1.9rem);
  color: var(--zaehler-fg);
  background: linear-gradient(180deg, #000 0%, #2A3037 22%, #2A3037 78%, #000 100%);
  border-radius: 4px;
}
.counter .digit.dec { background: linear-gradient(180deg, #5E1510 0%, var(--zaehler-rot) 22%, var(--zaehler-rot) 78%, #5E1510 100%); }
.counter b { display: block; height: var(--dh); line-height: var(--dh); text-align: center; font-weight: 500; }
.counter .strip {
  display: block;
  transform: translateY(calc(var(--d, 0) * -10%));
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 0.9rem; font-weight: 600;
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 0.28em 0.85em; cursor: pointer;
}
.chip:hover { border-color: var(--kupfer); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.field { display: grid; gap: 5px; font-size: 0.9rem; color: var(--muted); min-width: 0; }
.field input[type="range"] { width: 100%; accent-color: var(--kupfer); margin: 0; }
.field input[type="number"] {
  width: 100%; min-width: 0;
  font-family: var(--mono); font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  padding: 0.45em 0.6em;
}
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cent { background: var(--tint); border-radius: 10px; padding: 10px 14px; font-size: 0.96rem; }
.cent strong { color: var(--kupfer); white-space: nowrap; }
.counter-row .unit { font-family: var(--mono); font-size: 1.02rem; padding-bottom: 8px; color: var(--muted); }
.calc { display: grid; font-family: var(--mono); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.calc div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding-block: 9px; border-top: 1px dashed var(--line); }
.calc div span:first-child { min-width: 0; }
.calc small { display: block; color: var(--muted); font-size: 0.82rem; }
.calc .total { border-top: 2px solid var(--ink); font-weight: 500; }
.calc .total span:last-child { color: var(--kupfer); }
.meter dl { margin: 0; display: grid; gap: 6px; font-size: 0.98rem; }
.meter dt { font-weight: 600; display: inline; }
.meter dd { margin: 0; display: inline; color: var(--muted); }
.meter figcaption { font-size: 0.85rem; color: var(--muted); }

/* Häuserzeile */
.skyline { display: block; width: 100%; height: clamp(120px, 17vw, 215px); }
.skyline .win { fill: #FFFFFF; opacity: 0.06; transition: opacity 0.7s ease, fill 0.7s ease; }
.skyline .win.on { fill: var(--w); opacity: 1; }


/* Energie-Details */
.dusk { position: relative; }
.dusk > .wrap { position: relative; z-index: 1; }
.stars { position: absolute; top: 0; left: 0; width: 100%; height: min(70%, 520px); pointer-events: none; }
.stars .tw { animation: funkeln 3.6s ease-in-out infinite alternate; }
@keyframes funkeln { from { opacity: 0.12; } to { opacity: 0.95; } }
.skyline { position: relative; z-index: 1; }
.skyline .pulse { fill: #FFD592; filter: drop-shadow(0 0 5px #F3A548); transition: opacity 0.5s ease; }
.dusk[data-mode="gas"] .skyline .pulse { opacity: 0; }
.skyline .puff { fill: #D5DDEC; opacity: 0; transform-box: fill-box; transform-origin: center; }
.dusk[data-mode="gas"] .skyline .puff { animation: rauch 4.2s ease-out infinite; }
@keyframes rauch {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  20% { opacity: 0.5; }
  100% { opacity: 0; transform: translate(16px, -58px) scale(2.6); }
}
.mode { justify-self: start; display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg); border-radius: 999px; padding: 4px; }
.seg {
  font: inherit; font-size: 0.95rem; font-weight: 600;
  display: inline-flex; gap: 6px; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--muted);
  border-radius: 999px; padding: 0.35em 1.15em; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.seg .ic { width: 18px; height: 18px; }
.seg[aria-pressed="true"] { background: var(--kupfer); color: var(--surface); }
.meter[data-mode="gas"] { --kupfer: var(--gas); --tint: var(--gas-tint); --glowc: rgba(90, 162, 240, 0.6); }
.fine { font-size: 0.9rem; color: var(--muted); }

.device {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(20px, 4vw, 36px);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 44px; align-items: center;
}
.device .controls { display: grid; gap: 18px; min-width: 0; }
.device .field { font-size: 1rem; color: var(--muted); }
.device .field strong { color: var(--ink); font-family: var(--mono); font-weight: 500; }
.result {
  background: linear-gradient(160deg, var(--dusk-1), var(--dusk-2) 70%, var(--dusk-3));
  color: var(--dusk-fg); border-radius: 16px; padding: 28px 20px;
  display: grid; gap: 12px; justify-items: center; text-align: center; min-width: 0;
}
.bulb {
  width: 88px; height: 88px; fill: none; stroke: var(--amber); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 calc(3px + var(--glow, 0.47) * 26px) rgba(243, 165, 72, calc(0.3 + var(--glow, 0.47) * 0.65)));
  transition: filter 0.4s ease;
}
.bulb .glass { fill: var(--amber); fill-opacity: calc(0.12 + var(--glow, 0.47) * 0.88); transition: fill-opacity 0.4s ease; }
.result .big { font-family: var(--display); font-stretch: 108%; font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.2rem); line-height: 1; color: var(--amber); font-variant-numeric: tabular-nums; }
.result .sub { color: var(--dusk-muted); font-size: 0.98rem; }
.result dl { margin: 6px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 26px; font-size: 0.95rem; }
.result dt { color: var(--dusk-muted); }
.result dd { margin: 0; font-family: var(--mono); font-size: 1.02rem; }

.steps li { z-index: 1; }
.steps::after {
  content: ""; position: absolute; z-index: 0; top: 19px; left: 24px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 12px 3px var(--amber);
  animation: fluss 4.5s linear infinite;
}
@keyframes fluss { from { left: 24px; } to { left: calc(100% - 35px); } }
@keyframes fluss-v { from { top: 24px; } to { top: calc(100% - 35px); } }
.card .flame path { transform-box: fill-box; transform-origin: 50% 100%; animation: flacker 1.3s ease-in-out infinite alternate; }
@keyframes flacker { from { transform: scale(1, 1) skewX(0deg); } to { transform: scale(0.92, 1.08) skewX(-4deg); } }
.card .zap { animation: blitz 3s ease-in-out infinite; }
@keyframes blitz {
  0%, 68%, 100% { filter: none; }
  74% { filter: drop-shadow(0 0 6px var(--amber)); }
  80% { filter: none; }
  88% { filter: drop-shadow(0 0 9px var(--amber)); }
}

/* ---------- Himmel nach Tageszeit ---------- */
.dusk { --mast: #0D1730; }
.skylayer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; pointer-events: none; }
.skylayer.day { background: linear-gradient(180deg, #4C98DE 0%, #86C0EE 46%, #CDE7FA 80%, #FFE8C2 100%); }
.skylayer.night { background: linear-gradient(180deg, #03060D 0%, #081023 52%, #121B3D 86%, #1E2550 100%); }
.dusk[data-sky="day"] .skylayer.day, .dusk[data-sky="night"] .skylayer.night { opacity: 1; }
.stars { transition: opacity 1.1s ease; opacity: 0.8; }
.dusk[data-sky="night"] .stars { opacity: 1; }
.dusk[data-sky="day"] .stars { opacity: 0; }
.orb {
  position: absolute; z-index: 0; pointer-events: none;
  width: 84px; height: 84px; border-radius: 50%;
  left: 24%; top: calc(100% - clamp(150px, 20vw, 245px));
  background: radial-gradient(circle at 40% 40%, #FFE2B0, #FFB45E 70%);
  box-shadow: 0 0 70px 26px rgba(255, 170, 90, 0.55);
  transition: left 1.2s ease, top 1.2s ease, width 1.2s ease, height 1.2s ease, box-shadow 1.2s ease, opacity 0.8s ease;
}
.dusk[data-sky="day"] .orb { left: 47%; top: 92px; background: radial-gradient(circle at 40% 40%, #FFFBE6, #FFD452 75%); box-shadow: 0 0 80px 30px rgba(255, 220, 120, 0.75); }
.dusk[data-sky="night"] .orb { left: 47%; top: 86px; width: 58px; height: 58px; background: #F3F0E2; box-shadow: 0 0 46px 8px rgba(214, 222, 255, 0.32), inset -15px 5px 0 0 #070D1C; }
.cloud {
  position: absolute; z-index: 0; pointer-events: none;
  width: 150px; height: 44px; border-radius: 44px;
  background: #FFFFFF; opacity: 0; transition: opacity 1.1s ease;
  animation: ziehen 46s ease-in-out infinite alternate;
}
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 64px; height: 64px; left: 22px; top: -28px; }
.cloud::after { width: 48px; height: 48px; left: 74px; top: -18px; }
.cloud.c1 { left: 6%; top: 118px; }
.cloud.c2 { left: 60%; top: 66px; scale: 0.7; }
.cloud.c3 { left: 30%; top: 236px; scale: 0.55; }
.dusk[data-sky="day"] .cloud { opacity: 0.9; }
@keyframes ziehen { from { translate: 0 0; } to { translate: 80px 0; } }

.dusk[data-sky="day"] { --dusk-fg: #0F1B2B; --dusk-muted: #27425F; --dusk-1: #27476B; --dusk-back: #7EA4CB; --mast: #2A4466; --wave: #D9690F; }
.dusk[data-sky="day"][data-mode="gas"] { --wave: #1763C2; }
.dusk[data-sky="night"] { --dusk-1: #060B16; --dusk-back: #121C38; --mast: #050912; }
.dusk[data-sky="day"] h1 em { color: #B8470A; text-shadow: none; }
.dusk[data-sky="day"][data-mode="gas"] h1 em { color: #114E9E; text-shadow: none; }
.dusk[data-sky="day"] .pillbadge { border-color: rgba(15, 27, 43, 0.3); background: rgba(255, 255, 255, 0.4); }
.dusk[data-sky="day"] .pillbadge .ic { color: #B8470A; }
.dusk[data-sky="day"] .skyline .win { fill: #D6EAFB; opacity: 0.5; }
.dusk[data-sky="day"] .skyline .win.on { fill: var(--w); opacity: 1; }
.dusk[data-sky="day"] .skyline .pulse { fill: #FFF3D6; filter: drop-shadow(0 0 5px #E07B1A); }
.dusk[data-sky="day"] .skybtn { border-color: rgba(15, 27, 43, 0.4); }
.skyline .win.near { fill: var(--w) !important; opacity: 1 !important; transition-delay: 0s !important; }
.skyline .pv { fill: #1B3566; stroke: #6FA3E6; stroke-width: 0.8; }
.dusk[data-sky="day"] .skyline .pv { fill: #2A5CB0; stroke: #CFE4FF; }
.skybtn {
  display: inline-flex; gap: 6px; align-items: center;
  font: inherit; font-size: 0.9rem; color: var(--dusk-fg);
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.32); border-radius: 999px;
  padding: 0.22em 0.75em 0.22em 0.55em; cursor: pointer;
}
.skybtn .ic { width: 18px; height: 18px; }
.skybtn:hover { border-color: var(--amber); }

/* ---------- Ladeleiste und Kopfzeile beim Scrollen ---------- */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.charge { position: fixed; top: 0; left: 0; right: 0; height: calc(4px + env(safe-area-inset-top, 0px)); z-index: 60; pointer-events: none; }
.charge span {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 4px;
  transform-origin: left center; transform: scaleX(0);
  background: linear-gradient(90deg, var(--kupfer), var(--amber) 70%, #FFE3B0);
  box-shadow: 0 0 12px rgba(243, 165, 72, 0.85);
}
.btn.small { padding: 0.48em 1.1em; font-size: 0.95rem; box-shadow: none; }

/* ---------- Muster-Abrechnung ---------- */
.billwrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px 52px; align-items: center; }
.bill {
  position: relative; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow);
  padding: clamp(16px, 3vw, 28px);
  display: grid; gap: 3px;
  font-family: var(--mono); font-size: 0.93rem;
  rotate: -1deg;
}
.bill-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 2px solid var(--ink); font-family: var(--body); }
.bill-head strong { display: block; font-family: var(--display); font-stretch: 108%; font-size: 1.2rem; }
.bill-head span { color: var(--muted); font-size: 0.88rem; }
.stamp {
  flex: none; font-family: var(--display); font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--zaehler-rot) !important; border: 2.5px solid var(--zaehler-rot); border-radius: 6px; padding: 0.1em 0.5em; rotate: 8deg; opacity: 0.85;
}
.hot, .row {
  display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; gap: 2px 10px; align-items: center;
  width: 100%; padding: 9px 10px; border: 0; border-radius: 8px;
  font: inherit; color: var(--ink); text-align: left; background: transparent;
}
.hot { cursor: pointer; transition: background 0.2s ease; }
.hot:hover { background: var(--tint); }
.hot[aria-pressed="true"] { background: color-mix(in srgb, var(--amber) 28%, transparent); box-shadow: inset 3px 0 0 var(--kupfer); }
.num {
  width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--surface); font-family: var(--body); font-size: 0.78rem; font-weight: 600;
}
.hot[aria-pressed="true"] .num { background: var(--kupfer); }
.hot .v, .row .v { text-align: right; font-variant-numeric: tabular-nums; }
.hot small { grid-column: 2 / -1; color: var(--muted); font-size: 0.82rem; }
.row.sum { border-top: 1px dashed var(--line); border-radius: 0; font-weight: 500; }
.explain { display: grid; gap: 12px; align-content: start; min-width: 0; }
.explain .num { width: 2.3rem; height: 2.3rem; font-size: 1.05rem; background: var(--kupfer); }
.explain h3 { font-size: 1.55rem; }
.explain p { color: var(--muted); font-size: 1.08rem; }
.explain .tipp { border-left: 3px solid var(--kupfer); padding-left: 14px; color: var(--ink); font-size: 1rem; margin-top: 8px; }

/* Zahlenband und Leuchtstreifen */
main h2::after {
  content: ""; display: block; width: 64px; height: 4px; margin-top: 14px; border-radius: 2px;
  background: linear-gradient(90deg, var(--kupfer), var(--amber));
  box-shadow: 0 0 14px rgba(243, 165, 72, 0.6);
  transform-origin: left center;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js main h2:not(.on)::after { transform: scaleX(0); }
.band {
  --band: var(--dusk-1);
  position: relative;
  background: var(--band);
  border-image: conic-gradient(var(--band) 0 0) fill 0 / 0 / 0 100vw;
  color: var(--dusk-fg);
  padding-block: clamp(44px, 7vw, 84px);
  display: grid; gap: clamp(26px, 4vw, 40px);
}
.band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 75% at 88% 0%, rgba(243, 165, 72, 0.2), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 72px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.band > * { position: relative; }
.band .sec-head p { color: var(--dusk-muted); }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 32px; }
.stats li { display: grid; gap: 10px; align-content: start; border-top: 2px solid rgba(243, 165, 72, 0.6); padding-top: 16px; }
.stats .n {
  font-family: var(--display); font-stretch: 108%; font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 3.1rem); line-height: 1; letter-spacing: -0.02em;
  color: var(--amber); text-shadow: 0 0 28px rgba(243, 165, 72, 0.5);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.stats li > span:last-child { color: var(--dusk-muted); font-size: 1rem; line-height: 1.45; }
.src { font-size: 0.88rem; color: var(--dusk-muted); max-width: 52em; }
.src a { color: var(--dusk-fg); }

/* ---------- Heller Teil ---------- */
main { display: grid; gap: clamp(64px, 9vw, 112px); padding-bottom: clamp(56px, 8vw, 96px); }

.facts {
  list-style: none; margin: -30px 0 0; padding: clamp(18px, 3vw, 26px);
  position: relative; z-index: 2;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 28px;
}
.facts li { display: grid; gap: 3px; align-content: start; }
.facts .n {
  font-family: var(--display); font-stretch: 108%; font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.05; letter-spacing: -0.02em;
  color: var(--kupfer); font-variant-numeric: tabular-nums;
}
.facts strong { font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: 1.08rem; line-height: 1.25; }
.facts li > span:last-child { color: var(--muted); font-size: 0.98rem; line-height: 1.45; }

.sec { display: grid; gap: clamp(24px, 3.5vw, 36px); }
.sec-head { display: grid; gap: 10px; max-width: 42em; }
.sec-head p { color: var(--muted); }

.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 28px; counter-reset: v; }
.services li { counter-increment: v; border-top: 3px solid var(--ink); padding-top: 14px; display: grid; gap: 8px; align-content: start; }
.services li::before { content: counter(v, decimal-leading-zero); font-family: var(--mono); font-size: 0.95rem; letter-spacing: 0.06em; color: var(--kupfer); }
.services p { color: var(--muted); font-size: 1.04rem; }
.more { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.pillbadge {
  justify-self: start;
  display: inline-flex; gap: 8px; align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px;
  padding: 0.32em 0.95em 0.32em 0.7em;
  font-size: 0.95rem; color: var(--dusk-fg);
  background: rgba(255, 255, 255, 0.06);
}
.pillbadge .ic { width: 18px; height: 18px; color: var(--amber); stroke-width: 2.2; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 28px);
  display: grid; gap: 12px; align-content: start; min-width: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .badge {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--tint); color: var(--kupfer);
}
.card .badge .ic { width: 28px; height: 28px; }
.card p { color: var(--muted); font-size: 1.04rem; }

.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.why > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; align-content: start; }
.why .ic { grid-row: 1 / span 2; color: var(--kupfer); margin-top: 1px; }
.why p { color: var(--muted); font-size: 1.04rem; }

/* Ablauf an der Kupferleitung */
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 36px; counter-reset: s; }
.steps::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: 3px;
  background: linear-gradient(90deg, var(--kupfer), var(--amber));
  border-radius: 2px;
}
.steps li { counter-increment: s; position: relative; display: grid; gap: 10px; align-content: start; }
.steps li::before {
  content: counter(s);
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); color: var(--kupfer);
  border: 3px solid var(--kupfer);
  font-family: var(--display); font-stretch: 108%; font-weight: 800; font-size: 1.35rem; line-height: 1;
}
.steps p { color: var(--muted); font-size: 1.04rem; }
.bring {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start;
  background: var(--tint); border-radius: 14px; padding: 16px 20px; max-width: 46em;
}
.bring .ic { color: var(--kupfer); margin-top: 2px; }

/* Vergütung */
.pay {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--amber);
  border-radius: 16px;
  padding: clamp(22px, 4.5vw, 44px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 18px 48px;
}
.pay div { display: grid; gap: 14px; align-content: start; }

/* Fragen */
.faq-list { display: grid; gap: 10px; max-width: 48rem; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
summary {
  cursor: pointer; list-style: none;
  padding: 15px 20px; font-weight: 600;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-family: var(--mono); font-size: 1.3rem; line-height: 1; color: var(--kupfer);
  transition: transform 0.2s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 20px 18px; max-width: 42em; color: var(--muted); }

/* Kontakt */
.cta {
  color: var(--dusk-fg);
  background: linear-gradient(135deg, var(--dusk-1) 0%, var(--dusk-2) 55%, var(--dusk-3) 100%);
  border-radius: 22px;
  padding: clamp(24px, 5vw, 52px);
  display: grid; gap: 24px;
}
.cta > p { max-width: 38em; color: var(--dusk-fg); }
.groups { display: grid; gap: 18px; min-width: 0; }
.group { display: grid; gap: 8px; }
.group .label { color: var(--dusk-muted); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span {
  display: inline-block; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.32); border-radius: 999px;
  padding: 0.3em 0.95em; font-size: 0.97rem; font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}
.opt span:hover { border-color: var(--amber); }
.opt input:checked + span { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.opt input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 3px; }
.inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.inp { display: grid; gap: 6px; min-width: 0; }
.inp.wide { grid-column: 1 / -1; }
.inp .label { color: var(--dusk-muted); }
.inp input, .inp textarea {
  width: 100%; min-width: 0;
  font: inherit; font-size: 1rem; color: var(--dusk-fg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 10px;
  padding: 0.5em 0.7em;
}
.inp textarea { resize: vertical; min-height: 4.2em; }
.inp input::placeholder, .inp textarea::placeholder { color: var(--dusk-muted); opacity: 0.8; }
.msg {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 18px 20px;
  display: grid; gap: 12px; align-content: start; min-width: 0;
}
.msg .label { color: var(--dusk-muted); }
#msg-text { margin: 0; white-space: pre-wrap; font-family: var(--body); font-size: 1.02rem; line-height: 1.5; overflow-wrap: anywhere; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.status { font-size: 0.9rem; color: var(--dusk-muted); min-height: 1.2em; }
.ways { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.ways > div {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 16px 18px;
  display: grid; gap: 8px; align-content: start; min-width: 0;
}
.ways .label { color: var(--dusk-muted); }
.ways .val { font-family: var(--mono); font-size: 0.96rem; overflow-wrap: anywhere; }
.copy {
  justify-self: start;
  font: inherit; font-size: 0.9rem; font-weight: 600;
  background: transparent; color: var(--dusk-fg);
  border: 1.5px solid var(--amber); border-radius: 999px; padding: 0.3em 0.95em; cursor: pointer;
}
.copy:hover { background: var(--amber); color: var(--on-amber); }

/* Fuß */

/* ---------- Anbieter ---------- */

/* ---------- Laufband der Versorger ---------- */
.marq { display: grid; gap: 16px; min-width: 0; margin-block: calc(-1 * clamp(18px, 3vw, 40px)); }
.marq-head { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: baseline; }
.marq-title { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.marq-head a { font-weight: 600; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.marq-view {
  overflow: hidden; display: grid; gap: 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marq-track { display: flex; width: max-content; padding-block: 4px 8px; will-change: transform; animation: lauf 170s linear infinite; }
.marq-view:hover .marq-track, .marq-track.paused { animation-play-state: paused; }
.marq-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; }
.marq-pause { font: inherit; font-size: 0.9rem; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 0.15em 0.8em; cursor: pointer; }
.marq-pause:hover { border-color: var(--kupfer); color: var(--ink); }
@keyframes lauf { to { transform: translateX(-50%); } }

/* ---------- Fußbereich ---------- */
.foot {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--dusk-1) 0%, #060C18 100%);
  color: var(--dusk-muted); font-size: 1rem;
  padding-bottom: 30px;
}
.foot-wave { display: block; width: 100%; height: 46px; }
.foot-wave path { fill: none; stroke: var(--amber); stroke-width: 2; opacity: 0.6; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px var(--amber)); animation: welle 3.4s linear infinite; }
.foot .wrap { position: relative; z-index: 1; display: grid; gap: clamp(28px, 4.5vw, 46px); padding-top: clamp(24px, 4vw, 44px); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 56px; align-items: center; }
.foot-brand { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.foot-brand .label { color: var(--amber); }
.foot-name {
  font-family: var(--display); font-stretch: 108%; font-weight: 800;
  font-size: clamp(2.3rem, 5.6vw, 3.7rem); line-height: 1; letter-spacing: -0.022em;
  color: var(--dusk-fg);
}
.foot-claim { font-size: 1.14rem; line-height: 1.5; max-width: 29em; color: var(--dusk-muted); margin-bottom: 6px; }
.foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.foot-contact li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px;
  padding: 12px 18px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.foot-contact li:hover { border-color: rgba(243, 165, 72, 0.6); background: rgba(255, 255, 255, 0.08); }
.foot-contact .ic { width: 24px; height: 24px; color: var(--amber); }
.foot-contact .label { display: block; font-size: 0.72rem; color: var(--dusk-muted); }
.foot-contact strong { display: block; color: var(--dusk-fg); font-weight: 500; font-size: 1.06rem; overflow-wrap: anywhere; user-select: all; }
.foot-nav {
  display: flex; flex-wrap: wrap; gap: 6px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12); border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 14px;
}
.foot-nav a { color: var(--dusk-fg); text-decoration: none; padding: 0.25em 0.85em; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.97rem; }
.foot-nav a:hover { border-color: var(--amber); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; font-size: 0.9rem; }
.foot-bottom a { color: var(--dusk-fg); text-decoration: none; border-bottom: 1px solid var(--amber); padding-bottom: 1px; }
.foot-kwh {
  position: absolute; right: -0.05em; bottom: -0.2em; z-index: 0;
  font-family: var(--display); font-stretch: 108%; font-weight: 800;
  font-size: clamp(9rem, 27vw, 23rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.07);
  pointer-events: none; user-select: none;
}

@media (max-width: 900px) {
  .hero, .pay { grid-template-columns: minmax(0, 1fr); }
  .facts, .why, .services, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards, .ways, .device, .billwrap, .foot-top { grid-template-columns: minmax(0, 1fr); }
  .bill { rotate: none; }
  .dusk[data-sky="day"] .orb { left: calc(100% - 64px); top: -26px; }
  .dusk[data-sky="night"] .orb { opacity: 0; }
  .cloud.c1, .cloud.c3 { display: none; }
  .cloud.c2 { left: calc(100% - 130px); top: 100px; scale: 0.5; }
  .steps::after { left: 18px; top: 24px; animation-name: fluss-v; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .steps::before { left: 22px; right: auto; top: 24px; bottom: 24px; width: 3px; height: auto; background: linear-gradient(180deg, var(--kupfer), var(--amber)); }
  .steps li { grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; }
  .steps li::before { grid-row: 1 / span 2; }
  .steps li h3 { align-self: end; padding-top: 10px; }
}
@media (max-width: 540px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why, .services, .inputs { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .counter .strip, .skyline .win, .bulb, .bulb .glass { transition: none; }
  .stars .tw, .card .flame path, .card .zap, .skyline .puff { animation: none; }
  .steps::after { display: none; }
  .wave path, h1 em, .cloud, .foot-wave path { animation: none; }
  .orb, .skylayer { transition: none; }
  main h2::after { transition: none; }
  .btn, .card, summary::after { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ================= Mehrseitige Fassung: Grundgerüst, Kopfzeile, Unterseiten ================= */
:root {
  --bar-h: 72px;
  --bar-bg: rgba(8, 16, 30, 0.88);
  --bar-fg: #F2F5FA;
  --bar-muted: #B9C4D8;
  --oeko: #2E7D4F;
  --oeko-tint: #E3F3E8;
  --ok: #1F9D61;
  --ok-dusk: #4FD08F;
  --series-a: #5B57A6;
  --series-b: #B5541C;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --oeko: #7FD3A0; --oeko-tint: #14291D; --ok: #4FD08F; --series-a: #7F7AD8; --series-b: #D27C3A; }
}
:root[data-theme="dark"] { --oeko: #7FD3A0; --oeko-tint: #14291D; --ok: #4FD08F; --series-a: #7F7AD8; --series-b: #D27C3A; }

html { background: var(--dusk-1); -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--bar-h) + 18px); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
button.btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; }

/* Weicher Seitenwechsel: Himmel und Kopfzeile bleiben stehen, die Stadt gleitet mit */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.26s; }
::view-transition-group(skyline) { animation-duration: 0.5s; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }

/* ---------- Kopfzeile ---------- */
.dusk { padding-top: var(--bar-h); }
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--dusk-fg);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  view-transition-name: bar;
}
.bar.stuck, .bar.open {
  --dusk-fg: var(--bar-fg); --dusk-muted: var(--bar-muted);
  background: var(--bar-bg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(4, 9, 18, 0.3);
}
.bar-in { display: flex; align-items: center; gap: 10px 24px; min-height: var(--bar-h); }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; min-width: 0; text-decoration: none; color: var(--dusk-fg); }
.mark { width: 36px; height: 36px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; }
.mark path { stroke: var(--wave, var(--amber)); stroke-width: 3; stroke-linecap: round; transition: stroke 0.5s ease; }
.brand-name { font-family: var(--display); font-stretch: 108%; font-size: 1.24rem; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.brand .label { color: var(--dusk-muted); white-space: nowrap; }
.nav { display: flex; gap: 4px 24px; align-items: center; font-size: 1.02rem; }
.nav a { text-decoration: none; color: var(--dusk-fg); padding-block: 5px 3px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--wave, var(--amber)); }
.bar-tools { display: flex; gap: 10px; align-items: center; }
.pill { text-decoration: none; white-space: nowrap; font-weight: 600; color: var(--dusk-fg); border: 1.5px solid var(--amber); border-radius: 999px; padding: 0.32em 1.05em; }
.pill:hover, .pill[aria-current="page"] { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.dusk[data-sky="day"] .bar:not(.stuck):not(.open) .pill:not(:hover):not([aria-current="page"]) { border-color: var(--dusk-fg); }
.bar.stuck .skybtn, .bar.open .skybtn { border-color: rgba(255, 255, 255, 0.32); }
.menubtn {
  display: none; align-items: center; gap: 9px;
  font: inherit; font-size: 0.97rem; font-weight: 600; color: var(--dusk-fg);
  background: transparent; border: 1.5px solid currentColor; border-radius: 999px;
  padding: 0.34em 0.95em; cursor: pointer;
}
.menubtn i { position: relative; width: 16px; height: 2px; border-radius: 1px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
.menubtn i::before, .menubtn i::after { content: ""; position: absolute; inset: 0; border-radius: 1px; background: currentColor; opacity: 0; }
.menubtn[aria-expanded="true"] i { background: transparent; box-shadow: none; }
.menubtn[aria-expanded="true"] i::before { opacity: 1; transform: rotate(45deg); }
.menubtn[aria-expanded="true"] i::after { opacity: 1; transform: rotate(-45deg); }
.menu { border-top: 1px solid rgba(255, 255, 255, 0.12); max-height: calc(100vh - var(--bar-h)); overflow-y: auto; }
.menu .wrap { display: grid; padding-block: 6px 24px; }
.menu a.big {
  display: grid; gap: 1px; padding-block: 12px; text-decoration: none; color: var(--bar-fg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--display); font-stretch: 108%; font-weight: 750; font-size: 1.45rem; line-height: 1.15;
}
.menu a.big small { font-family: var(--body); font-stretch: 100%; font-weight: 400; font-size: 0.95rem; color: var(--bar-muted); }
.menu a.big[aria-current="page"] { color: var(--amber); }
.menu-foot { display: grid; gap: 14px; padding-top: 18px; justify-items: start; color: var(--bar-muted); font-size: 0.98rem; }
.menu-foot strong { color: var(--bar-fg); font-family: var(--mono); font-weight: 500; }

/* ---------- Kopf der Unterseiten ---------- */
.subhero { display: grid; gap: 16px; max-width: 46em; padding-block: clamp(22px, 4vw, 46px) clamp(46px, 7vw, 100px); }
.subhero > * { justify-self: start; }
.subhero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.subhero .lead { font-size: 1.18rem; max-width: 36em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.95rem; color: var(--dusk-muted); }
.crumbs a { color: var(--dusk-fg); text-decoration-color: var(--wave, var(--amber)); text-decoration-thickness: 2px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a {
  text-decoration: none; font-weight: 600; font-size: 0.97rem; color: var(--dusk-fg);
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; padding: 0.3em 0.95em; background: rgba(255, 255, 255, 0.06);
}
.jump a:hover { border-color: var(--amber); }
.dusk[data-sky="day"] .jump a { border-color: rgba(15, 27, 43, 0.3); background: rgba(255, 255, 255, 0.4); }
.dusk.sub .skyline { height: clamp(84px, 11.25vw, 190px); }
.dusk.sub .wave { bottom: clamp(58px, 9.4vw, 158px); height: clamp(40px, 6vw, 78px); }
.dusk.sub .orb { top: calc(100% - clamp(104px, 13vw, 200px)); }
.dusk.sub[data-sky="day"] .orb { left: 80%; top: calc(var(--bar-h) + 22px); }
.dusk.sub[data-sky="night"] .orb { left: 80%; top: calc(var(--bar-h) + 26px); }
.dusk.sub .cloud.c1, .dusk.sub .cloud.c3 { display: none; }
.dusk.sub .cloud.c2 { left: 71%; top: calc(var(--bar-h) + 150px); }
.cloud.c3 { left: 37%; top: auto; bottom: clamp(240px, 27vw, 345px); }
main.page { padding-top: clamp(40px, 6vw, 76px); }
.skyline .rotor { fill: var(--dusk-back); }

/* ---------- Erreichbarkeit ---------- */
.avail { display: inline-flex; gap: 10px; align-items: center; font-size: 0.98rem; }
.avail::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: 0.45; }
.avail.on::before { background: var(--ok); opacity: 1; box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); }
.dusk .avail.on::before, .cta .avail.on::before, .cta-band .avail.on::before, .foot .avail.on::before, .menu .avail.on::before {
  background: var(--ok-dusk); box-shadow: 0 0 0 4px rgba(79, 208, 143, 0.22);
}
.dusk[data-sky="day"] .avail.on::before { background: #0E7A45; box-shadow: 0 0 0 4px rgba(14, 122, 69, 0.2); }

/* ---------- Laufband: Namen in einer Zeile ---------- */
.marq-track ul { display: flex; flex: none; list-style: none; margin: 0; padding: 0; }
.ptile {
  flex: 0 0 auto; margin-right: 14px;
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 22px 8px 8px;
  box-shadow: 0 1px 2px rgba(15, 27, 43, 0.06), 0 6px 16px rgba(15, 27, 43, 0.05);
}
.ptile i {
  font-style: normal; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint); color: var(--kupfer);
  font-family: var(--display); font-stretch: 108%; font-weight: 800; font-size: 0.98rem; letter-spacing: -0.01em;
}
.ptile:nth-child(4n+2) i { background: var(--gas-tint); color: var(--gas); }
.ptile:nth-child(4n+3) i { background: var(--oeko-tint); color: var(--oeko); }
.ptile:nth-child(4n) i { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.ptile b { font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: 1.05rem; }
.marq { margin-block: 0; gap: clamp(20px, 3vw, 30px); }
.marq-view { width: 100vw; margin-left: calc(50% - 50vw); }
.marq-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; }
body { overflow-x: hidden; overflow-x: clip; }

/* ---------- Startseite: Wegweiser ---------- */
.teasers { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.teaser {
  display: grid; gap: 10px; align-content: start; min-width: 0;
  text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(20px, 3.4vw, 34px);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.teaser:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.teaser h3 { font-size: 1.45rem; }
.teaser p { color: var(--muted); font-size: 1.05rem; }
.teaser:not(.big) { grid-template-rows: auto 1fr auto; }
.teaser .go { justify-self: start; font-weight: 600; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 0.25em; margin-top: 4px; }
.teaser.big {
  grid-row: span 2; align-content: space-between; gap: 22px;
  color: var(--dusk-fg); border: 0;
  background: linear-gradient(150deg, var(--dusk-1), var(--dusk-2) 62%, var(--dusk-3));
}
.teaser.big > div { display: grid; gap: 10px; }
.teaser.big h3 { font-size: clamp(1.6rem, 3vw, 2.05rem); }
.teaser.big p { color: var(--dusk-muted); }
.teaser.big ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.teaser.big li { border: 1px solid rgba(255, 255, 255, 0.26); border-radius: 999px; padding: 0.2em 0.85em; font-size: 0.93rem; font-weight: 600; }
.minichart { display: block; width: 100%; height: auto; max-height: 190px; }
.minichart .g { stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; }
.minichart .a { fill: none; stroke: #A9A5F2; stroke-width: 2.5; stroke-linecap: round; }
.minichart .b { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(243, 165, 72, 0.7)); }
.minichart circle { fill: var(--dusk-1); stroke: #FFFFFF; stroke-width: 2.5; }

/* ---------- Tarife vergleichen ---------- */
.cmp {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 26px 44px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(18px, 3.4vw, 34px);
}
.cmp-in, .cmp-out { display: grid; gap: 18px; min-width: 0; }
.cmp .field { font-size: 0.95rem; }
.cmp .field strong { color: var(--ink); font-family: var(--mono); font-weight: 500; }
.tariffs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tariff { border: 1px solid var(--line); border-radius: 14px; margin: 0; padding: 12px 14px 16px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.tariff legend { padding: 0 6px; font-weight: 600; font-size: 1rem; }
.tariff legend > span { display: inline-flex; gap: 8px; align-items: center; }
.key { display: inline-grid; place-items: center; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; color: #FFFFFF; font-family: var(--body); font-size: 0.8rem; font-weight: 700; }
.key.a { background: var(--series-a); }
.key.b { background: var(--series-b); }
.verdict { font-size: 1.22rem; line-height: 1.42; }
.verdict strong { white-space: nowrap; }
.verdict2 { color: var(--muted); font-size: 1.02rem; }
.cbars { display: grid; gap: 10px; }
.cbar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; }
.cbar .track { display: flex; align-items: center; gap: 9px; min-width: 0; }
.cbar .fill { flex: none; height: 18px; border-radius: 0 4px 4px 0; width: calc((100% - 7.6em) * var(--p, 1)); min-width: 2px; transition: width 0.35s ease; }
.cbar.a .fill { background: var(--series-a); }
.cbar.b .fill { background: var(--series-b); }
.cbar .val { font-family: var(--mono); font-size: 0.93rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart { margin: 0; position: relative; display: grid; gap: 10px; min-width: 0; }
.chart svg { display: block; width: 100%; height: auto; touch-action: pan-y; cursor: crosshair; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.chart .line { fill: none; stroke-width: 2; stroke-linecap: round; }
.chart .a { stroke: var(--series-a); }
.chart .b { stroke: var(--series-b); }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .dot.a { fill: var(--series-a); }
.chart .dot.b { fill: var(--series-b); }
.chart .now { stroke: var(--ink); stroke-width: 1; opacity: 0.5; }
.chart .cross { stroke: var(--muted); stroke-width: 1; }
.chart .endlab { fill: var(--ink); font-family: var(--body); font-weight: 600; font-size: 13px; }
.chart .even { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.chart .evenlab { fill: var(--ink); font-family: var(--body); font-size: 12.5px; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 0.93rem; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 18px; border-top: 2px solid var(--c); vertical-align: middle; margin-right: 8px; }
.legend .even-key::before { width: 6px; height: 6px; border: 2px solid var(--ink); border-radius: 50%; margin-right: 8px; }
.tip {
  position: absolute; z-index: 3; pointer-events: none; white-space: nowrap;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  padding: 8px 12px; font-size: 0.86rem; line-height: 1.5;
  transform: translate(-50%, calc(-100% - 12px));
}
.tip b { font-family: var(--mono); font-weight: 500; }
.tip span { display: block; color: var(--muted); }
.tip span b { color: var(--ink); }
.tip i { display: inline-block; width: 14px; border-top: 2px solid var(--c); vertical-align: middle; margin-right: 7px; }
.tableview { border-radius: 12px; }
.tableview summary { font-size: 0.97rem; padding: 10px 16px; }
.tablewrap { overflow-x: auto; padding: 0 16px 14px; }
.tableview table { border-collapse: collapse; width: 100%; font-family: var(--mono); font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.tableview th, .tableview td { text-align: right; padding: 6px 8px; border-top: 1px solid var(--line); white-space: nowrap; }
.tableview th { font-weight: 500; color: var(--muted); border-top: 0; }
.tableview th:first-child, .tableview td:first-child { text-align: left; }
.calc .month { color: var(--muted); }

/* ---------- Ablauf: was nach der Unterschrift passiert ---------- */
.tl { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 28px; max-width: 46rem; }
.tl::before {
  content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, var(--kupfer), var(--amber));
}
.tl li { position: relative; padding-left: 46px; display: grid; gap: 5px; }
.tl li::before {
  content: ""; position: absolute; left: 1px; top: 4px; width: 21px; height: 21px; border-radius: 50%;
  box-sizing: border-box; background: var(--bg); border: 3px solid var(--kupfer);
}
.tl .when { font-family: var(--mono); font-size: 0.86rem; color: var(--kupfer); }
.tl p { color: var(--muted); font-size: 1.05rem; }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px 56px; align-items: start; }
.aside {
  background: var(--tint); border-radius: 16px; padding: clamp(18px, 3vw, 28px);
  display: grid; gap: 12px; align-content: start;
}
.aside h3 { font-size: 1.2rem; }
.aside ul { margin: 0; padding-left: 1.15em; display: grid; gap: 8px; }
.aside li, .aside p { font-size: 1.03rem; }

/* ---------- Fragen und Begriffe ---------- */
.faq-tools { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.search { position: relative; flex: 1 1 280px; max-width: 420px; min-width: 0; }
.search .ic { position: absolute; left: 15px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; font: inherit; font-size: 1.02rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.62em 1em 0.62em 2.8em;
}
.faq-count { color: var(--muted); font-size: 0.98rem; }
.faq-groups { display: grid; gap: 34px; }
.faq-group { display: grid; gap: 12px; }
.faq-group > h3 { font-size: 1.28rem; }
.faq-empty { color: var(--muted); }
.gloss { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 48px; }
.gloss div { display: grid; gap: 4px; align-content: start; border-top: 2px solid var(--line); padding-top: 12px; }
.gloss dt { font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: 1.12rem; }
.gloss dd { margin: 0; color: var(--muted); font-size: 1.03rem; }
.standnote { color: var(--muted); font-size: 0.93rem; max-width: 50em; }

/* ---------- Kontakt: Anfrage in vier Schritten ---------- */
.wiz { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px 38px; align-items: start; }
.wiz-main { display: grid; gap: 20px; min-width: 0; }
.wiz-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.wiz-tabs { display: flex; gap: 8px; }
.wiz-tab {
  font: inherit; font-weight: 600; width: 2.4rem; height: 2.4rem; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--dusk-fg); border: 1.5px solid rgba(255, 255, 255, 0.32);
}
.wiz-tab:hover, .wiz-tab.done { border-color: var(--amber); }
.wiz-tab[aria-current="step"] { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.charge-state { display: flex; gap: 12px; align-items: center; font-size: 0.95rem; color: var(--dusk-muted); }
.battery {
  position: relative; flex: none; width: 78px; height: 32px; padding: 3px;
  border: 2.5px solid var(--dusk-fg); border-radius: 9px; margin-right: 7px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px;
}
.battery::after { content: ""; position: absolute; right: -9px; top: 7px; width: 5px; height: 12px; border-radius: 0 3px 3px 0; background: var(--dusk-fg); }
.battery i { border-radius: 3px; background: rgba(255, 255, 255, 0.12); transition: background 0.35s ease, box-shadow 0.35s ease; }
.battery i.on { background: var(--amber); box-shadow: 0 0 10px rgba(243, 165, 72, 0.75); }
.step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 18px; }
.step legend:focus { outline: none; }
.step legend { padding: 0; margin-bottom: 14px; font-family: var(--display); font-stretch: 108%; font-weight: 750; font-size: 1.5rem; line-height: 1.2; }
.wiz-nav { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ghost {
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block;
  color: var(--dusk-fg); background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.32); border-radius: 999px; padding: 0.7em 1.3em;
}
.ghost:hover { border-color: var(--amber); }
.msg.ready { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber), 0 0 34px -8px rgba(243, 165, 72, 0.6); }
.msg .to { font-size: 0.95rem; color: var(--dusk-muted); overflow-wrap: anywhere; }
.msg .to strong { color: var(--dusk-fg); font-family: var(--mono); font-weight: 500; user-select: all; }
.ways a { color: inherit; }
.ways .val.plain { font-family: var(--body); font-size: 1.02rem; }

/* ---------- Abschluss jeder Seite ---------- */
.cta-band {
  color: var(--dusk-fg);
  background: linear-gradient(135deg, var(--dusk-1) 0%, var(--dusk-2) 55%, var(--dusk-3) 100%);
  border-radius: 22px; padding: clamp(24px, 5vw, 52px);
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px 48px; align-items: center;
}
.cta-band > div { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.cta-band p { color: var(--dusk-muted); max-width: 34em; }
.cta-band .quick { gap: 10px; font-size: 1.02rem; color: var(--dusk-muted); }
.cta-band .quick strong { display: block; color: var(--dusk-fg); font-family: var(--mono); font-weight: 500; font-size: 1.1rem; overflow-wrap: anywhere; }
.cta-band .quick a { color: inherit; text-decoration: none; }

/* ---------- Impressum und Datenschutz ---------- */
.legal { display: grid; gap: 30px; max-width: 47rem; }
.legal h2 { font-size: 1.3rem; letter-spacing: 0; display: flex; gap: 12px; align-items: baseline; }
.legal h2::after { content: none; }
.legal h2 span { font-family: var(--mono); font-size: 0.9rem; font-weight: 500; color: var(--kupfer); }
.legal section { display: grid; gap: 10px; }
.legal p, .legal li { color: var(--muted); font-size: 1.05rem; line-height: 1.62; }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.legal a { color: var(--ink); }
.idcard { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 40px; }
.idcard div { border-top: 2px solid var(--line); padding-top: 12px; display: grid; gap: 4px; align-content: start; }
.idcard dt { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.idcard dd { margin: 0; font-size: 1.12rem; overflow-wrap: anywhere; }
.idcard a { color: inherit; }

/* ---------- Fußzeile ---------- */
.foot-contact a { color: inherit; text-decoration: none; }
.foot-nav a[aria-current="page"] { border-color: var(--amber); }

@media (max-width: 1000px) {
  .brand .label { display: none; }
  .nav { gap: 4px 18px; }
}
@media (max-width: 900px) {
  .teasers, .cmp, .wiz, .cta-band, .split { grid-template-columns: minmax(0, 1fr); }
  .teaser.big { grid-row: auto; }
  .gloss { grid-template-columns: minmax(0, 1fr); }
  .dusk.sub[data-sky="day"] .orb { left: calc(100% - 64px); top: -26px; }
  .dusk.sub[data-sky="night"] .orb { opacity: 0; }
  .dusk.sub .cloud.c2 { left: calc(100% - 130px); top: calc(var(--bar-h) + 40px); }
}
@media (max-width: 860px) {
  :root { --bar-h: 62px; }
  .nav, .bar .pill { display: none; }
  .menubtn { display: inline-flex; }
  .skybtn span { display: none; }
  .skybtn { padding: 0.34em 0.5em; }
  .brand-name { font-size: 1.14rem; }
  .mark { width: 32px; height: 32px; }
}
@media (max-width: 540px) {
  .tariffs, .idcard { grid-template-columns: minmax(0, 1fr); }
  .wiz-head { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .bar, .teaser, .cbar .fill, .battery i, .mark path { transition: none; }
  .teaser:hover { transform: none; }
}

/* Startseite: Text oben ausrichten, damit Überschrift und Knopf ohne Scrollen zu sehen sind */
.hero { align-items: start; }
.hero-text { padding-top: clamp(4px, 4vw, 54px); }
.counter-row { flex-wrap: nowrap; }
.counter-row .unit { white-space: nowrap; }
