/* =========================================================
   Bewegung und Interaktion (liegt ueber theme.css):
   interaktiver Einstieg (Karte tippt ans Handy), Laufband,
   Glanz auf Glas, Woerter steigen auf, Handys schweben.
   Bei prefers-reduced-motion: alles ruhig, Inhalt bleibt sichtbar.
   ========================================================= */

/* ---------- Einstieg ---------- */

.hero2 {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: calc(max(14px, env(safe-area-inset-top)) + 88px) var(--m) 56px;
}
@media (min-width: 960px) {
  .hero2 { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); min-height: min(100svh, 980px); padding-bottom: 72px; }
}
.hero2__text { display: grid; gap: 22px; max-width: 680px; }
.hero2__eyebrow {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px;
  min-height: 36px; padding: 0 16px; border-radius: 999px;
  background: var(--glass-bg); box-shadow: var(--glass-edge);
  -webkit-backdrop-filter: blur(8px) saturate(125%); backdrop-filter: blur(8px) saturate(125%);
  font-size: 14px; font-weight: 500;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(138, 227, 216, .6); animation: dot 2.4s ease-out infinite; } /* taste-skill-ignore: Puls */
@keyframes dot { 0% { box-shadow: 0 0 0 0 rgba(138, 227, 216, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(138, 227, 216, 0); } } /* taste-skill-ignore: Puls */
.hero2__h1 { font-size: clamp(44px, 7.4vw, 112px); font-weight: 700; line-height: .95; letter-spacing: -.055em; }
.hero2__h1 em { font-style: normal; font-weight: 300; color: var(--sky-ink); }

/* Buehne */
.stage {
  --mx: 0; --my: 0;
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 5 / 6;
  justify-self: center;
  perspective: 1200px;
}
.stage__rings { position: absolute; left: 58%; top: 46%; width: 0; height: 0; pointer-events: none; }
.stage__rings::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 420px; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(120, 200, 255, .34), rgba(60, 140, 230, .14) 55%, transparent); /* taste-skill-ignore: Licht wie Waitlist-Szene */
}
.stage__rings i { position: absolute; left: 0; top: 0; width: 300px; height: 300px; margin: -150px 0 0 -150px; border: 1.5px solid rgba(143, 211, 255, .5); border-radius: 50%; opacity: 0; }
.stage.is-ping .stage__rings i { animation: ping 1.4s var(--ease) forwards; }
.stage.is-ping .stage__rings i:nth-child(2) { animation-delay: .12s; }
.stage.is-ping .stage__rings i:nth-child(3) { animation-delay: .24s; }
@keyframes ping { from { opacity: .9; transform: scale(.35); } to { opacity: 0; transform: scale(1.5); } }

/* Handy */
.hphone {
  position: absolute; left: 58%; top: 46%;
  width: min(62%, 300px); aspect-ratio: 9 / 19;
  translate: -50% -50%;
  transform: rotateY(calc(var(--mx) * -8deg)) rotateX(calc(var(--my) * 6deg)) rotate(6deg);
  transition: transform .6s var(--ease);
  padding: 10px; border-radius: 44px;
  background: #0E0F11;
  box-shadow: inset 0 0 0 2px #2E3136, inset 0 0 0 4px #0E0F11, 0 40px 80px -20px rgba(0, 4, 16, .7); /* taste-skill-ignore: Geraetekante */
}
.hphone::before { content: ""; position: absolute; left: 50%; top: 18px; z-index: 3; width: 30%; height: 22px; translate: -50% 0; border-radius: 999px; background: #000; }
.hphone__screen {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 44px 16px 16px; border-radius: 34px; overflow: hidden;
  background: radial-gradient(120% 80% at 30% 0%, #1E5FA8 0%, #123B6B 45%, #0A1A2E 100%); /* taste-skill-ignore: Homescreen */
  color: #FFFFFF;
  transition: filter .5s var(--ease);
}
.hphone__time { text-align: center; font-size: 42px; font-weight: 600; letter-spacing: -.04em; line-height: 1; margin: 8px 0 18px; }
.hphone__apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 10px; }
.happ { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 26%; color: #FFFFFF; transition: transform .5s var(--ease), filter .5s var(--ease), opacity .5s; transition-delay: calc(var(--n) * 40ms); }
.happ svg { width: 52%; height: 52%; }
.happ--coral { background: linear-gradient(145deg, #FF8A7A, #E2574C); } /* taste-skill-ignore: App-Icon */
.happ--pink { background: linear-gradient(145deg, #FF8FC7, #D9468F); } /* taste-skill-ignore: App-Icon */
.happ--sun { background: linear-gradient(145deg, #FFD36E, #F29A2E); } /* taste-skill-ignore: App-Icon */
.happ--jade { background: linear-gradient(145deg, #6FE3B4, #22A67A); } /* taste-skill-ignore: App-Icon */
.happ--indigo { background: linear-gradient(145deg, #9B8CFF, #5B4BD6); } /* taste-skill-ignore: App-Icon */
.happ--sky { background: linear-gradient(145deg, #8FD3FF, #3B8FD9); } /* taste-skill-ignore: App-Icon */
.happ__lock { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; background: rgba(6, 16, 31, .62); opacity: 0; transform: scale(.6); transition: opacity .4s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--n) * 50ms); }
.happ__lock svg { width: 46%; height: 46%; color: #FFFFFF; }
.hphone__status { display: grid; gap: 2px; margin-top: 22px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); text-align: center; } /* taste-skill-ignore: Glas */
.hphone__state { font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.hphone__hint { font-size: 12px; color: rgba(255, 255, 255, .7); }

.stage.is-locked .happ { filter: grayscale(.85) brightness(.7); transform: scale(.92); }
.stage.is-locked .happ__lock { opacity: 1; transform: none; }
.stage.is-locked .hphone__state { color: var(--sky-ink); }

/* Karte */
.stage__card {
  position: absolute; left: -2%; bottom: 0;
  width: 58%; padding: 0; border: 0; background: none; cursor: pointer;
  transform: translate(calc(var(--mx) * 14px), calc(var(--my) * 10px)) rotate(calc(-14deg + var(--mx) * 4deg));
  transition: transform .7s var(--ease);
  filter: drop-shadow(0 30px 40px rgba(0, 4, 16, .6)); /* taste-skill-ignore: Schatten unter der Karte wie Waitlist */
  -webkit-tap-highlight-color: transparent;
  border-radius: 24px;
}
.stage__card img { width: 100%; }
.stage__card:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 6px; }
@media (hover: hover) { .stage__card:hover { transform: translate(calc(var(--mx) * 14px), calc(var(--my) * 10px - 8px)) rotate(calc(-11deg + var(--mx) * 4deg)); } }
.stage.is-tapping .stage__card { transform: translate(40%, -52%) rotate(-2deg) scale(.9); transition-duration: .45s; }

.stage__tip { position: absolute; left: 4%; bottom: -9%; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--soft); }
.stage__tip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky-ink); animation: dot 2s ease-out infinite; }

@media (prefers-reduced-motion: no-preference) {
  .stage:not(.is-tapping) .stage__card img { animation: hover-card 6s ease-in-out infinite; }
  @keyframes hover-card { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
}

/* ---------- Laufband ---------- */

.marquee { overflow: hidden; padding: 18px 0; border-block: 1px solid var(--hair); }
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-size: clamp(22px, 3vw, 36px); font-weight: 700; letter-spacing: -.04em; white-space: nowrap; }
.marquee span:nth-of-type(even) { font-weight: 300; color: var(--sky-ink); }
.marquee i { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (hover: hover) { .marquee:hover .marquee__track { animation-play-state: paused; } }

/* ---------- Woerter steigen auf ---------- */

.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; }
.js-split .w > span { transform: translateY(105%); }
.js-split.is-split .w > span { transform: none; transition: transform 1s var(--ease); transition-delay: calc(var(--wi) * 55ms + 80ms); }

/* ---------- Glanz auf Glas, folgt der Maus ---------- */

.card::after, .tile::after, .study::after, .chest::after, .ticket::after, .stats li::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(280px circle at var(--sx, 50%) var(--sy, 0%), rgba(255, 255, 255, .16), rgba(255, 255, 255, .04) 48%, transparent 74%); /* taste-skill-ignore: Glanz auf Glas wie Waitlist */
  opacity: 0; transition: opacity .4s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover::after, .tile:hover::after, .study:hover::after, .chest:hover::after, .ticket:hover::after, .stats li:hover::after { opacity: 1; }
  .card, .study, .chest { transition: transform .5s var(--ease); }
  .card:hover, .study:hover, .chest:hover { transform: translateY(-4px); }
}

/* ---------- Mockups schweben ---------- */

@media (prefers-reduced-motion: no-preference) {
  .mock-wrap .phone { animation: phone-float 7s ease-in-out infinite; }
  .mock-row .mock-wrap:nth-child(2) .phone, .split--flip .mock-wrap .phone { animation-delay: -3.5s; }
  @keyframes phone-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
  .chest__box { animation: chest-bob 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
  .chest--epic .chest__box { animation-delay: -1s; }
  .chest--legend .chest__box { animation-delay: -2s; }
  @keyframes chest-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-3deg); } }
  .chest:hover .chest__box::before { transform: translateY(-8px) rotate(-8deg); }
  .chest__box::before { transition: transform .4s var(--ease); }
  .pool__bar span { animation: grow 1.2s var(--ease) both; transform-origin: left; }
  .pool__bar span:nth-child(2) { animation-delay: .1s; } .pool__bar span:nth-child(3) { animation-delay: .2s; } .pool__bar span:nth-child(4) { animation-delay: .3s; }
  @keyframes grow { from { transform: scaleX(0); } }
}

.stats li > * { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding: 0 var(--m); }
  .js-split .w > span { transform: none; }
  .dot, .stage__tip-dot { animation: none; }
}

.stage { margin-bottom: 36px; }

/* Plan-B-Linie: Punkt am Ziel pulsiert */
@media (prefers-reduced-motion: no-preference) {
  .chart circle { transform-box: fill-box; transform-origin: center; animation: goal 2.4s ease-in-out infinite; }
  @keyframes goal { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }
}
