/* Social Maxxing – Landingpage. Hell und Dunkel über data-theme am <html>,
   ohne JavaScript entscheidet die Systemeinstellung. */

:root {
  --bg:#FBFBFD; --bg2:#F5F5F7; --ink:#1D1D1F; --soft:#6E6E73; --dim:#86868B; --rule:#D2D2D7;
  --teal:#0A6E63; --coral:#C4502E; --karte:#FFFFFF; --blau:#007AFF;
  --btn-bg:#0A6E63; --btn-ink:#FFFFFF; --nav:rgba(251,251,253,.72);
  --blase-bg:#FFFFFF; --blase-ink:#1B1D1C; --blase-rand:rgba(255,122,89,.45);
  /* Gehäuse: Titan natur */
  --ti-1:#E3E1DC; --ti-2:#A9A6A0; --ti-3:#7D7A75; --ti-kante:#8E8B86; --ti-tief:#5F5D59;
  --schatten:rgba(0,0,0,.28);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg:#000000; --bg2:#0D0D0E; --ink:#F5F5F7; --soft:#A1A1A6; --dim:#6E6E73; --rule:#2C2C2E;
  --teal:#4ECFBF; --coral:#FF8A6B; --karte:#161617; --blau:#0A84FF;
  --btn-bg:#4ECFBF; --btn-ink:#00211D; --nav:rgba(0,0,0,.68);
  --blase-bg:#1D2422; --blase-ink:#EEF1F0; --blase-rand:rgba(255,138,107,.55);
  /* Gehäuse: Titan schwarz */
  --ti-1:#6B6C70; --ti-2:#3A3B3E; --ti-3:#2A2B2D; --ti-kante:#2E2F31; --ti-tief:#161718;
  --schatten:rgba(0,0,0,.8);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --bg:#000000; --bg2:#0D0D0E; --ink:#F5F5F7; --soft:#A1A1A6; --dim:#6E6E73; --rule:#2C2C2E;
    --teal:#4ECFBF; --coral:#FF8A6B; --karte:#161617; --blau:#0A84FF;
    --btn-bg:#4ECFBF; --btn-ink:#00211D; --nav:rgba(0,0,0,.68);
    --blase-bg:#1D2422; --blase-ink:#EEF1F0; --blase-rand:rgba(255,138,107,.55);
    --ti-1:#6B6C70; --ti-2:#3A3B3E; --ti-3:#2A2B2D; --ti-kante:#2E2F31; --ti-tief:#161718;
    --schatten:rgba(0,0,0,.8);
    color-scheme: dark;
  }
  html:not([data-theme]) .hell { display:none !important; }
}
@media (prefers-color-scheme: light) { html:not([data-theme]) .dunkel { display:none !important; } }
[data-theme="dark"] .hell, [data-theme="light"] .dunkel { display:none !important; }

* { box-sizing:border-box; }
html { background:var(--bg); scroll-padding-top:60px; }
body { margin:0; color:var(--ink); background:var(--bg); overflow-x:clip;
  font:17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  letter-spacing:-.022em; -webkit-font-smoothing:antialiased; }
h1, h2, .gross { font-family:-apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif; }
.wrap { max-width:1080px; margin:0 auto; padding:0 28px; }
a { color:inherit; }
img, video { display:block; max-width:100%; }
:focus-visible { outline:2px solid var(--blau); outline-offset:3px; border-radius:6px; }

/* Kopfzeile: durchscheinend, bleibt oben */
nav.kopf { position:sticky; top:0; z-index:50; background:var(--nav); -webkit-backdrop-filter:saturate(180%) blur(20px); backdrop-filter:saturate(180%) blur(20px);
  border-bottom:1px solid color-mix(in srgb, var(--rule) 60%, transparent); }
nav.kopf .innen { max-width:1080px; margin:0 auto; padding:0 28px; height:52px; display:flex; align-items:center; gap:28px; font-size:13px; letter-spacing:-.01em; }
nav.kopf .logo { display:flex; align-items:center; gap:9px; font-weight:600; font-size:15px; margin-right:auto; text-decoration:none; color:var(--ink); white-space:nowrap; }
nav.kopf .logo img { width:26px; height:26px; }
nav.kopf a { text-decoration:none; color:var(--soft); transition:color .2s; }
nav.kopf a:hover { color:var(--ink); }
nav.kopf .store { background:var(--btn-bg); color:var(--btn-ink); padding:5px 13px; border-radius:980px; font-weight:500; }
nav.kopf .store:hover { color:var(--btn-ink); filter:brightness(1.08); }
.modus { background:none; border:0; color:var(--soft); width:28px; height:28px; border-radius:50%; display:grid; place-items:center; cursor:pointer; padding:0; transition:color .2s, background .2s; }
.modus:hover { color:var(--ink); background:color-mix(in srgb, var(--rule) 45%, transparent); }
.modus svg { width:15px; height:15px; }
.modus .sonne { display:none; }
[data-theme="dark"] .modus .sonne { display:block; } [data-theme="dark"] .modus .mond { display:none; }

/* Knöpfe */
.btn { background:var(--btn-bg); color:var(--btn-ink); text-decoration:none; font-weight:500; font-size:17px; padding:12px 24px; border-radius:980px; display:inline-block; transition:filter .2s, transform .2s; }
.btn:hover { filter:brightness(1.08); }
.btn:active { transform:scale(.98); }
.btn.leise { background:none; color:var(--teal); box-shadow:inset 0 0 0 1px var(--teal); }
.link { color:var(--teal); text-decoration:none; font-size:17px; }
.link:hover { text-decoration:underline; }

/* Start-Text (liegt links in der Startszene, geht beim Scrollen nach oben weg) */
.hero-text small { display:block; color:var(--coral); font-size:17px; font-weight:600; letter-spacing:-.01em; margin-bottom:14px; }
h1 { font-size:clamp(46px,6.2vw,88px); line-height:1.02; letter-spacing:-.04em; font-weight:700; margin:0 0 26px; }
h1 span { display:block; color:var(--dim); }
.hero-text p { max-width:24em; color:var(--soft); font-size:21px; line-height:1.38; letter-spacing:-.018em; margin:0 0 34px; }
.cta { display:flex; align-items:center; gap:26px; flex-wrap:wrap; }
.hero-text > * { animation:auf 1s cubic-bezier(.2,.75,.2,1) both; }
.hero-text > :nth-child(2) { animation-delay:.08s; } .hero-text > :nth-child(3) { animation-delay:.16s; } .hero-text > :nth-child(4) { animation-delay:.24s; }
@keyframes auf { from { opacity:0; transform:translateY(28px); } }

/* ---------- 3D-iPhone ----------
   Vorderseite (Rahmen, Glas, Bildschirm) liegt vorn, dahinter 14 Schichten
   als Gehäusekante, an der mittleren Schicht die Tasten. */
.buehne-3d { perspective:1800px; perspective-origin:50% 40%; position:relative; }
.iphone { --w:320px; --tilt-x:6deg; --tilt-y:-14deg; --tilt-z:0deg; --s:1;
  position:relative; width:var(--w); transform-style:preserve-3d;
  transform:rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotateZ(var(--tilt-z)) scale(var(--s));
  transition:transform .9s cubic-bezier(.2,.75,.2,1); will-change:transform; }
.iphone .vorn { position:relative; padding:calc(var(--w)*.0125); border-radius:calc(var(--w)*.172);
  background:linear-gradient(140deg, var(--ti-1) 0%, var(--ti-2) 18%, var(--ti-3) 42%, var(--ti-2) 64%, var(--ti-1) 82%, var(--ti-3) 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.25), 0 0 0 .5px rgba(255,255,255,.08); transform:translateZ(0); }
.iphone .glas { padding:calc(var(--w)*.026); border-radius:calc(var(--w)*.16); background:#050505; box-shadow:inset 0 0 0 1px rgba(255,255,255,.06); }
.iphone .kante { position:absolute; inset:0; border-radius:calc(var(--w)*.172); background:var(--ti-kante);
  transform:translateZ(calc(var(--i) * -1px)); box-shadow:inset 0 0 0 1px rgba(0,0,0,.25); }
.iphone .kante.tief { background:var(--ti-tief); }
.iphone .tasten { position:absolute; inset:0; transform:translateZ(-7px); transform-style:preserve-3d; pointer-events:none; }
.iphone .tasten i { position:absolute; width:calc(var(--w)*.014); border-radius:3px; background:linear-gradient(90deg, var(--ti-3), var(--ti-1) 60%, var(--ti-2)); }
.iphone .tasten .a { left:calc(var(--w)*-.011); top:17%; height:5.5%; }
.iphone .tasten .b { left:calc(var(--w)*-.011); top:26%; height:10%; }
.iphone .tasten .c { left:calc(var(--w)*-.011); top:38%; height:10%; }
.iphone .tasten .d { right:calc(var(--w)*-.011); top:28%; height:15%; }
.iphone .tasten .e { right:calc(var(--w)*-.009); top:58%; height:9%; width:calc(var(--w)*.01); }
.iphone .glanz { position:absolute; inset:calc(var(--w)*.038); border-radius:calc(var(--w)*.135); pointer-events:none; z-index:6;
  background:linear-gradient(118deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.05) 22%, rgba(255,255,255,0) 38%); mix-blend-mode:screen; }
.iphone .insel { position:absolute; z-index:5; top:1.35%; left:50%; width:28.6%; height:3.7%; transform:translateX(-50%); background:#000; border-radius:999px; }
.boden { position:absolute; left:8%; right:8%; bottom:-6%; height:9%; border-radius:50%; background:var(--schatten); filter:blur(28px); transform:scaleY(.6); z-index:-1; }

.screen { position:relative; overflow:hidden; container-type:inline-size; aspect-ratio:660/1434; border-radius:calc(var(--w)*.135); background:#111; isolation:isolate; }
.screen > video, .screen > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:top; }
.screen > video { transition:opacity .45s ease; }
.start .v-you, .start.du-spricht .v-other { opacity:0; }
.start.du-spricht .v-you { opacity:1; }
.screen > img.auswertung { z-index:4; transform:translateY(102%); transition:transform .8s cubic-bezier(.2,.8,.2,1); }
.auswertung-da .screen > img.auswertung { transform:none; }

/* Sprechblasen über den Köpfen: Lisa wie in der App, du in Blau */
.chat { position:absolute; z-index:3; left:4%; right:4%; bottom:49.4%; top:14%; display:flex; flex-direction:column; justify-content:flex-end; gap:2.4cqw; }
.msg { position:relative; max-width:86%; min-width:44%; border-radius:4.4cqw; padding:2.4cqw 3.8cqw; font-size:3.35cqw; line-height:1.36; letter-spacing:-.01em;
  max-height:40cqw; transition:opacity .45s ease, transform .5s cubic-bezier(.2,.8,.2,1), max-height .5s ease, padding .5s ease, margin .5s ease; transform-origin:bottom center; }
.msg.lisa { align-self:flex-end; background:var(--blase-bg); color:var(--blase-ink); border:.3cqw solid var(--blase-rand); transform-origin:70% 100%; }
.msg.du { align-self:flex-start; background:var(--blau); color:#fff; transform-origin:30% 100%; }
.msg::after { content:""; position:absolute; bottom:-1.8cqw; width:3.4cqw; height:3.4cqw; transform:rotate(45deg); opacity:1; transition:opacity .3s; }
.msg.lisa::after { right:22cqw; background:var(--blase-bg); border-right:.3cqw solid var(--blase-rand); border-bottom:.3cqw solid var(--blase-rand); }
.msg.du::after { left:24cqw; background:var(--blau); }
.msg.weg { opacity:0; transform:translateY(4cqw) scale(.9); }
.msg.alt { opacity:.42; transform:scale(.92); }
.msg.alt::after { opacity:0; }
.msg.aus { opacity:0; max-height:0; padding-block:0; margin-top:-2.4cqw; border-width:0; overflow:hidden; }

/* Laufband */
.laufband { padding:96px 0 104px; overflow:hidden; background:var(--bg2); }
.laufband .label { text-align:center; color:var(--soft); font-size:21px; letter-spacing:-.018em; margin:0 auto 40px; padding:0 28px; }
.laufband .label b { color:var(--ink); font-weight:600; }
.zeile-lauf { white-space:nowrap; overflow:hidden; padding:6px 0;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image:linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.zeile-lauf .spur { display:inline-flex; animation:lauf 130s linear infinite; }
.zeile-lauf.rueck .spur { animation-direction:reverse; animation-duration:150s; }
.zeile-lauf span { font-size:clamp(26px,3.4vw,44px); font-weight:600; letter-spacing:-.03em; color:var(--dim); padding-right:.6em; }
.zeile-lauf span::after { content:"·"; color:var(--rule); padding-left:.6em; }
.zeile-lauf span.an { color:var(--ink); }
@keyframes lauf { to { transform:translateX(-50%); } }

/* Startszene: Text links, Handy rechts. Beim Scrollen geht der Text nach oben weg,
   das Handy gleitet in die Mitte, dann läuft dort das Gespräch ab.
   --t (0..1) = Weg des Handys, --u (0..1) = Überschrift und Zeile daneben,
   --dx/--dy = Abstand der Startposition zur Mitte (rechnet seite.js aus). */
.start { --t:0; --u:0; --dx:0px; --dy:0px; --mx:0deg; --my:0deg; height:760vh; position:relative; }
.start .anker { position:absolute; left:0; width:1px; height:1px; }
.start .buehne { position:sticky; top:52px; height:calc(100svh - 52px); display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:clamp(32px,5vw,80px); max-width:1240px; margin:0 auto; padding:0 28px; }
.hero-text { position:absolute; left:28px; top:50%; width:min(560px, 48%); z-index:2;
  transform:translateY(calc(-50% - var(--t) * 240px)); opacity:calc(1 - var(--t) * 2.4); }
.start .kopfzeile { justify-self:end; max-width:15em; opacity:var(--u); transform:translateY(calc((1 - var(--u)) * 30px)); }
h2 { font-size:clamp(36px,5vw,64px); line-height:1.06; letter-spacing:-.038em; margin:0; font-weight:700; }
.start h2 { font-size:clamp(36px,4vw,56px); }
.start .kopfzeile p { margin:14px 0 0; color:var(--soft); font-size:19px; line-height:1.4; }
.start .buehne-3d { transform:translate(calc((1 - var(--t)) * var(--dx)), calc((1 - var(--t)) * var(--dy))); }
.start .iphone { --w:min(380px, calc((100svh - 150px) / 2.08), 78vw);
  --tilt-x:calc(6deg - var(--t) * 3deg + var(--mx)); --tilt-y:calc(-14deg + var(--t) * 7deg + var(--my));
  transition:transform .25s ease-out; }
.start .seite { justify-self:start; max-width:19em; display:flex; flex-direction:column; gap:22px; opacity:var(--u); transform:translateY(calc((1 - var(--u)) * 30px)); }
.unterzeile { min-height:9em; font-size:19px; line-height:1.42; color:var(--soft); display:flex; align-items:flex-end; }
.unterzeile span { display:block; transition:opacity .4s ease, transform .4s ease; }
.unterzeile span.weg { opacity:0; transform:translateY(6px); }
.unterzeile b { display:block; color:var(--ink); font-weight:600; font-size:24px; letter-spacing:-.025em; margin-bottom:6px; }
.unterzeile b.coach { color:var(--coral); font-size:19px; }
.punkte { display:flex; gap:8px; }
.punkte i { width:7px; height:7px; border-radius:50%; background:var(--rule); transition:background .3s, transform .3s; }
.punkte i.an { background:var(--ink); }

/* Challenge */
.heute { padding:150px 0; text-align:center; }
.heute .vorne { display:block; font-size:21px; color:var(--coral); font-weight:600; margin-bottom:22px; letter-spacing:-.018em; }
.heute blockquote { margin:0 auto; font-size:clamp(34px,4.8vw,64px); line-height:1.08; letter-spacing:-.038em; font-weight:700; max-width:15em; }
.heute .unter { margin:30px auto 0; color:var(--soft); font-size:21px; max-width:26em; }

/* Preis */
.preis { padding:130px 0 140px; background:var(--bg2); }
.preis h2 { text-align:center; margin-bottom:56px; }
.boxen { display:grid; grid-template-columns:1fr 1fr; gap:22px; max-width:880px; margin:0 auto; }
.box { border-radius:28px; padding:40px 38px 36px; display:flex; flex-direction:column; background:var(--karte); }
.box.pro { box-shadow:inset 0 0 0 2px var(--teal); }
.box .name { font-size:17px; font-weight:600; color:var(--soft); margin-bottom:10px; }
.box.pro .name { color:var(--teal); }
.box .betrag { font-size:56px; font-weight:700; letter-spacing:-.045em; line-height:1; font-family:-apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; }
.box .betrag small { font-size:17px; font-weight:400; letter-spacing:-.02em; color:var(--soft); margin-left:6px; }
.box .oder { color:var(--soft); font-size:15px; margin:12px 0 0; min-height:22px; }
.box ul { list-style:none; padding:0; margin:30px 0 34px; flex:1; }
.box li { padding:13px 0; border-top:1px solid var(--rule); font-size:17px; }
.box .btn { align-self:flex-start; }
.preis .fein { color:var(--soft); font-size:12px; line-height:1.5; margin:34px auto 0; max-width:880px; letter-spacing:-.005em; }

footer { background:var(--bg2); border-top:1px solid var(--rule); }
footer .wrap { padding-top:20px; padding-bottom:40px; display:flex; flex-wrap:wrap; gap:10px 22px; font-size:12px; color:var(--soft); letter-spacing:-.005em; }
footer span:first-child { margin-right:auto; }
footer a { text-decoration:none; color:var(--soft); }
footer a:hover { color:var(--ink); text-decoration:underline; }

/* Einblenden beim Scrollen */
.js [data-zeig] { opacity:0; transform:translateY(28px); transition:opacity 1s ease, transform 1s cubic-bezier(.2,.75,.2,1); }
.js [data-zeig].da { opacity:1; transform:none; }

/* Handy und Tablet */
@media (max-width: 1100px) {
  .start .buehne { grid-template-columns:1fr; grid-template-rows:auto 1fr auto; justify-items:center; gap:16px; padding:18px 20px 22px; }
  .hero-text { left:20px; right:20px; width:auto; top:28px; transform:translateY(calc(var(--t) * -240px)); }
  .start .kopfzeile { justify-self:center; text-align:center; max-width:none; }
  .start h2 { font-size:clamp(30px,6vw,44px); }
  .start .kopfzeile p { display:none; }
  .start .iphone { --w:min(330px, calc((100svh - 52px - 300px) / 2.08), 72vw); }
  .start .seite { justify-self:center; align-items:center; text-align:center; max-width:30em; gap:12px; }
  .unterzeile { min-height:6.2em; font-size:16px; align-items:flex-start; }
  .unterzeile b { font-size:19px; margin-bottom:2px; }
  .unterzeile b.coach { font-size:16px; }
}
@media (max-width: 860px) {
  .wrap, nav.kopf .innen { padding:0 20px; }
  nav.kopf .innen { gap:16px; }
  nav.kopf .nur-breit { display:none; }
  .hero-text p { font-size:18px; margin-bottom:26px; }
  h1 { margin-bottom:18px; }
  .laufband { padding:70px 0 76px; }
  .laufband .label { font-size:19px; }
  .start { height:680vh; }
  .unterzeile { font-size:17px; min-height:5.6em; }
  .heute { padding:100px 0; }
  .heute blockquote { font-size:32px; }
  .preis { padding:90px 0 100px; }
  .preis h2 { margin-bottom:36px; }
  .boxen { grid-template-columns:1fr; }
  .box { padding:32px 26px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .zeile-lauf .spur { animation:none; }
  .js [data-zeig] { opacity:1; transform:none; transition:none; }
  .msg, .screen > img.auswertung, .unterzeile span, .iphone { transition:none; }
  .hero-text > * { animation:none; }
}

/* Rechtstexte (Impressum, Datenschutz, Support): Inhalt unverändert aus dem Repo social-maxxing-legal */
.rechtstext { max-width:760px; margin:0 auto; padding:64px 28px 110px; font-size:17px; line-height:1.6; letter-spacing:-.01em; }
.rechtstext h1 { hyphens:auto; -webkit-hyphens:auto; overflow-wrap:break-word; font-size:clamp(30px,5vw,48px); line-height:1.1; letter-spacing:-.035em; margin:0 0 12px; }
.rechtstext h2 { font-size:24px; line-height:1.25; letter-spacing:-.025em; margin:52px 0 12px; padding-top:28px; border-top:1px solid var(--rule); }
.rechtstext h3 { font-size:18px; letter-spacing:-.018em; margin:30px 0 6px; }
.rechtstext p, .rechtstext li { overflow-wrap:anywhere; }
.rechtstext ul { padding-left:1.3rem; } .rechtstext li { margin:.3rem 0; } .rechtstext li p { margin:.4rem 0 0; }
.rechtstext a { color:var(--teal); }
.rechtstext table { width:100%; border-collapse:collapse; margin:16px 0; font-size:15px; display:block; overflow-x:auto; }
.rechtstext th, .rechtstext td { text-align:left; vertical-align:top; padding:10px 12px; border-bottom:1px solid var(--rule); }
.rechtstext th { background:var(--bg2); font-weight:600; }
.rechtstext .contact { background:var(--bg2); border-radius:14px; padding:14px 18px; margin:16px 0; }
.rechtstext .lang { color:var(--soft); font-size:15px; }

/* Offizielles App-Store-Abzeichen von Apple (Apple Marketing Tools), nicht verändern */
.badge { display:inline-block; line-height:0; border-radius:9px; transition:transform .2s, opacity .2s; }
.badge img { height:56px; width:auto; }
.badge:hover { opacity:.85; }
.badge:active { transform:scale(.98); }
.box .badge { align-self:flex-start; }
.box .badge img { height:44px; }

/* Bis die App im Store ist: <html data-store="bald"> blendet Abzeichen und Laden-Knopf aus
   und zeigt einen schlichten Hinweis ohne Link. Zum Start das Attribut entfernen und
   die echten Links in alle data-app-store-Knöpfe eintragen. */
.bald { display:none; }
[data-store="bald"] .badge, [data-store="bald"] nav.kopf .store { display:none; }
[data-store="bald"] .bald { display:inline-flex; align-items:center; height:56px; padding:0 24px; border-radius:980px; box-shadow:inset 0 0 0 1px var(--rule); color:var(--soft); font-size:17px; font-weight:500; white-space:nowrap; }
[data-store="bald"] .box .bald { align-self:flex-start; height:44px; padding:0 20px; font-size:15px; }
[data-store="bald"] nav.kopf .bald.klein { height:auto; padding:5px 13px; font-size:13px; }
