/* HealthLumio – Website. Tokens aus docs/DESIGN.md §2–4 (Dark first, Light vollwertig). */

@font-face {
  font-family: "Sora";
  src: url("fonts/sora-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: dark light;
  /* Flächen */
  --base: #0B0D10;
  --card: #16191F;
  --elevated: #1E222A;
  --inset: #0F1216;
  --hairline: #2A2F38;
  --strong: #3A404B;
  /* Text */
  --text: #F2F4F7;
  --text-2: #A3ABB8;
  --text-3: #8A93A1;
  --on-accent: #0B0D10;
  /* Marke */
  --accent: #FF6B4A;
  --brand-a: #FF3B5C;
  --brand-b: #FF9A4A;
  --brand: linear-gradient(120deg, var(--brand-a), var(--brand-b));
  --hero-glow: #151A24;
  /* Kategorien */
  --activity: #FF6B4A; --heart: #FF5470; --sleep: #9D8CFF; --vitals: #3DD5E8; --body: #4ADE9B;
  --training: #FFB547; --cycling: #4FB3FF; --running: #B4E04B; --mobility: #93A3FF; --respiratory: #FF8CC6;
  --nutrition: #FF9F7F; --mindfulness: #4FDFC2; --hearing: #CF8FFF; --environment: #FFDA5C; --other: #A3B1C6;
  --good: #34D399; --attention: #FBBF24;
  /* Ringe */
  --move-a: #FF7A45; --move-b: #FF3B5C; --exercise-a: #B6F23A; --exercise-b: #3EE07A; --stand-a: #3DE0F5; --stand-b: #2E9BFF;
  --track-alpha: 0.18;
  /* Raster */
  --radius-card: 24px;
  --radius-small: 14px;
  --gutter: clamp(16px, 4vw, 32px);
  --maxw: 1180px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --phone-bezel: #1A1C21;
  --font-display: "Sora", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --base: #F2F3F6; --card: #FFFFFF; --elevated: #FFFFFF; --inset: #F7F8FA; --hairline: #E1E4EA; --strong: #C9CED6;
    --text: #0E1116; --text-2: #525B69; --text-3: #636B78; --on-accent: #FFFFFF;
    --accent: #C2410C; --hero-glow: #FFFFFF;
    --activity: #C2410C; --heart: #C21E3E; --sleep: #5B46D6; --vitals: #0B7285; --body: #0E7A4B;
    --training: #9A5B00; --cycling: #0A66B2; --running: #4D7C0F; --mobility: #4252C8; --respiratory: #B3186B;
    --nutrition: #B23C14; --mindfulness: #0D7364; --hearing: #8A2FC0; --environment: #7A6200; --other: #56637A;
    --good: #0F7A4D; --attention: #8F5F00;
    --move-a: #F05A28; --move-b: #D11E48; --exercise-a: #5FB800; --exercise-b: #12A150; --stand-a: #0FB5D1; --stand-b: #1572E8;
    --track-alpha: 0.14;
    --shadow: 0 30px 70px -30px rgba(20, 24, 36, 0.35);
    --phone-bezel: #0E1014;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font: 17px/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.025em; line-height: 1.1; margin: 0; font-weight: 600; }
h1 { font-size: clamp(40px, 7vw, 76px); }
h2 { font-size: clamp(30px, 4.6vw, 50px); }
h3 { font-size: 21px; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 36em; }
.eyebrow { font: 600 13px/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cat, var(--accent)); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--base) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 19px/1 var(--font-display); letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { margin-left: auto; display: flex; gap: 26px; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 16px/1 var(--font-display); text-decoration: none; letter-spacing: -0.01em;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 75, 80, .65); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(255, 75, 80, .8); }
.btn-ghost { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.btn-ghost:hover { background: color-mix(in srgb, var(--text) 14%, transparent); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 760px) { .nav { display: none; } .site-header .btn-small { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 110px) 0 0; text-align: center; isolation: isolate; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: -10% -20% 20%; z-index: -2;
  background: radial-gradient(50% 45% at 50% 38%, var(--hero-glow), transparent 70%),
              radial-gradient(30% 30% at 50% 70%, color-mix(in srgb, var(--brand-a) 16%, transparent), transparent 70%);
}
.hero h1 { max-width: 13em; margin: 0 auto 22px; }
.hero .lead { margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-meta { margin-top: 18px; color: var(--text-3); font-size: 14px; }
.hero-stage { position: relative; margin-top: clamp(40px, 6vw, 70px); padding-bottom: clamp(10px, 3vw, 30px); }
.ecg { position: absolute; left: 50%; width: 100vw; transform: translateX(-50%); top: 44%; height: 260px; margin-top: -130px; z-index: -1; pointer-events: none; }
.ecg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-start; }
.hero-phones .device { width: clamp(200px, 25vw, 320px); position: relative; z-index: 2; }
.hero-phones .device:nth-child(1), .hero-phones .device:nth-child(3) { width: clamp(170px, 21vw, 270px); margin-top: 7%; z-index: 1; }
.hero-phones .device:nth-child(1) { margin-right: -4%; transform: rotate(-7deg); }
.hero-phones .device:nth-child(3) { margin-left: -4%; transform: rotate(7deg); }
@media (max-width: 600px) {
  .hero-phones .device:nth-child(1), .hero-phones .device:nth-child(3) { display: none; }
  .hero-phones .device:nth-child(2) { width: 64vw; }
}

/* ---------- Geräte (iPhone 18 Pro, gerahmt per scripts/frame-website-shots.py) ---------- */
.device { display: block; width: 100%; height: auto; filter: drop-shadow(0 28px 40px rgba(0, 0, 0, .45)) drop-shadow(0 6px 12px rgba(0, 0, 0, .25)); }
@media (prefers-color-scheme: light) { .device { filter: drop-shadow(0 28px 40px rgba(20, 24, 36, .22)) drop-shadow(0 6px 12px rgba(20, 24, 36, .12)); } }
/* ---------- Vertrauensleiste ---------- */
.trust { padding: 28px 0 10px; }
.trust ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: var(--text-2); font-size: 15px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--good); }

/* ---------- Abschnitte ---------- */
section { padding: clamp(70px, 10vw, 130px) 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 70px); }
.section-head .lead { margin: 18px auto 0; }
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 7vw, 100px); }
.feature + .feature { margin-top: clamp(90px, 12vw, 150px); }
.feature.flip .feature-media { order: -1; }
.feature-text h2 { margin-bottom: 18px; }
.feature-media { position: relative; display: flex; justify-content: center; }
.feature-media::before {
  content: ""; position: absolute; inset: 8% 4%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--cat, var(--accent)) 26%, transparent), transparent);
  filter: blur(10px);
}
.feature-media > .device { width: min(340px, 78%); }
.feature-media > .device-ipad { width: min(520px, 100%); }
.duo { position: relative; width: min(470px, 100%); aspect-ratio: 470 / 560; }
.duo .device { position: absolute; width: 58%; top: 0; }
.duo .device:first-child { left: 0; transform: rotate(-5deg); }
.duo .device:last-child { right: 0; top: 9%; transform: rotate(4deg); }
.points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.points li { position: relative; padding-left: 30px; color: var(--text-2); }
.points li strong { color: var(--text); font-weight: 600; }
.points li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 12px; border-radius: 50%;
  border: 3px solid var(--cat, var(--accent)); box-shadow: 0 0 10px color-mix(in srgb, var(--cat, var(--accent)) 60%, transparent);
}
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .feature-text { text-align: left; }
}

/* Kategorien */
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cat { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; font-size: 14px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.cat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--card); border-radius: var(--radius-card); padding: 26px 22px; border: 1px solid var(--hairline); }
.stat b { display: block; font: 600 clamp(34px, 4vw, 46px)/1 var(--font-display); letter-spacing: -0.03em; margin-bottom: 8px; }
.stat span { color: var(--text-2); font-size: 15px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Widgets ---------- */
.widgets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
.widget {
  background: var(--card); border-radius: 26px; padding: 18px; border: 1px solid var(--hairline);
  box-shadow: var(--shadow); aspect-ratio: 1; display: flex; flex-direction: column; min-width: 0;
}
.widget.wide { grid-column: span 2; aspect-ratio: 2.12 / 1; }
.w-label { display: flex; align-items: center; gap: 6px; font: 600 13px/1 var(--font-display); color: var(--c, var(--text-2)); }
.w-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.w-big { font: 600 30px/1.1 var(--font-display); letter-spacing: -0.03em; margin-top: auto; }
.w-big small { font-size: 14px; color: var(--text-2); font-weight: 500; letter-spacing: 0; margin-left: 3px; }
.w-sub { font-size: 13px; color: var(--text-2); }
.w-sub.good { color: var(--good); }
.w-rings { margin: auto; width: 72%; }
.w-rings svg { width: 100%; height: auto; overflow: visible; }
.w-spark { width: 100%; height: 44px; margin-top: 10px; }
.w-row { display: flex; gap: 16px; height: 100%; }
.w-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.w-stages { display: flex; align-items: flex-end; gap: 3px; height: 70px; margin-top: auto; }
.w-stages i { flex: 1; border-radius: 3px; background: var(--sleep); opacity: .85; }
.w-stages i.rem { background: #5FD0FF; } .w-stages i.deep { background: #5B46D6; } .w-stages i.awake { background: #FF9F7F; height: 12% !important; }
.w-vitals { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.w-vitals li { font-size: 12px; color: var(--text-2); }
.w-vitals b { display: block; font: 600 20px/1.15 var(--font-display); color: var(--text); letter-spacing: -0.02em; }
.w-vitals b small { font-size: 12px; color: var(--text-2); font-weight: 500; }
.widget-note { text-align: center; color: var(--text-2); margin-top: 34px; }
@media (max-width: 900px) { .widgets { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .widget { padding: 14px; border-radius: 22px; } .w-big { font-size: 24px; } .w-vitals b { font-size: 17px; } }

/* ---------- Datenschutz ---------- */
.privacy { background:
  radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--good) 10%, transparent), transparent 70%); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 26px 22px; }
.card .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; color: var(--c, var(--good)); background: color-mix(in srgb, var(--c, var(--good)) 14%, transparent); }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; font-size: 19px; }
.card p { color: var(--text-2); font-size: 15px; margin: 0; }
.privacy-note { margin: 28px auto 0; text-align: center; color: var(--text-2); font-size: 15px; max-width: 46em; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font: 600 18px/1.35 var(--font-display); letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { color: var(--text-2); margin: -6px 0 22px; padding-right: 40px; }

/* ---------- Abschluss ---------- */
.final { text-align: center; }
.final .icon-big { width: 120px; height: 120px; margin: 0 auto 28px; border-radius: 27px; box-shadow: 0 20px 60px -15px rgba(255, 75, 80, .5); }
.final h2 { margin-bottom: 16px; }
.final .lead { margin: 0 auto 30px; }

/* ---------- Fußzeile ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding: 40px 0 56px; color: var(--text-3); font-size: 14px; }
.site-footer .wrap { display: grid; gap: 18px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.foot-top nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.foot-top nav a { color: var(--text-2); text-decoration: none; }
.foot-top nav a:hover { color: var(--text); }
.site-footer p { margin: 0; max-width: 60em; }

/* ---------- Unterseiten ---------- */
.page { padding: clamp(48px, 8vw, 90px) 0 clamp(60px, 8vw, 100px); }
.page .wrap { max-width: 800px; }
.page h1 { font-size: clamp(30px, 5vw, 50px); margin-bottom: 10px; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.page .meta { color: var(--text-3); margin-bottom: 34px; }
.page article { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: clamp(24px, 4vw, 40px); }
.page article h2 { font-size: 22px; color: var(--accent); margin: 34px 0 10px; letter-spacing: -0.015em; }
.page article h2:first-child { margin-top: 0; }
.page article p, .page article li { color: var(--text-2); }
.page article strong { color: var(--text); }
.page .addr { margin: 0; }
.placeholder { background: color-mix(in srgb, var(--attention) 18%, transparent); color: var(--text); padding: 0 4px; border-radius: 4px; }
.contact-card { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: var(--elevated); border-radius: 18px; padding: 22px 24px; margin: 8px 0 30px; border: 1px solid var(--hairline); }
.contact-card p { margin: 0; }

/* Einblenden beim Scrollen (nur mit JS und ohne reduzierte Bewegung) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
