/* Allgemeine Stile */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

/* Header-Stil */
header {
    background-color: #a50f2a;
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* Slideshow-Stile */
#banner-slideshow {
    position: relative;
    width: 100%;
    height: 329px; /* Höhe entspricht dem Bildverhältnis */
    overflow: hidden;
    background-color: #f9f9f9; /* Hintergrundfarbe als Fallback */
}

#banner-slideshow img {
    position: absolute;
    width: 100%; /* Breite füllt den gesamten Container */
    height: 100%; /* Höhe füllt den gesamten Container */
    object-fit: cover; /* Passt das Bild proportional an, ohne es zu verzerren */
    object-position: center; /* Bild wird zentriert */
    opacity: 0; /* Unsichtbar, solange es nicht aktiv ist */
    visibility: hidden; /* Unsichtbar, solange es nicht aktiv ist */
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out; /* Sanfter Übergang */
}

#banner-slideshow img.active {
    visibility: visible; /* Sichtbar, wenn aktiv */
    opacity: 1; /* Sichtbar, wenn aktiv */
}

/* Navigation */
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    background-color: #a50f2a;
    margin: 0;
    padding: 1rem 0;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Hauptinhalt */
main {
    padding: 2rem 5%;
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Abschnittsstile */
section {
    margin: 2rem 0;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

section h1, section h2 {
    color: #a50f2a;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

section p, section ul {
    margin-top: 1rem;
    line-height: 1.4;
}

/* Footer-Stil */
footer {
    text-align: center;
    padding: 1rem 0;
    background-color: #a50f2a;
    color: #fff;
    margin-top: 2rem;
}

/* Responsiver Stil */
@media (max-width: 768px) {
    #banner-slideshow {
        height: 200px; /* Kleinere Höhe für Tablets */
    }

    main {
        padding: 1rem;
    }

    section h1, section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    #banner-slideshow {
        height: 150px; /* Noch kleinere Höhe für Smartphones */
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    main {
        padding: 1rem;
    }
}
