.main-image {
    width: auto;
    max-height: 500px;
    margin-bottom: 20px;
    border-radius: 8px; /* Abgerundete Ecken für das Hauptbild */
}

.h10 {
    height: 10px!important;
}

.w70 {
    width: 70%;
}

.top15 {
    top: 15px;
}

.carousel-item img {
    cursor: pointer;
}

/* Zoom-Effekt */
.carousel-zoom .carousel-item {
    transition: transform 0.5s ease-in-out;
}
.carousel-zoom .carousel-item-next,
.carousel-zoom .carousel-item-prev {
    transform: scale(1.2);
    opacity: 0.5;
}
.carousel-zoom .carousel-item.active {
    transform: scale(1);
    opacity: 1;
}

/* Flip-Effekt */
.carousel-flip .carousel-item {
    transition: transform 0.6s ease-in-out;
    backface-visibility: hidden;
}
.carousel-flip .carousel-item-next,
.carousel-flip .carousel-item-prev {
    transform: rotateY(90deg);
    opacity: 0;
}
.carousel-flip .carousel-item.active {
    transform: rotateY(0);
    opacity: 1;
}

/* Ken Burns-Effekt */
.carousel-kenburns .carousel-item img {
    transform: scale(1.1);
    animation: kenburns 10s linear infinite;
}
@keyframes kenburns {
    0% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

/* 3D Slide-Effekt */
.carousel-3d .carousel-inner {
    perspective: 1000px;
}
.carousel-3d .carousel-item {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
}
.carousel-3d .carousel-item-next,
.carousel-3d .carousel-item-prev {
    transform: rotateY(-90deg);
}
.carousel-3d .carousel-item.active {
    transform: rotateY(0);
}

/* Blur-Effekt */
.carousel-blur .carousel-item {
    transition: filter 0.5s ease-in-out;
}
.carousel-blur .carousel-item-next,
.carousel-blur .carousel-item-prev {
    filter: blur(5px);
    opacity: 0.5;
}
.carousel-blur .carousel-item.active {
    filter: blur(0);
    opacity: 1;
}

/* Horizontal Scroll-Effekt */
.carousel-scroll .carousel-item {
    transition: transform 0.5s ease-in-out;
}
.carousel-scroll .carousel-item-next {
    transform: translateX(100%);
}
.carousel-scroll .carousel-item-prev {
    transform: translateX(-100%);
}
.carousel-scroll .carousel-item.active {
    transform: translateX(0);
}

.carousel .carousel-indicators [data-bs-target] {
    background-color: #000;
}

.carousel-indicators {
    bottom: -22px!important;
    margin: auto!important;
}

.carousel-control-bottom-prev,
.carousel-control-bottom-next {
    top: auto!important;
    bottom: -30px!important;
    align-items: flex-end!important;
    width: auto!important;
    z-index: 4!important;
}

.carousel-control-bottom-prev {
    left: auto!important;
    right: 60px!important;
}

.carousel-control-bottom-next {
    right: 10px!important;
}

.carousel-indicators-mobile {
    justify-content: start!important;
}

.h-40 {
    height: 40px;
}

.hover-zoom {
    overflow: hidden; /* Verhindert das Überlaufen des Bildes */
    display: inline-block; /* Passt sich der Bildgröße an */
}

/* Bild mit Zoom-Effekt bei Hover */
.hover-zoom img {
    transition: transform 0.5s ease; /* Sanfter Übergang */
    width: 100%; /* Passt das Bild an den Container an */
    border-radius: var(--bs-border-radius) !important;
}

/* Zoom-Effekt beim Überfahren */
.hover-zoom:hover img {
    transform: scale(1.2); /* Bild um 20 % vergrößern */
}

.figure-caption-overlayer {
    position: absolute;
    bottom: 0px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-align: left !important;
    font-size: 1rem;
}

.figure .glow-wrap{
    overflow: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    margin-top: -10px;
}

.figure .glow{
    display: block;
    position:absolute;
    width: 40%;
    height: 200%;
    background: rgba(255,255,255,.2);
    top: 0;
    filter: blur(5px);
    transform: rotate(45deg) translate(-450%, 0);
    transition: all .5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.figure:hover .glow{
    transform: rotate(45deg) translate(450%, 0);
    transition: all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
}

figure.rotate {
    position: relative;
    overflow: hidden;
    perspective: 50em;
}

figure.rotate figcaption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(90deg);
    opacity: 0;
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    border-radius: 8px;
    transition: transform 0.5s ease-in-out, opacity 0.8s ease-in-out, visibility 0s linear 0.5s;
    height: 80%;
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center !important;
    text-align: center !important;
    flex-direction: column;
    backface-visibility: hidden;
    will-change: transform, opacity; /* Safari-Optimierung */
    visibility: hidden; /* Verhindert das vorzeitige Anzeigen in Safari */
    box-shadow: var(--bs-box-shadow-lg) !important;
}

figure.rotate:hover figcaption {
    transform: translate(-50%, -50%) rotateX(0deg);
    opacity: 1;
    visibility: visible; /* Zeigt das Element explizit an */
    transition-delay: 0s;
}

.progress-bar {
    background-color: #003398!important;
}