/* ===== ANIMATIONS & TRANSITIONS — Nettes Deutsch ===== */

/* ===== SCROLL-TRIGGERED REVEALS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== STAGGER DELAYS FOR CARD GRIDS ===== */
.stagger > *:nth-child(1) {
  transition-delay: 0s;
}

.stagger > *:nth-child(2) {
  transition-delay: 0.1s;
}

.stagger > *:nth-child(3) {
  transition-delay: 0.2s;
}

.stagger > *:nth-child(4) {
  transition-delay: 0.3s;
}

.stagger > *:nth-child(5) {
  transition-delay: 0.4s;
}

.stagger > *:nth-child(6) {
  transition-delay: 0.5s;
}

/* ===== HERO ENTRANCE ANIMATION ===== */
@keyframes heroTitleIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  animation: heroTitleIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-cards {
  animation: heroTitleIn 0.9s 0.3s ease forwards;
  opacity: 0;
}

.hero-btns {
  animation: heroTitleIn 0.9s 0.55s ease forwards;
  opacity: 0;
}

/* ===== PULSING GLOW BUTTON ===== */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 8px 30px var(--red-glow);
  }
  50% {
    box-shadow: 0 8px 55px rgba(232, 50, 58, 0.7);
  }
}

/* ===== FADE IN ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* ===== SCALE IN ===== */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scale-in {
  animation: scaleIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ===== SLIDE UP ===== */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 0.6s ease forwards;
}

/* ===== FLOAT ANIMATION ===== */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float {
  animation: float 3s ease-in-out infinite;
}

/* ===== GENTLE BOUNCE ===== */
@keyframes gentleBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.gentle-bounce {
  animation: gentleBounce 2s ease-in-out infinite;
}

/* ===== SMOOTH TRANSITIONS ===== */
.smooth-transition {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== HOVER EFFECTS ===== */
.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

.hover-grow {
  transition: transform 0.25s ease;
}

.hover-grow:hover {
  transform: scale(1.05);
}

/* ===== LOADING SPINNER ===== */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  animation: spin 1s linear infinite;
}

/* ===== TEXT SHIMMER ===== */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    currentColor 0%,
    rgba(255,255,255,0.8) 50%,
    currentColor 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
}

/* ===== DELAYED REVEALS ===== */
.delay-100 { transition-delay: 0.1s !important; }
.delay-200 { transition-delay: 0.2s !important; }
.delay-300 { transition-delay: 0.3s !important; }
.delay-400 { transition-delay: 0.4s !important; }
.delay-500 { transition-delay: 0.5s !important; }
