:root { --primary: #16A34A; --primary-dark: #15803D; }

/* Hero entrance base states */
.hero-badge, .hero-h1, .hero-sub, .hero-list, .hero-cta {
  opacity: 0;
  transform: translateY(20px);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s cubic-bezier(.25,.46,.45,.94), transform 0.65s cubic-bezier(.25,.46,.45,.94);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

.service-card:nth-child(2) { transition-delay: 0.08s; }
.service-card:nth-child(3) { transition-delay: 0.16s; }
.service-card:nth-child(4) { transition-delay: 0.24s; }
.service-card:nth-child(5) { transition-delay: 0.08s; }
.service-card:nth-child(6) { transition-delay: 0.16s; }
.service-card:nth-child(7) { transition-delay: 0.24s; }
.service-card:nth-child(8) { transition-delay: 0.32s; }

.testimonial-card:nth-child(2) { transition-delay: 0.1s; }
.testimonial-card:nth-child(3) { transition-delay: 0.2s; }
.testimonial-card:nth-child(4) { transition-delay: 0.05s; }
.testimonial-card:nth-child(5) { transition-delay: 0.15s; }
.testimonial-card:nth-child(6) { transition-delay: 0.25s; }

/* FAQ body transition */
.faq-body { transition: max-height 0.3s ease; }

/* Sorglos car idle float (after drive-in) */
@keyframes floatCar {
  0%,100% { transform: translateX(0) translateY(0px); }
  50% { transform: translateX(0) translateY(-10px); }
}
.car-idle { animation: floatCar 4s ease-in-out infinite; }

/* Icon entrance bounce */
@keyframes iconBounceIn {
  0%   { transform: scale(0.4) translateY(10px); opacity: 0; }
  60%  { transform: scale(1.15) translateY(-4px); opacity: 1; }
  80%  { transform: scale(0.95) translateY(2px); }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Continuous float */
@keyframes iconFloat {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-5px); }
}

/* Icon pop on hover */
@keyframes iconPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.22); }
  100% { transform: scale(1); }
}

/* Warum section cards */
.warum-card {
  background: rgba(5, 18, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.warum-card:hover {
  background: rgba(22, 163, 74, 0.14);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(22,163,74,0.15);
}

/* Default: hidden until card is revealed */
.warum-icon {
  opacity: 0;
  transform: scale(0.4) translateY(10px);
}

/* When parent card is revealed, bounce in then float */
.warum-card.revealed .warum-icon {
  animation: iconBounceIn 0.55s cubic-bezier(.36,.07,.19,.97) forwards,
             iconFloat 3s ease-in-out 0.55s infinite;
}

.warum-icon:hover { animation: iconPop 0.4s ease !important; }

/* Stagger delays: bounce-in + offset the float start per card */
.warum-card:nth-child(1) .warum-icon { animation-delay: 0s,      0.55s; }
.warum-card:nth-child(2) .warum-icon { animation-delay: 0.08s,   0.63s; }
.warum-card:nth-child(3) .warum-icon { animation-delay: 0.16s,   0.71s; }
.warum-card:nth-child(4) .warum-icon { animation-delay: 0.1s,    0.65s; }
.warum-card:nth-child(5) .warum-icon { animation-delay: 0.18s,   0.73s; }
.warum-card:nth-child(6) .warum-icon { animation-delay: 0.26s,   0.81s; }
.warum-card:nth-child(7) .warum-icon { animation-delay: 0.12s,   0.67s; }
.warum-card:nth-child(8) .warum-icon { animation-delay: 0.20s,   0.75s; }
.warum-card:nth-child(9) .warum-icon { animation-delay: 0.28s,   0.83s; }

/* Stagger for warum-card reveal */
.warum-card:nth-child(2) { transition-delay: 0.07s; }
.warum-card:nth-child(3) { transition-delay: 0.14s; }
.warum-card:nth-child(4) { transition-delay: 0.07s; }
.warum-card:nth-child(5) { transition-delay: 0.14s; }
.warum-card:nth-child(6) { transition-delay: 0.21s; }
.warum-card:nth-child(7) { transition-delay: 0.07s; }
.warum-card:nth-child(8) { transition-delay: 0.14s; }
.warum-card:nth-child(9) { transition-delay: 0.21s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-badge, .hero-h1, .hero-sub, .hero-list, .hero-cta {
    transition: none !important; opacity: 1 !important; transform: none !important;
  }
  .float-car { animation: none !important; }
  .warum-icon, .warum-card.revealed .warum-icon, .warum-icon:hover { animation: none !important; opacity: 1 !important; transform: none !important; }
}
