body {
    margin: 0;
    font-family: Arial, sans-serif;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    background-color: #222222;
    color: white;
    align-self: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-bottom: 1.3em;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: #e3ded2;
    margin: 4px 0;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-decoration: none;
    display: flex;
}

nav ul li {
    margin: 0 20px;
    text-decoration: none;
    display: block;
}
nav ul li a:hover {
    background-color: #555;
}
nav ul li a:active {
    color: #0799ac;
}

nav ul li a.active {
    background-color: whitesmoke;
    color: #1e1e1e;
}

nav ul li a {
    text-decoration: none;
    color: whitesmoke;
    font-size: 1.7em;
    margin: 10px;
    padding: 10px;
    justify-content: space-evenly;

}

div {
    text-align: center;
}
.logo{
    height: 55px;
    margin-bottom: 2em;
}

.logo img{
    margin-top: 1em;
    margin-bottom: 1em;
    height: 50px;
}

@media (max-width: 768px) {

    header {
        justify-content: space-between;
        margin: 0 10px 0 10px;
        padding-left: 2em;
    }
    /* Hamburger-Icon sichtbar auf kleinen Bildschirmen */
    .hamburger {
        display: flex;
        transition: transform 0.5s ease-in-out;
        margin-right: 1.5em;
    }

    /* Menü verstecken und als vertikale Liste darstellen */
    nav ul {
        display: none;
        flex-direction: column;
        width: 100vw;
        background-color: #333;
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 1000;
    }

    /* Wenn das Menü aktiv ist, das Menü anzeigen */
    nav ul.nav-active {
        display: flex;
        margin-top:2em;
    }

    /* Menüeinträge zentrieren und vertikal anordnen */
    nav ul li {
        text-align: center;
        margin: 0;
        display: block;
    }
    nav ul li a {
        display: block;
        width: 100vw;
        justify-content: space-around;
        text-align: center;
        padding: 10px 0 10px 0;
        margin: 0;
    }

    /* Das Hamburger-Icon drehen, wenn das Menü aktiv ist */
    .hamburger.toggle {
        transform: rotate(270deg);
    }

    .logo {
        padding-left: 8px;
    }
}
