/* ===== Hero Slider (MMM) ===== */

.hero.hero-slider {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
}

.hero-slider {
  position: relative;
  min-height: clamp(420px, 58vh, 620px);
  overflow: hidden;
}

.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;
}

.hero-slider__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, var(--hero-overlay, 0.12));
  pointer-events: none;
}

/* Pfeile */
.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--mmm-brown, #4a2f2f);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.hero-slider__arrow:hover,
.hero-slider__arrow:focus {
  opacity: 1;
  outline: none;
}

.hero-slider__arrow--prev {
  left: 0.5rem;
}

.hero-slider__arrow--next {
  right: 0.5rem;
}

/* Punkte */
.hero-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.hero-slider__dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--mmm-brown, #4a2f2f);
  cursor: pointer;
  opacity: 0.85;
  transition: transform 0.15s ease, background 0.15s ease;
}

.hero-slider__dot:hover,
.hero-slider__dot:focus {
  opacity: 1;
  outline: none;
  transform: scale(1.15);
}

.hero-slider__dot.is-active {
  background: #2aa89a;
  opacity: 1;
  transform: scale(1.2);
}

/* Text */
.hero-slider__content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 3rem 4.5rem 3.5rem;
  min-height: clamp(420px, 58vh, 620px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  pointer-events: none;
}

.hero-slider__content a,
.hero-slider__content button {
  pointer-events: auto;
}

.hero-slider__title {
  margin: 0;
  color: var(--mmm-brown-dark, #3a2424) !important;
}

.hero-slider__title h1,
.hero-slider__title h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--mmm-brown-dark, #3a2424) !important;
}

.hero-slider__subtitle {
  margin-top: 0.75rem;
  max-width: 36rem;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--mmm-brown-dark, #3a2424) !important;
}

.hero-slider__tagline {
  margin: 0.5rem 0 0;
  max-width: 36rem;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  line-height: 1.5;
  color: var(--mmm-text, #333) !important;
}

.hero-slider__tagline[hidden] {
  display: none !important;
}

.hero-slider__cta {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.5rem 1.35rem;
  border: 2px solid var(--mmm-brown-dark, #3a2424);
  border-radius: 999px;
  color: var(--mmm-brown-dark, #3a2424) !important;
  background: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  align-self: flex-start;
  transition: background 0.15s ease, color 0.15s ease;
}

.hero-slider__cta[hidden] {
  display: none !important;
}

.hero-slider__cta:hover,
.hero-slider__cta:focus {
  background: var(--mmm-brown-dark, #3a2424);
  color: #fff !important;
}

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

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

/* Text in der rechten Hlfte (wie Original), linksbndig im rechten Bereich */
.hero-slider__content.is-align-right {
  padding-left: 50%;
  padding-right: clamp(1.5rem, 4vw, 4.5rem);
  text-align: left;
  align-items: flex-start;
}

.hero-slider__content.is-align-right .hero-slider__title,
.hero-slider__content.is-align-right .hero-slider__subtitle,
.hero-slider__content.is-align-right .hero-slider__tagline {
  max-width: 34rem;
  width: 100%;
}

.hero-slider__content.is-valign-middle {
  justify-content: center;
}

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

  .hero-slider__content {
    padding: 2rem 1.25rem 3rem;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .hero-slider__content.is-align-right {
    padding-left: 1.25rem;
    padding-right: 3.25rem;
  }

  .hero-slider__arrow {
    font-size: 1.75rem;
    width: 2.25rem;
  }

  .hero-slider__arrow--prev {
    left: 0.15rem;
  }

  .hero-slider__arrow--next {
    right: 0.15rem;
  }
}
