/* SLIDER CSS */


.carousel-caption h1,
.carousel-caption h2 {
  font-size: 2.2rem;
  line-height: 1rem;
}


.slider-headline {
  display: block;
  width: auto;
  height: auto;
  margin-bottom: 20px;
}

.slider-headline h1,
.slider-headline h2,
.slider-headline h3,
.slider-headline h4,
.slider-headline h5,
.slider-headline p,
.slider-headline span,
.slider-headline em {
  line-height: 1em !important;
  font-size: 3.5em !important;
}

.carousel-caption {
  top: 52%;
}

@media only screen and (max-width:1400px) {

  .slider-headline h1,
  .slider-headline h2,
  .slider-headline h3,
  .slider-headline h4,
  .slider-headline h5,
  .slider-headline p,
  .slider-headline span,
  .slider-headline em {
    line-height: 1em !important;
    font-size: 3.0em !important;
  }
}

@media only screen and (max-width:1080px) {

  .slider-headline h1,
  .slider-headline h2,
  .slider-headline h3,
  .slider-headline h4,
  .slider-headline h5,
  .slider-headline p,
  .slider-headline span,
  .slider-headline em {
    line-height: 1em !important;
    font-size: 2.5em !important;
  }
}

@media only screen and (max-width:767px) {

  .slider-headline h1,
  .slider-headline h2,
  .slider-headline h3,
  .slider-headline h4,
  .slider-headline h5,
  .slider-headline p,
  .slider-headline span,
  .slider-headline em {
    line-height: 1em !important;
    font-size: 2em !important;
  }
}

/* 5. SLIDER */

#home-carousel .carousel-item {
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 650px;
}

.carousel-caption {
  left: 15px;
  right: 15px;
  top: 50%;
  font-size: 15px;
  text-align: left;
  color: #fff;
  text-shadow: none;
  margin-top: -130px;
}

.carousel-caption h1 {
  font-size: 46px;
  margin-bottom: 0;
  line-height: 27px;
  letter-spacing: 2px;
  font-weight: 100;
}

.carousel-caption h2 {
  font-size: 81px;
  font-weight: 600;
  margin-top: 0px;
  /* text-transform:uppercase; */
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.home-carousel-left,
.home-carousel-right {
  background-color: #f0f0f0;
  color: #000;
  font-size: 32px;
  height: 40px;
  line-height: 40px;
  margin-top: -20px;
  position: absolute;
  text-align: center;
  top: 50%;
  width: 32px;
  z-index: 999;
  transition: 300ms;
  border-radius: 6px;
}

.home-carousel-left {
  left: -32px;
}

.home-carousel-right {
  right: -32px;
}

#home-carousel:hover .home-carousel-left {
  left: 0;
}

#home-carousel:hover .home-carousel-right {
  right: 0;
}

/* Karussell: Einblendung der Folieninhalte
 *
 * Portiert am 11.08.2026. Vorher hing der Block an `#home-carousel .item` —
 * Bootstrap 5 nennt die Folie `.carousel-item`, seit dem Umstieg lief also
 * nichts mehr.
 *
 * Der alte Block sprach h1, h2 und p an. h1 und h2 gibt es in den Folien
 * gar nicht: die Überschrift steht als <span class="slider-headline"> mit
 * einem <p> darin, darunter folgen Text und Schaltfläche als weitere <p>.
 * Angesprochen sind deshalb die Überschrift und die <p> der Spalte —
 * ausdrücklich nur deren unmittelbare, sonst skalierte das <p> innerhalb
 * der Überschrift ein zweites Mal mit.
 *
 * Ebenfalls entfernt: #slider (keine Kennung im HTML) und ein
 * auskommentierter :before-Block aus derselben Zeit.
 */
#home-carousel .carousel-item .slider-headline,
#home-carousel .carousel-item .carousel-caption > .row > * > p {
  opacity: 0;
  transform: scale(0.5);
}

#home-carousel .carousel-item .slider-headline {
  transition: all 0.5s ease-in-out 0.15s;
}

#home-carousel .carousel-item .carousel-caption > .row > * > p {
  transition: all 0.5s ease-in-out 0.30s;
}

#home-carousel .carousel-item.active .slider-headline,
#home-carousel .carousel-item.active .carousel-caption > .row > * > p {
  opacity: 1;
  transform: scale(1);
}

/*
 * Wer im Betriebssystem weniger Bewegung verlangt, bekommt den Endzustand
 * sofort. Das ist neu — die alte Fassung kannte die Einstellung nicht.
 */
@media (prefers-reduced-motion: reduce) {

  #home-carousel .carousel-item .slider-headline,
  #home-carousel .carousel-item .carousel-caption > .row > * > p {
    opacity: 1;
    transform: none;
    transition: none;
  }

}
