html {
  scroll-behavior: smooth;
}

/* Hero Hintergrundoverlay mit leichtem Glow */
.hero-bg {
  background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.9)),
    url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(52, 211, 153, 0.18), transparent 55%);
  pointer-events: none;
}

/* Sanfte Fade-In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out, filter 0.8s ease-out;
  filter: blur(2px);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Hero-Kicker & Kostenlos-Pill noch lebendiger machen */
.hero-kicker {
  letter-spacing: 0.28em;
  animation: kickerSlide 0.9s ease-out forwards;
  opacity: 0;
  transform: translateX(-10px);
}

@keyframes kickerSlide {
  0% {
    opacity: 0;
    transform: translateX(-14px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-free-pill {
  padding: 5px 10px;
  border-radius: 9999px;
  background: radial-gradient(circle at left, rgba(52, 211, 153, 0.35), rgba(15, 23, 42, 0.2));
  border: 1px solid rgba(187, 247, 208, 0.7);
  color: #e5f9f0;
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.35);
  animation: pillFloat 2.8s ease-in-out infinite;
}

.hero-free-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #22c55e;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.9);
}

@keyframes pillFloat {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 0 18px rgba(52, 211, 153, 0.35);
  }
  50% {
    transform: translateY(-4px);
    box-shadow: 0 0 26px rgba(52, 211, 153, 0.6);
  }
}

/* Animierter Hook-Text im Hero (Typing + Glow) */
.hero-type {
  display: inline-block;
  min-height: 1.2em;
  background: linear-gradient(90deg, #bbf7d0, #ffffff, #6ee7b7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heroGlow 2.4s ease-in-out infinite;
}

#hero-hook {
  padding-bottom: 1px;
  animation: cursorBlink 0.9s steps(1) infinite;
}

@keyframes heroGlow {
  0% {
    text-shadow: 0 0 0 rgba(74, 222, 128, 0.0);
  }
  50% {
    text-shadow: 0 0 18px rgba(74, 222, 128, 0.55);
  }
  100% {
    text-shadow: 0 0 0 rgba(74, 222, 128, 0.0);
  }
}

@keyframes cursorBlink {
  0%,
  50% {
    border-color: rgba(190, 242, 100, 0.85);
  }
  51%,
  100% {
    border-color: transparent;
  }
}

/* CTA Button Puls-Animation */
.pulse {
  position: relative;
  overflow: visible;
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 2px solid rgba(34, 197, 94, 0.5);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.15);
    opacity: 0;
  }
  100% {
    transform: scale(0.9);
    opacity: 0;
  }
}

/* Karten-Hover mit leichtem "Lift"-Effekt */
.card-lift {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card-lift:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.15);
}

/* Sticky Header Effekt bei Scroll */
.header-scrolled {
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.15);
  background-color: rgba(255, 255, 255, 0.96) !important;
  transform: translateY(0);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Floating Call Button nur mobil anzeigen */
@media (min-width: 1024px) {
  #floating-call {
    display: none;
  }
}

/* Leichtes Schweben des Floating Buttons */
#floating-call {
  animation: float 2.6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Dezentes Highlight für Formularfelder beim Fokus */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.15), 0 12px 25px rgba(16, 185, 129, 0.18);
}

/* Kleine Wellen-Animation für Sektionstrenner (optional nutzbar) */
.section-divider {
  position: relative;
  overflow: hidden;
}

.section-divider::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.6), transparent);
  animation: shine 2.8s linear infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
