/* ==========================================================================
   STARK DIENST – shared site styles
   Used identically by index.html, leistungen.html, ueber-uns.html, kontakt.html
   ========================================================================== */

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background-color: #FFFFFF; }
h1, h2, h3, h4, .heading-font { font-family: 'Archivo', sans-serif; }

/* ---------- Nav ---------- */
#main-nav {
  background: rgba(26, 26, 26, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
#main-nav.nav-solid {
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
@media (max-width: 639px) {
  /* On small screens content no longer sits directly under the nav (see
     [data-banner-rotator] margin-top on the Startseite), so the faint
     transparent state would show the plain page background instead of a
     hero image. Keep the nav solid at all times below the sm breakpoint. */
  #main-nav {
    background: rgba(26, 26, 26, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  }
}

.nav-link {
  position: relative;
  color: #f5f5f5;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: #D32F2F;
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.nav-current::after { width: 100%; }

.dropdown-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.dropdown-wrapper:hover .dropdown-panel,
.dropdown-wrapper:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Hero (Startseite only) ---------- */
#hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1A1A1A 0%, #232323 55%, #1A1A1A 100%);
  min-height: 100vh;
}

.diagonal-accent {
  position: absolute;
  background: #D32F2F;
  transform: skewX(-12deg);
}

.hero-ghost-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-weight: 900;
  color: rgba(255,255,255,0.05);
  font-size: clamp(3rem, 11vw, 10rem);
  letter-spacing: 0.02em;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

#hero-van {
  position: absolute;
  right: -10%;
  bottom: 10%;
  width: min(55vw, 720px);
  max-width: none;
  opacity: 0;
  filter: drop-shadow(0 25px 25px rgba(0,0,0,0.55));
  animation: driveIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.3s;
  z-index: 5;
}

@keyframes driveIn {
  0% { transform: translateX(60vw) scale(1.02); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}

#hero-van.parked {
  opacity: 1;
  animation: floatVan 4.5s ease-in-out infinite;
}

@keyframes floatVan {
  0%, 100% { opacity: 1; transform: translateY(0px); }
  50% { opacity: 1; transform: translateY(-14px); }
}

/* ---------- Page header (Leistungen / Über uns / Kontakt) ---------- */
.page-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1A1A1A 0%, #232323 55%, #1A1A1A 100%);
  padding-top: 9rem;
  padding-bottom: 4rem;
}

/* ---------- Buttons & motion ---------- */
.cta-btn {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background-color 0.3s ease;
}
.cta-btn:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(211, 47, 47, 0.65);
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s ease forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Fade-in-up (assets/animations.js): service cards + Über-uns content rows ---------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Van parallax-exit (assets/animations.js) ---------- */
#hero-van.van-exiting {
  animation: none;
  transition: transform 0.12s linear, opacity 0.12s linear;
}

.service-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.18);
  border-color: #D32F2F;
}

.price-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.price-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -15px rgba(0,0,0,0.25);
}

::selection { background: #D32F2F; color: #fff; }

/* ---------- reCAPTCHA v3 (Kontakt + Karriere forms) ---------- */
/* Badge hidden per Google's ToS, which requires the attribution text
   shown near each form's submit button in its place. */
.grecaptcha-badge {
  visibility: hidden;
}

.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px -10px rgba(0,0,0,0.3);
}

.contact-icon {
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.contact-icon:hover {
  background-color: #D32F2F;
  border-color: #D32F2F;
}

/* ---------- Guarantee panels (Über uns) ---------- */
.guarantee-panel {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.guarantee-panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.15);
}

/* ---------- Alert box (Besichtigung vor Ort) ---------- */
.alert-box {
  border: 2px dashed #D32F2F;
}

/* ---------- Slogan marquee ---------- */
.marquee-track {
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Banner rotator (assets/banner-rotator.js) ---------- */
/* Crossfade handled via inline opacity (JS); this only drives the
   continuous Ken Burns zoom on each slide's image, independent of
   which slide is currently visible. */
.banner-slide {
  transition: opacity 1.5s ease-in-out;
}
.banner-slide img {
  animation: bannerKenBurns 20s ease-in-out infinite;
}
.banner-slide:nth-child(2) img { animation-delay: -5s; }
.banner-slide:nth-child(3) img { animation-delay: -10s; }
.banner-slide:nth-child(4) img { animation-delay: -15s; }
@keyframes bannerKenBurns {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}
