.carousel-wrapper {
  width: 100%;
  height: 100%;
  overscroll-behavior: contain; /* IMPORTANT! */
  overscroll-behavior: none; /* IMPORTANT! */
}

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  height: 100%;
}

.carousel.pointer-event {
  touch-action: pan-y;
}

.activate {
  display: none;
}

/* height contro! Important! */

.carousel-inner {
  position: relative;
  width: 92%;
  height: 90%;
  overflow: hidden; /* Wurde von "hidden" zurückgesetzt */
}

.carousel-inner::after {
  display: block;
  clear: both;
  content: "";
}

.carousel-item {
  position: relative;
  display: none;
  float: left;
  width: 100%;
  height: 100%;
  margin-right: -100%;
  backface-visibility: hidden;
  transition: transform 0.6s ease-in-out;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  padding-top: 5%;
}

.carousel-start-img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin-top: 2rem;
  overflow: hidden;
}

.carousel-img {
  margin: 0 20px;
  background: #fff;
}

.carousel-img img {
  max-height: 400px;
  max-width: 100%;
  width: auto;
}

.carousel-video {
  margin: 0 20px;
  background: #fff;
}

.carousel-video video {
  max-height: 400px;
  max-width: 100%;
  width: auto;
}

.carousel-item .carousel-container > video {
  width: auto;
  max-height: 400px;
  display: block;
  overflow: hidden;
}

.carousel-container > p {
  font-size: clamp(1.1rem, 5vw, 2rem);
  padding: 0 15%;
  text-align: center;
}

#myCarousel19 .carousel-container > p {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  padding: 0 10%;
  text-align: center;
  background: unset;
  height: auto;
  min-height: 300px;
  overflow: visible;
  line-height: 1.3;
}

#myCarousel19 .carousel-container > h4 {
  flex: 0 0 auto;
  max-width: 100%;
  line-height: 1;
  padding-top: 0.08em;
  margin-bottom: 2rem;
  overflow: visible;
}

#myCarousel19 .carousel-inner {
  position: relative;
  isolation: isolate;
}

#myCarousel19 .carousel-container {
  padding-top: 4rem;
}

#myCarousel19 .carousel-indicators {
  position: absolute;
  top: 0;
  right: 1rem;
  left: 1rem;
  z-index: 6;
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 5px 1rem;
  overflow: visible;
}

#myCarousel19 .carousel-indicators li {
  display: block;
  box-sizing: content-box;
  flex: 0 0 10px;
  width: 10px;
  min-width: 10px;
  height: 10px;
  min-height: 10px;
  margin: 0 3px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-radius: 50%;
  background-color: #000;
  background-clip: padding-box;
  color: transparent;
  font-size: 0;
  text-indent: 0;
  visibility: visible;
  opacity: 0.3;
  overflow: visible;
}

#myCarousel19 .carousel-indicators li.active {
  opacity: 1;
}

.shadow {
  box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .carousel-item {
    transition: none;
  }
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
  display: block;
}

.carousel-item-next:not(.carousel-item-left),
.active.carousel-item-right {
  transform: translateX(100%);
}

.carousel-item-prev:not(.carousel-item-right),
.active.carousel-item-left {
  transform: translateX(-100%);
}

.carousel-control-prev,
.carousel-control-next {
  z-index: 5;
  display: flex;
  justify-content: center;
  padding-top: 20%;
  width: 4%;
  height: 100vh;
  text-align: center;
  transition: opacity 0.15s ease;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.carousel-control-prev i,
.carousel-control-next i {
  width: auto;
  color: rgba(0, 0, 0, 0.4);
  text-align: center;
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-control-prev,
  .carousel-control-next {
    transition: none;
  }
}

.fa-angle-left,
.fa-angle-right {
  font-size: 4rem;
  text-align: center;
}

.carousel-indicators {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px;
  width: 100%;
  list-style: none;
}

.carousel-indicators li {
  box-sizing: content-box;
  flex: 0 1 auto;
  width: 10px;
  height: 10px;
  margin-right: 3px;
  margin-left: 3px;
  text-indent: -999px;
  cursor: pointer;
  background-color: #000;
  background-clip: padding-box;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-radius: 50%;
  opacity: 0.3;
  transition: opacity 0.6s ease;
}

.mobile img,
.mobile video,
.pad img {
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-indicators li {
    transition: none;
  }
}

.carousel-indicators .active {
  opacity: 1;
}

@media (max-width: 1048px) {
  .carousel-inner {
    height: -moz-fit-content;
    height: fit-content;
    width: 100%;
    overflow: visible;
    padding-top: 3rem;
  }

  .carousel-item {
    display: unset;
    float: unset;
    height: -moz-fit-content;
    height: fit-content;
    margin-right: 0%;
    backface-visibility: hidden;
  }

  #myCarousel19 .carousel-container {
    box-sizing: border-box;
    padding-top: calc(4rem + env(safe-area-inset-top));
  }

  #myCarousel19 .carousel-container > h4 {
    display: block;
    width: 90%;
    text-align: left;
    margin: 0 0 1rem 0;
  }

  #myCarousel19 .carousel-container > p {
    min-height: 0;
    text-align: left;
    width: 90%;
    padding: 0;
  }

  .carousel-item-next:not(.carousel-item-left),
  .active.carousel-item-right,
  .carousel-item-prev:not(.carousel-item-right),
  .active.carousel-item-left {
    transform: none;
  }

  .carousel-item .carousel-container > video {
    max-height: 300px;
  }

  .carousel-img img {
    max-height: 300px;
    max-width: 100%;
    width: auto;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
}
