html,
body {
  overflow-x: hidden;
}

.form-toast-visible {
  animation: toastSlideIn 0.35s ease-out forwards;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nav-link-active {
  color: #2EC4A5;
  font-weight: 500;
}

.nav-link-active:hover {
  color: #26A98E;
}

.nav-link-active-mobile {
  color: #2EC4A5;
  font-weight: 500;
  background-color: rgba(46, 196, 165, 0.1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseAccent {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(46, 196, 165, 0.35);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(46, 196, 165, 0);
  }
}

@keyframes countGlow {
  0%, 100% {
    text-shadow: 0 0 8px rgba(46, 196, 165, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(46, 196, 165, 0.6);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.7s ease-out forwards;
}

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

.animate-slide-in-left {
  animation: slideInLeft 0.7s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.7s ease-out forwards;
}

.animate-pulse-accent {
  animation: pulseAccent 2.5s ease-in-out infinite;
}

.animate-count-glow {
  animation: countGlow 2s ease-in-out infinite;
}

.animate-shimmer {
  background: linear-gradient(
    90deg,
    rgba(46, 196, 165, 0) 0%,
    rgba(46, 196, 165, 0.15) 50%,
    rgba(46, 196, 165, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

.animate-delay-100 {
  animation-delay: 0.1s;
}

.animate-delay-200 {
  animation-delay: 0.2s;
}

.animate-delay-300 {
  animation-delay: 0.3s;
}

.animate-delay-400 {
  animation-delay: 0.4s;
}

.animate-delay-500 {
  animation-delay: 0.5s;
}

.opacity-0-start {
  opacity: 0;
}

.stat-number.is-visible {
  animation: countGlow 2s ease-in-out infinite;
}

.hero-bg-overlay {
  background: linear-gradient(
    135deg,
    rgba(13, 18, 20, 0.92) 0%,
    rgba(13, 18, 20, 0.75) 50%,
    rgba(13, 18, 20, 0.88) 100%
  );
}

.swiper-button-prev-custom,
.swiper-button-next-custom {
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
  transform: scale(1.05);
}

@media (min-width: 640px) {
  .reviews-slider-nav .swiper-button-prev-custom:hover,
  .reviews-slider-nav .swiper-button-next-custom:hover {
    transform: translateY(-50%) scale(1.05);
  }
}

.swiper-button-prev-custom.swiper-button-disabled,
.swiper-button-next-custom.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.reviews-slider-wrap {
  position: relative;
}

.reviews-slider-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.reviews-slider-nav .swiper-button-prev-custom,
.reviews-slider-nav .swiper-button-next-custom {
  position: static;
  transform: none;
}

@media (min-width: 640px) {
  .reviews-slider-wrap {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .reviews-slider-nav {
    margin-top: 0;
  }

  .reviews-slider-nav .swiper-button-prev-custom,
  .reviews-slider-nav .swiper-button-next-custom {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .reviews-slider-nav .swiper-button-prev-custom {
    left: 0;
  }

  .reviews-slider-nav .swiper-button-next-custom {
    right: 0;
  }
}

.messprotokoll-badge {
  position: static;
  margin-top: 1rem;
  max-width: 100%;
}

@media (min-width: 640px) {
  .messprotokoll-badge {
    position: absolute;
    margin-top: 0;
    bottom: -1.5rem;
    left: 1rem;
    max-width: 18rem;
  }
}

@media (min-width: 1024px) {
  .messprotokoll-badge {
    left: -1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-in-up,
  .animate-fade-in,
  .animate-slide-in-left,
  .animate-slide-in-right,
  .animate-pulse-accent,
  .animate-count-glow,
  .animate-shimmer,
  .stat-number.is-visible {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
