.top-nav{
    display: flex;
    padding: 0.5em;
    background-color: var(--dark-grey);
    position: fixed;
    left: 15em;
    right: 15em;
    border-radius: 0 0 1em 1em;
    height: 4em;
    flex-direction: row;
    z-index: 99;
    align-items: center;
    align-content: center;
    box-shadow: 0 1px 2px 0 var(--inactive-grey);
}

.top-nav-logo{
    height: auto;
    width: 2.0em;
    margin-left: 1em;
}

.top-nav-links{
    display: inline-flex;
    height: 100%;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

.top-nav-links a{
    margin-left: 1em;
    margin-right: 1em;
    text-decoration: none;
    cursor: pointer;
    font-size: 1.2em;
}

.top-nav-link
{
    color: var(--white);
    font-family: 'IBrand', sans-serif;
    letter-spacing: 0.05em;
    margin-top: 0.1em;
}

.top-nav-link:hover{
    color: var(--highlight-color);
}

.top-nav-button{
    background-color: var(--light-grey);
    width: fit-content;
    padding: 0.3em 1em 0.2em;
    border-radius: 1em;
    color: var(--white);
    font-family: 'IBrand', sans-serif;
    letter-spacing: 0.05em;
    text-align: center;
}

.top-nav-button:hover{
    background-color: var(--highlight-color);
    color: var(--white);
}

.top-nav-burger-menu{
    display: none;
}

.top-nav-burger-menu-links{
    display: none;
}

@media screen and (max-width: 1500px) {

}

@media screen and (max-width: 1200px) {
    .top-nav{
        right: 5em;
        left: 5em;
        border-radius: 0 0 2em 2em;
        overflow: hidden;
    }
}

@media screen and (max-width: 768px) {

    .top-nav{
        width: auto;
        right: 1em;
        left: 1em;
        border-radius: 0 0 2em 2em;
        height: 4em;
        overflow: hidden;
        font-size: 1.2em;
    }

    .top-nav-burger-animation-open{
        animation: top-nav-burger-animation-open-keyframes 1.0s forwards;
    }

    .top-nav-burger-animation-close{
        animation: top-nav-burger-animation-close-keyframes 1.0s forwards;
    }

    @keyframes top-nav-burger-animation-open-keyframes {
        0% {
            height: 4em;
        }
        100% {
            height: 60em;
        }
    }

    @keyframes top-nav-burger-animation-close-keyframes {
        0% {
            height: 60em;
        }
        100% {
            height: 4em;
        }
    }

    .top-nav-links{
        display: none;
    }

    .top-nav-logo{
        position: absolute;
        width: 4em;
        height: auto;
        font-size: 0.5em;
        left: 2em;
        top: 1.5em;
    }

    /* Grundlayout des Burger-Buttons */
    .top-nav-login{
        top: 0.5em;
        position: absolute;
        font-size: 2.0em;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        right: 2.5em;
        color: var(--white);
        text-decoration: none;
    }

    .top-nav-login:hover {
        color: var(--highlight-color);
    }

    /* Grundlayout des Burger-Buttons */
    .top-nav-burger-menu {
        top: 0.5em;
        position: absolute;
        font-size: 2.0em;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        right: 0.5em;
        color: var(--white);
        text-decoration: none;
    }

    .top-nav-burger-menu:hover {
        color: var(--highlight-color);
    }

    /* Burger Button Animation für das "X" */
    .active .line1 {
        transform: rotate(45deg) translate(0.55em, 0.55em);
    }

    .active .line2 {
        opacity: 0;
    }

    .active .line3 {
        transform: rotate(-45deg) translate(0.55em, -0.55em);
    }

    /* Menü Styling */
    .top-nav-burger-menu-links {
        position: absolute;
        transform: translate(-50%, 0%);
        top: 10em;
        left: 50%;
        bottom: 5em;
        border-radius: 1em;
        display: none; /* Menü ausblenden, bis der Button geklickt wird */
        height: fit-content;
        width: 90%;
        z-index: 2;
        padding: 1em;
        justify-content: center;
        align-content: center;
        align-items: center;
    }

    .top-nav-burger-menu-links.active {
        display: flex; /* Menü einblenden */
        flex-direction: column;
        gap: 1em;
    }

    .top-nav-link{
        font-size: 2em;
        text-decoration: none;
        margin: 1em;
    }

    .top-nav-button{
        font-size: 2em;
        text-decoration: none;
    }

}