/* Eigener Image-Slider */
.tu-slider {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 500px;
  max-height: 850px;
  overflow: hidden;
}

.tu-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.tu-slide.active {
  opacity: 1;
}

.tu-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradient-Overlay - folgt dem Farbmodus, unten dichter */
.tu-slider::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(var(--bs-body-bg-rgb), 0.3) 40%,
    rgba(var(--bs-body-bg-rgb), 0.75) 65%,
    rgba(var(--bs-body-bg-rgb), 0.92) 80%,
    rgba(var(--bs-body-bg-rgb), 1) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Text-Overlay auf dem Slider */
.tu-slider-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 0 5% 2.5rem;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.tu-slider-text h1 {
  font-size: clamp(1.8rem, 5.5vw, 4.5rem);
  font-weight: 700;
  margin: 0 0 0.3rem;
  letter-spacing: 0.02em;
}

.tu-slider-text p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin: 0;
  font-weight: 300;
  opacity: 0.9;
}

/* Untertitel im Light-Mode: Firmenblau statt weiß */
[data-bs-theme="light"] .tu-slider-text p {
  color: #002F5D;
  text-shadow: 0 1px 4px rgba(255,255,255,0.6);
}

/* Mobil Portrait */
@media (max-width: 768px) and (orientation: portrait) {
  .tu-slider {
    height: 38vh;
    min-height: 220px;
  }
  .tu-slider-text {
    padding: 0 1rem 1.2rem;
  }
  .tu-slider-text h1 {
    font-size: 1.6rem;
  }
  .tu-slider-text p {
    font-size: 0.75rem;
  }
}

/* Mobil Landscape */
@media (max-width: 768px) and (orientation: landscape) {
  .tu-slider {
    height: 70vh;
    min-height: 280px;
  }
  .tu-slider-text {
    padding: 0 1rem 1.5rem;
  }
}
