/* ===========================================
   Variante B — Effects
   =========================================== */

/* --- Aurora (dezent, auf Hero maskiert) --- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: var(--aurora-opacity);
  transition: opacity .5s ease;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 70%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 70%);
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
}

.aurora-blob--1 {
  width: 80vw; height: 60vh;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--primary) 40%, white) 0%, transparent 70%);
  top: -20%; left: -10%;
  animation: aurora1 100s ease-in-out infinite;
}

.aurora-blob--2 {
  width: 70vw; height: 55vh;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--secondary) 35%, white) 0%, transparent 70%);
  top: 10%; right: -20%;
  animation: aurora2 120s ease-in-out infinite;
}

@keyframes aurora1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10vw, 8vh) scale(1.08); }
}

@keyframes aurora2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-12vw, 6vh) scale(1.05); }
}

/* --- Light Sweep (einmalig) --- */
.light-sweep {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.light-sweep::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(115deg,
    transparent 30%, var(--sweep-color) 50%, transparent 70%);
  animation: sweep 2.4s cubic-bezier(0.2,0.8,0.2,1) 0.3s both;
}

@keyframes sweep {
  from { left: -100%; }
  to { left: 200%; }
}

/* --- 3D Tilt (sanft) --- */
.tilt-card {
  perspective: 1200px;
}

.tilt-inner {
  transition: transform 400ms cubic-bezier(0.2,0.8,0.2,1);
  transform-style: preserve-3d;
  position: relative;
}

.tilt-reflection {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease;
  z-index: 2;
}

.tilt-card:hover .tilt-reflection { opacity: 1; }

/* --- Scroll Reveal (sanft) --- */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 900ms cubic-bezier(0.16,1,0.3,1),
              transform 900ms cubic-bezier(0.16,1,0.3,1);
}

.reveal--in {
  opacity: 1;
  transform: translateY(0);
}

[data-stagger] > .reveal {
  transition-delay: calc(var(--i, 0) * 120ms);
}

/* --- Conic hover (pills only) --- */
.pill-glow {
  position: relative;
}
.pill-glow:hover::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle),
    var(--primary), var(--secondary), var(--accent), var(--primary));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin 12s linear infinite;
  pointer-events: none;
}

@keyframes spin { to { --angle: 360deg; } }

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .aurora-blob { animation: none !important; }
  .light-sweep::after { animation: none !important; opacity: 0; }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .pill-glow:hover::before { animation: none !important; }
}
