/* ============================================================
   App Family Website — shared design system
   Dark / premium tech aesthetic, glassmorphism, per-app accents
   ============================================================ */

/* Self-hosted fonts (kein Google/Fontshare-Request → schneller,
   offline-fähig, DSGVO-sauber) */
@font-face {
  font-family: "Clash Display";
  src: url("../fonts/clash-display-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("../fonts/clash-display-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("../fonts/clash-display-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-0: #07070b;
  --bg-1: #0d0d14;
  --bg-2: #121219;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text-0: #f5f6fa;
  --text-1: #c7c9d9;
  --text-2: #8b8da3;
  --text-3: #5c5e70;

  --accent: #8b5cf6;
  --accent-soft: #8b5cf633;
  --accent-2: #38bdf8;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --shadow-glow: 0 0 0 1px var(--border), 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --container: 1160px;

  --ff-display: "Clash Display", "Sora", "Inter", system-ui, sans-serif; /* @kind font */
  --ff-body: "Inter", system-ui, -apple-system, sans-serif; /* @kind font */
}

/* Per-app accent themes ------------------------------------------------ */
body.theme-closet {
  --accent: #a855f7;
  --accent-2: #ec4899;
  --accent-soft: #a855f733;
}
body.theme-cart {
  --accent: #22c55e;
  --accent-2: #14b8a6;
  --accent-soft: #22c55e33;
}
body.theme-lumio {
  --accent: #f59e0b;
  --accent-2: #fb923c;
  --accent-soft: #f59e0b33;
}

/* Reset ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 45% at 15% 0%, var(--accent-soft), transparent 60%),
    radial-gradient(50% 40% at 100% 10%, rgba(56, 189, 248, 0.12), transparent 60%),
    var(--bg-0);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  color: var(--text-0);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h1 { font-size: clamp(2.4rem, 5vw + 1rem, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3vw + 1rem, 2.75rem); }
h3 { font-size: clamp(1.2rem, 1.4vw + 1rem, 1.6rem); }

p { max-width: 60ch; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px var(--accent);
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0a10;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px var(--accent-soft); }
.btn-ghost {
  background: var(--surface);
  color: var(--text-0);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.badge.badge-soon { color: var(--accent); border-color: var(--accent-soft); }
.badge.badge-was { color: var(--text-3); border-style: dashed; }

/* Navbar ------------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 11, 0.72);
  backdrop-filter: blur(12px) saturate(130%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-brand {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-0);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #22c55e, #f59e0b);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--text-2);
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-0); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 42px; height: 42px;
  color: var(--text-0);
  font-size: 1.2rem;
}

@media (max-width: 820px) {
  .nav-links {
    position: fixed;
    inset: 72px 16px auto 16px;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
}

/* Hero --------------------------------------------------------------------*/
.hero {
  padding: 120px 0 80px;
  text-align: center;
}
.hero h1 { max-width: 16ch; margin-inline: auto; }
.hero .lede {
  max-width: 56ch;
  margin: 22px auto 34px;
  font-size: 1.15rem;
  color: var(--text-2);
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  flex-wrap: wrap;
}
.hero-stat b {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.8rem;
  color: var(--text-0);
}
.hero-stat span { font-size: 0.85rem; color: var(--text-3); }

/* Glass card ---------------------------------------------------------------*/
/* Kein backdrop-filter: Safari re-filtert den Hintergrund scrollender
   Elemente bei JEDEM Frame. Auf near-black Hintergrund ist der Frosted-
   Effekt ohnehin unsichtbar — die leicht deckendere Fläche ersetzt ihn. */
.glass {
  background:
    linear-gradient(180deg, var(--surface-strong), var(--surface)),
    rgba(10, 10, 16, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
}

/* App cards on hub ---------------------------------------------------------*/
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: 40px 0 100px;
}
@media (max-width: 980px) { .app-grid { grid-template-columns: 1fr; } }

.app-card {
  position: relative;
  padding: 34px 30px 30px;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.app-card::after {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--card-accent, var(--accent)) 0%, transparent 70%);
  opacity: 0.25;
  filter: blur(10px);
  pointer-events: none;
}
.app-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.app-card .icon-tile {
  width: 64px; height: 64px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.5);
  margin-bottom: 20px;
}
.app-card .icon-tile img { width: 100%; height: 100%; object-fit: cover; }
.app-card h3 { margin-bottom: 6px; }
.app-card .tagline {
  color: var(--card-accent, var(--accent));
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 14px;
}
.app-card ul.feature-list { margin: 0 0 22px; }
.app-card ul.feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--text-2);
  margin-bottom: 8px;
}
.app-card ul.feature-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--card-accent, var(--accent));
  font-weight: 700;
}
.app-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.app-card[data-app="closet"] { --card-accent: #a855f7; }
.app-card[data-app="cart"] { --card-accent: #22c55e; }
.app-card[data-app="lumio"] { --card-accent: #f59e0b; }

/* Generic sections ----------------------------------------------------------*/
.section { padding: 90px 0; }
.section-head { max-width: 640px; margin: 0 0 50px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* Feature grid (detail pages) ----------------------------------------------*/
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.feature-card {
  padding: 28px 26px;
}
.feature-card .num {
  font-family: var(--ff-display);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
}
.feature-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.feature-card p { font-size: 0.93rem; color: var(--text-2); }

/* iPhone mockup -------------------------------------------------------------*/
.mockup-row {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 20px 4px 40px;
  scroll-snap-type: x proximity;
}
.mockup-row::-webkit-scrollbar { height: 8px; }
.mockup-row::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }

.iphone {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 240px;
  aspect-ratio: 240 / 490;
  border-radius: 40px;
  background: #050507;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7), inset 0 0 0 6px #0f0f14;
  position: relative;
  overflow: hidden;
}
.iphone::before {
  content: "";
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 22px;
  background: #050507;
  border-radius: 14px;
  z-index: 3;
}
.iphone-screen {
  position: absolute;
  inset: 6px;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 30% 0%, color-mix(in srgb, var(--accent) 30%, #12121a), #0b0b10 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  gap: 14px;
}
.iphone-screen .icon-tile {
  width: 58px; height: 58px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 26px -8px rgba(0,0,0,0.6);
}
.iphone-screen .icon-tile img { width: 100%; height: 100%; object-fit: cover; }
.iphone-screen .soon-label {
  font-family: var(--ff-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px dashed var(--border-strong);
  padding: 8px 14px;
  border-radius: 999px;
}
.iphone-screen .caption {
  font-size: 0.78rem;
  color: var(--text-2);
  max-width: 22ch;
}

/* Subscription callout ------------------------------------------------------*/
.callout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 30px;
  margin-top: 20px;
}
.callout .icon {
  font-size: 1.6rem;
  flex: 0 0 auto;
}
.callout h4 { color: var(--text-0); margin-bottom: 6px; font-family: var(--ff-display); }
.callout p { font-size: 0.92rem; color: var(--text-2); }

/* CTA banner ----------------------------------------------------------------*/
.cta-banner {
  text-align: center;
  padding: 70px 30px;
  margin: 0 0 100px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 18%, var(--bg-1)), var(--bg-1));
}
.cta-banner h2 { margin-bottom: 14px; }
.cta-banner p { margin: 0 auto 28px; color: var(--text-2); }

/* Termin buchen (Startseite) ------------------------------------------------*/
.booking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  max-width: 900px;
  margin-inline: auto;
}
.booking-card {
  display: flex;
  flex-direction: column;
  padding: 32px 30px;
}
.booking-icon {
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}
.booking-card p { margin-bottom: 26px; }
.booking-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
/* Platzhalter: Buchung noch ohne Funktion */
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  translate: none !important;
  box-shadow: none !important;
}
.btn[disabled]::after { display: none; }

/* Footer ---------------------------------------------------------------------*/
.site-footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 34px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h5 {
  font-family: var(--ff-display);
  color: var(--text-0);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.9rem;
  color: var(--text-2);
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--text-0); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-3);
}

/* Legal pages -----------------------------------------------------------------*/
.legal-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  margin: 100px 0 40px;
  font-size: 0.92rem;
  color: #fcd9a1;
}
.legal-notice .icon { font-size: 1.3rem; }

.legal-page { padding-bottom: 100px; }
.legal-page h1 { margin-bottom: 30px; }
.legal-page h2 {
  margin-top: 52px;
  margin-bottom: 16px;
  font-size: 1.5rem;
  padding-top: 20px;
  scroll-margin-top: 100px;
}
.legal-page h2:first-of-type { margin-top: 20px; }
.legal-page h3 { margin-top: 26px; margin-bottom: 10px; font-size: 1.1rem; color: var(--text-0); }
.legal-page p, .legal-page li { color: var(--text-2); font-size: 0.96rem; max-width: 74ch; margin-bottom: 12px; }
.legal-page ul, .legal-page ol { padding-left: 22px; margin-bottom: 16px; }
.legal-page ul li { list-style: disc; }
.legal-page ol li { list-style: decimal; }
.legal-page strong { color: var(--text-0); }
.legal-page .placeholder {
  color: #fcd9a1;
  background: rgba(245, 158, 11, 0.12);
  padding: 1px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9em;
}
.legal-page .app-section {
  padding: 28px 30px;
  margin: 22px 0 40px;
  border-left: 3px solid var(--section-accent, var(--accent));
}
[data-app="closet"] { --section-accent: #a855f7; }
[data-app="cart"] { --section-accent: #22c55e; }
[data-app="lumio"] { --section-accent: #f59e0b; }
.legal-page .app-section h3 { margin-top: 0; }

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}
.legal-toc a {
  font-size: 0.84rem;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.legal-toc a:hover { color: var(--text-0); border-color: var(--border-strong); }

/* Support page ------------------------------------------------------------------*/
.support-anchor {
  padding: 34px 30px;
  margin-bottom: 26px;
  scroll-margin-top: 100px;
}
.support-anchor { border-left: 3px solid var(--section-accent, var(--accent)); }

/* Utility ------------------------------------------------------------------------*/
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
/* Kein pauschales will-change auf allen Reveal-Elementen: das hielt
   dutzende Layer dauerhaft im Speicher. Transform/Opacity-Transitions
   werden vom Browser ohnehin automatisch composited. */

/* Detail page hero ------------------------------------------------------------*/
.app-hero {
  padding: 110px 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 900px) { .app-hero { grid-template-columns: 1fr; padding-top: 90px; } }
.app-hero .icon-tile {
  width: 84px; height: 84px;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 16px 34px -10px rgba(0,0,0,0.6);
}
.app-hero .icon-tile img { width: 100%; height: 100%; object-fit: cover; }
.app-hero .tagline { color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.app-hero p.lede { font-size: 1.05rem; color: var(--text-2); margin-bottom: 30px; }
.app-hero-visual { display: flex; justify-content: center; }
.app-hero-visual .iphone { width: 280px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-2);
  margin-top: 100px;
}
.back-link:hover { color: var(--text-0); }
.app-hero .back-link { margin-top: 0; margin-bottom: 30px; }

/* ============================================================
   Motion & effects layer
   ============================================================ */

/* Film grain over the background (behind content) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Drifting aurora orbs (injected by JS) */
.orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(calc(var(--scroll, 0) * -0.05px));
}
/* Weichheit steckt komplett im Gradient-Verlauf — KEIN filter: blur().
   Ein 70px-Blur auf drei ~500px-Layern, die per Keyframes skalieren und
   per --scroll mitwandern, war einer der größten Safari-Compositing-Kosten. */
.orbs i {
  position: absolute;
  border-radius: 50%;
  opacity: 0.32;
  will-change: transform;
}
.orbs i:nth-child(1) {
  width: 560px; height: 560px;
  top: -14%; left: -10%;
  background: radial-gradient(circle closest-side,
    var(--accent),
    color-mix(in srgb, var(--accent) 34%, transparent) 42%,
    transparent 76%);
  animation: orb-drift-1 26s ease-in-out infinite alternate;
}
.orbs i:nth-child(2) {
  width: 620px; height: 620px;
  top: 2%; right: -16%;
  background: radial-gradient(circle closest-side,
    var(--accent-2),
    color-mix(in srgb, var(--accent-2) 34%, transparent) 42%,
    transparent 76%);
  animation: orb-drift-2 34s ease-in-out infinite alternate;
}
.orbs i:nth-child(3) {
  width: 440px; height: 440px;
  bottom: -20%; left: 26%;
  background: radial-gradient(circle closest-side,
    color-mix(in srgb, var(--accent) 60%, var(--accent-2)),
    color-mix(in srgb, var(--accent) 22%, transparent) 42%,
    transparent 76%);
  opacity: 0.22;
  animation: orb-drift-3 40s ease-in-out infinite alternate;
}
@keyframes orb-drift-1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(16vw, 14vh) scale(1.25); }
}
@keyframes orb-drift-2 {
  from { transform: translate(0, 0) scale(1.15); }
  to   { transform: translate(-14vw, 22vh) scale(0.9); }
}
@keyframes orb-drift-3 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(12vw, -16vh) scale(1.3); }
}
@media (max-width: 700px) {
  .orbs i { opacity: 0.24; }
}

/* Scroll progress bar (injected by JS) */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 200;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* Navbar: hide on scroll down, solidify once scrolled */
.nav {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.3s ease, box-shadow 0.3s ease;
}
.nav.nav-hidden { transform: translateY(-100%); }
.nav.scrolled {
  background: rgba(7, 7, 11, 0.78);
  box-shadow: 0 12px 32px -20px rgba(0, 0, 0, 0.9);
}
@media (min-width: 821px) {
  .nav-links a { position: relative; }
  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav-links a:hover::after,
  .nav-links a.active::after { transform: scaleX(1); }
}

/* Scroll reveals — richer replacement for the AOS library.
   Hidden states only apply once JS added html.js, so content
   stays visible without JavaScript. */
/* Nur opacity/transform — animierte blur()-Filter in den Reveals waren
   ein Safari-Jank-Treiber (Repaint pro Frame, oft mehrere gleichzeitig). */
html.js [data-aos] {
  opacity: 0;
  transition: opacity 0.7s ease,
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--aos-delay, 0ms);
}
html.js [data-aos="fade-up"] { transform: translateY(28px); }
html.js [data-aos="zoom-in"] { transform: scale(0.92); }
html.js [data-aos].aos-in { opacity: 1; transform: none; }

/* Hero headline: word-by-word reveal */
h1.split .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  animation: word-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i) * 65ms + 120ms);
}
@keyframes word-in {
  to { opacity: 1; transform: none; }
}

/* Pulsing eyebrow dot */
.eyebrow::before { animation: eyebrow-pulse 3s ease-in-out infinite; }
@keyframes eyebrow-pulse {
  0%, 100% { box-shadow: 0 0 10px 1px var(--accent); }
  50%      { box-shadow: 0 0 18px 5px var(--accent); }
}

/* Cards: cursor spotlight + 3D tilt */
.feature-card, .callout { position: relative; overflow: hidden; }
.app-card::before,
.feature-card::before,
.callout::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255, 255, 255, 0.08), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}
.app-card:hover::before,
.feature-card:hover::before,
.callout:hover::before { opacity: 1; }

.app-grid { perspective: 1200px; }
.app-card { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.app-card:hover {
  transform: translateY(-6px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.app-card .icon-tile { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.app-card:hover .icon-tile { transform: scale(1.08) rotate(-3deg); }

/* Buttons: magnetic offset + shine sweep */
.btn {
  position: relative;
  overflow: hidden;
  translate: 0 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
              border-color 0.25s ease, translate 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.4) 50%, transparent 60%);
  transform: translateX(-101%);
  pointer-events: none;
}
.btn-primary:hover::after { animation: btn-shine 0.9s ease; }
@keyframes btn-shine {
  to { transform: translateX(101%); }
}

/* CTA banner: rotating gradient border */
/* CTA banner: rotierender Gradient-Ring ausgelagert nach cta-ring.css —
   die per Keyframes animierte Custom Property (--cta-angle) ist kein
   Design-Token und bleibt darum außerhalb der styles.css-Token-Closure. */
.cta-banner { position: relative; }

/* Floating iPhone mockups */
@keyframes iphone-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.app-hero-visual .iphone { animation: iphone-float 6.5s ease-in-out infinite; }
.mockup-row .iphone { animation: iphone-float 7s ease-in-out infinite; }
.mockup-row .iphone:nth-child(2n) { animation-delay: -2.4s; }
.mockup-row .iphone:nth-child(3n) { animation-delay: -4.2s; }

/* Reduced motion: settle everything instantly */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js [data-aos] { opacity: 1; transform: none; filter: none; }
  h1.split .w { opacity: 1; transform: none; filter: none; }
  .orbs, .scroll-progress { display: none; }
}

/* ============================================================
   App-Tour (Scrollytelling) & Live-Mock-UI im iPhone
   Die gesamte Mock-UI skaliert über font-size (--pw = Phone-Breite)
   ============================================================ */

.iphone-live { font-size: calc(var(--pw, 280px) * 0.058); }
.iphone-live::before { width: 6.8em; height: 1.5em; top: 0.9em; border-radius: 1em; }

.app-screen { display: block; padding: 0; text-align: left; }
.app-screen::after {
  content: "";
  position: absolute;
  bottom: 0.55em; left: 50%;
  transform: translateX(-50%);
  width: 34%; height: 0.3em;
  border-radius: 1em;
  background: rgba(255, 255, 255, 0.22);
  z-index: 4;
}

.phone-scenes { position: absolute; inset: 0; }

/* Szenen: gestapelte App-Zustände, weiche Überblendung */
.scene {
  position: absolute;
  inset: 0;
  padding: 3.2em 1.05em 1.6em;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  opacity: 0;
  transform: translateY(7%) scale(0.96);
  transition: opacity 0.55s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.scene.active { opacity: 1; transform: none; }
.scene.prev { transform: translateY(-7%) scale(0.96); }

/* Kinder der aktiven Szene staffeln sich nacheinander ein */
html.js .scene > * {
  opacity: 0;
  transform: translateY(0.9em);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js .scene.active > * { opacity: 1; transform: none; }
html.js .scene.active > *:nth-child(1) { transition-delay: 0.12s; }
html.js .scene.active > *:nth-child(2) { transition-delay: 0.22s; }
html.js .scene.active > *:nth-child(3) { transition-delay: 0.32s; }
html.js .scene.active > *:nth-child(4) { transition-delay: 0.42s; }
html.js .scene.active > *:nth-child(5) { transition-delay: 0.52s; }
html.js .scene.active > *:nth-child(6) { transition-delay: 0.62s; }
html.js .scene.active > *:nth-child(7) { transition-delay: 0.72s; }
html.js .scene.active > *:nth-child(8) { transition-delay: 0.82s; }
/* Elemente, die erst nach einer Mini-Interaktion erscheinen */
html.js .scene.active > .late-1 { transition-delay: 1.2s; }
html.js .scene.active > .late-2 { transition-delay: 1.9s; }

/* Hero-Phone: Szene animiert sich beim Laden per Keyframes ein */
.iphone-hero .scene.active > * { animation: p-child-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.iphone-hero .scene.active > *:nth-child(1) { animation-delay: 0.5s; }
.iphone-hero .scene.active > *:nth-child(2) { animation-delay: 0.65s; }
.iphone-hero .scene.active > *:nth-child(3) { animation-delay: 0.8s; }
.iphone-hero .scene.active > *:nth-child(4) { animation-delay: 0.95s; }
.iphone-hero .scene.active > *:nth-child(5) { animation-delay: 1.1s; }
.iphone-hero .scene.active > *:nth-child(6) { animation-delay: 1.25s; }
.iphone-hero .scene.active > *:nth-child(7) { animation-delay: 1.4s; }
@keyframes p-child-in {
  from { opacity: 0; transform: translateY(0.9em); }
  to   { opacity: 1; transform: none; }
}

.app-hero-visual { --pw: min(280px, 72vw); /* @kind other */ }
.app-hero-visual .iphone-live { width: min(280px, 72vw); }

/* --- Mock-UI-Bausteine ------------------------------------------------ */

.p-status {
  position: absolute;
  top: 1.05em; left: 2.1em; right: 2em;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--ff-display);
  font-size: 0.7em; font-weight: 600; color: var(--text-0);
}
.p-status .ic { display: flex; align-items: center; gap: 0.5em; }
.p-status .sig { display: flex; align-items: flex-end; gap: 0.14em; }
.p-status .sig i { width: 0.17em; background: currentColor; border-radius: 1px; }
.p-status .sig i:nth-child(1) { height: 0.35em; }
.p-status .sig i:nth-child(2) { height: 0.52em; }
.p-status .sig i:nth-child(3) { height: 0.68em; }
.p-status .bat {
  width: 1.4em; height: 0.72em;
  border: 1px solid currentColor;
  border-radius: 0.2em;
  position: relative;
  opacity: 0.9;
}
.p-status .bat::before {
  content: "";
  position: absolute; inset: 1.5px;
  right: 28%;
  background: currentColor;
  border-radius: 1px;
}
.p-status .bat::after {
  content: "";
  position: absolute;
  right: -0.18em; top: 50%;
  transform: translateY(-50%);
  width: 0.1em; height: 0.32em;
  background: currentColor;
  border-radius: 1px;
}

.p-head small {
  display: block;
  font-size: 0.62em;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.p-head strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.14em;
  color: var(--text-0);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-top: 0.2em;
}
.p-head.center { text-align: center; }

.p-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 0.9em;
  padding: 0.8em 0.95em;
}
.p-card p {
  font-size: 0.76em;
  line-height: 1.55;
  color: var(--text-1);
  max-width: none;
}

.p-row {
  display: flex; align-items: center; gap: 0.6em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 0.85em;
  padding: 0.55em 0.7em;
}
.p-row .grow { flex: 1; min-width: 0; }
.p-row .p-ico {
  width: 1.9em; height: 1.9em;
  border-radius: 0.6em;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9em;
  background: var(--accent-soft);
  flex: 0 0 auto;
}
.p-row b { display: block; font-size: 0.76em; color: var(--text-0); font-weight: 600; line-height: 1.3; }
.p-row small { display: block; font-size: 0.62em; color: var(--text-2); line-height: 1.4; }
.p-row.dim { opacity: 0.55; }
.p-row.glow {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 20px -6px var(--accent);
}
.scene.active .p-row.will-dim { animation: p-dim 0.5s ease forwards; animation-delay: 1.6s; }
@keyframes p-dim { to { opacity: 0.55; } }

.p-chip {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-size: 0.66em; font-weight: 600;
  padding: 0.55em 1em;
  border-radius: 2em;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--text-0);
  width: fit-content;
}
.p-chip.ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--border); color: var(--text-1); }
.p-chip.center { margin-inline: auto; }
.p-chip-row { display: flex; gap: 0.45em; flex-wrap: wrap; }

/* Checkboxen (Einkaufs- & Packliste) */
.p-check {
  width: 1.15em; height: 1.15em;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: #0a0a10;
}
.p-check::after { content: "✓"; font-size: 0.68em; font-weight: 800; opacity: 0; }
.p-check.done { background: var(--accent); border-color: var(--accent); }
.p-check.done::after { opacity: 1; }
.scene.active .p-check.auto { animation: p-check-in 0.35s ease forwards; animation-delay: 1.3s; }
.scene.active .p-check.auto::after { animation: p-fade-in 0.25s ease forwards; animation-delay: 1.45s; }
@keyframes p-check-in { to { background: var(--accent); border-color: var(--accent); } }
@keyframes p-fade-in { to { opacity: 1; } }

.p-row .strike { position: relative; width: fit-content; }
.p-row .strike::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  height: 1.5px; width: 0;
  background: var(--text-2);
}
.scene.active .p-row .strike::after { animation: p-strike 0.35s ease forwards; animation-delay: 1.5s; }
@keyframes p-strike { to { width: 100%; } }

/* Chat (Rückfragen) */
.p-bubble {
  font-size: 0.75em;
  line-height: 1.45;
  padding: 0.75em 1em;
  border-radius: 1.2em;
  max-width: 86%;
}
.p-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0a10;
  font-weight: 600;
  border-bottom-right-radius: 0.35em;
}
.p-bubble.ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  color: var(--text-0);
  border-bottom-left-radius: 0.35em;
}
.p-dots {
  display: flex; gap: 0.3em;
  padding: 0.7em 0.95em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 1.2em;
  border-bottom-left-radius: 0.35em;
  width: fit-content;
  max-height: 3em;
}
.p-dots i { width: 0.42em; height: 0.42em; border-radius: 50%; background: var(--text-2); }
.scene.active .p-dots i { animation: p-dot 1s ease-in-out infinite; }
.scene.active .p-dots i:nth-child(2) { animation-delay: 0.15s; }
.scene.active .p-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes p-dot {
  0%, 100% { opacity: 0.35; transform: none; }
  50%      { opacity: 1; transform: translateY(-0.16em); }
}
.scene.active .p-dots { animation: p-dots-out 0.5s ease forwards; animation-delay: 1.7s; }
@keyframes p-dots-out {
  60% { opacity: 0; }
  to  { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; border-width: 0; margin-top: -0.8em; }
}

/* Sprachausgabe */
.p-island {
  margin: 0 auto;
  display: flex; align-items: center; gap: 0.5em;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 2em;
  padding: 0.55em 1.1em;
  font-size: 0.68em; font-weight: 600; color: var(--text-0);
  width: fit-content;
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.8);
}
.p-island .p-island-dot { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--accent); }
.scene.active .p-island-dot { animation: eyebrow-pulse 1.6s ease-in-out infinite; }

.p-wave {
  display: flex; align-items: center; justify-content: center;
  gap: 0.3em;
  height: 4.4em;
  margin: 0.4em 0;
}
.p-wave span {
  width: 0.34em; height: 1em;
  border-radius: 1em;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.p-wave span:nth-child(odd) { height: 1.3em; }
.p-wave span:nth-child(3n) { height: 0.8em; }
.p-wave span:nth-child(4n) { height: 1.6em; }
.scene.active .p-wave span { animation: p-wave 0.9s ease-in-out infinite alternate; }
.scene.active .p-wave span:nth-child(odd) { animation-delay: -0.45s; }
.scene.active .p-wave span:nth-child(3n) { animation-delay: -0.2s; }
.scene.active .p-wave span:nth-child(4n) { animation-delay: -0.7s; }
.scene.active .p-wave span:nth-child(5n) { animation-delay: -0.9s; }
@keyframes p-wave {
  from { transform: scaleY(0.45); }
  to   { transform: scaleY(2.3); }
}

.p-play {
  width: 3.1em; height: 3.1em;
  border-radius: 50%;
  margin: 0.2em auto 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0a10;
  font-size: 1em;
  padding-left: 0.2em;
}
.scene.active .p-play { animation: p-play-pulse 2.2s ease-in-out infinite; }
@keyframes p-play-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); }
  50%      { box-shadow: 0 0 0 0.75em transparent; }
}

/* Barcode-Scanner */
.p-scan {
  position: relative;
  height: 8.5em;
  border-radius: 1em;
  border: 1.5px dashed var(--border-strong);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.p-barcode { display: flex; align-items: center; gap: 0.18em; height: 2.8em; }
.p-barcode i { width: 0.15em; height: 100%; background: var(--text-1); border-radius: 1px; }
.p-barcode i:nth-child(3n) { width: 0.32em; }
.p-barcode i:nth-child(4n) { height: 78%; }
.p-barcode i:nth-child(5n) { height: 88%; }
.p-scan::after {
  content: "";
  position: absolute;
  left: 6%; right: 6%; top: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 14px var(--accent);
  opacity: 0;
}
.scene.active .p-scan::after { opacity: 1; animation: p-laser 1.5s ease-in-out infinite alternate; }
@keyframes p-laser {
  from { top: 12%; }
  to   { top: 84%; }
}

/* Foto-Freisteller (Smart Closet) */
.p-photo {
  position: relative;
  height: 9em;
  border-radius: 1em;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.p-photo .p-photo-bg {
  position: absolute; inset: 0;
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.1) 0% 25%, rgba(255, 255, 255, 0.03) 0% 50%) 0 0 / 1.5em 1.5em;
}
.scene.active .p-photo-bg { animation: p-fade-out 0.8s ease forwards; animation-delay: 1.2s; }
@keyframes p-fade-out { to { opacity: 0; } }
.p-photo .p-cloth { position: relative; z-index: 1; font-size: 3.4em; filter: drop-shadow(0 0.1em 0.25em rgba(0, 0, 0, 0.45)); }
.p-photo::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 36%; left: -45%;
  background: linear-gradient(105deg, transparent, color-mix(in srgb, var(--accent) 45%, transparent), transparent);
  transform: skewX(-8deg);
  z-index: 2;
}
.scene.active .p-photo::after { animation: p-sweep 1s ease forwards; animation-delay: 1s; }
@keyframes p-sweep { to { left: 112%; } }

/* Kleider-Grid & Outfit-Auswahl */
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5em; }
.p-tile {
  aspect-ratio: 1;
  border-radius: 0.8em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5em;
  position: relative;
}
.p-tile.pick::after {
  content: "";
  position: absolute; inset: -2px;
  border-radius: inherit;
  border: 2px solid var(--accent);
  box-shadow: 0 0 14px var(--accent-soft);
  opacity: 0;
}
.scene.active .p-tile.pick::after { animation: p-fade-in 0.35s ease forwards; }
.scene.active .p-tile.pick:nth-child(1)::after { animation-delay: 1s; }
.scene.active .p-tile.pick:nth-child(4)::after { animation-delay: 1.3s; }
.scene.active .p-tile.pick:nth-child(6)::after { animation-delay: 1.6s; }

/* Wochenplan */
.p-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4em; }
.p-day {
  border-radius: 0.7em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 0.55em 0.2em;
  text-align: center;
}
.p-day small { display: block; font-size: 0.56em; font-weight: 600; letter-spacing: 0.08em; color: var(--text-2); }
.p-day span { display: block; font-size: 1.05em; margin-top: 0.2em; }
.p-day.today { border-color: var(--accent); background: var(--accent-soft); }
.scene.active .p-day { animation: p-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
.scene.active .p-day:nth-child(1) { animation-delay: 0.5s; }
.scene.active .p-day:nth-child(2) { animation-delay: 0.62s; }
.scene.active .p-day:nth-child(3) { animation-delay: 0.74s; }
.scene.active .p-day:nth-child(4) { animation-delay: 0.86s; }
.scene.active .p-day:nth-child(5) { animation-delay: 0.98s; }
@keyframes p-pop {
  from { opacity: 0; transform: translateY(0.6em) scale(0.88); }
  to   { opacity: 1; transform: none; }
}

/* Geteilte Listen: Avatare & Zuweisungen */
.p-avatars-row { display: flex; align-items: center; justify-content: space-between; }
.p-avatars { display: flex; }
.p-avatars i {
  width: 1.75em; height: 1.75em;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72em; font-weight: 700;
  font-family: var(--ff-display);
  font-style: normal;
  color: #0a0a10;
  border: 2px solid var(--bg-1);
  margin-left: -0.5em;
}
.p-avatars i:first-child { margin-left: 0; }
.p-avatars i:nth-child(1) { background: #f59e0b; }
.p-avatars i:nth-child(2) { background: #22c55e; }
.p-avatars i:nth-child(3) { background: #38bdf8; }
.scene.active .p-avatars i { animation: p-pop 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
.scene.active .p-avatars i:nth-child(1) { animation-delay: 0.55s; }
.scene.active .p-avatars i:nth-child(2) { animation-delay: 0.68s; }
.scene.active .p-avatars i:nth-child(3) { animation-delay: 0.81s; }
.p-who {
  width: 1.65em; height: 1.65em;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.64em; font-weight: 700;
  font-family: var(--ff-display);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--text-0);
  flex: 0 0 auto;
}

.p-fab {
  position: absolute;
  right: 1em; bottom: 1.4em;
  width: 2.6em; height: 2.6em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0a10;
  font-weight: 800;
  font-size: 1em;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px var(--accent);
}

/* --- Scrolly-Layout: Sticky-Phone + Steps ----------------------------- */

.scrolly { --pw: clamp(210px, calc((100vh - 240px) * 0.49), 300px); /* @kind other */ }
.scrolly .section-head { margin-bottom: 20px; }

.scrolly-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}

.scrolly-phone {
  position: sticky;
  top: max(88px, calc(50vh - var(--pw) * 1.1));
  display: flex;
  justify-content: center;
  padding: 12px 0;
  z-index: 2;
}
.scrolly-phone::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 130%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    var(--accent-soft),
    color-mix(in srgb, var(--accent-soft) 40%, transparent) 38%,
    transparent 68%);
  z-index: -1;
  pointer-events: none;
}
.scrolly-phone .iphone {
  width: var(--pw);
  transform: perspective(1100px) rotateY(var(--tilt, 4deg));
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.scrolly-steps { position: relative; padding-left: 40px; }
.scrolly-steps::before {
  content: "";
  position: absolute;
  left: 5px; top: 0; bottom: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--border);
}
.scrolly-steps::after {
  content: "";
  position: absolute;
  left: 5px; top: 0;
  width: 2px;
  height: var(--rail, 0%);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent-soft);
}

.step {
  position: relative;
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
html.js .step { opacity: 0.3; transition: opacity 0.5s ease; }
html.js .step.active { opacity: 1; }
.step::before {
  content: "";
  position: absolute;
  left: -40px; top: 50%;
  width: 12px; height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 2px solid var(--border-strong);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.step.active::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px 3px var(--accent-soft);
}

.step-num {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.step-num::after {
  content: "";
  height: 1px; width: 36px;
  background: color-mix(in srgb, var(--accent) 45%, transparent);
}
.step h3 { font-size: clamp(1.5rem, 2.2vw + 0.5rem, 2.1rem); margin-bottom: 14px; }
.step p { color: var(--text-2); font-size: 1.02rem; max-width: 46ch; }
.step-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.step-points span {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
}

@media (max-width: 900px) {
  .scrolly { --pw: min(170px, 46vw); /* @kind other */ }
  .scrolly-inner { display: block; }
  .scrolly-phone {
    top: 56px;
    z-index: 6;
    padding: 8px 0 26px;
    background: linear-gradient(180deg, var(--bg-0) 86%, transparent);
  }
  .scrolly-phone::before { display: none; }
  .scrolly-phone .iphone { transform: none; }
  .scrolly-steps { padding-left: 0; margin-top: 10px; }
  .scrolly-steps::before,
  .scrolly-steps::after,
  .step::before { display: none; }
  .step { min-height: 0; padding: 15vh 0 18vh; justify-content: flex-start; }
  .step h3 { font-size: 1.45rem; }
}

/* ============================================================
   Cinema-Layer: editoriales Scroll-Erlebnis mit echten Screenshots
   ============================================================ */

/* Phone-Frames mit echten App-Screenshots (Statusbar & Island im Bild) */
.iphone-real::before { display: none; }
.iphone-real .iphone-screen {
  padding: 0;
  display: block;
  background: #000;
}
.iphone-real .iphone-screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.iphone-real .app-screen::after { display: none; }

/* Szenen aus Screenshots im Scrolly-Phone */
.scene-shot { padding: 0; gap: 0; }
.scene-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Cinematic Hero ---------------------------------------------------- */
.cine-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 110px 0 80px;
}
.cine-hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.cine-hero h1 {
  font-size: clamp(2.9rem, 6.5vw + 1rem, 6.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.cine-hero .lede {
  font-size: clamp(1.02rem, 1.3vw, 1.25rem);
  color: var(--text-2);
  margin: 26px 0 34px;
  max-width: 44ch;
}
.cine-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.cine-hero-visual::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 150%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    var(--accent-soft),
    color-mix(in srgb, var(--accent-soft) 40%, transparent) 36%,
    transparent 66%);
  z-index: -1;
}
.angle-wrap {
  transform: perspective(1300px) rotateY(-15deg) rotateX(4deg) rotate(1.5deg);
}
.cine-hero-visual { --pw: min(320px, 68vw); /* @kind other */ }
.cine-hero-visual .iphone {
  width: min(320px, 68vw);
  animation: iphone-float 7s ease-in-out infinite;
}
.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-family: var(--ff-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.scroll-cue::after {
  content: "";
  width: 1.5px;
  height: 46px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: cue-drop 1.7s ease-in-out infinite;
}
@keyframes cue-drop {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 900px) {
  .cine-hero { min-height: 0; padding: 90px 0 70px; }
  .cine-hero .container { grid-template-columns: 1fr; }
  .cine-hero-visual { margin-top: 20px; --pw: min(250px, 62vw); /* @kind other */ }
  .cine-hero-visual .iphone { width: min(250px, 62vw); }
  .scroll-cue { display: none; }
}

/* --- Scroll-gescrubbter Wort-Reveal ------------------------------------ */
.scrub-section { padding: clamp(80px, 16vh, 190px) 0; }
.scrub-text {
  font-family: var(--ff-display);
  font-weight: 650;
  font-size: clamp(1.65rem, 3.6vw, 3.1rem);
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--text-0);
  max-width: 940px;
}
.scrub-text .w { opacity: 0.15; transition: opacity 0.2s linear; }
.scrub-text .w.on { opacity: 1; }
html:not(.js) .scrub-text .w { opacity: 1; }

/* --- Riesige Feature-Zeilen (Editorial-Stack) --------------------------- */
.mega-rows { border-bottom: 1px solid var(--border); }
.mega-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 30px;
  align-items: center;
  padding: clamp(28px, 4.5vw, 48px) 0;
  border-top: 1px solid var(--border);
}
.mega-row h3 {
  font-size: clamp(1.9rem, 5.4vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.mega-row h3 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mega-row p {
  grid-column: 1;
  color: var(--text-2);
  max-width: 56ch;
  margin-top: 10px;
  font-size: 0.98rem;
}
.mega-row .arrow {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mega-row:hover .arrow { transform: translateX(10px); }
.mega-row.is-open .arrow { transform: rotate(90deg); }
.mega-row.is-open:hover .arrow { transform: rotate(90deg) translateX(10px); }
.mega-row .arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 8px;
}
html.js [data-aos="fade-left"] { transform: translateX(60px); }

/* --- Mega-row: Reveal-Panels mit Screenshot + Highlight-Ring ------------
   Panel-Höhe bleibt IMMER reserviert (kein grid-template-rows-Collapse) -
   beim automatischen Öffnen während des Scrollens darf sich die Dokument-
   höhe nicht ändern, sonst "springt"/"pusht" die Seite unter dem Scroll
   weg. Nur Deckkraft/Unschärfe des Screenshots wechseln. ------------------ */
.mega-row-panel {
  grid-column: 1 / -1;
}
.mega-row-panel-inner { overflow: hidden; }

/* Crossfade nur über opacity/transform — der frühere blur(7px) lief bei
   jedem Auto-Open-Wechsel beim Scrollen durch die Sektion (teuer in Safari). */
.mega-row-shot {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: clamp(24px, 4vw, 40px);
  opacity: 0.14;
  transform: translateY(10px) scale(0.97);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.mega-row.is-open .mega-row-shot { opacity: 1; transform: none; }
.mega-row-shot .iphone { width: var(--pw, min(220px, 58vw)); }

/* Ambient Glow hinter dem Phone, gleiches Muster wie .cine-hero-visual::before */
.mega-row-shot::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 130%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    var(--accent-soft),
    color-mix(in srgb, var(--accent-soft) 40%, transparent) 36%,
    transparent 66%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.mega-row.is-open .mega-row-shot::before { opacity: 1; }

/* Highlight-Ringe temporär deaktiviert — Spans + Koordinaten bleiben im
   HTML erhalten. Reaktivierung: diese Regel entfernen, siehe BACKLOG.md
   („Mega-Row-Highlight-Ringe deaktiviert"). */
.mega-row-ring { display: none; }

.mega-row-ring {
  position: absolute;
  left: var(--hx, 50%);
  top: var(--hy, 50%);
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 0 var(--accent-soft);
  opacity: 0;
  pointer-events: none;
}
.mega-row.is-open .mega-row-ring {
  animation:
    mega-ring-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards,
    mega-ring-pulse 2.2s ease-in-out 1.05s infinite;
}
@keyframes mega-ring-in {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes mega-ring-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); }
  50% { box-shadow: 0 0 0 12px transparent; }
}

@media (max-width: 700px) {
  .mega-row-shot .iphone { width: min(190px, 56vw); }
}

/* --- Showcase: Phone-Trio mit Scroll-Parallax --------------------------- */
.showcase {
  position: relative;
  padding: clamp(70px, 12vh, 150px) 0;
  overflow: hidden;
}
.showcase::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 70%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    var(--accent-soft),
    color-mix(in srgb, var(--accent-soft) 40%, transparent) 38%,
    transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.showcase-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 4vw, 46px);
}
.showcase { --pw: clamp(190px, 24vw, 290px); /* @kind other */ }
.showcase .iphone {
  width: clamp(190px, 24vw, 290px);
  animation: none;
}
.side { --pw: clamp(140px, 18vw, 220px); /* @kind other */ }
.showcase .side .iphone {
  width: clamp(140px, 18vw, 220px);
  opacity: 0.9;
}
.showcase [data-tilt] {
  transform: perspective(1200px) rotateY(calc(var(--sp, 0) * -14deg));
}
@media (max-width: 700px) {
  .showcase { --pw: min(240px, 60vw); /* @kind other */ }
  .showcase .side { display: none; }
  .showcase .iphone { width: min(240px, 60vw); }
}

/* --- Riesige Wortmarke vor dem Footer ----------------------------------- */
.wordmark-band {
  overflow: hidden;
  padding: clamp(60px, 10vh, 130px) 0 0;
  text-align: center;
  user-select: none;
  pointer-events: none;
}
.wordmark {
  /* inline-block: Breite = Textbreite (zentriert übers Band) — nur so kann
     der JS-Fitter die echte Breite messen, und der xPercent-Slide skaliert
     mit dem Text statt mit dem Band */
  display: inline-block;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(4.5rem, 19vw, 19rem);
  line-height: 0.84;
  letter-spacing: -0.04em;
  white-space: nowrap;
  margin-bottom: -0.08em;
  background: linear-gradient(180deg, var(--accent) -15%, var(--accent-2) 40%, transparent 94%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wordmark.long { font-size: clamp(2.6rem, 11.5vw, 11.5rem); }
/* CSS-Fallback ohne JS für die 9-Zeichen-Marke (JS-Fitter übersteuert) */
.wordmark-tight { font-size: clamp(3.4rem, 14.6vw, 14.6rem); }

@media (prefers-reduced-motion: reduce) {
  .scrub-text .w { opacity: 1; }
  .showcase [data-tilt] { transform: none; }
  .scroll-cue { display: none; }
  .mega-row-panel { transition: none; }
  .mega-row-shot { transition: none; opacity: 1; transform: none; filter: none; }
  .mega-row.is-open .mega-row-ring { animation: none; opacity: 1; }
  .mega-row .arrow { transition: none; }
}

/* ============================================================
   CINE-LAYER — aktiv wenn motion.js html.cine setzt
   (GSAP + ScrollTrigger + Lenis: 3D-Rigs, Pins, Zoom, Cursor)
   ============================================================ */

/* Lenis übernimmt das Smooth-Scrolling */
html.cine { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* Char-Split-Typografie (Zeilenumbruch bleibt wortweise) */
.char-split .cw { display: inline-block; white-space: nowrap; }
.char-split .ch {
  display: inline-block;
  will-change: transform;
  backface-visibility: hidden;
}

/* --- 3D-iPhone-Rig ------------------------------------------------------ */
.ip3d {
  position: relative;
  perspective: 1500px;
  width: fit-content;
  margin-inline: auto;
}
.ip3d-body {
  position: relative;
  z-index: 1;
  width: fit-content;
  transform-style: preserve-3d;
  will-change: transform;
}
.ip3d-body > .iphone { position: relative; z-index: 2; }
.ip3d-slice,
.ip3d-back {
  position: absolute;
  inset: 0;
  border-radius: 40px;
  pointer-events: none;
}
/* Gehäusetiefe: gestapelte Scheiben mit Metallkante */
.ip3d-slice {
  background: #0c0c11;
  box-shadow: inset 0 0 0 1.5px #40404c;
}
.ip3d-back {
  background: linear-gradient(155deg, #1b1b22, #0a0a0e 65%);
  box-shadow: inset 0 0 0 2px #32323c, inset 0 0 44px rgba(0, 0, 0, 0.65);
}
/* Wandernder Screen-Glare, folgt der Rotation (--gx via JS).
   Transform-basiert statt background-position: bleibt auf dem
   Compositor und erzwingt keine Repaints pro Scroll-Frame. */
.ip3d-glare {
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.ip3d-glare::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 260%;
  background: linear-gradient(100deg,
    transparent 42%,
    rgba(255, 255, 255, 0.13) 47%,
    rgba(255, 255, 255, 0.03) 52%,
    transparent 57%);
  transform: translateX(var(--gx, -30%));
  will-change: transform;
  mix-blend-mode: screen;
}
/* Bodenschatten, verschiebt & staucht sich mit der Rotation.
   Weichheit im Gradient-Verlauf statt filter: blur() — dieser Schatten
   wird bei jedem Rig-Update (Scroll-Scrub, teils über die volle
   Showcase-Sektion) transformiert; ein Blur-Filter hätte hier dieselben
   Repaint-Kosten wie früher bei den Aurora-Orbs verursacht. */
.ip3d-shadow {
  position: absolute;
  left: 50%;
  bottom: -46px;
  width: 84%;
  height: 34px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.24) 38%,
    transparent 72%);
  transform: translateX(calc(-50% + var(--sx, 0px))) scaleX(var(--ss, 1));
}

/* Statische Transforms weichen dem Rig */
html.cine .angle-wrap { transform: none; }
html.cine .scrolly-phone .iphone { transform: none; transition: none; }
html.cine .showcase [data-tilt] { transform: none; }

/* Mobile-Tour: Sticky-Phone kompakt halten (kein Bodenschatten,
   der unter dem Phone-Header in die Steps ragen würde) */
@media (max-width: 900px) {
  .scrolly-phone .ip3d-shadow { display: none; }
}

/* Hero-Phone: Float wandert vom .iphone auf das Rig-Innere,
   damit Rotation (Body) und Schweben sich sauber überlagern */
html.cine .cine-hero-visual .iphone { animation: iphone-float 7s ease-in-out infinite; }

/* --- Showcase als Tiefen-Bühne ------------------------------------------ */
html.cine .showcase-inner { perspective: 1400px; }
html.cine .showcase .side .iphone {
  opacity: 0.85;
  filter: brightness(0.72) saturate(0.92);
}
html.cine .showcase .side:first-child .iphone { transform: rotateY(20deg); }
html.cine .showcase .side:last-child .iphone { transform: rotateY(-20deg); }

/* --- Gepinnter Scrub-Text ------------------------------------------------ */
html.cine .scrub-section {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 0;
}
html.cine .scrub-text .w { transition: none; opacity: 1; }

/* --- Mega-Row: Outline-Text füllt sich beim Scrollen ---------------------
   Compositor-only: gedimmte Basis + helle Kopie in einem overflow-hidden-
   Fenster; motion.js scrubbt Fenster und Kopie gegenläufig (xPercent), der
   Text steht still, nur die Fensterkante wandert. Die frühere background-
   position-Animation auf background-clip:text hat die Display-Headlines
   bei jedem Scroll-Frame neu gerastert — Haupt-Repaint-Quelle der Seite.
   Die em-Elemente behalten in beiden Kopien ihren Akzent-Verlauf und sind
   dadurch deckungsgleich (wie vorher: immer „gefüllt"). */
.fillscrub {
  position: relative;
  color: rgba(255, 255, 255, 0.13);
}
.fillscrub .fill-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.fillscrub .fill-inner {
  display: block;
  color: var(--text-0);
}

/* --- Zoom-Stage: in den Screen eintauchen -------------------------------- */
.zoom { position: relative; }
.zoom-inner {
  position: relative;
  padding: 100px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 46px;
}
.zoom-rig { position: relative; width: fit-content; }
.zoom-rig .iphone { width: min(300px, 66vw); }
@media (max-width: 700px) {
  .zoom-rig .iphone { width: min(230px, 56vw); }
}
.zoom-copy { text-align: center; max-width: 760px; }
.zoom-copy-a h2 {
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.zoom-copy-a h2 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.zoom-copy-b p {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  line-height: 1.3;
  color: #fff;
  max-width: 26ch;
  margin-inline: auto;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65), 0 8px 40px rgba(0, 0, 0, 0.5);
}
.zoom-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(0deg,
    rgba(0, 0, 0, 0.78),
    rgba(0, 0, 0, 0.3) 36%,
    transparent 62%);
}
.zoom-exit {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  background: var(--bg-0);
}
html.cine .zoom { overflow: clip; }
html.cine .zoom-inner {
  height: 100svh;
  padding: 0 24px;
  justify-content: center;
  gap: clamp(18px, 3.5vh, 44px);
}
/* Copy A bleibt im Flow ÜBER dem Phone (kollisionsfrei in flachen
   Fenstern); das Phone ist zusätzlich über vh gedeckelt, damit
   Headline + Gerät zusammen immer in den Viewport passen. */
html.cine .zoom-copy-a { position: relative; z-index: 2; }
html.cine .zoom-rig .iphone { width: min(300px, 62vw, 27vh); }
html.cine .zoom-copy-b {
  position: absolute;
  bottom: clamp(44px, 11vh, 120px);
  left: 0;
  right: 0;
  margin-inline: auto;
  padding-inline: 24px;
  z-index: 4;
}
html.cine .zoom-rig { will-change: transform; }

/* --- Hub-Hero: 3-Phone-Bühne im Raum ------------------------------------- */
.hero-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: clamp(40px, 8vh, 84px);
  perspective: 1600px;
  transform-style: preserve-3d;
  pointer-events: none;
}
.hs-phone { transform-style: preserve-3d; }
.hs-pose { transform-style: preserve-3d; }
.hs-phone .iphone { width: clamp(150px, 20vw, 240px); }
.hs-center { position: relative; }
.hs-center .hs-pose { transform: translateZ(85px); }
.hs-left,
.hs-right { margin-top: 46px; }
.hs-left { margin-right: -6.5%; }
.hs-right { margin-left: -6.5%; }
.hs-left .hs-pose { transform: rotateY(27deg) translateZ(-60px); }
.hs-right .hs-pose { transform: rotateY(-27deg) translateZ(-60px); }
.hs-left .iphone,
.hs-right .iphone { filter: brightness(0.78) saturate(0.94); }
.hs-phone .iphone { animation: iphone-float 7.5s ease-in-out infinite; }
.hs-left .iphone { animation-delay: -2.6s; }
.hs-right .iphone { animation-delay: -4.8s; }
@media (max-width: 700px) {
  .hs-phone .iphone { width: clamp(110px, 30vw, 160px); }
  .hs-left { margin-right: -10%; }
  .hs-right { margin-left: -10%; }
}

/* --- Page-Veil (Seitenübergänge) ------------------------------------------ */
.page-veil {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
  transform: scaleY(0);
  transform-origin: top;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.page-veil-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #22c55e, #f59e0b);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.5);
}

/* --- Größere Bühne für Headlines im Cine-Modus ---------------------------- */
html.cine .cine-hero h1 {
  font-size: clamp(2.9rem, 6vw + 1rem, 6.5rem);
  line-height: 0.98;
}
html.cine .hero h1 {
  font-size: clamp(2.7rem, 5.2vw + 1rem, 5.4rem);
  line-height: 1.02;
  max-width: 17ch;
}
