/* ===== Hero Slider Basis ===== */

.hero-slider {
  position: relative;
  min-height: 60vh;
  overflow: hidden;
}

/* Slides */
.hero-slider__slides,
.hero-slider__slide {
  position: absolute;
  inset: 0;
}

.hero-slider__slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 800ms ease;
  will-change: opacity;
}

.hero-slider__slide.is-active {
  opacity: 1;
}

/* Overlay für bessere Lesbarkeit */
.hero-slider__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--hero-overlay, 0.35));
}

/* ===== Content ===== */

.hero-slider__content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

/* Titel */
.hero-slider__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
}

/* Untertitel */
.hero-slider__subtitle {
  margin-top: 0.5rem;
  font-size: clamp(1.2rem, 2vw, 2rem);
  opacity: 0.95;
}

/* ===== Text-Ausrichtung ===== */

.hero-slider__content.is-align-left {
  text-align: left;
}

.hero-slider__content.is-align-center {
  text-align: center;
}

.hero-slider__content.is-align-right {
  text-align: right;
}

/* ===== WICHTIG: Quark-Farb-Overrides überschreiben ===== */

.hero.hero-slider .hero-slider__content,
.hero.hero-slider .hero-slider__content * {
  color: #fff !important;
}

/* Untertitel minimal softer */
.hero.hero-slider .hero-slider__subtitle {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* ===== Optional: bessere mobile Darstellung ===== */

@media (max-width: 768px) {
  .hero-slider {
    min-height: 50vh;
  }

  .hero-slider__content {
    padding: 3rem 1rem;
  }
}
