/* assets/css/banner.css */

:root {
  --banner-h: 600px;
}

/* =========================================
   Layout-Reserve für Banner-Include
   Verhindert, dass Content kurz vor dem Banner erscheint,
   bevor banner.html + Slider geladen sind.
========================================= */
#banner-slot {
  min-height: var(--banner-h);
  background: #0f1f14;
}

#banner-slot[data-banner-size="s"] {
  min-height: 420px;
}
#banner-slot[data-banner-size="m"] {
  min-height: 600px;
}
#banner-slot[data-banner-size="l"] {
  min-height: 720px;
}

/* Banner / Hero Carousel */
.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
}

.hero-carousel__track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.hero-carousel__track::-webkit-scrollbar {
  display: none;
}

.hero-carousel__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
}

.hero-carousel__img {
  display: block;
  width: 100%;
  height: var(--banner-h);
  object-fit: cover;
  object-position: center center;
}

/* Größen-Varianten (optional) */
#banner-slot[data-banner-size="s"] .hero-carousel__img {
  height: 420px;
}
#banner-slot[data-banner-size="m"] .hero-carousel__img {
  height: 600px;
}
#banner-slot[data-banner-size="l"] .hero-carousel__img {
  height: 720px;
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --banner-h: 360px;
  }
  #banner-slot {
    min-height: var(--banner-h);
  }
  #banner-slot[data-banner-size="s"] {
    min-height: 300px;
  }
  #banner-slot[data-banner-size="m"] {
    min-height: 360px;
  }
  #banner-slot[data-banner-size="l"] {
    min-height: 420px;
  }

  #banner-slot[data-banner-size="s"] .hero-carousel__img {
    height: 300px;
  }
  #banner-slot[data-banner-size="m"] .hero-carousel__img {
    height: 360px;
  }
  #banner-slot[data-banner-size="l"] .hero-carousel__img {
    height: 420px;
  }
}

/* Overlay/Shade */
.hero-carousel__shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.55)
  );
  pointer-events: none;
}

/* Content */
.hero-carousel__content {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 24px;
  gap: 6px;
}

.hero-carousel__title {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 3.2vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

.hero-carousel__subtitle {
  margin: 0;
  max-width: 900px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(13px, 1.2vw, 17px);
  line-height: 1.25;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.hero-carousel__cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1e5b2a;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 10px;
  min-height: 46px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

.hero-carousel__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

/* Pfeile */
.hero-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  padding: 16px;
  cursor: pointer;
  z-index: 6;
  color: transparent;
}

.hero-carousel__btn::before {
  content: "›";
  color: rgba(255, 255, 255, 0.9);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.hero-carousel__btn--prev::before {
  content: "‹";
}

.hero-carousel__btn--prev {
  left: 10px;
}
.hero-carousel__btn--next {
  right: 10px;
}

.hero-carousel__btn:hover::before {
  color: rgba(255, 255, 255, 1);
}

.hero-carousel__btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Dots */
.hero-carousel__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 6;
}

.hero-carousel__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.55);
}

.hero-carousel__dot[aria-current="true"] {
  background: rgba(255, 255, 255, 0.95);
}
