/* =========================================================
   Sonnwerk Elektro & Solar – Demo (GreenLabz Studio)
   Hero: echter Tagesverlauf (Video läuft einmal bis zum Mond), Texte und Messwerte folgen der Uhrzeit.
   Breite Archivo Expanded, Strom-Gelb, Nachtblau
   ========================================================= */
:root {
  --txt: #0d1321;
  --volt: #ffd400;
  --night: #0b1030;
  --sky: #dfeefa;
  --paper: #f6f8fb;
  --line: rgba(13, 19, 33, 0.1);
  --hero-txt: #0d1321;
  --f-disp: "Archivo", "Arial Black", sans-serif;
  --f-mono: "Azeret Mono", ui-monospace, monospace;
  --f-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--txt); font-family: var(--f-body); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; }
.mono { font-family: var(--f-mono); }
.big { margin: 0; font-family: var(--f-disp); font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125; line-height: 0.92; letter-spacing: -0.03em; text-transform: uppercase; }
.big span { display: block; }
.big .y { color: var(--volt); -webkit-text-stroke: 1.5px rgba(13, 19, 33, 0.55); paint-order: stroke fill; text-shadow: 0 3px 0 rgba(13, 19, 33, 0.18); }
.kicker { margin: 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.78; }

/* ---------- Kopfzeile ---------- */
.hd { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 18px clamp(20px, 4vw, 56px); color: var(--hero-txt); transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.hd.is-solid { background: rgba(246, 248, 251, 0.94); box-shadow: 0 1px 0 var(--line); color: var(--txt); }
.hd-logo { display: flex; align-items: baseline; gap: 10px; min-height: 44px; padding-top: 10px; font-family: var(--f-disp); font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125; font-size: 22px; letter-spacing: -0.01em; }
.hd-logo span { font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.hd-nav { margin-left: auto; display: flex; gap: 26px; font-size: 14px; font-weight: 500; }
.hd-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; }
.hd-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--volt); transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease); }
.hd-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hd-cta { min-height: 44px; display: inline-flex; align-items: center; padding: 0 22px; border-radius: 4px; background: var(--volt); color: #0d1321; font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.hd-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(255, 212, 0, 0.8); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; background: #1a2447; color: var(--hero-txt); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--vx, 0%) 50%; }   /* Querformat: Haus nach rechts, Platz für den Text */
.hero-shade { position: absolute; inset: 0; pointer-events: none; }
.hero-copy { position: absolute; left: clamp(20px, 5vw, 72px); top: 50%; z-index: 2; width: min(62vw, 820px); transform: translateY(-54%); }
.swap { position: relative; margin-top: 22px; height: calc(2 * 0.92 * var(--hfs) + 16px); overflow: hidden; --hfs: clamp(38px, 5.1vw, 90px); }
.swap .big { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; font-size: var(--hfs); white-space: nowrap; will-change: transform; }
.swap-b, .swap-c { transform: translateY(115%); }
.meter { margin: 24px 0 0; font-size: 14px; }
.meter b { font-weight: 600; }
.meter i { font-style: normal; opacity: 0.45; padding: 0 6px; }
.status { display: inline-flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.28); font-size: 14px; font-weight: 600; }
.status-ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--volt); color: #0d1321; }
.status-ic svg { width: 14px; height: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 30px; }
.btn-volt { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 26px; border-radius: 4px; background: var(--volt); color: #0d1321; font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.btn-volt:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(255, 212, 0, 0.85); }
.btn-volt span { transition: transform 0.3s var(--ease); }
.btn-volt:hover span { transform: translateX(4px); }
.replay { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; border: 0; background: none; font-size: 14px; font-weight: 600; cursor: pointer; opacity: 0.9; }
.replay svg { width: 18px; height: 18px; transition: transform 0.5s var(--ease); }
.replay:hover svg { transform: rotate(-200deg); }
.replay[hidden] { display: none; }
.dayline { position: absolute; left: clamp(20px, 5vw, 72px); right: clamp(20px, 5vw, 72px); bottom: 34px; z-index: 2; height: 2px; background: rgba(255, 255, 255, 0.28); }
.dayline i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--volt); }
.dl-sun, .dl-moon { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); }
.dl-sun { left: 0; background: var(--volt); box-shadow: 0 0 12px var(--volt); }
.dl-moon { left: 100%; background: #e8ecf7; box-shadow: inset -4px -1px 0 #9aa5c4; }
.scroll-cue { position: absolute; left: 50%; bottom: 58px; z-index: 2; width: 26px; height: 42px; margin-left: -13px; border: 2px solid currentColor; border-radius: 14px; opacity: 0.8; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: currentColor; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Einblenden beim Scrollen ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.big[data-reveal] { opacity: 1; transform: none; }
.big[data-reveal] span { transform: translateY(105%); transition: transform 1s var(--ease); }
.big[data-reveal] { overflow: hidden; padding-bottom: 0.08em; }
.big[data-reveal].is-in span { transform: none; }
.big[data-reveal].is-in span + span { transition-delay: 0.1s; }

/* ---------- Leistungen ---------- */
.svc { padding: clamp(90px, 14vh, 150px) clamp(20px, 5vw, 72px) clamp(70px, 10vh, 110px); background: linear-gradient(180deg, var(--sky), var(--paper)); }
.svc-title { margin-top: 18px; font-size: clamp(38px, 5.4vw, 88px); }
.svc-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin: clamp(36px, 6vh, 64px) 0 0; padding: 0; list-style: none; }
.svc-card { padding: 26px 26px 28px; border-radius: 10px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 24px 50px -30px rgba(13, 19, 33, 0.35); transition: opacity 0.8s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.svc-card:nth-child(2) { transition-delay: 0.08s; }
.svc-card:nth-child(3) { transition-delay: 0.16s; }
.svc-card.is-in:hover { transform: translateY(-6px); box-shadow: 0 1px 0 var(--line), 0 34px 60px -30px rgba(13, 19, 33, 0.45); }
.svc-art { display: block; width: 120px; height: 90px; margin-bottom: 18px; fill: none; stroke: #0d1321; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art-pv .sun { fill: var(--volt); }
.art-pv .rays { animation: rays 6s linear infinite; transform-origin: 92px 30px; }
@keyframes rays { to { transform: rotate(360deg); } }
.art-pv .panel { fill: #1c2b52; }
.art-pv .grid { stroke: #6f86c4; stroke-width: 1.6; }
.art-bat .lvl { fill: var(--volt); stroke: none; transform-origin: 58px 74px; animation: charge 3.6s var(--ease) infinite; }
@keyframes charge { 0% { transform: scaleY(0.2); } 70%, 100% { transform: scaleY(1); } }
.art-bat .bolt { fill: #0d1321; stroke: none; }
.art-bat .cap { fill: #0d1321; }
.art-wb .led { fill: var(--volt); stroke: none; animation: led 1.4s ease-in-out infinite; }
@keyframes led { 50% { opacity: 0.25; } }
.art-wb .car { fill: #e8eef8; }
.art-wb .cable { stroke-dasharray: 6 6; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.svc-card h3 { margin: 0; font-family: var(--f-disp); font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125; font-size: 22px; text-transform: uppercase; letter-spacing: -0.01em; }
.svc-card p { margin: 10px 0 0; color: #3c4557; }
.svc-card .fact { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: #0d1321; }
.fine { margin: 18px 0 0; font-size: 12px; color: #6a7386; }

/* ---------- Ablauf ---------- */
.steps { padding: clamp(80px, 12vh, 140px) clamp(20px, 5vw, 72px); background: #fff; }
.steps-title { font-size: clamp(34px, 4.6vw, 76px); }
.track { position: relative; margin-top: clamp(40px, 7vh, 72px); }
.track-line { position: relative; height: 3px; margin: 0 12px 34px; border-radius: 2px; background: var(--line); }
.track-line i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: var(--volt); }
.track-sun { position: absolute; top: 50%; left: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 6px rgba(255, 212, 0, 0.25), 0 0 26px rgba(255, 212, 0, 0.9); }
.step-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
.step-list li { opacity: 0.35; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.step-list li.is-on { opacity: 1; transform: none; }
.step-list b { display: block; font-size: 13px; color: #6a7386; }
.step-list h3 { margin: 6px 0 4px; font-family: var(--f-disp); font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125; font-size: 19px; text-transform: uppercase; }
.step-list p { margin: 0; color: #3c4557; }

/* ---------- Rechner ---------- */
.calc { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(80px, 12vh, 140px) clamp(20px, 5vw, 72px); background: var(--night); color: #f3f5fa; }
.calc-title { font-size: clamp(36px, 4.8vw, 80px); }
.calc-lead { max-width: 30em; margin: 22px 0 0; color: rgba(243, 245, 250, 0.72); }
.calc-box { padding: clamp(22px, 2.6vw, 36px); border-radius: 12px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.range { display: block; margin-bottom: 22px; }
.range span { display: flex; justify-content: space-between; gap: 12px; font-weight: 500; }
.range b { color: var(--volt); font-weight: 600; }
.range input { width: 100%; height: 30px; margin-top: 6px; accent-color: var(--volt); cursor: pointer; }
.toggle { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 500; cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--volt); }
.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.results p { margin: 0; }
.results b { display: block; font-family: var(--f-disp); font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125; font-size: clamp(28px, 3vw, 46px); line-height: 1; color: var(--volt); }
.results span { display: block; margin-top: 6px; font-size: 13px; color: rgba(243, 245, 250, 0.7); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 80px); padding: clamp(80px, 12vh, 140px) clamp(20px, 5vw, 72px); background: var(--paper); }
.faq-title { font-size: clamp(36px, 4.8vw, 80px); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; display: flex; align-items: center; min-height: 64px; padding-right: 44px; font-weight: 600; font-size: 18px; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 6px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--volt); font-family: var(--f-mono); font-weight: 600; line-height: 30px; text-align: center; transition: transform 0.35s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { margin: 0 0 22px; max-width: 40em; color: #3c4557; }

/* ---------- Solar-Check ---------- */
.check { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 14vh clamp(20px, 5vw, 72px) 12vh; background: radial-gradient(ellipse 80% 70% at 70% 20%, #1b2a66, var(--night) 70%); color: #f5f3ee; overflow: hidden; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.check > *:not(.stars):not(.foot) { position: relative; }
.check .kicker { color: var(--volt); margin-bottom: 20px; opacity: 1; }
.check-title { font-size: clamp(52px, 7.4vw, 124px); }
.btn-big { align-self: flex-start; min-height: 62px; margin-top: 44px; padding: 0 32px; font-size: 14px; }
.foot { position: absolute; left: clamp(20px, 5vw, 72px); bottom: 26px; margin: 0; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.55; }

/* ---------- Tablet / Smartphone ---------- */
@media (max-width: 960px) {
  .svc-list, .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc, .faq { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hd-nav { display: none; }
  .hd-cta { margin-left: auto; }
  .hero-copy { top: auto; bottom: 96px; right: 20px; width: auto; transform: none; }
  .swap { --hfs: clamp(30px, 8.6vw, 48px); }
  .svc-list, .step-list, .results { grid-template-columns: 1fr; }
  .track-line { display: none; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .big[data-reveal] span, .svc-card, .step-list li { transition: none; transform: none; opacity: 1; }
  .art-pv .rays, .art-bat .lvl, .art-wb .led, .art-wb .cable, .scroll-cue span { animation: none; }
}
