/*
 * Lehrgangs-Planer Website Styles
 * ================================
 * Custom styles for the public marketing website.
 * Uses the "Reithof" design system defined in tailwind.config.js.
 */

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Custom animation for subtle floating effect */
@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-2px);
  }
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

/* Staggered fade-in animation for feature cards */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply staggered animation to feature cards when they come into view */
.fade-up-stagger > * {
  opacity: 0;
  animation: fade-up 0.6s ease-out forwards;
}

.fade-up-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.fade-up-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.fade-up-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.fade-up-stagger > *:nth-child(4) { animation-delay: 0.4s; }
.fade-up-stagger > *:nth-child(5) { animation-delay: 0.5s; }
.fade-up-stagger > *:nth-child(6) { animation-delay: 0.6s; }

/* Grain texture overlay for premium feel */
.grain-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
}

/* Smooth focus states for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #d4894a;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Hide mobile menu by default - will be toggled via JS */
#mobile-menu {
  display: none;
}

#mobile-menu.is-open {
  display: block;
}

/* Ensure images don't overflow their containers */
img {
  max-width: 100%;
  height: auto;
}

/* Selection color matching brand */
::selection {
  background-color: rgba(212, 137, 74, 0.2);
  color: inherit;
}
