/* =========================
   Container
========================= */
.etagen-slider {
  position: relative;
}

/* =========================
   Slides
========================= */
.etagen-slider__slides {
  position: relative;
}

.etagen-slider__slide {
  display: none;
}

.etagen-slider__slide.is-active {
  display: block;
  animation: etagenFadeIn 0.3s ease;
}

.etagen-slider__slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.10);
}

/* =========================
   Tabs (Overlay unten mittig)
========================= */
.etagen-slider__nav {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);

  display: inline-flex;
  gap: 6px;
  padding: 6px;

  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px) saturate(140%);
  border-radius: 999px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  z-index: 10;
}

/* =========================
   Tab Buttons
========================= */
.etagen-slider__button {
  appearance: none;
  border: 0;
  cursor: pointer;

  padding: 10px 18px;
  border-radius: 999px;

  background: transparent;
  color: #444;

  font-size: 14px;
  font-weight: 600;
  line-height: 1;

  transition: all 0.25s ease;
}

.etagen-slider__button:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #e32528;
}

.etagen-slider__button.is-active {
  background: #e32528;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.etagen-slider__button:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.25);
  outline-offset: 3px;
}

/* =========================
   Animation
========================= */
@keyframes etagenFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   Mobile Optimierung
========================= */
@media (max-width: 640px) {

  .etagen-slider__nav {
    position: static; 
    transform: none;
    
    margin: 16px auto 0;
    max-width: 100%;
    
    justify-content: center;
    
    padding: 4px;
    gap: 4px;

    overflow-x: auto;
  }

  .etagen-slider__button {
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .etagen-slider__slide img {
    border-radius: 4px;
  }
}