.hero {
  position: relative;
  height: calc(100vh - var(--navbar-height, 80px));
  width: 100%;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-nav {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: var(--container-width, 1200px);
  padding: 0 var(--container-padding, 1rem);
  pointer-events: auto;
}

.slide-indicator {
  width: 3rem;
  height: 0.25rem;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slide-indicator.active {
  background: var(--primary);
}

/* Fade up animation */
.fade-up {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.active .fade-up {
  opacity: 1;
  transform: translateY(10px);
}

/* Staggered animation delay for elements */
.hero-slide.active span.fade-up {
  transition-delay: 0.2s;
}

.hero-slide.active h1.fade-up {
  transition-delay: 0.2s;
}

.hero-slide.active p.fade-up {
  transition-delay: 0.2s;
}

.hero-slide.active .hero-ctas.fade-up {
  transition-delay: 0.2s;
}

/* Hero media and overlay styles */
.hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-slide:nth-child(1) .hero-media {
  background-image: url('../img/racecoat_hero_bg_1.jpg');
}

.hero-slide:nth-child(2) .hero-media {
  background-image: url('../img/racecoat_hero_bg_1.jpg');
}

.hero-slide:nth-child(3) .hero-media {
  background-image: url('../img/racecoat_hero_bg_1.jpg');
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.hero-slide[data-slide="2"] .hero-media {
  background-image: url('/assets/img/racecoat_hero_bg_3.jpg');
}

.hero-slide[data-slide="3"] .hero-media {
  background-image: url('/assets/img/racecoat_hero_bg_2.jpg');
}

/* Scroll Down Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeInOut 2s ease-in-out infinite;
}

.scroll-indicator-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

.scroll-indicator-arrow {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

@keyframes bounceDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Hero Inner zentriert auf Mobile */
  .hero-inner {
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
  }
  
  /* Hero Text größer und zentriert auf Mobile */
  .hero-inner span {
    font-size: 1.1rem !important;
    letter-spacing: 2px;
  }
  
  .hero-inner h1 {
    font-size: 2.8rem !important;
    line-height: 1.1;
    margin-bottom: 1rem;
  }
  
  .hero-inner p {
    font-size: 1.1rem !important;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 90%;
  }
  
  /* Buttons untereinander mit voller Breite */
  .hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
  }
  
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Hero Navigation oberhalb vom Scroll Indicator */
  .hero-nav {
    bottom: 9rem;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
    max-width: none;
    width: auto;
    padding: 0;
  }
  
  .slide-indicator {
    width: 2.5rem;
    height: 0.25rem;
  }
  
  /* Background Images positionieren auf Mobile */
  .hero-media {
    background-position: 80% center;
  }
  
  /* Overlay dunkler für bessere Textlesbarkeit auf Mobile */
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.6) 50%,
      rgba(0, 0, 0, 0.8) 100%
    );
  }
  
  /* Scroll Indicator auf Mobile anzeigen */
  .scroll-indicator {
    display: flex;
  }
}

@media (max-width: 480px) {
  .hero-inner h1 {
    font-size: 2.2rem !important;
  }
  
  .hero-inner span,
  .hero-inner p {
    font-size: 1rem !important;
  }
  
  .hero-inner p {
    max-width: 95%;
  }
  
  .scroll-indicator {
    bottom: 3rem;
  }
  
  .hero-nav {
    bottom: 7.5rem;
  }
  
  .slide-indicator {
    width: 2rem;
    height: 0.2rem;
  }
  
  .scroll-indicator-text {
    font-size: 0.75rem;
  }
  
  .hero-media {
    background-position: 80% center;
  }
}