.navbar {
    z-index: 100;
    display: grid;
    grid-template-columns: 15% 70% 15%;
    align-items: center;
    padding: 0 0.5rem;
    z-index: 100;
    position: fixed;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    opacity: 1;
    transition: background-color 300ms ease, backdrop-filter 300ms ease, -webkit-backdrop-filter 300ms ease, box-shadow 300ms ease, transform 300ms ease, opacity 200ms ease;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.navbar.blurred {
    background-color: rgba(248, 248, 252, .4);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(10px) saturate(86%);
    box-shadow: 0 5px 25px 0 rgba(84, 84, 84, 0.4);
}

.navbar .logo1{
    display: block;
}



.logo {
    grid-column: 1;
    justify-self: start;
}


.logo img {
    width: 10rem;
    height: auto;
    margin: 0.4rem;
    transition: width 0.3s ease;
}


.nav-menu {
    grid-column: 2;
    justify-self: center;
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
    text-align: center;
}

.nav-menu2 {
    grid-column: 2;
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    position: relative;
    justify-content: space-around;
    width: 100%;
    text-align: center;
    justify-self: center;
    max-width: 600px;
    align-self: center;
}

@media (max-width: 860px){
    .nav-menu2 {
        justify-content: center;
        flex-flow: column;
    }

    .f-link{
        padding: 5px 0;
    }

    main{
        min-height: 80vh;
    }
}

.navbar.blurred .nav-link{
    color: rgba(0, 0, 0, 0.4);
}

.nav-link {
    display: flex;
    padding: 0;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    line-height: 14px;
}


.nav-item {
    align-items: center;
    cursor: pointer;
    position: relative;
    display: flex;
    transition: transform 0.3s cubic-bezier(.4, 2, .6, 1);
    padding: 2px 10px;
    border-radius: 20px;
    margin: 0 2vw;
    height: 1.8rem;
    z-index: 100;
}

#active{
    background: linear-gradient(135deg, rgba(113, 113, 113, 0.25), rgba(152, 152, 152, 0.25));
}

#active:hover{
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0);
}

#active:hover .nav-link {
    color: rgba(0, 0, 0, 0.4);
}

#active .nav-link:hover{
    color: rgba(0, 0, 0, 0.6);
}

.nav-item:hover {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.8), rgba(59, 130, 246, 0.8));
    height: 1.8rem;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.nav-item:hover .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.nav-item .nav-link:hover{
    color: rgb(255, 255, 255);
}

.nav-item:hover .dropdown-content {
    display: flex;
}

.dropdown-content {
    display: none;
    list-style: none;
    flex-direction: row;
    white-space: nowrap;
}


.dropdown-content a {
    padding: 0 10px;
    color: rgba(255, 255, 255, 0.6);
    gap: 1px;
}

.dropdown-content a:hover {
    color: rgb(255, 255, 255);
}

.socialmedia {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
}

.socialmedia a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    transition: color 0.3s ease;
    position: static;
    margin: 0 0.5rem;
    height: 1.8rem;
    width: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 0;
}

.navbar.blurred .socialmedia a{
    color: rgba(0, 0, 0, 0.4);
}




.socialmedia a:hover {
    background: linear-gradient(135deg, rgba(30, 64, 175), rgb(59, 130, 246));
    background-clip: text;
    color: transparent; /* Fallback */
}

.onlyMmenu{
    display: none;
}



.social-nav {
    display: none;
}

.mmenu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}


.mmenu span {
    height: 4px;
    width: 28px;
    background: white;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 1350px) {
    .navbar {
        grid-template-columns: 50% 50%;
        grid-template-rows: auto;
        padding: 0 1rem;
    }

    .navbar.active {
        background-color: rgba(248, 248, 252, .4);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(10px) saturate(86%);
        box-shadow: 0 5px 25px 0 rgba(84, 84, 84, 0.4);
    }


    .logo {
        order: 1;
        margin: 5px 0;
    }

    .logo img{
        width: 9rem;
    }


    .mmenu {
        display: grid;
        grid-column: span;
        order: 2;
        margin-left: auto;
        justify-self: center;
        margin-right: 2rem;
    }

    .mmenu span {
        height: 4px;
        width: 28px;
        background: rgba(0, 0, 0, 0.2);
        margin: 3px 0;
        border-radius: 2px;
        transition: all 0.3s;
    }

    .mmenu span.active {
        background: rgba(0, 0, 0, 0.2);
    }

    .onlyMmenu{
        display: block;
    }

    .nav-menu {
        display: none;
        flex: 0 0 100%;
        gap: 0.5rem;
        position: static;
        padding: 1rem 0 0 0;
        border-top: 2px solid rgba(0, 0, 0, 0.1);
        grid-column: 1 / spam 2;
        grid-row: 2;
        z-index: 99999;
    }


    .nav-menu.active {
        display: flex;
        flex-direction: column;
        max-width: 100vw;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        min-width: 150px;
        border-radius: 10px;
        width: 80vw;
        align-items: center;
        position: static;
        height: fit-content;
    }

    .nav-item:hover {
        padding: 0;
        height: fit-content;
        margin: 2px 0;
    }

    .nav-link {
        margin: 2%;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1;              /* Niedriger als Navbar (100) */
        display: none;
        pointer-events: none;
    }

    .overlay.active ~ *,
    .overlay.active + * {
        pointer-events: none;
    }

    .overlay.active{
        display: flex;
        pointer-events: auto;
    }

    body.overlay-open,  html.overlay-open {
        overflow: hidden;
        touch-action: none;
        height: 100vh;
    }

    .dropdown-content {
        position: static;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 9px;
        justify-content: space-around;
        width: 100%;
        flex-wrap: wrap;
    }

    .social-nav {
        width: 50%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 1rem 0 1rem 0;
    }

    .social-nav a {
        font-size: 1.5rem;
        color: rgba(0, 0, 0, 0.7);
    }

    .socialmedia {
        display: none;
    }
}



.copyright {
    grid-column: 3;
    font-size: 0.8rem;
    text-align: right;
}

.logo2 {
    grid-column: 1;
    justify-self: start;
}

.logo2 img {
    width: 10rem;
    height: auto;
    -webkit-background-clip: content;
}

.footer {
    display: grid;
    align-items: center;
    padding: 0.5rem;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
    grid-template-columns: 25% 50% 25%;
}

.footer b {
    color: #a5a5a5;
}


.footer a:hover {
    color: rgba(0, 0, 0, 0.6);
}
