nav {
    position: relative;
    display: grid;
    justify-items: start;
    justify-content: start;
    align-items: center;
    grid-area: menutop;
    justify-self: end;
    margin-right: 20px;
    flex:1;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-top: 10px;
}

.hamburger span {
    width: 35px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.3s;
}

.menu-top {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap:5px;
    position: relative;
    width: fit-content;
    justify-content: center;
    /* margin-top:25px; */

}




@media (min-width: 81.5em) {
    .menu-top {
        column-gap: 20px;
        justify-content: flex-end;
        /* margin-top:55px; */
    }

    .menu-top li + li::before {
        margin-right: 20px;

    }
}

/* Entferne den Trenner vor den letzten beiden Elementen */

.menu-top li:nth-last-child(1)::before {
    content: none;
}

.menu-top li.active > a {
    color: var(--color-secondary);
}

.menu-top a {
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(1rem, 1vw + .7rem, 1.3rem);
    color: var(--color-primary);
}

ul.menu-footer {
    display: flex;
    background-color:var(--color-primary);
    justify-content: flex-start;
    min-height:56px;
    width: min(100%, 850px);
    align-items: center;
    column-gap: 10px;
    list-style: none;
    margin: 0;
    padding:0;
    flex-wrap: wrap;
    position: relative;
}

ul.menu-footer::before {
    content:"";
    height:100%;
    position: absolute;
    left:-1000px;
    bottom:0;
    width:1100px;
    background-color:var(--color-primary);
}

@media (max-width: 850px) {
    ul.menu-footer::after {
        content:"";
        height:100%;
        position: absolute;
    right:-3em;
        bottom:0;
        width:3em;
        background-color:var(--color-primary);
    }
}

ul.menu-footer li > a {
    color:#fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
}

.menu-footer li {
    position: relative;
}

/* Zeige den Trenner nach den ersten vier Listenelementen an */
.menu-footer li + li::before {
    content: "|";
    margin-right: 10px;
    color: var(--color-primary);
}

@media (max-width: 1000px) {
    nav {
        position: relative;
        display: grid;
        justify-items: start;
        justify-content: start;
        align-items: start;
        grid-area: menutop;
        justify-self: start;
        width:100%;
    }


    .menu-top {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding-top: 25px;
        background-color: #fff;
    }

    .menu-top li {
        text-align: center;
        margin: 0;
    }

    .hamburger {
        display: flex;
    }

    .menu-top.active {
        display: grid;
        position: absolute;
        border:1px solid #ccc;
        z-index:100;

}

}

@media (min-width: 1001px) {
    .menu-top li {
        position: relative;
    }

    /* Zeige den Trenner nach den ersten vier Listenelementen an */
    .menu-top li + li::before {
        content: "|";
        margin-right: 10px;
        color: var(--color-primary);
    }



}