/* https://codepen.io/antonietta/pen/bazeXx  
https://codepen.io/adorade/pen/YzdEbyr
https://codepen.io/psyloute/pen/VwbMZvM

 */

.carousel{
    padding: 0;
    background: rgba(0, 0, 0, 0.6); 
    overflow: hidden;
    border-radius: var(--border-radius-images, 6px);
    
}

.carousel-caption h3,
#content .carousel-caption h3{
    color: white;
    font-size: clamp(1.1rem, 2.8vw, 1.60rem);
}

@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
    .carousel-caption h3,
    #content .carousel-caption h3{
        font-size: clamp(1.1rem, 2.8vw, 1.25rem);
    }
    .carousel-caption p{
        font-size: 0.95rem;
    }
}
.ca/rousel-caption {
  position: absolute;
  bottom: 10%; /* Abstand vom unteren Rand */
  left: 50%;
  transform: translateX(-50%); /* Exakte Zentrierung */

  max-width: 80%; /* Maximale Breite, um zu verhindern, dass sie zu breit wird */
  width: fit-content; /* Passt die Breite an den Inhalt an */
  text-align: center; /* Zentrierter Text */
  background: rgba(0, 0, 0, 0.3); /* Optional: Transparenter Hintergrund für bessere Lesbarkeit */
  padding: 1rem;
  border-radius: 8px;
}
    
.carousel-caption {
  text-align: center; /* Zentrierter Text */

  padding: 1rem;
  border-radius: 8px;
}

.rahmen-carousel {
    border: 5px solid white;
    border-radius: var(--border-radius-images);
}

.right-container .carousel-caption h3 {
	font-size: 110%;
}

@media (max-width: 768px) and (orientation: portrait) {
	.carousel-inner {
		h/eight: 35vh; /* Höhere Slider-Höhe im Portrait-Modus */
	}
	.carousel-item img {
		object-fit: cover;
		object-position: bottom center !important;
		width: auto !important;
		min-width: 100% !important;
		max-height: 35vh !important;
	}
}

/* Verschiebt die Navigationspfeile weiter nach außen */
.carousel-control-prev, .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    max-width: 5%;
    width: 5%;
}


.card .carousel-control-prev, .card  .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-103%);
}
.card-02-body {
    background: white;
}


/* Vertikales Carousel oben nach unten --------------------------------------------------------------------------------*/
/* Muster - https://www.cssscript.com/vertical-carousel-bootstrap/   */
.vertical-o-u.carousel .carousel-item {
    overflow: hidden;
}

.vertical-o-u.carousel .carousel-item-next:not(.carousel-item-start),
.vertical-o-u.carousel .active.carousel-item-end {
    transform: translateY(-100%);
}

.vertical-o-u.carousel .carousel-item-prev:not(.carousel-item-end),
.vertical-o-u.carousel .active.carousel-item-start {
    transform: translateY(100%);
}

.vertical-o-u.carousel .carousel-indicators {
    top: unset;
    bottom: 0;
    left: unset;
    margin-left: unset !important;
    margin-right: 1rem;
    flex-direction: column;
}

.vertical-o-u.carousel .carousel-control-prev-icon,
.vertical-o-u.carousel .carousel-control-next-icon {
    transform: rotateZ(90deg);
}

/* Vertikales Carousel  unten nach oben --------------------------------------------------------------------------------*/

.vertical-u-o.carousel .carousel-item {
    overflow: hidden;
}

.vertical-u-o.carousel .carousel-item-next:not(.carousel-item-start),
.vertical-u-o.carousel .active.carousel-item-end {
    transform: translateY(100%);
}

.vertical-u-o.carousel .carousel-item-prev:not(.carousel-item-end),
.vertical-u-o.carousel .active.carousel-item-start {
    transform: translateY(-100%);
}

.vertical-u-o.carousel .carousel-indicators {
    top: 0;
    left: unset;

    margin-left: unset !important;
    margin-right: 1rem;

    flex-direction: column;
}

.vertical-u-o.carousel .carousel-indicators [data-bs-target] {
    height: 30px;
    width: 3px;
}

.vertical-u-o.carousel .carousel-control-prev,
.vertical-u-o.carousel .carousel-control-next {
    width: 100%;
    height: 60px;
}

.vertical-u-o.carousel .carousel-control-prev-icon,
.vertical-u-o.carousel .carousel-control-next-icon {
    transform: rotateZ(90deg);
}

.vertical-u-o.carousel .carousel-control-next {
    top: unset;
    bottom: 0;
}

