/* ======================
   hero.css – Hero-Sections, Canvas-Animation, Animations
   Geladen auf: Startseite, Leistungen, Kontakt, FAQ
====================== */

/* ======================
   Hero (Static) – .hero-aether
====================== */
.hero-aether{
  padding:140px 0 120px;
  background:
    radial-gradient(60% 40% at 20% 0%, rgba(59,130,246,.15),transparent 60%),
    radial-gradient(70% 40% at 80% 0%, rgba(6,182,212,.1),transparent 60%);
}

/* ======================
   Hero Page-Load Animations (above the fold)
====================== */
/* Exclude: Kontakt, Kundenportal, Login/Portal pages */
body:not(.page-kontakt):not(.page-kundenportal):not(.page-login):not(.page-passwort-setzen):not(.page-passwort-vergessen):not(.page-rechnungen) .hero-aether .kicker,
body:not(.page-kontakt):not(.page-kundenportal):not(.page-login):not(.page-passwort-setzen):not(.page-passwort-vergessen):not(.page-rechnungen) .hero-aether .wf-kicker {
  animation: fadeInUp 0.8s ease-out;
}

body:not(.page-kontakt):not(.page-kundenportal):not(.page-login):not(.page-passwort-setzen):not(.page-passwort-vergessen):not(.page-rechnungen) .hero-aether .display,
body:not(.page-kontakt):not(.page-kundenportal):not(.page-login):not(.page-passwort-setzen):not(.page-passwort-vergessen):not(.page-rechnungen) .hero-aether h1 {
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

body:not(.page-kontakt):not(.page-kundenportal):not(.page-login):not(.page-passwort-setzen):not(.page-passwort-vergessen):not(.page-rechnungen) .hero-aether .lead {
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

body:not(.page-kontakt):not(.page-kundenportal):not(.page-login):not(.page-passwort-setzen):not(.page-passwort-vergessen):not(.page-rechnungen) .hero-aether .hero-cta-wrapper,
body:not(.page-kontakt):not(.page-kundenportal):not(.page-login):not(.page-passwort-setzen):not(.page-passwort-vergessen):not(.page-rechnungen) .hero-aether .wf-actions {
  animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

body:not(.page-kontakt):not(.page-kundenportal):not(.page-login):not(.page-passwort-setzen):not(.page-passwort-vergessen):not(.page-rechnungen) .hero-aether .hero-reassurance {
  animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

/* ======================
   Scroll Reveal – below-the-fold sections
====================== */
.section:not(.hero-aether):not(.hero-animated),
.trust-bar,
.faq-grid,
.pricing-addons,
.hourly-rates {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.section:not(.hero-aether):not(.hero-animated).is-visible,
.trust-bar.is-visible,
.faq-grid.is-visible,
.pricing-addons.is-visible,
.hourly-rates.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-aether .kicker,
  .hero-aether .display,
  .hero-aether h1,
  .hero-aether .lead,
  .hero-aether .hero-cta-wrapper,
  .hero-aether .hero-reassurance {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .section:not(.hero-aether):not(.hero-animated),
  .trust-bar,
  .faq-grid,
  .pricing-addons,
  .hourly-rates {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   Hero Canvas Animation (.hero-animated)
   Verwendet auf Startseite
============================================================ */

.hero-animated {
  position: relative;
  overflow: hidden;
  min-height: clamp(540px, 72vh, 700px);
  display: flex;
  align-items: flex-start;
  padding: 140px 0 120px;
  margin-bottom: 0;
  background: linear-gradient(135deg,
    #d6dce8 0%,
    #9bb8db 30%,
    #3b82f6 55%,
    #9bb8db 80%,
    #d6dce8 100%
  );
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

/* Particle Canvas */
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Animated Waves */
.hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.wave {
  position: absolute;
  bottom: -5px;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center,
    rgba(59, 130, 246, 0.12) 0%,
    transparent 70%
  );
  border-radius: 45%;
  animation: waveRotate 25s linear infinite;
}

.wave-1 {
  animation-duration: 20s;
  opacity: 0.3;
}

.wave-2 {
  animation-duration: 30s;
  animation-direction: reverse;
  opacity: 0.2;
}

.wave-3 {
  animation-duration: 25s;
  opacity: 0.15;
}

@keyframes waveRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Content */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.hero-animated .kicker {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 0.8s ease-out;
}

.hero-animated .display {
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-animated .lead {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* Zentrierte Buttons */
.hero-cta-wrapper {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

/* Smooth Wave Divider */
.hero-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  line-height: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-divider svg {
  display: block;
  width: 100%;
  height: 120px;
}

/* Gradient fade at bottom of hero background */
.hero-bg-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(214, 220, 232, 0.3) 50%,
    rgba(235, 232, 225, 0.6) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Hero needs higher z-index for wave divider */
.hero-animated.section {
  z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-animated {
    min-height: clamp(500px, 65vh, 580px);
    padding: 110px 0 100px;
  }

  .wave {
    height: 150%;
  }

  .hero-divider {
    height: 80px;
  }

  .hero-divider svg {
    height: 80px;
  }
}
