/* ==========================================================================
   Probefahrt – cooleres Karussell + kleine Freuden (Easter Eggs)
   Rein additiv: greift nur visuell/über injizierte Elemente, fasst die
   bestehende Karussell-Logik nicht an. reduced-motion-sicher.
   ========================================================================== */

.probefahrt-page {
  --pf-accent: #7e9aff;
  --pf-accent-2: #6ad7b8;
  --pf-glow: rgba(95, 122, 216, 0.30);
}

/* --- Karussell: cinematischer Rand-Fade (Tiefe) -------------------------- */
.probefahrt-carousel__viewport {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

/* --- Sanfter Akzent-Spotlight hinter dem Bike ---------------------------- */
.probefahrt-bike img { position: relative; z-index: 1; }
.probefahrt-bike::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 86%;
  height: 76%;
  transform: translate(-50%, -50%) scale(0.9);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--pf-glow), transparent 72%);
  filter: blur(6px);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 0;
}
.probefahrt-bike:hover::before,
.probefahrt-bike:focus-visible::before,
.probefahrt-bike.is-selected::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.06);
}
/* Bodenschatten beim Hover etwas satter */
.probefahrt-bike:hover::after,
.probefahrt-bike.is-selected::after { width: 64%; filter: blur(6px); }

/* --- Apple-Style Hero: clean, hell, luftig ------------------------------- */
.probefahrt-page .probefahrt-hero {
  background:
    radial-gradient(60% 46% at 50% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 55%, #ededf0 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
/* Weiche, realistische Kontaktschatten unter dem Bike (Apple-typisch) */
.probefahrt-page .probefahrt-bike::after {
  background: radial-gradient(ellipse at center, rgba(20, 24, 33, 0.22) 0%, rgba(20, 24, 33, 0.08) 52%, rgba(20, 24, 33, 0) 100%);
}

/* --- Sanftes Licht von oben (injiziert: .pf-aurora) ---------------------- */
.pf-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(46% 38% at 50% 2%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 62%);
  opacity: 0.85;
}
.probefahrt-hero { position: relative; }
.probefahrt-hero > * { position: relative; z-index: 1; }
@keyframes pfAuroraPulse {
  from { opacity: 0.78; transform: scale(1); }
  to   { opacity: 1; transform: scale(1.05); }
}

/* --- Freundliche, wechselnde Mikrocopy (injiziert: .pf-cheer) ------------- */
/* Bewusst zurückgenommen: feine, kursive Randnotiz statt lauter blauer Headline. */
.pf-cheer {
  text-align: center;
  margin: 14px auto 0;
  max-width: 46ch;
  font-size: 0.9rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
  color: #8b90a0;
  min-height: 1.4em;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.pf-cheer.is-swap { opacity: 0; transform: translateY(6px); }

/* --- Sparkles beim Antippen eines Bikes (injiziert) ---------------------- */
.pf-spark {
  position: fixed;
  z-index: 2147483000;
  pointer-events: none;
  font-size: 18px;
  will-change: transform, opacity;
  animation: pfSparkUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes pfSparkUp {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -160%) scale(1.1); }
}

/* --- Konfetti (injiziert: .pf-confetti > .pf-confetti__piece) ------------- */
.pf-confetti {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  pointer-events: none;
  overflow: hidden;
}
.pf-confetti__piece {
  position: absolute;
  top: -16px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  will-change: transform, opacity;
  animation: pfConfettiFall var(--pf-dur, 2.6s) cubic-bezier(0.2, 0.6, 0.3, 1) var(--pf-delay, 0s) forwards;
}
@keyframes pfConfettiFall {
  0% { transform: translateY(-10vh) rotateZ(0deg) rotateY(0deg); opacity: 1; }
  100% { transform: translateY(108vh) rotateZ(720deg) rotateY(360deg); opacity: 0.9; }
}

/* --- Geheim-Banner (Konami) ---------------------------------------------- */
.pf-secret {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(120%);
  z-index: 2147483600;
  background: linear-gradient(120deg, var(--pf-accent), var(--pf-accent-2));
  color: #0a0d18;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 14px 40px -12px var(--pf-glow);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.pf-secret.is-visible { transform: translateX(-50%) translateY(0); }
.pf-wheelie { animation: pfWheelie 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes pfWheelie {
  0% { transform: rotate(0); }
  35% { transform: rotate(-9deg) translateY(-8px); }
  70% { transform: rotate(4deg); }
  100% { transform: rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
  .pf-aurora { animation: none; }
  .pf-confetti, .pf-spark, .pf-wheelie { animation: none !important; }
  .probefahrt-bike::before { transition: opacity 0.2s ease; }
}
