/* =====================================================================
   Beck Elektrotechnik — Energie-Design (PV · Speicher · Wallbox · Smart Home)
   Ergänzt style.css.
   Prinzip: EIN durchgehender dunkler Block oben (Kopf → Hero → Bewertungen →
   „Vier Bausteine“), dann weicher Übergang in den hellen Teil der Seite.
   Farbe: Türkis aus dem Logo führt. Sonnengelb NUR für Energie (Sonne, Stromfluss).
   Animationen aus bei prefers-reduced-motion.
   ===================================================================== */

:root {
  --e-night:  #0b1517;
  --e-deep:   #0f1d20;
  --e-line:   rgba(255, 255, 255, .09);
  --e-line-2: rgba(255, 255, 255, .16);
  --e-cyan:   #2daeb9;
  --e-cyan-hi:#7fe0e6;
  --e-sun:    #ffc83d;
  --e-text:   #eef6f7;
  --e-muted:  #9fb6b9;
}

/* ---------- Dunkler Block: gemeinsamer Hintergrund ---------- */
body { background: var(--c-bg); }
.site-header,
.hero.hero-energie,
.social-proof,
.system { background-color: var(--e-night); }

/* Kopfzeile */
.site-header {
  background: rgba(11, 21, 23, .82) !important;
  border-bottom: 1px solid var(--e-line) !important;
}
.site-header.is-scrolled { background: rgba(11, 21, 23, .94) !important; }
.site-header .header-phone,
.site-header .header-phone-number { color: var(--e-text); }
.site-header .header-phone-label { color: var(--e-muted); }
.site-header .header-phone svg { color: var(--e-cyan-hi); }
.trust-strip { background: transparent !important; border-top: 1px solid var(--e-line) !important; color: var(--e-muted); }
.trust-strip .check { color: var(--e-cyan-hi); }
.trust-strip .dot { color: rgba(255, 255, 255, .2); }

/* Hero */
.hero.hero-energie {
  background: radial-gradient(900px 520px at 80% 0%, rgba(45, 174, 185, .20), transparent 65%),
              var(--e-night) !important;
  color: var(--e-text);
  padding-bottom: 24px !important;
}
.hero.hero-energie::before,
.hero.hero-energie::after { display: none !important; }
.hero-energie .hero-eyebrow { color: var(--e-muted); }
.hero-energie .eyebrow-dot { background: var(--e-cyan); box-shadow: 0 0 0 4px rgba(45, 174, 185, .2); }
.hero-energie .hero-headline { color: #fff; letter-spacing: -.02em; }
.hero-energie .hero-headline-soft { color: var(--e-cyan-hi); }
.hero-energie .hero-sub { color: var(--e-muted); }
.hero-energie .hero-sub strong { color: var(--e-text); font-weight: 600; }
.hero-energie .hero-stats { border-color: var(--e-line) !important; }
.hero-energie .hero-stat { border-color: var(--e-line) !important; }
.hero-energie .hero-stat-num { color: #fff; }
.hero-energie .hero-stat-num span { color: var(--e-cyan-hi); }
.hero-energie .hero-stat-label { color: var(--e-muted); }
.hero-energie .form-card { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .06); }

.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 4px; padding: 0; list-style: none; }
.hero-chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--e-line-2); color: var(--e-text);
}
.hero-chips li i { width: 7px; height: 7px; border-radius: 50%; background: var(--e-cyan); }

@media (min-width: 960px) {
  .hero-energie .hero-grid { align-items: start; }
  .hero-energie .hero-headline { font-size: clamp(40px, 3.6vw, 56px); line-height: 1.05; }
}

/* ---------- Bühne mit Energiefluss ---------- */
.energy-stage {
  position: relative; margin: 36px auto 0; max-width: 820px;
  padding: 18px 18px 6px; border-radius: var(--r-xl);
  background: radial-gradient(600px 220px at 50% 100%, rgba(45, 174, 185, .14), transparent 70%),
              linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0));
  border: 1px solid var(--e-line);
}
.energy-stage svg { width: 100%; height: auto; display: block; overflow: visible; }
.es-label { font: 600 11px/1 var(--f-body); fill: var(--e-text); letter-spacing: .02em; }
.es-label-bg { fill: rgba(11, 21, 23, .8); stroke: var(--e-line-2); }

.es-rays { transform-origin: 70px 58px; animation: es-spin 30s linear infinite; }
.es-sun-core { animation: es-pulse 3.6s ease-in-out infinite; transform-origin: 70px 58px; }
.es-flow { fill: none; stroke-linecap: round; stroke-width: 3; stroke-dasharray: 2 12; animation: es-flow 1.2s linear infinite; }
.es-flow.sun { stroke: var(--e-sun); filter: drop-shadow(0 0 3px rgba(255, 200, 61, .7)); }
.es-flow.cyan { stroke: var(--e-cyan-hi); filter: drop-shadow(0 0 3px rgba(127, 224, 230, .7)); }
.es-glint { animation: es-glint 5s ease-in-out infinite; }
.es-battery-fill { transform-origin: 0 100%; transform-box: fill-box; animation: es-charge 6s ease-in-out infinite; }
.es-car-fill { transform-origin: 0 50%; transform-box: fill-box; animation: es-car 5s ease-in-out infinite; }
.es-bolt { animation: es-blink 1.6s ease-in-out infinite; }
.es-win { animation: es-light 8s ease-in-out infinite; }
.es-win.w2 { animation-delay: 1.6s; }
.es-win.w3 { animation-delay: 3.2s; }
.es-win.w4 { animation-delay: 4.8s; }

@keyframes es-spin { to { transform: rotate(360deg); } }
@keyframes es-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes es-flow { to { stroke-dashoffset: -28; } }
@keyframes es-glint { 0%, 60% { transform: translateX(-120px); opacity: 0; } 70% { opacity: .8; } 100% { transform: translateX(160px); opacity: 0; } }
@keyframes es-charge { 0% { transform: scaleY(.25); } 60%, 100% { transform: scaleY(1); } }
@keyframes es-car { 0% { transform: scaleX(.2); } 70%, 100% { transform: scaleX(1); } }
@keyframes es-blink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes es-light { 0%, 30% { fill: #1e3336; } 40%, 80% { fill: #bfeef1; } 90%, 100% { fill: #1e3336; } }

/* ---------- Bewertungsstreifen im dunklen Block ---------- */
.social-proof {
  background: var(--e-night) !important;
  border-top: 1px solid var(--e-line) !important;
  border-bottom: 0 !important;
  color: var(--e-text);
}
.social-proof .google-text,
.social-proof .proof-points li { color: var(--e-muted); }
.social-proof .google-text strong { color: #fff; }
.social-proof .check-circle { background: rgba(45, 174, 185, .16) !important; color: var(--e-cyan-hi) !important; }

/* ---------- „Vier Bausteine“ ---------- */
.system {
  padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 120px);
  background: linear-gradient(180deg, var(--e-night) 0%, var(--e-night) 70%, var(--c-bg) 100%) !important;
  color: var(--e-text);
}
.system .section-eyebrow { color: var(--e-cyan-hi); }
.system .section-headline { color: #fff; }
.system .section-sub { color: var(--e-muted); max-width: 720px; }
.system-grid { display: grid; gap: 16px; margin-top: 36px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .system-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .system-grid { grid-template-columns: repeat(4, 1fr); } }
.sys-card {
  display: flex; flex-direction: column;
  padding: 24px 22px 22px; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--e-line);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.sys-card:hover { transform: translateY(-3px); border-color: rgba(127, 224, 230, .35); background: rgba(255, 255, 255, .05); }
.sys-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: rgba(45, 174, 185, .14); color: var(--e-cyan-hi); }
.sys-card.sun .sys-icon { color: var(--e-sun); background: rgba(255, 200, 61, .12); }
.sys-icon svg { width: 26px; height: 26px; }
.sys-card h3 { margin: 16px 0 6px; font-size: 20px; color: #fff; }
.sys-card p { margin: 0 0 12px; color: var(--e-muted); font-size: 15.5px; line-height: 1.55; }
.sys-card ul { margin: 0 0 18px; padding: 0; list-style: none; }
.sys-card li { position: relative; padding-left: 18px; margin: 6px 0; font-size: 15px; color: var(--e-text); }
.sys-card li::before { content: ""; position: absolute; left: 1px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--e-cyan); }
.sys-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--e-cyan-hi); text-decoration: none; }
.sys-link:hover { text-decoration: underline; }
.sys-icon .spin { transform-origin: 12px 12px; animation: es-spin 16s linear infinite; }
.sys-icon .blink { animation: es-blink 1.6s ease-in-out infinite; }

.ablauf { display: grid; gap: 14px; margin: 40px 0 0; padding: 0; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 900px) { .ablauf { grid-template-columns: repeat(4, 1fr); } }
.ablauf li { list-style: none; padding: 18px 18px 16px; border-radius: var(--r-md); border: 1px solid var(--e-line); }
.ablauf li::before {
  counter-increment: s; content: counter(s);
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: transparent; border: 1.5px solid var(--e-cyan); color: var(--e-cyan-hi); font-weight: 800; font-size: 14px; margin-bottom: 10px;
}
.ablauf strong { display: block; color: #fff; margin-bottom: 4px; }
.ablauf span { color: var(--e-muted); font-size: 15px; }
.system-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.system-cta small { color: var(--e-muted); }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .es-rays, .es-sun-core, .es-flow, .es-glint, .es-battery-fill, .es-car-fill, .es-bolt, .es-win,
  .sys-icon .spin, .sys-icon .blink { animation: none !important; }
  .es-glint { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Feinschliff v4 ---------- */
/* Kopfzeile wirklich nachtdunkel (vorher schimmerte der helle Seitenhintergrund durch) */
.site-header,
.site-header.is-scrolled { background: var(--e-night) !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
/* Luft zwischen Leistungs-Chips und Kennzahlen */
.hero-energie .hero-stats { margin-top: 26px; }
/* „Vier Bausteine“ bleibt komplett dunkel, Übergang nur im leeren unteren Rand */
.system {
  padding-bottom: clamp(140px, 14vw, 190px) !important;
  background: linear-gradient(180deg, var(--e-night) 0, var(--e-night) calc(100% - 120px), var(--c-bg) 100%) !important;
}
.social-proof { padding: 28px 0 !important; }
