/* Grundlayout für Header und Main */
body {
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'Arial', sans-serif;
    background-color: #edf3ec; /* Hellgrüner Hintergrund */
    color: #233d2e;
    overflow: hidden; /* Keine Scrollbar */
}

a {
    text-decoration: none;
    color: #233d2e;
}

a:hover {
    color: #467a5a;
}

/* Header / Navigation */
header {
    padding: 10px 20px;
    background-color: #edf3ec;
    border-bottom: 1px solid #ccc;
    z-index: 10;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
}

.nav-menu li {
    font-size: 1rem;
}

.nav-menu a {
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #467a5a;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero-Section */
main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 0; /* Gleichmäßiger Abstand nach oben und unten */
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

.image-container {
    background-color: white;
    border: 3px solid #233d2e;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px; /* Begrenzte Breite */
    width: 100%; /* Füllt die verfügbare Breite */
    height: auto; /* Entfernt feste Höhe */
    position: relative;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Bild wird nicht verzerrt, bleibt vollständig sichtbar */
    border-radius: 5px; /* Bild leicht abgerundet */
    transition: opacity 1s ease-in-out; /* Sanfter Übergang */
    position: relative;
    display: block;
}
.image-container img.active {
    opacity: 1;
}
/* Responsiveness */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Toggle für Tablets und Smartphones */
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 10px;
        background: #edf3ec;
        padding: 10px;
        position: absolute;
        top: 60px;
        right: 20px;
        border: 1px solid #ccc;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.show {
        display: flex; /* Menü sichtbar bei Aktivierung */
    }

    .image-container {
        width: 90%; /* Breiter auf Tablets */
        height: 60%; /* Niedriger auf Tablets */
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .image-container {
        width: 100%; /* Volle Breite auf Smartphones */
        height: 50%; /* Kleinere Höhe auf Smartphones */
    }

    .nav-menu a {
        font-size: 0.8rem;
    }
}