/* ============================================================
   EEG Energiefreunde Laaerberg – Designsystem "Editorial White"
   Weiß #FFFFFF · Text #191919 · Serif-Display + Inter
   Vollflächige Fotos · ruhige, minimale Bewegung · mobile-first
   ============================================================ */

/* ---------- Design-Tokens ---------- */
:root {
  color-scheme: light;

  --ink: #191919;
  --ink-70: rgba(25, 25, 25, 0.7);
  --ink-50: rgba(25, 25, 25, 0.5);
  --ink-40: rgba(25, 25, 25, 0.4);
  --bg: #FFFFFF;
  --gray: #F4F3F3;
  --gray-hover: #EAEAEA;

  /* Füllfarbe der Text- und Ausführungskästen (Karten, Boxen, Formulare) */
  --box: #FBEFC2;
  --box-hover: #F6E4A2;
  --box-line: #F0DFA6;
  --line: #E5E5E5;
  --focus: #0B57D0;

  /* Schriften: ausschließlich lokal vorhandene System- bzw. selbst
     gehostete Schriften. Keine Anfrage an Google Fonts o. Ä., damit
     keine Besucherdaten an Dritte übertragen werden.
     'Inter' und 'Mackinac' greifen nur, wenn sie unter assets/fonts/
     hinterlegt sind (siehe @font-face weiter unten). */
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: 'Mackinac', Georgia, "Iowan Old Style", "Palatino Linotype",
                Palatino, "Times New Roman", serif;

  --fs-0: clamp(0.85rem, 0.8rem + 0.2vw, 0.95rem);
  --fs-1: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --fs-2: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  --fs-3: clamp(1.5rem, 1.25rem + 1.2vw, 2.2rem);
  --fs-4: clamp(2rem, 1.5rem + 2.5vw, 3.4rem);
  --fs-hero: clamp(2.6rem, 1.6rem + 5vw, 5.6rem);

  --radius: 12px;
  --radius-lg: 16px;
  --wrap: 72rem;
  --gap: clamp(1rem, 2vw, 1.5rem);
  --section-y: clamp(4rem, 8vw, 7.5rem);
}

/* ---------- Selbst gehostete Schriften (optional) ----------
   Liegen die Dateien unter assets/fonts/, werden sie verwendet.
   Fehlen sie, greift automatisch der System-Fallback aus --font
   bzw. --font-serif. In beiden Fällen: keine externe Verbindung. */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Mackinac';
  src: url('../fonts/mackinac-book.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Mackinac';
  src: url('../fonts/mackinac-book-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-tap-highlight-color: transparent; }

/* Grid-/Flex-Kinder dürfen nie breiter werden als ihre Spur
   (verhindert Grid-Blowout durch nowrap-Headlines und erlaubt Text-Truncation) */
.grid > *, .hero-panel-grid > *, .split > *, .footer-grid > *,
.stat-tiles > *, .form-grid > *, .price-cards > * { min-width: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-1);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-70);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.55em;
}
h1 { font-size: var(--fs-hero); line-height: 1.05; }
h2 { font-size: var(--fs-4); }
h3 { font-size: var(--fs-3); }
h4 { font-size: var(--fs-2); }
h1 em, h2 em, h3 em { font-style: italic; }
h1, h2, h3, h4 { text-wrap: balance; overflow-wrap: break-word; }
/* Auf schmalen Screens lange Wörter (Beauskunftungskennzahl,
   Energiegemeinschaften …) still trennen statt überlaufen lassen */
@media (max-width: 44rem) {
  h1, h2, h3, h4 { hyphens: auto; }
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(25,25,25,0.3); transition: color 0.2s ease; }
a:hover { color: #000; text-decoration-color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 0.7rem 1.2rem;
  z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

section { padding-block: var(--section-y); position: relative; }

.kicker {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-50);
  margin-bottom: 0.9rem;
}
/* Gemeinsame Section-Header-Komponente: zentriert, als Block mittig,
   Textbreite begrenzt, damit Zeilen nicht über die volle Seite laufen */
.section-head {
  max-width: 52rem;               /* ≈ 70–75ch */
  margin-inline: auto;
  margin-bottom: clamp(1.75rem, 3vw, 3rem);
  text-align: center;
}
.section-head p { max-width: 62ch; margin-inline: auto; }
.section-head--full { max-width: none; }
.lead { font-size: var(--fs-2); color: var(--ink-70); line-height: 1.5; font-weight: 300; }

/* ---------- Buttons ---------- */
.btn, .site-nav a, .nav-more-btn, .nav-toggle, .faq-item summary, .hero-panel-rows a {
  touch-action: manipulation;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 500; font-size: 0.9rem;
  text-decoration: none; cursor: pointer;
  border: none; border-radius: 10px;
  padding: 0.8rem 1.6rem; min-height: 46px;
  white-space: nowrap; text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: rgba(25, 25, 25, 0.88); color: #fff; }
.btn-sun { background: var(--ink); color: #fff; }
.btn-sun:hover { background: rgba(25, 25, 25, 0.88); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--gray); border-color: #d8d8d8; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Header: fix, transparent über dem Hero ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  background: transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  max-width: 80rem; margin-inline: auto;
  display: flex; align-items: center; gap: 1rem;
  min-height: 3.4rem;
}
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 56px; width: auto; object-fit: contain; }
@media (min-width: 62rem) { .brand img { height: 64px; } }

/* Navigation: durchgängig dunkle Schrift, auch über dem (hellen) Hero-Bild.
   Für Lesbarkeit auf dem Foto bekommen die Links im transparenten Zustand
   einen feinen hellen Schein statt heller Schrift. */
.brand .logo-light { display: none; }
.site-header:not(.scrolled):not(.legal-header) .site-nav > ul > li > a,
.site-header:not(.scrolled):not(.legal-header) .nav-more-btn {
  color: var(--ink);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.75), 0 1px 2px rgba(255, 255, 255, 0.6);
}
.site-header:not(.scrolled):not(.legal-header) .site-nav > ul > li > a:hover,
.site-header:not(.scrolled):not(.legal-header) .nav-more-btn:hover {
  color: #000;
  background: rgba(255, 255, 255, 0.65);
}
.site-header:not(.scrolled):not(.legal-header) .header-cta { background: #fff; color: var(--ink); }
.site-header:not(.scrolled):not(.legal-header) .header-cta:hover { background: rgba(255, 255, 255, 0.88); }
.site-header:not(.scrolled):not(.legal-header) .nav-toggle { background: rgba(255, 255, 255, 0.92); border-color: transparent; }

.site-nav > ul { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255, 255, 255, 0.85); cursor: pointer; color: var(--ink);
}
.header-cta { display: none; }

@media (min-width: 62rem) {
  .nav-toggle { display: none; }
  .header-cta { display: inline-flex; padding: 0.65rem 1.3rem; min-height: 42px; flex: none; }
  .site-nav > ul {
    display: flex; flex-wrap: nowrap; gap: 0.15rem; align-items: center;
    list-style: none; margin: 0; padding: 0;
  }
  .site-nav a, .nav-more-btn {
    display: block; padding: 0.5rem 0.7rem; text-decoration: none;
    font-size: 0.875rem; font-weight: 400; color: var(--ink-70);
    border-radius: 8px; white-space: nowrap;
    transition: color 0.2s ease;
  }
  .site-nav a:hover, .nav-more-btn:hover { color: var(--ink); background: transparent; }
}

/* "Mehr"-Dropdown */
.nav-more { position: relative; }
.nav-more-btn {
  font: inherit; background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.nav-more-btn::after {
  content: ""; width: 0.45em; height: 0.45em;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform 0.15s ease;
}
.nav-more.open .nav-more-btn::after { transform: rotate(225deg) translateY(-2px); }
.nav-more-menu {
  /* Ausgangszustand: komplett unsichtbar, nicht klickbar, kein Platz im Layout */
  position: absolute; top: calc(100% + 0.6rem); right: 0; z-index: 200;
  min-width: 13rem; border-radius: var(--radius);
  padding: 0.4rem; margin: 0; list-style: none;
  display: block;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}
.nav-more.open .nav-more-menu {
  visibility: visible; opacity: 1; transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.nav-more-menu a { display: block; padding: 0.65rem 0.85rem; border-radius: 8px; }
.nav-more-menu a:hover { background: var(--gray); }

/* Mobiles Menü */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(255, 255, 255, 0.98); padding: 1.25rem;
  display: flex; flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.mobile-menu-head img { height: 60px; width: auto; }
.mobile-menu nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu nav a {
  display: block; padding: 1rem 0.5rem; font-size: 1.4rem;
  font-family: var(--font-serif);
  text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 1.25rem; }

/* Sticky Mobile-CTA */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
  padding: 0.6rem calc(0.9rem + env(safe-area-inset-right)) calc(0.6rem + env(safe-area-inset-bottom)) calc(0.9rem + env(safe-area-inset-left));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.mobile-cta .btn { padding: 0.6rem 0.5rem; font-size: 0.88rem; min-height: 44px; }
.mobile-cta .btn-sun { background: var(--ink); color: #fff; }
.mobile-cta .btn-primary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
@media (min-width: 62rem) { .mobile-cta { display: none; } }
body { padding-bottom: 5.2rem; }
@media (min-width: 62rem) { body { padding-bottom: 0; } }

/* ---------- Hero: vollflächiges Foto mit Boomerang-Bewegung ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: 0; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform-origin: top center;
  filter: brightness(1.07) saturate(1.04);   /* Bild selbst leicht anheben */
  animation: boomerang-zoom 16s ease-in-out infinite alternate;
}
@keyframes boomerang-zoom {
  from { transform: scale(1.02) translateY(0); }
  to   { transform: scale(1.14) translateY(-1.5%); }
}
/* Scrim: kein flächiges Abdunkeln mehr. Nur zwei gezielte Zonen:
   ein schmaler Verlauf oben für die Navigation und eine weiche
   radiale Fläche hinter dem Textblock. Ränder des Fotos bleiben hell. */
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 26%),
    radial-gradient(ellipse 68% 52% at 50% 44%, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.18) 55%, transparent 78%);
}
.hero-content {
  position: relative; z-index: 10;
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 7.5rem 1.25rem 3rem;
}
.hero-content .kicker { color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.hero-content h1 {
  /* max-width 100% statt none: Im zentrierten Flex-Container wird die
     Headline sonst so breit wie ihr Inhalt – die Fit-Logik im JS kann
     den Überlauf dann nicht erkennen und verkleinert nie. */
  max-width: 100%; margin-inline: auto; color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Fester Zweizeiler: Umbruch immer vor "Nachbarschaft", keine weiteren Umbrüche */
.two-line { text-wrap: initial; }
.two-line .line { display: block; white-space: nowrap; }
.hero-content h1 em { color: rgba(255, 255, 255, 0.8); }
.hero-content .lead {
  max-width: 34rem; margin: 1.25rem auto 0;
  color: #fff;
  font-size: var(--fs-1);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.45);
}
.hero-content .btn { margin-top: 2rem; padding: 0.9rem 2rem; }
.hero-content .btn-primary { background: #fff; color: var(--ink); }
.hero-content .btn-primary:hover { background: rgba(255, 255, 255, 0.88); color: var(--ink); }

/* Unteres Info-Panel (Glass, bündig am Viewport-Boden) */
.hero-panel {
  position: relative; z-index: 10;
  width: 100%; max-width: 64rem; margin: auto auto 0; padding-inline: 1rem;
}
.hero-panel-card {
  background: rgba(251, 239, 194, 0.93);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--box-line); border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 3.5vw, 3rem) 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.06);
}
/* Panel-Inhalt: gestapelt und zentriert, konsistent mit .section-head */
.hero-panel-card h2 {
  font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.2rem);
  margin: 0 auto 0.9rem; max-width: 52rem;
  text-align: center; hyphens: none;
}
.hero-panel-card > p {
  font-size: 0.95rem; color: var(--ink-70);
  margin: 0 auto 0.75rem; max-width: 62ch;
  text-align: center;
}
.hero-panel-card > p:last-of-type { margin-bottom: 0; }
.hairline { height: 1px; background: var(--line); width: 100%; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.hero-panel-rows { display: grid; gap: 0.5rem; padding-block: 0.6rem 0; }
@media (min-width: 44rem) { .hero-panel-rows { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; } }
.hero-panel-rows a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  background: var(--box); padding: 0.95rem 1.25rem;
  text-decoration: none; font-size: 0.88rem; font-weight: 500; color: var(--ink);
  transition: background-color 0.2s ease;
  min-height: 52px;
}
.hero-panel-rows a:hover { background: var(--box-hover); }
.hero-panel-rows .num { color: var(--ink-40); font-weight: 400; }
.hero-panel-rows .slash { margin-inline: 0.15rem 0.4rem; color: rgba(25, 25, 25, 0.3); }
.hero-panel-rows .arrow { flex: none; color: #9c9c9c; transition: transform 0.2s ease, color 0.2s ease; }
.hero-panel-rows a:hover .arrow { color: #4a4a4a; transform: translateX(2px); }

/* ---------- Vollflächige Foto-Bänder mit Text-Karte ---------- */
.photo-band { padding-block: clamp(4.5rem, 9vw, 9rem); overflow: hidden; }
.band-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.band-inner { position: relative; z-index: 2; }
.band-card {
  background: rgba(251, 239, 194, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--box-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  max-width: 38rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}
/* Überschriften im Foto-Kasten: h2 und h3 in identischer Größe,
   Umbruch erlaubt (kein Auto-Fit, siehe .no-fit) */
.band-card h2, .band-card h3 { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.1rem); line-height: 1.22; }
.band-card p { font-size: 0.95rem; }
.photo-band.card-right .band-card { margin-left: auto; }

/* ---------- Karten & Boxen ---------- */
.card {
  background: var(--box);
  border-radius: var(--radius-lg); padding: clamp(1.25rem, 2.5vw, 1.9rem);
  overflow: hidden; position: relative;
  transition: background-color 0.2s ease;
}
.card h3, .card h4 { margin-top: 0; }
.card img { border-radius: 10px; }
.card p { font-size: 0.92rem; }
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 44rem) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 56rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.rev > .split-media { order: 2; }
}
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.split-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }

.highlight-box {
  background: var(--box);
  border-radius: var(--radius); padding: 1.3rem 1.5rem;
  font-family: var(--font-serif); font-style: italic;
  color: var(--ink); font-size: var(--fs-2); line-height: 1.3;
}
/* Freistehende Highlight-Boxen mit Luft nach oben */
.wrap > .highlight-box { margin-top: clamp(2.25rem, 4vw, 3.5rem); }

/* Zielgruppen-Karten: alle Überschriften in identischer, fixer Größe.
   Sie werden vom Auto-Fit im JS ausgenommen (.no-fit), damit sich die
   Größen der drei Karten nicht unterschiedlich verkleinern. */
.equal-cards > .card h3 {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.35rem);
  line-height: 1.25;
}

/* Karten mit bündig unten ausgerichteten Buttons */
.equal-cards > .card { display: flex; flex-direction: column; align-items: flex-start; }
/* Flex-Kinder dürfen nie breiter als die Karte werden – sonst laufen
   nowrap-Headlines aus dem Kasten und die Fit-Logik greift nicht */
.equal-cards > .card > * { max-width: 100%; min-width: 0; }
.equal-cards > .card img { width: 100%; }
.equal-cards > .card .btn { margin-top: auto; }
.equal-cards > .card p:last-of-type { margin-bottom: 1.25rem; }

/* Gestapelte EEG-Namen */
.eeg-names { line-height: 1.6; }

.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 1.8rem; margin-bottom: 0.55rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.35em;
  width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--gray) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none"><path d="M3.5 8.5l3 3 6-6.5" stroke="%23191919" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/68% no-repeat;
}

/* ---------- Schnellkontakt ---------- */
.quickstart { background: var(--bg); }
.step-cards { counter-reset: step; }
.step-card { padding-top: 5rem; height: 100%; }
/* Alle vier Schritt-Überschriften in identischer Größe; lange
   Überschriften (z. B. "Beauskunftungskennzahl bei Wiener Netze
   einholen") brechen in eine zweite Zeile um. */
.step-card h3 { font-size: var(--fs-3); line-height: 1.2; hyphens: auto; overflow-wrap: break-word; }
.step-card::after {
  counter-increment: step; content: counter(step);
  position: absolute; top: 1.4rem; left: 1.5rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font-family: var(--font-serif); font-size: 1.05rem;
}
.step-card .btn { margin-top: 0.9rem; white-space: normal; }
.quickstart-hint {
  margin-top: var(--gap); font-size: var(--fs-0); color: var(--ink-50);
  background: var(--box); border-radius: var(--radius); padding: 1rem 1.25rem;
}
.smartmeter-figure { margin: 0; }
.smartmeter-figure img { border-radius: 10px; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.smartmeter-figure figcaption { font-size: 0.78rem; color: var(--ink-50); margin-top: 0.55rem; }

/* ---------- Formulare ---------- */
.form-card {
  max-width: 46rem; margin-inline: auto;   /* Kasten als Block mittig, Inhalt bleibt linksbündig */
  background: var(--box); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 44rem) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
label { display: block; font-weight: 500; font-size: 0.85rem; margin-bottom: 0.4rem; color: var(--ink); }
.optional { font-weight: 400; color: var(--ink-50); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 0.7rem 1rem; min-height: 47px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff;
}
textarea { min-height: 7rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink-40); }
input:focus, select:focus, textarea:focus {
  border-color: var(--ink);
  outline: 2px solid var(--focus); outline-offset: 1px;
}
.checkbox-row { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.88rem; }
.checkbox-row input { width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; flex: none; accent-color: var(--ink); }
.checkbox-row label { font-weight: 400; color: var(--ink-70); margin: 0; }
.form-hint { font-size: var(--fs-0); color: var(--ink-50); margin-top: 1rem; }
.form-feedback { margin-top: 1rem; font-weight: 500; color: var(--ink); }

/* ---------- Video ---------- */
.video-facade {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border: 1px solid var(--line); padding: 0; cursor: pointer; display: block;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--box);
  color: var(--ink); font: inherit;
  transition: background-color 0.2s ease;
}
.video-facade:hover { background: var(--box-hover); }
.video-facade .play {
  position: absolute; inset: 0; display: grid; place-items: center; gap: 0.6rem;
  align-content: center; padding: 1rem;
}
.video-facade .play-circle {
  width: 4.2rem; height: 4.2rem; border-radius: 50%;
  background: var(--ink); display: grid; place-items: center;
  transition: transform 0.2s ease;
}
.video-facade .play-circle svg path { fill: #fff; }
.video-facade:hover .play-circle { transform: scale(1.06); }
.video-facade .play-label { font-family: var(--font-serif); font-size: 1.35rem; }
.video-facade .play-sub { font-size: 0.8rem; color: var(--ink-50); max-width: 30rem; }
.video-wrapper iframe {
  width: 100%; aspect-ratio: 16 / 9; border: 0;
  border-radius: var(--radius-lg); display: block;
}
.video-privacy { font-size: 0.78rem; color: var(--ink-50); margin-top: 0.7rem; }

/* ---------- Preise ---------- */
.price-cards { margin-block: 1.5rem; }
.price-card { text-align: center; }
/* Wichtig: ".price-card" davor, damit diese Regel die allgemeine
   Kartentext-Regel (.card p, 0.92rem) sicher übertrifft. Zielgröße:
   das Doppelte der bisher dargestellten 0.92rem. */
.price-card p.price-value {
  font-family: var(--font-serif);
  font-size: 1.84rem; color: var(--ink); line-height: 1.2;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stat-value { font-variant-numeric: tabular-nums; }
.price-value small { font-size: 0.8em; font-family: var(--font); font-weight: 500; color: var(--ink-50); letter-spacing: 0.06em; }
.price-card p.price-label { font-weight: 500; color: var(--ink); margin-top: 0.5rem; font-size: 1.84rem; line-height: 1.25; }
.price-desc { font-size: var(--fs-0); color: var(--ink-50); margin-top: 0.5rem; }

/* Netzentgelt-Vergleich: große Kennzahlen statt Balken */
.stat-tiles { display: grid; gap: var(--gap); margin-block: 1.25rem; }
@media (min-width: 44rem) { .stat-tiles { grid-template-columns: 1fr 1fr; } }
.stat-tile { background: var(--box); border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; }
.stat-value {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 3.8rem); color: var(--ink); line-height: 1;
  margin: 0 0 0.5rem;
}
.stat-label { font-weight: 500; color: var(--ink); font-size: 0.92rem; margin: 0 0 0.2rem; }
.stat-sub { font-size: 0.78rem; color: var(--ink-50); margin: 0; }

/* Sentinel für den Header-Zustand (IntersectionObserver statt Scroll-Listener) */
#top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 2px; pointer-events: none; }

/* ---------- Beitritts-Steps ---------- */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: tstep; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 1rem; top: 0.5rem; bottom: 0.5rem;
  width: 1px; background: var(--line);
}
.timeline li { position: relative; padding: 0 0 1.8rem 3.2rem; counter-increment: tstep; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: counter(tstep); position: absolute; left: 0; top: 0;
  width: 2.05rem; height: 2.05rem; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 1.05rem;
  box-shadow: 0 0 0 6px var(--bg);
}
.timeline h3 { font-size: var(--fs-2); margin-bottom: 0.3em; }
.timeline p { color: var(--ink-50); font-size: 0.95rem; }
.timeline .btn { margin-top: 0.5rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 50rem; margin-inline: auto; /* Liste mittig, Fragen/Antworten intern linksbündig */ }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem;
  align-items: center; padding: 1.1rem 0.25rem;
  font-family: var(--font-serif); font-size: 1.2rem; color: var(--ink);
  min-height: 48px;
  transition: color 0.2s ease;
}
.faq-item summary:hover { color: #000; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.35rem; color: var(--ink-40);
  flex: none; line-height: 1; transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--ink); }
.faq-item .faq-body { padding: 0 0.25rem 1.2rem; color: var(--ink-70); font-size: 0.95rem; }

/* ---------- Downloads ---------- */
.download-card { display: flex; gap: 1rem; align-items: center; border-radius: var(--radius); }
.download-card .file-icon {
  flex: none; width: 3rem; height: 3rem; border-radius: 50%;
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink);
}
.download-card a { font-weight: 500; font-size: 0.95rem; }
.download-meta { font-size: 0.78rem; color: var(--ink-50); }

/* ---------- Info-Karten (Blog) ---------- */
.info-card { display: flex; flex-direction: column; gap: 0.45rem; min-height: 100%; border-radius: var(--radius); cursor: pointer; }
.info-card:hover { background: var(--box-hover); }
.info-card .tag { font-size: 0.66rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-40); }
/* Wissens-Karten: alle Überschriften exakt gleich groß, Umbruch erlaubt */
.info-card h3 { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem); line-height: 1.3; margin: 0; }
.info-card .coming { margin-top: auto; font-size: 0.75rem; color: var(--ink-40); }
/* Wissens-Karten als Links zu den Beitragsseiten */
a.info-card { text-decoration: none; color: inherit; }
.info-card .read { margin-top: auto; font-size: 0.8rem; font-weight: 500; color: var(--ink); }
.info-card h3 { hyphens: auto; overflow-wrap: break-word; }

/* Sehr schmale Screens: fest zweizeilige Karten-Headlines dürfen
   wieder frei umbrechen, damit nichts abgeschnitten wird */
@media (max-width: 22.5rem) {
  .card .two-line .line { white-space: normal; }
}

/* Beitragsseiten (Wissen) */
.article-tag {
  font-size: 0.7rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--ink-40); margin: 0 0 0.6rem;
}
.legal-page .article-back { margin-top: 2.5rem; }

/* ---------- Zukunft ---------- */
.future { background: var(--bg); }
/* Zukunfts-Karten: alle Überschriften exakt gleich groß, Umbruch erlaubt */
.future .card h3 { font-size: clamp(1.1rem, 0.95rem + 0.55vw, 1.3rem); line-height: 1.25; }
.future .card p { color: var(--ink-50); font-size: 0.9rem; }

/* ---------- Abschluss-CTA ---------- */
.final-cta { text-align: center; background: var(--gray); }
.final-cta .btn-row { justify-content: center; }
.final-cta .section-head { margin-inline: auto; }
.final-cta .btn-ghost { background: #fff; }

/* ---------- Veranstaltungen ---------- */
.event-placeholder {
  background: var(--box); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center; color: var(--ink-50);
}
.event-placeholder .btn { margin-top: 0.75rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3.5rem 2rem; font-size: 0.9rem; color: var(--ink-50);
  background: var(--bg);
}
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 44rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer img { width: 130px; }
.site-footer h4 {
  font-family: var(--font); color: var(--ink); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.9rem;
}
.site-footer a { color: var(--ink-70); }
.site-footer a:hover { color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  font-size: 0.78rem; color: var(--ink-40);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
}

/* ---------- Rechtsseiten ---------- */
.legal-page { padding-block: clamp(7rem, 12vw, 9rem) clamp(2rem, 4vw, 3.5rem); }
.legal-page .wrap { max-width: 50rem; }
.legal-page h2 { font-size: var(--fs-3); margin-top: 2em; }
.legal-page h3 { font-size: var(--fs-2); margin-top: 1.6em; }
.legal-note {
  background: var(--box); border-radius: var(--radius);
  padding: 1rem 1.25rem; font-size: var(--fs-0); margin-bottom: 2rem;
}
/* Header auf Rechtsseiten immer mit weißem Grund */
.legal-header { background: rgba(255, 255, 255, 0.95); box-shadow: 0 1px 0 var(--line); }

/* ---------- Scroll-Reveals (ersetzt GSAP) ----------
   Die Klasse .reveal-on setzt main.js nur, wenn IntersectionObserver
   vorhanden ist und keine reduzierte Bewegung gewünscht wird. Ohne JS
   oder ohne Observer bleibt alles sichtbar – kein Inhaltsverlust. */
.reveal-on .anim,
.reveal-on .anim-stagger > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform, opacity;
}
.reveal-on .anim.is-visible,
.reveal-on .anim-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}
/* Nach dem Einblenden Ressourcen freigeben */
.reveal-on .anim.is-visible { will-change: auto; }

@media (prefers-reduced-motion: reduce) {
  .reveal-on .anim,
  .reveal-on .anim-stagger > * {
    opacity: 1; transform: none; transition: none;
  }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .mobile-cta, .video-facade, .hero-media { display: none !important; }
  body { padding-bottom: 0; }
}
