/* Startseite: Hero-Bühne, „Ein Morgen mit Stocky“ (Handy), Agenten, Abschluss. Die Bewegung macht home.js (GSAP);
   ohne JavaScript oder bei „Bewegung reduzieren“ steht alles ruhig an seinem Platz. */

/* Hero */
.hero { position: relative; overflow: clip; }
.hero .wrap { min-height: min(720px, calc(100svh - 68px)); padding-block: 32px 80px; }
[data-split] .w, [data-split] .w > span { display: inline-block; }
.hero h1 { font-size: clamp(32px, 8.6vw, 60px); }
.hero-stage { position: relative; justify-self: center; width: min(400px, 100%); aspect-ratio: 400 / 480; }
.hero-chart { position: absolute; left: -12%; top: 4%; width: 124%; height: auto; overflow: visible; }
.hero-chart .stop-a { stop-color: var(--accent); }
.hero-chart .stop-b { stop-color: var(--glow); }
.chart-line { opacity: 0.85; }
.chart-dots circle { fill: var(--glow); }
/* Funkelsterne um Stocky: vierzackig, in Lila (hell) bzw. leuchtendem Hellblau (dunkel). */
.spark { position: absolute; width: 26px; height: 26px; fill: var(--spark); filter: drop-shadow(0 0 6px var(--spark-glow)); overflow: visible; }
.spark.s1 { top: 9%; left: 8%; }
.spark.s2 { top: 30%; right: 3%; width: 19px; height: 19px; }
.spark.s3 { top: 64%; left: 3%; width: 16px; height: 16px; }
.spark.s4 { top: 80%; right: 10%; width: 18px; height: 18px; }
.spark.s5 { top: 2%; left: 46%; width: 14px; height: 14px; }
.hero-stage .hero-figure { position: absolute; left: 50%; bottom: 0; width: 76%; margin-left: -38%; justify-self: auto; }
.hero-stage .hero-figure::before { inset: 10% 0 0; }
.float { position: relative; }
.float img { position: relative; z-index: 1; width: 100%; }
.jet { position: absolute; z-index: 0; width: 22%; aspect-ratio: 1 / 2.2; border-radius: 50%; transform-origin: 50% 10%;
  background: radial-gradient(closest-side, rgba(120, 190, 255, 0.85), rgba(61, 139, 255, 0.28) 60%, transparent); filter: blur(5px); }
.jet.j1 { left: 6%; top: 72%; }
.jet.j2 { left: 27%; top: 78%; }

.scroll-cue { position: absolute; left: 50%; bottom: 20px; width: 26px; height: 40px; margin-left: -13px; border: 2px solid var(--line); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--muted); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* Ein Morgen mit Stocky */
.story { padding-top: 48px; }
.story-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; margin-top: 8px; }
.story-phone-col { position: sticky; top: 24px; align-self: start; display: grid; justify-items: center; gap: 10px; padding-block: 24px 8px; z-index: 2; }
.phone-caption { margin: 0; font-size: 12px; color: var(--muted); }

/* --ph: Höhe des Handys; die Schrift darin wächst mit, so passt der Inhalt bei jeder Größe. */
.phone { --ph: min(600px, calc(100svh - 110px)); position: relative; height: var(--ph); aspect-ratio: 9 / 19; border-radius: 44px; overflow: hidden;
  background: #0f0e15; border: 10px solid #1e1c28; color: #efedf7; font-size: calc(var(--ph) * 0.0245);
  box-shadow: 0 40px 90px -40px rgba(60, 30, 140, 0.6), 0 0 0 1px var(--line); }
.phone-notch { position: absolute; z-index: 5; top: 8px; left: 50%; width: 34%; height: 22px; margin-left: -17%; border-radius: 999px; background: #000; }
.screen { position: absolute; inset: 0; padding: 3.6em 1.25em 1.25em; display: flex; flex-direction: column; gap: 0.8em; opacity: 0; visibility: hidden; }
.screen.is-active { opacity: 1; visibility: visible; }
.app-eyebrow { margin: 0; font-size: 0.72em; font-weight: 800; letter-spacing: 0.1em; color: #a6a1ba; }
.app-title { margin: -0.4em 0 0.2em; font-size: 1.7em; font-weight: 800; letter-spacing: -0.02em; }
.app-hint { margin: auto 0 0; font-size: 0.78em; color: #a6a1ba; }

.screen-lock { background: radial-gradient(120% 80% at 50% 0%, #3b2a7a, #141125 70%); align-items: center; }
.lock-time { margin: 0.6em 0 0; font-size: 4.2em; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.lock-date { margin: 0; color: #c9c3e6; font-weight: 700; }
.notif { margin-top: auto; margin-bottom: 1.5em; width: 100%; display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; gap: 0.7em; align-items: center;
  padding: 0.8em; border-radius: 1.2em; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.18); }
.notif img { width: 2.6em; height: 2.6em; border-radius: 0.6em; }
.notif strong { display: block; font-size: 0.92em; }
.notif span { display: block; font-size: 0.86em; color: #ddd8f3; line-height: 1.35; }
.notif em { align-self: start; font-style: normal; font-size: 0.72em; color: #c9c3e6; }

.brief-card { position: relative; padding: 1.1em 1em 1em; border-radius: 1.2em; background: #1b1826; border: 1px solid #2b2839; display: grid; gap: 0.7em; }
.brief-figure { position: absolute; right: -0.4em; top: -3.4em; width: 4.6em; height: auto; }
.brief-line { margin: 0; padding-left: 0.9em; border-left: 3px solid #b195fa; font-size: 0.9em; line-height: 1.45; color: #dcd8ea; }
.brief-line:first-of-type { margin-right: 3.6em; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55em; }
.ticks li { display: grid; grid-template-columns: minmax(0, 1fr) 3.4em 4.9em; gap: 0.6em; align-items: center; padding: 0.75em 0.85em; border-radius: 1em; background: #1b1826; border: 1px solid #2b2839; }
.t-name { font-weight: 800; font-size: 0.95em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticks svg { width: 100%; height: 1.4em; overflow: visible; }
.ticks polyline { fill: none; stroke: #4fd18b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ticks b { justify-self: end; font-size: 0.85em; font-variant-numeric: tabular-nums; color: #4fd18b; background: rgba(79, 209, 139, 0.12); border-radius: 0.5em; padding: 0.2em 0.45em; }
.ticks li.down polyline { stroke: #ff6b6b; }
.ticks li.down b { color: #ff6b6b; background: rgba(255, 107, 107, 0.12); }

.app-bubble { margin: 0; max-width: 82%; padding: 0.7em 0.9em; border-radius: 1.1em; font-size: 0.92em; }
.app-bubble-me { align-self: flex-end; background: #7950df; color: #fff; border-bottom-right-radius: 0.3em; }
.app-bubble-bot { align-self: flex-start; background: #1b1826; border: 1px solid #2b2839; color: #dcd8ea; border-bottom-left-radius: 0.3em; }
.typing { display: none; gap: 0.25em; padding: 0.25em 0; }
.typing i { width: 0.45em; height: 0.45em; border-radius: 50%; background: #a6a1ba; }
.app-bubble-bot.is-typing .typing { display: inline-flex; }
.app-bubble-bot.is-typing .bot-text { display: none; }
.analyse-card { position: relative; margin-top: auto; min-height: 15em; padding: 1.1em; border-radius: 1.3em; overflow: hidden; background: linear-gradient(150deg, #4f27b8, #8f66f0); }
.analyse-title { margin: 0; font-size: 1.25em; font-weight: 800; color: #fff; }
.analyse-text { margin: 0.4em 0 0; max-width: 52%; font-size: 0.88em; color: #ece6ff; line-height: 1.4; }
.lupe { position: absolute; right: 0.2em; bottom: -1.4em; width: 47%; aspect-ratio: 400 / 685; }
.lupe-still, .lupe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lupe-still { object-fit: contain; object-position: bottom; }
.lupe-canvas { opacity: 0; transition: opacity 0.3s; }
.lupe.is-live .lupe-canvas { opacity: 1; }
.lupe.is-live .lupe-still { opacity: 0; }

.story-steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 78svh; display: flex; flex-direction: column; justify-content: center; max-width: 30em; }
.js .step { opacity: 0.3; transition: opacity 0.45s ease; }
.js .step.is-active { opacity: 1; }
.step-time { margin: 0 0 6px; font-weight: 800; font-size: 15px; letter-spacing: 0.08em; color: var(--accent); font-variant-numeric: tabular-nums; }
.step h3 { margin: 0 0 10px; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
.step p:last-child { margin: 0; color: var(--muted); font-size: 17px; }

/* Agenten, Vertrauen, Abschluss */
.agents { padding-top: 24px; }
.feature img { transform-origin: 50% 90%; }
.trust-list { list-style: none; padding: 0 !important; }
.trust-list li { position: relative; padding-left: 32px; margin-top: 10px; }
.trust-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent); }
.trust-list li::after { content: ""; position: absolute; left: 7px; top: 7px; width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.finale { padding-top: 88px; text-align: center; }
.finale .wrap { display: grid; justify-items: center; }
.finale-figure { width: 170px; margin-bottom: 8px; }
.finale-figure img { width: 100%; }
.finale h2 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.035em; }
.finale .sub { color: var(--muted); max-width: 34em; margin: 0; }

@media (max-width: 760px) {
  .hero .wrap { min-height: 0; padding-block: 16px 72px; }
  .hero-stage { width: min(300px, 82%); grid-row: 1; }
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-phone-col { top: 0; padding-block: 12px 10px; background: linear-gradient(var(--bg) 88%, transparent); }
  .phone { --ph: min(440px, 54svh); border-width: 8px; border-radius: 36px; }
  .step { min-height: 62svh; justify-content: flex-start; padding-top: 6svh; }
  .step p:last-child { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue span { animation: none; }
  .js .step { transition: none; }
}
