/* Startseite, eine Datei für / und /en. Farbwelt wie das App-Icon: Nachtblau, Glas,
   Blau-Violett; Zählerfarben wie in der App (MeterType.swift). Effekte hängen an html.fx
   (setzt /home.js nur ohne reduzierte Bewegung); ohne JS ist alles sichtbar. */
:root {
  --night: #060a1a; --deep: #0b1233; --glass: #141c4ab3; --line: #8fa8ff2e;
  --text: #eef1ff; --muted: #b9c0e0; --blue: #4f8cff; --violet: #9b5cff; --cyan: #6fdcff;
  --grad: linear-gradient(120deg, var(--blue), var(--violet));
  --power: #ffb800; --gas: #ff6b35; --water: #4a90e2;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1); color-scheme: dark;
  font-family: system-ui, -apple-system, sans-serif; background: var(--night); color: var(--text); }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 3px solid #fff; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 750; letter-spacing: -0.03em; }
h1 em, h2 em, h3 em {
  font-style: normal; background: var(--grad); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; padding-right: 0.04em; }
[id] { scroll-margin-top: 84px; }
.fx-only { display: none; }
.fx .fx-only { display: block; }

.skip-link {
  position: absolute; top: -80px; left: 16px; z-index: 50; padding: 12px 18px;
  background: var(--text); color: var(--night); border-radius: 12px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* Kopf: Glasleiste */
.site-header {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px;
  padding: 14px clamp(20px, 5vw, 80px); border-bottom: 1px solid var(--line);
  background: #060a1ab8; -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5); transition: box-shadow 0.4s, background-color 0.4s; }
.site-header.is-stuck { background: #060a1ae6; box-shadow: 0 12px 30px #0009; }
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-size: 19px; font-weight: 750; letter-spacing: -0.02em; white-space: nowrap; }
.brand img { border-radius: 10px; box-shadow: 0 0 18px #6f7dff55; }
.site-nav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; }
.site-nav a, .site-footer a { text-decoration: none; color: var(--muted); }
.site-nav a:hover, .site-footer a:hover { color: var(--text); }
.lang {
  margin-left: 8px; padding: 8px 14px; border: 1px solid #8fa8ff55; border-radius: 20px;
  font-size: 13px; font-weight: 650; letter-spacing: 0.08em; text-decoration: none; }
.lang:hover { border-color: var(--blue); }

/* Bausteine */
.eyebrow {
  margin-bottom: 14px; font-size: 12px; font-weight: 650; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--cyan); }
.lead {
  max-width: 540px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 14px 28px; border-radius: 28px; font-size: 16px;
  font-weight: 650; text-decoration: none; color: #fff; background: var(--grad);
  box-shadow: 0 14px 36px #6a6cff45, inset 0 1px 0 #fff5;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.button::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(circle at var(--bx, 50%) var(--by, 50%), #fff8 0, transparent 55%);
  transition: opacity 0.3s; }
.button:hover::after { opacity: 0.6; }
.button:hover { box-shadow: 0 20px 46px #6a6cff70, inset 0 1px 0 #fff5; }
.glass {
  border: 1px solid #a9b8ff33; background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 24px 50px #0008, inset 0 1px 0 #ffffff1f; }
.phone {
  width: min(300px, 74vw); padding: 9px; border-radius: 46px; background: #02040c;
  border: 1px solid #8fa8ff40; box-shadow: 0 30px 70px #000a, 0 0 0 6px #0c1330; }
.phone img { border-radius: 37px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: baseline; line-height: 1.45; }
.checks li::before {
  content: ""; flex: none; width: 12px; height: 7px; border-left: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan); transform: translateY(-3px) rotate(-45deg); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 12px var(--c); }
.dot-power { --c: var(--power); } .dot-gas { --c: var(--gas); } .dot-water { --c: var(--water); }

/* Einstieg */
.hero {
  --lx: 70%; --ly: 40%; position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 40px; align-items: center;
  padding: clamp(40px, 7vw, 96px) clamp(20px, 7vw, 120px) clamp(56px, 7vw, 96px);
  background: radial-gradient(ellipse 80% 70% at 70% 45%, #1b2a78 0, var(--deep) 45%,
    var(--night) 85%); }
.hero-light {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle 360px at var(--lx) var(--ly), #9b5cff38, transparent 70%),
    radial-gradient(circle 220px at var(--lx) var(--ly), #4f8cff40, transparent 70%); }
@media (max-width: 959px) { .hero { --lx: 60%; --ly: 80%; } }
.hero h1 { font-size: clamp(42px, 6vw, 82px); line-height: 1.02; margin-bottom: 22px; }
.trust-line {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0;
  list-style: none; font-size: 14px; color: var(--muted); }
.trust-line li { display: flex; align-items: center; gap: 9px; }
.trust-line li::before { content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); }
.hero-visual { --pw: min(320px, 66vw); position: relative; display: grid; place-items: center;
  padding: 28px 0 40px; }
/* Bogen wie im App-Icon */
.gauge {
  position: absolute; width: calc(var(--pw) * 1.75); aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 225deg, transparent 0, #4f8cff 10deg, #9b5cff 200deg,
    #6fdcff 270deg, transparent 271deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  filter: drop-shadow(0 0 14px #7b7dffaa); opacity: 0.75; }
.tilt { position: relative; z-index: 2; perspective: 1300px; }
.phone-hero {
  position: relative; width: var(--pw);
  transform: rotateY(calc(-9deg + var(--ry, 0deg))) rotateX(calc(4deg + var(--rx, 0deg)));
  box-shadow: 0 50px 90px #000c, 0 0 0 6px #0c1330, 0 0 120px #6f6cff33; }
.glare {
  position: absolute; inset: 9px; border-radius: 37px; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 25%) var(--gy, 12%), #ffffff2e, transparent 45%),
    linear-gradient(115deg, #ffffff14, transparent 38%); }
.glass-card {
  position: absolute; z-index: 4; bottom: 4%; right: max(0px, calc(50% - var(--pw) / 2 - 56px));
  display: grid; gap: 2px; padding: 14px 20px; border-radius: 20px; font-size: 13px;
  color: var(--muted); }
.glass-card strong { font-size: 26px; font-weight: 750; color: var(--text); letter-spacing: -0.02em;
  }
.glass-label { font-size: 10px; font-weight: 650; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cyan); }

/* Laufband; hält an per Knopf, Zeiger und Fokus (WCAG 2.2.2) */
.marquee { padding: 16px 0; border-block: 1px solid var(--line); background: #080e24; }
.marquee-view { overflow: hidden; }
.marquee ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; margin: 0;
  padding: 0 12px; list-style: none; }
.marquee ul + ul { display: none; }
.marquee li {
  display: flex; align-items: center; gap: 24px; padding: 0 12px; white-space: nowrap;
  font-size: 13px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); }
.marquee li::after { content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--violet); }
.fx .marquee { display: flex; align-items: center; gap: 4px; padding: 8px 12px 8px 0; }
.fx .marquee-view {
  flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.fx .marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:is(:hover, :focus-within, .is-paused) .marquee-track { animation-play-state: paused; }
.fx .marquee ul { flex-wrap: nowrap; padding: 0; }
.fx .marquee ul + ul { display: flex; }
.fx .marquee-toggle {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0;
  border: 1px solid #8fa8ff55; border-radius: 50%; background: var(--night); color: var(--text);
  cursor: pointer; }
.marquee-toggle::before { content: ""; width: 12px; height: 12px; border-inline: 4px solid; }
.marquee-toggle[aria-pressed="true"]::before {
  width: 11px; margin-left: 3px; border: 0; background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* Abschnitte */
.section { padding: clamp(64px, 9vw, 120px) clamp(20px, 7vw, 120px); }
.section-head { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.08; margin-bottom: 16px; }
.section-head p:not(.eyebrow) { color: var(--muted); line-height: 1.6; font-size: 17px; }
figure { margin: 0; }
figcaption { margin-bottom: 12px; font-size: 12px; font-weight: 650; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); }

/* Vorher → nachher */
.versus { display: grid; gap: 24px; max-width: 980px; margin: 0 auto; align-items: start; }
.note {
  padding: 26px 24px; border-radius: 28px; background: #f3efe2; color: #2a2a33;
  transform: rotate(-1.2deg); box-shadow: 0 30px 60px #0009; }
.note figcaption { color: #6b6658; }
.note p { margin: 0; padding: 9px 0; border-bottom: 1px dashed #c9c2ad;
  font: 17px/1.4 "Bradley Hand", "Segoe Print", cursive; }
.note s { color: #9a937f; }
.solution { padding: 26px 24px 30px; border-radius: 28px; }
.solution figcaption { color: var(--cyan); }
.meters { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.meters li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 18px; background: #ffffff0d; border: 1px solid #ffffff14; }
.meters b { font-size: 20px; letter-spacing: -0.02em; }
.meters small { color: var(--muted); font-size: 13px; }

/* Funktionen */
.insights { background: linear-gradient(180deg, var(--night), var(--deep) 45%, var(--night)); }
.feature { display: grid; gap: 36px; align-items: center; max-width: 1080px; margin: 0 auto;
  padding: 48px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature h3 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; margin-bottom: 16px; }
.feature .phone { justify-self: center; width: min(280px, 70vw);
  box-shadow: 0 40px 80px #000c, 0 0 0 6px #0c1330, 0 0 90px #6f6cff22; }
.steps p, .feature p, .facts p, .extras p { line-height: 1.6; color: var(--muted); margin-bottom: 0;
  }
.proof { display: flex; gap: 10px; align-items: baseline; margin-top: 20px; font-size: 14px;
  color: var(--text) !important; }
.proof::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.extras, .facts, .steps { display: grid; gap: 18px; max-width: 1080px; margin: 0 auto; padding: 0;
  list-style: none; }
.extras { margin-top: 48px; }
.extras li, .facts li, .steps li { padding: 26px 24px; border-radius: 24px; }
.extras h3, .facts h3 { font-size: 21px; margin-bottom: 8px; }
.steps { position: relative; }
.step-number {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 50%; background: var(--grad); font-weight: 750; font-size: 18px;
  box-shadow: 0 0 20px #7b7dff66; }
.steps h3 { font-size: 23px; margin-bottom: 10px; }
.facts li::before {
  content: ""; display: block; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 12px;
  background: var(--grad); box-shadow: 0 0 18px #7b7dff55; }
.facts-link { margin: 32px 0 0; text-align: center; color: var(--muted); }
.facts-link a, .faq a { color: #a9c2ff; }

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 780px; margin: 0 auto; }
details { border: 1px solid var(--line); border-radius: 18px; background: #0b1230;
  transition: border-color 0.3s, background-color 0.3s; }
details[open] { border-color: #8fa8ff55; background: #111a44; }
summary {
  position: relative; padding: 20px 56px 20px 22px; list-style: none; cursor: pointer;
  font-size: 18px; font-weight: 650; line-height: 1.35; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.3s var(--ease); }
details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
details p { margin: 0; padding: 0 22px 22px; line-height: 1.6; color: var(--muted); }

/* Schluss */
.finale { text-align: center;
  background: radial-gradient(ellipse at 50% 30%, #1b2a78 0, var(--deep) 45%, var(--night) 85%); }
.finale-icon { width: 112px; margin: 0 auto 28px; border-radius: 26px;
  box-shadow: 0 0 60px #7b7dff66; }
.finale h2 { font-size: clamp(36px, 4.8vw, 62px); line-height: 1.08; margin-bottom: 16px; }
.finale p { max-width: 520px; margin: 0 auto; line-height: 1.6; color: var(--muted); }
.finale .actions { justify-content: center; }

/* Fuß */
.site-footer {
  display: grid; gap: 20px; padding: 40px clamp(20px, 7vw, 120px);
  border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-brand { font-size: 19px; font-weight: 750; color: var(--text); margin: 0; }
.footer-tagline { margin: 4px 0 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer small { font-size: 13px; }

/* Effekte, die /home.js einschaltet */
.fx [data-reveal] { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s); }
.fx [data-reveal]:not(.in) { opacity: 0; transform: translateY(32px); }
.fx [data-reveal]:focus-within { opacity: 1; transform: none; transition: none; }
.fx .facts li:nth-child(2), .fx .extras li:nth-child(2) { --d: 0.12s; }
.fx .facts li:nth-child(3), .fx .extras li:nth-child(3) { --d: 0.24s; }
.fx .facts li:nth-child(4) { --d: 0.36s; }
.fx .solution { --d: 0.15s; }
.fx [data-parallax] { transform: translate3d(0, var(--py, 0px), 0); }
.fx .gauge { animation: spin 40s linear infinite; }
.fx .glass-card { animation: glass-in 0.8s 1.2s both, floaty 7s ease-in-out 2.2s infinite; }
.fx .button::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 35%, #ffffff70 50%, transparent 65%);
  animation: sheen 5s ease-in-out 2.5s infinite; }
.fx-pointer .magnetic { transform: translate(var(--mx, 0px), var(--my, 0px)); }

@media (max-width: 759px) {
  .site-nav { display: none; }
  .lang { margin-left: auto; } }
@media (max-width: 640px) { .actions .button { width: 100%; } }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .extras { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .versus { grid-template-columns: 1fr 1fr; gap: 40px; }
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature:nth-of-type(even) .phone { order: -1; }
  .site-footer { grid-template-columns: 1fr auto; align-items: center; }
  .site-footer small { grid-column: 1 / -1; } }
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; min-height: min(860px, calc(100vh - 74px));
  padding-block: 32px; }
  .hero-visual { --pw: min(310px, calc((100vh - 200px) * 0.46)); padding-block: 24px; }
  .facts { grid-template-columns: repeat(4, 1fr); } }

/* Einstieg nur mit erlaubter Bewegung; reines CSS, damit nichts aufblitzt */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-light { animation: fade-in 1.6s 0.1s both; }
  .hero-copy > * { animation: rise 0.9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.1s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.22s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.34s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.46s; }
  .tilt { animation: phone-in 1.3s 0.25s var(--ease) both; }
  .gauge { animation: fade-in 1.6s 0.6s both; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; } }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes phone-in { from { opacity: 0; transform: translateY(70px) rotateX(16deg) scale(0.94); } }
@keyframes glass-in { from { opacity: 0; transform: translateX(24px) scale(0.96); } }
@keyframes floaty { 50% { transform: translateY(-9px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sheen { 0% { transform: translateX(-120%); } 28%, 100% { transform: translateX(120%); } }
