/* Bewegungsebene: zusätzliche Animationen. Bei "Bewegung reduzieren" (html.lite) bleibt alles ruhig. */

html:not(.lite) { scroll-behavior: smooth; }
html { scroll-padding-top: 88px; }

/* ---------- Seitenübergang ---------- */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
.js body { animation: pageIn .55s ease both; }
.js.leaving body { opacity: 0; transition: opacity .22s ease; }

/* ---------- Kopfzeile blendet beim Runterscrollen aus ---------- */
header.site { transition: border-color .2s ease, transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; }
header.site.scrolled { box-shadow: 0 6px 24px rgba(14,34,56,.07); }
header.site.hide { transform: translateY(-100%); }

/* ---------- Überschriften: Wort für Wort ---------- */
@keyframes wordUp { from { transform: translateY(112%); } to { transform: none; } }
.js .split-h { animation: none !important; }
.split-h .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .14em; margin: 0 -.04em -.14em; }
.split-h .w > span { display: inline-block; transform: translateY(112%); animation: wordUp .95s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(.12s + var(--i, 0) * 70ms); }

/* Hervorhebung zeichnet sich unter den Akzentwörtern */
.js .accent { background: linear-gradient(transparent 64%, rgba(21,101,216,.15) 64%) no-repeat 0 0 / 0% 100%; transition: background-size 1.1s cubic-bezier(.2,.7,.2,1) .25s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.js .accent.hl { background-size: 100% 100%; }
.js .band-dark .accent { background-image: linear-gradient(transparent 64%, rgba(143,192,255,.22) 64%); }

/* ---------- Hero: weiche, driftende Lichtflecken und Neigung ---------- */
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-50px,40px,0) scale(1.12); } }
.hero, .page-hero { position: relative; isolation: isolate; overflow-x: clip; }
.hero::before, .hero::after, .page-hero::before { content: ''; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; }
.hero::before { width: 640px; height: 640px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(21,101,216,.17), transparent 66%); animation: drift 18s ease-in-out infinite alternate; }
.hero::after { width: 520px; height: 520px; left: -200px; bottom: -220px; background: radial-gradient(circle, rgba(94,163,255,.16), transparent 66%); animation: drift 22s ease-in-out infinite alternate-reverse; }
.page-hero::before { width: 520px; height: 520px; right: -140px; top: -220px; background: radial-gradient(circle, rgba(21,101,216,.13), transparent 66%); animation: drift 20s ease-in-out infinite alternate; }
.hero-photo { transform: perspective(1400px) rotateY(var(--rx, 0deg)) rotateX(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.2,.7,.2,1); will-change: transform; }

/* ---------- Dunkle Bänder: Licht wandert ---------- */
.band-dark { position: relative; overflow: hidden; isolation: isolate; }
.band-dark::before { content: ''; position: absolute; z-index: -1; width: 720px; height: 720px; left: -180px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(70,140,255,.30), transparent 65%); animation: drift 20s ease-in-out infinite alternate; pointer-events: none; }
.band-dark::after { content: ''; position: absolute; z-index: -1; width: 620px; height: 620px; right: -160px; bottom: -280px; border-radius: 50%; background: radial-gradient(circle, rgba(120,180,255,.22), transparent 65%); animation: drift 26s ease-in-out infinite alternate-reverse; pointer-events: none; }

/* ---------- Karten: Lichtkegel folgt der Maus ---------- */
.card { position: relative; }
.card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(21,101,216,.09), transparent 60%); }
.card:hover::after { opacity: 1; }

/* ---------- Buttons: Glanz und magnetischer Zug ---------- */
.btn { position: relative; overflow: hidden; translate: var(--bx, 0) var(--by, 0); }
.btn::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.38) 50%, transparent 70%); transform: translateX(-130%); }
.btn-primary:hover::after, .btn-light:hover::after { transform: translateX(130%); transition: transform .8s ease; }
.btn-secondary::after, .btn-outline-light::after { display: none; }
.btn:active { scale: .98; }

/* ---------- Fotos: Glanz läuft einmal drüber ---------- */
.px { position: relative; }
.px::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.34) 50%, transparent 65%); transform: translateX(-130%); }
.px.in-view::after { transform: translateX(130%); transition: transform 1.6s cubic-bezier(.3,.6,.2,1) .5s; }

/* ---------- Schritte: Verbindungslinie zeichnet sich ---------- */
.js .steps:not(.vertical) .step:not(:last-child)::after { transform: scaleX(0); transform-origin: left center; transition: transform 1s cubic-bezier(.2,.7,.2,1) .5s; }
.js .steps:not(.vertical) .step.in-view:not(:last-child)::after { transform: none; }

/* ---------- Zahlenband ---------- */
.stats { padding: 8px 0 64px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 28px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(34px, 4vw, 48px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; color: var(--blue); font-variant-numeric: tabular-nums; }
.stat b small { font-size: .5em; font-weight: 700; letter-spacing: 0; }
.stat span.lbl { display: block; margin-top: 8px; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
@media (max-width: 960px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stats { padding-bottom: 40px; }
}
@media (max-width: 560px) { .stat { padding: 20px 18px; } }

/* ---------- FAQ: Antwort gleitet ein ---------- */
.faq-a-inner { opacity: 0; transform: translateY(-8px); transition: opacity .3s ease, transform .35s ease; }
.faq-item.open .faq-a-inner { opacity: 1; transform: none; transition-delay: .1s; }
.faq-q .plus { transition: transform .3s cubic-bezier(.3,1.5,.5,1), background .3s ease, color .3s ease; }
.faq-item.open .faq-q .plus { transform: rotate(135deg); background: var(--blue); color: #fff; }

/* ---------- Bewegung reduzieren: ruhig halten ---------- */
.lite .hero::before, .lite .hero::after, .lite .page-hero::before, .lite .band-dark::before, .lite .band-dark::after { animation: none; }
.lite .hero-photo { transform: none; }
.lite.js .accent { background-size: 100% 100%; transition: none; }
.lite .split-h .w > span { transform: none; animation: none; }
.lite .btn { translate: none; }
.lite .btn::after, .lite .px::after { display: none; }
.lite header.site.hide { transform: none; }
.lite.js .steps:not(.vertical) .step:not(:last-child)::after { transform: none; transition: none; }
.lite.js body { animation-duration: .25s; }
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .page-hero::before, .band-dark::before, .band-dark::after { animation: none; }
}

/* ---------- Breite Fotobänder ---------- */
.photo-band { padding: 0 0 clamp(40px, 6vw, 72px); }
.px.photo { margin: 0; }
.px.photo img { aspect-ratio: 21 / 9; }
.px.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 64px clamp(20px, 3vw, 36px) clamp(18px, 2.4vw, 28px); color: #fff; font-size: clamp(16px, 1.7vw, 21px); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; background: linear-gradient(transparent, rgba(8, 20, 40, .72)); z-index: 2; }
@media (max-width: 760px) {
  .px.photo img { aspect-ratio: 4 / 3; }
  .px.photo figcaption { position: static; padding: 16px 18px 18px; background: var(--navy); font-size: 16px; }
}

/* ======================================================================
   Scroll-Choreografie
   ====================================================================== */
main { position: relative; }
main > section .wrap { position: relative; z-index: 1; }

/* Lichtflecken wandern mit dem Scrollen (Variable --bp wird per Skript gesetzt) */
.hero::before { translate: calc(var(--bp, 0) * -160px) calc(var(--bp, 0) * 120px); }
.hero::after { translate: calc(var(--bp, 0) * 130px) calc(var(--bp, 0) * -90px); }
.page-hero::before { translate: calc(var(--bp, 0) * -120px) calc(var(--bp, 0) * 90px); }
.band-dark::before { translate: calc(var(--bp, 0) * -240px) calc(var(--bp, 0) * 150px); }
.band-dark::after { translate: calc(var(--bp, 0) * 200px) calc(var(--bp, 0) * -130px); }

/* ---------- Laufschriften ---------- */
.ticker { overflow: hidden; padding: clamp(20px, 4vw, 56px) 0; background: #fff; pointer-events: none; user-select: none; }
.ticker-row { display: flex; align-items: center; width: max-content; margin-left: -45vw; white-space: nowrap; font-size: clamp(56px, 9vw, 150px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.12; color: var(--blue); will-change: translate; }
.ticker-row span.o { color: transparent; -webkit-text-stroke: 2px rgba(21, 101, 216, .45); }
.ticker-row i { display: inline-block; width: .22em; height: .22em; border-radius: 50%; background: var(--blue); margin: 0 .5em; opacity: .85; }
.ticker-row + .ticker-row { margin-top: -0.06em; }

/* ---------- Flugpfad ---------- */
.flight { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; overflow: visible; }
.flight-base { fill: none; stroke: rgba(21, 101, 216, .2); stroke-width: 2; stroke-dasharray: 2 12; stroke-linecap: round; }
.flight-trail { fill: none; stroke: rgba(21, 101, 216, .55); stroke-width: 2.5; stroke-linecap: round; }
.flight-top { z-index: 6; }
.flight-plane { filter: drop-shadow(0 6px 8px rgba(14, 34, 56, .25)); }

/* ---------- Handy-Bühne ---------- */
.app-sec.app-pin { overflow: visible; overflow-x: clip; padding: 0; }
.app-pin-track { position: relative; }
.app-pin-sticky { padding: clamp(56px, 8vw, 104px) 0; }
.app-phone { position: relative; }
.app-phone .phone { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotateZ(var(--rz, 0deg)) scale(var(--ps, 1)); transition: none; will-change: transform; }
.app-pin .ps-inner { transition: none; }
.float-chip { position: absolute; display: none; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); z-index: 3; min-width: 168px; will-change: translate, opacity; }
.float-chip b { font-size: 14.5px; line-height: 1.25; color: var(--ink); }
.float-chip span { font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.float-chip.c1 { left: -4%; top: 14%; }
.float-chip.c2 { right: -6%; top: 46%; }
.float-chip.c3 { left: 0; bottom: 8%; }
@media (min-width: 961px) { .float-chip { display: flex; } }

@media (min-width: 961px) and (min-height: 720px) {
  .app-pin-track { height: 165vh; }
  .app-pin-sticky { position: sticky; top: 0; height: 100vh; padding: 0; display: flex; align-items: center; }
  .app-pin-sticky > .wrap { width: 100%; }
  .app-pin .app-phone .phone { max-width: min(320px, 37vh); }
  .app-pin .lede { font-size: 17px; margin-bottom: 14px; }
  .app-pin .checks { gap: 6px; margin-bottom: 14px; }
  .app-pin .app-features li { opacity: .38; transition: opacity .4s ease, transform .4s ease; transform: translateX(0); }
  .app-pin .app-features li.on { opacity: 1; transform: translateX(6px); }
  .app-pin .store-note { display: none; }
}

/* ---------- Video-Band und Galerie ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); }
.gallery .px img { aspect-ratio: 4 / 3; }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- Foto-Streifen ---------- */
.strip-sec { padding: clamp(48px, 7vw, 96px) 0; overflow: hidden; }
.strip { overflow: hidden; padding: 8px 0 28px; }
.strip-row { display: flex; gap: clamp(14px, 2vw, 24px); width: max-content; margin-left: -34vw; will-change: translate; }
.strip-item { margin: 0; flex: 0 0 auto; width: clamp(240px, 27vw, 440px); aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: var(--soft-2); }
.strip-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.strip-item:hover img { transform: scale(1.06); }
.strip-item:nth-child(even) { margin-top: 28px; }
.strip-item:nth-child(odd) { margin-bottom: 28px; }
@media (max-width: 560px) { .strip-item { width: 68vw; } .strip-row { margin-left: -20vw; } }
.lite .strip { overflow-x: auto; scroll-snap-type: x proximity; }
.lite .strip-row { margin-left: 0; padding: 0 16px; }
.lite .strip-item { scroll-snap-align: start; }
.lite .strip-item img { transition: none; }
.lite .strip-item:hover img { transform: none; }

/* ---------- Handy-Mockup: Cockpit der neuen App (hell) ---------- */
.phone-screen.lt { background: #f2f6fc; color: #0e2238; }
.phone-screen.lt .ps-status { background: linear-gradient(#f2f6fc 70%, transparent); color: #0e2238; }
.phone-screen.lt .ps-bat { border-color: #546780; }
.phone-screen.lt .ps-bat::after { background: #0e2238; }
.phone-screen.lt .ps-inner { padding: 17cqw 6cqw 0; }
.pc-kicker { font-size: 3.2cqw; font-weight: 600; color: #1565d8; margin-bottom: .6cqw; }
.pc-hello { font-size: 7.6cqw; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.pc-sub { font-size: 3.5cqw; color: #546780; margin: 1.2cqw 0 3.4cqw; }
.pc-hero { position: relative; overflow: hidden; border-radius: 4.6cqw; padding: 4.6cqw; background: linear-gradient(135deg, #17408f, #0b1a33); color: #fff; }
.pc-hero::after { content: ''; position: absolute; right: -9cqw; top: -9cqw; width: 28cqw; height: 28cqw; border-radius: 50%; border: 5cqw solid rgba(143,192,255,.13); }
.pc-hero small { display: block; font-size: 3cqw; font-weight: 600; color: #8fc0ff; margin-bottom: 1.6cqw; }
.pc-hero b { display: block; font-size: 5cqw; line-height: 1.22; font-weight: 700; letter-spacing: -0.02em; padding-right: 8cqw; }
.pc-hero span { display: block; font-size: 3.1cqw; color: #c9dcf7; margin-top: 1.8cqw; }
.pc-btns { display: flex; gap: 2cqw; margin-top: 3.4cqw; }
.pc-btns i { font-style: normal; font-size: 3.1cqw; font-weight: 600; background: #fff; color: #0b1a33; border-radius: 99px; padding: 2.2cqw 4cqw; }
.pc-btns i.g { background: transparent; color: #fff; border: .35cqw solid rgba(255,255,255,.45); }
.pc-sec { font-size: 4.4cqw; font-weight: 700; letter-spacing: -0.02em; margin: 5cqw 0 2.4cqw; }
.pc-gauges { display: flex; justify-content: space-between; background: #fff; border-radius: 4.6cqw; padding: 3.4cqw 1cqw; box-shadow: 0 .8cqw 3cqw rgba(14,34,56,.08); }
.pc-g { flex: 1; text-align: center; }
.pc-g i { display: block; position: relative; width: 17cqw; height: 17cqw; margin: 0 auto; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), #e8f0fb 0); }
.pc-g i::after { content: ''; position: absolute; inset: 2cqw; border-radius: 50%; background: #fff; }
.pc-g i b { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; font-size: 3.7cqw; font-weight: 700; }
.pc-g span { display: block; font-size: 3cqw; font-weight: 600; margin-top: 1.8cqw; }
.pc-g em { display: block; font-style: normal; font-size: 2.5cqw; color: #546780; margin-top: .4cqw; }
.pc-task { display: flex; align-items: center; gap: 3cqw; background: #fff; border-radius: 3.4cqw; border: .3cqw solid rgba(14,34,56,.08); padding: 3cqw; margin-bottom: 2cqw; }
.pc-task b { display: block; font-size: 3.4cqw; font-weight: 600; }
.pc-task i { display: block; font-style: normal; font-size: 2.8cqw; color: #546780; margin-top: .4cqw; }
.pc-dot { flex: 0 0 5cqw; height: 5cqw; border-radius: 50%; border: .7cqw solid #a9c4ee; display: grid; place-items: center; font-size: 2.8cqw; color: #fff; }
.pc-dot.on { background: #1f9d63; border-color: #1f9d63; }
.pc-card { background: #fff; border-radius: 4.6cqw; border: .3cqw solid rgba(14,34,56,.08); padding: 3.6cqw; box-shadow: 0 .8cqw 3cqw rgba(14,34,56,.07); }
.pc-card b { display: block; font-size: 3.8cqw; font-weight: 700; margin-bottom: .8cqw; }
.pc-card i { display: block; font-style: normal; font-size: 3cqw; line-height: 1.4; color: #546780; }
.pc-card em { display: block; font-style: normal; font-size: 3.1cqw; font-weight: 600; color: #1565d8; margin-top: 2cqw; }
.pc-tiles { display: flex; gap: 2.6cqw; margin-top: 4cqw; }
.pc-tiles div { flex: 1; background: #e8f0fb; border-radius: 4cqw; padding: 3.2cqw; }
.pc-tiles b { display: block; font-size: 3.5cqw; font-weight: 700; margin-bottom: 1cqw; }
.pc-tiles i { display: block; font-style: normal; font-size: 2.8cqw; line-height: 1.4; color: #546780; }
.pc-tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; background: #fff; border-top: .3cqw solid rgba(14,34,56,.1); padding: 2.4cqw 0 5cqw; }
.pc-tabs span { flex: 1; text-align: center; font-size: 2.7cqw; font-weight: 500; color: #8392a8; }
.pc-tabs span.on { color: #1565d8; font-weight: 700; }
