body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

.visible {
    display: block;
}

section {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
}

/* Banner-Styling */
.banner {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 60px; /* Platz für die Navbar */
}

.banner img[src="src/img/BannerKonradSiess.png"] {
    width: 48%;
    position: relative;
    z-index: 2;
}

.bannertext {
    width: 100%;
    text-align: center;
    color: rgb(0, 0, 0);
    font-size: 2em;
    margin-top: 20px; /* Abstand nach den Bildern */
    position: static; /* Statt absolute Positionierung */
    transform: none; /* Transform zurücksetzen */
    padding: 20px 0; /* Etwas vertikaler Abstand */
}

.ansprache {
    width: 80%;
    margin: 20px auto;
    text-align: center;
    padding: 20px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.ansprache img {
    width: 50%;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.grid-item {
    background-color: white;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.grid-item img {
    width: 100%;
    height: auto;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #222;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1100;
}

/* Links */
.navbar a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    text-align: center;
    display: inline-block;
}

.navbar a:hover {
    background-color: #575757;
    border-radius: 5px;
}

/* Dropdown-Menü */
.dropdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.dropdown-btn {
    flex: 1;
    padding: 15px;
    text-align: left;
    text-decoration: none;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 15px;
    width: 40px;
    text-align: center;
    display: none;
}

.dropdown-toggle:hover {
    background-color: #575757;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #444;
    min-width: 150px;
    top: 100%;
    left: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    width: 100%;
}

.dropdown-content a {
    display: block;
    padding: 10px;
    color: white;
    text-align: center;
    text-decoration: none;
}

.dropdown-content a:hover {
    background-color: #666;
}

.show-dropdown {
    display: block;
}

/* Menü- und Schließen-Button */
.menu-btn {
    display: none;
}

.close-btn {
    display: none;
    background-color: red;
    color: white;
    text-align: left;
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    box-sizing: border-box;
}

/* Media Queries für kleinere Bildschirme */
@media (max-width: 768px) {
    .bannertext {
        font-size: 1.5em;
    }

    .ansprache img {
        width: 70%;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .menu-btn {
        font-size: 0.8em;
        padding: 8px 16px;
    }

    .bannertext {
        font-size: 1em;
    }

    .ansprache img {
        width: 90%;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}


/* Responsive Navbar */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        width: 250px;
        height: 100%;
        left: -250px;
        top: 0;
        padding-top: 20px;
        transition: 0.3s;
    }

    .navbar.show {
        left: 0;
    }

    .navbar a {
        display: block;
        width: 75%;
        text-align: left;
        padding-right: 40px;
    }

    .menu-btn {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        background-color: #333;
        color: white;
        border: none;
        padding: 10px 15px;
        cursor: pointer;
        border-radius: 5px;
        z-index: 1200;
    }

    .menu-btn:hover {
        background-color: #555;
    }

    .close-btn {
        display: block;
    }

    .dropdown {
        flex-direction: column;
        width: 100%;
        position: relative;
    }

    .dropdown-btn {
        width: 100%;
        text-align: left;
        padding-right: 40px;
    }

    .dropdown-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
    }

    .dropdown-content {
        position: relative;
        top: 0;
        left: 0;
        box-shadow: none;
        width: 100%;
    }
}