/* ========================================
   Struben Handel — Custom Styles
   ======================================== */

/* Smooth scroll for the whole page */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

/* Navbar shadow on scroll */
.nav-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Active nav link */
.nav-link-active {
  color: #FFD700 !important;
}

/* Hero section entrance animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#hero > div > * {
  animation: fadeInUp 0.8s ease-out both;
}

#hero > div > *:nth-child(1) { animation-delay: 0.1s; }
#hero > div > *:nth-child(2) { animation-delay: 0.25s; }
#hero > div > *:nth-child(3) { animation-delay: 0.4s; }
#hero > div > *:nth-child(4) { animation-delay: 0.55s; }
#hero > div > *:nth-child(5) { animation-delay: 0.7s; }

/* Scroll-triggered fade in for sections */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal-on-scroll.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Card hover glow */
#leistungen .bg-white:hover {
  border-bottom-color: #FFD700;
}

/* Smooth link transitions for mobile menu */
#mobile-menu a {
  transition: color 0.2s, padding-left 0.2s;
}

#mobile-menu a:hover {
  padding-left: 0.5rem;
}

/* Google Maps iframe rounded corners fix */
#kontakt iframe {
  border-radius: 1rem;
}

/* Selection color */
::selection {
  background-color: #FFD700;
  color: #1a1a1a;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #FFD700;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  nav, footer, #kontakt iframe {
    display: none;
  }
  section {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
