.carousel-item img,
.carousel-item video {
    max-height: 400px; /* Maximale Höhe */
    object-fit: cover; /* Bild-/Videoinhalte zuschneiden */
    margin: 0 auto;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}
/* Slider-Bilder und Videos */
.carousel-item img,
.carousel-item video {
    max-height: 400px; /* Maximale Höhe */
    object-fit: cover; /* Bild-/Videoinhalte zuschneiden */
    display: block;
    margin: 0 auto; /* Zentrieren */
    border-radius: 10px;
}

/* Übergänge und Geschwindigkeit */
.carousel-item {
    transition: transform 1s ease-in-out, opacity 1s ease-in-out; /* Sanfte Übergänge */
}

.carousel-inner {
    position: relative;
    overflow: hidden;
}

/* Captions */
.carousel-caption {
    background: rgba(0, 0, 0, 0.6); /* Transparenter Hintergrund */
    padding: 10px;
    border-radius: 5px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Steuerungselemente */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.6); /* Farbanpassung */
    border-radius: 50%;
}
/* Slider-Einstellungen */
.carousel-item {
    transition: transform 1s ease-in-out, opacity 1s ease-in-out; /* Sanfte Übergänge */
}

.carousel-item img,
.carousel-item video {
    max-height: 400px; /* Maximale Höhe */
    object-fit: cover; /* Bild-/Videoinhalte zuschneiden */
    display: block;
    margin: 0 auto; /* Zentrieren */
    border-radius: 10px;
}

/* Slider-Indikatoren */
.carousel-indicators button {
    background-color: #007bff; /* Blau für aktive Indikatoren */
    border: none;
}

.carousel-indicators .active {
    background-color: #0056b3; /* Dunkleres Blau für aktiven Zustand */
}

/* Captions */
.carousel-caption {
    background: rgba(0, 0, 0, 0.6); /* Transparenter Hintergrund */
    padding: 10px;
    border-radius: 5px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Steuerungselemente */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.6); /* Dunkler Farbton */
    border-radius: 50%;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(0, 0, 0, 0.8); /* Dunkler bei Hover */
}
/* Mobile-spezifische Anpassungen */
@media (max-width: 768px) {
    .carousel-item {
        height: 100px; /* Kleinere Höhe für mobile Ansicht */
    }

    .carousel-item img,
    .carousel-item video {
        width: 100%; /* Breite füllt Container */
        height: 100px; /* Höhe gleichmäßig angepasst */
        object-fit: cover; /* Inhalte proportional zuschneiden */
        border-radius: 10px; /* Abgerundete Ecken bleiben erhalten */
    }

    .carousel-caption {
        font-size: 0.85rem; /* Kleinere Schriftgröße für Captions */
        padding: 5px; /* Weniger Padding für Mobilgeräte */
        border-radius: 5px; /* Abgerundete Ecken für Captions */
    }
}
/* Slider-Captions */
.carousel-caption {
    background: rgba(0, 0, 0, 0.6); /* Transparenter Hintergrund */
    padding: 10px;
    border-radius: 5px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    font-size: 1rem; /* Standardgröße für größere Bildschirme */
}

/* Steuerungselemente */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.6); /* Farbanpassung */
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(0, 0, 0, 0.8); /* Intensiverer Farbton bei Hover */
}
#slider:empty {
  display: none;
}

.carousel-inner:empty {
  display: none;
}