.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(214,154,58,.20), transparent 28%),
    linear-gradient(90deg, rgba(5,4,3,1), rgba(5,4,3,.82), rgba(5,4,3,1));
  backdrop-filter: blur(0);
}
.page-transition::before {
  content: "";
  position: absolute;
  top: -25%;
  left: -40%;
  width: 36%;
  height: 150%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,231,170,.08), rgba(214,154,58,.55), rgba(255,231,170,.14), transparent);
  filter: blur(2px);
}
.transition-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(.96);
  font-weight: 900;
  letter-spacing: 9px;
  font-size: clamp(22px, 3vw, 46px);
  color: rgba(255,236,205,.9);
  text-shadow: 0 0 35px rgba(214,154,58,.46);
  opacity: 0;
}
body.is-leaving main, body.is-leaving footer {
  animation: contentLeave .42s ease forwards;
}
.page-transition.active {
  animation: premiumOverlay .56s cubic-bezier(.65,0,.35,1) forwards;
}
.page-transition.active::before {
  animation: goldSweep .56s cubic-bezier(.65,0,.35,1) forwards;
}
.page-transition.active .transition-title {
  animation: titleFlash .56s ease forwards;
}
.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(8px);
  transition: .75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
@keyframes premiumOverlay {
  0% { opacity: 0; backdrop-filter: blur(0); }
  35% { opacity: 1; backdrop-filter: blur(5px); }
  100% { opacity: 1; backdrop-filter: blur(9px); }
}
@keyframes goldSweep {
  0% { left: -45%; opacity: 0; }
  18% { opacity: 1; }
  100% { left: 114%; opacity: 0; }
}
@keyframes titleFlash {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(.92); filter: blur(9px); }
  45% { opacity: 1; transform: translate(-50%,-50%) scale(1); filter: blur(0); }
  100% { opacity: .38; transform: translate(-50%,-50%) scale(1.03); filter: blur(2px); }
}
@keyframes contentLeave {
  from { opacity: 1; transform: scale(1); filter: blur(0); }
  to { opacity: 0; transform: scale(.985); filter: blur(9px); }
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 12px rgba(88,255,141,0); }
  100% { box-shadow: 0 0 0 0 rgba(88,255,141,0); }
}
@keyframes rotateGlow {
  to { transform: rotate(360deg); }
}


/* V3 transition: branded orange shutter */
.page-transition {
  background:
    radial-gradient(circle at 50% 48%, rgba(255,107,0,.22), transparent 30%),
    linear-gradient(90deg, rgba(3,3,3,1), rgba(10,5,2,.90), rgba(3,3,3,1));
}

.page-transition::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(255,107,0,.22) 48%, transparent 55%),
    repeating-linear-gradient(90deg, rgba(255,107,0,.08) 0 1px, transparent 1px 90px);
  opacity: 0;
}

.page-transition.active::after {
  animation: scanGlow .56s ease forwards;
}

@keyframes scanGlow {
  0% { opacity: 0; transform: translateX(-6%); }
  45% { opacity: 1; }
  100% { opacity: 0; transform: translateX(6%); }
}


/* =========================================================
   WOODSTONE LAUNCH SOON HARD FIX
   Entfernen: in index.html nach data-remove-when-live suchen und beide Blöcke löschen.
   ========================================================= */

/* Alle alten Launch-Soon Varianten sicher deaktivieren */
.launch-soon-badge,
.launch-soon-premium {
  display: none !important;
}

/* Neuer cleaner Launch-Soon Stil */
.ws-launch-label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: max-content !important;
  max-width: 100% !important;
  padding: 7px 15px !important;
  margin: 0 auto 20px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  color: #f4c170 !important;
  background: rgba(0,0,0,.28) !important;
  border: 1px solid rgba(244,193,112,.34) !important;
  box-shadow: 0 0 18px rgba(255,107,0,.12) !important;
  text-shadow: none !important;
  backdrop-filter: blur(8px) !important;
}

.ws-launch-label::before,
.ws-launch-label::after {
  content: "" !important;
  width: 22px !important;
  height: 1px !important;
  margin: 0 10px !important;
  background: linear-gradient(90deg, transparent, rgba(244,193,112,.75), transparent) !important;
}

/* Intro sauber zentriert */
.intro .ws-launch-label,
.clean-intro .ws-launch-label {
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 20px !important;
}

/* Normale Startseite unter Community-Badge */
.hero-content .ws-launch-label-hero {
  margin: 12px 0 18px !important;
}

@media (max-width:720px) {
  .ws-launch-label {
    font-size: 10px !important;
    letter-spacing: 2.2px !important;
    padding: 7px 12px !important;
  }

  .ws-launch-label::before,
  .ws-launch-label::after {
    width: 16px !important;
    margin: 0 8px !important;
  }
}
