#navbar,
#navbar-space {
    width: 100%;
    min-height: var(--navbar-height);
}

#navbar {
    /* overflow: hidden; */

    width: 100%;

    display: flex;
    justify-content: space-around;
    align-items: center;

    background-color: var(--prim-col);

    --blur: blur(6px);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);

    z-index: 100; 

    /* position: fixed;  */
    /* see overlay*/
}

#navbar * {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

#burger_btn {
    display: none;
    cursor: pointer;
    width: 7rem;
}

#burger_btn img {
    margin: auto;
    width: 3rem;
}

#logo {
    width: 7rem;
}

#logo img {
    width: 7rem;
}

@media (max-width: 750px) {
    #burger_btn {
        display: block;
    }

    #pages {
        display: none;
    }
    
    /* Auf Mobile: Logo, Button, Burger mit gleichem Abstand */
    #navbar {
        justify-content: space-between;
        padding: 0 1rem;
    }
    
    #logo,
    #burger_btn {
        flex: 0 0 auto;
        width: auto;
    }
    
    #call-to-action {
        flex: 1;
        display: flex;
        justify-content: center;
    }
}

.nav-link {
    display: inline-block;
    padding: .5rem 1rem;
    color: white;
    text-wrap: nowrap;
}

.nav-link>p {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.nav-text::after {
    content: '';
    width: 0;
    height: .2rem;
    border-radius: 2px;
    background: var(--red);
    display: inline-block;
    justify-content: center;
    transition-duration: .2s;

    /* enables/disables underline growing from middle/left */
    /* margin-right: auto; */
}

/* not working */
@media (hover:hover) {
    .nav-link:hover .nav-text::after {
        width: 100%;
    }
}

.active-link>p::after {
    width: 100%;
}

#call-to-action {
    --height: 3rem;
    min-height: var(--height);
}

#call-to-action button {
    height: calc(var(--height) - 1px);
    /* because of overhanging row of pixels */
    padding-left: 25px;
    padding-right: 25px;
}
