/* css/slider.css */

.slider-container {
    max-width: 720px; /* Begrenzt die maximale BREITE des gesamten Sliders auf 720px */
    max-height: 720px; /* Begrenzt die maximale HÖHE des gesamten Sliders auf 720px */
    position: relative;
    margin: 20px auto;
    overflow: hidden;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: #000; /* Optional: Schwarzer Hintergrund, falls ein Bild schmaler ist */
}

.slides {
    display: flex !important;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slide {
    min-width: 100% !important;
    box-sizing: border-box;
    /* Zentriert Bilder im Slider, falls sie unterschiedliche Formate haben */
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide img {
    width: 100%;
    /* Sorgt dafür, dass die Höhe maximal 720px beträgt, ohne das Bild zu verzerren */
    max-height: 720px; 
    height: auto;
    display: block;
    object-fit: contain; /* Verhindert, dass Bilder abgeschnitten oder verzerrt werden */
}

/* Navigations-Buttons (Pfeile) */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 4px;
    transition: background-color 0.3s;
    z-index: 10;
}

.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev { left: 15px; }
.next { right: 15px; }

.slider-error {
    padding: 20px;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    width: 100%;
    text-align: center;
}
