nav{
    width: 100%;
    height: max-content;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    transform: translateY(0);
    transition: transform .5s;
}
nav.active{
    background-color: var(--dark);
    position: fixed;
    top: 0;
    left: 0;
    border-bottom: solid 1px var(--card-clr);
}
nav.hide{
    transform: translateY(-100%);
}
body.is-nav-open nav{
    transform: translateY(0);
}

.site-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 90;
}
body.is-nav-open{
    overflow: hidden;
}
body.is-nav-open .site-overlay{
    opacity: 1;
    pointer-events: auto;
}

.icon{
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
    stroke: currentColor;
}
.nav-holder{
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--site-padding);
    position: relative;
}


.logo-holder{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.logo-holder img{
    height: 80%;
    width: auto;
}


.nav-right{
    height: 100%;
    display: flex;
    align-items: center;
}
.nav-right .icon--phone{
    height: 40px;
    width: auto;
    cursor: pointer;
    display: none;
}

.nav-contact-holder{
    position: fixed;
    top: 0;
    right: 0;
    opacity: 0;
    transition: opacity .5s ease;
    width: 400px;
    max-width: 100%;
    height: 100svh;
    background-color: var(--dark);
    transform: translateY(-100%);
    overflow-y: auto;
    overflow-x: hidden;
}
.nav-contact-holder.active{
    transform: translateY(0);
    opacity: 1;
    z-index: 110;
}
.nav-contact{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.nav-contact .img-holder{
    width: 100%;
    height: max-content;
    position: relative;
}
.nav-contact .img-holder .nav-contact-img{
    width: 100%;
    height: auto;
}

.nav-contacts{
    padding: var(--section-padding);
    width: max-content;
    display: flex;
    flex-direction: column;
    gap: 1em;
}
.nav-contacts li{
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    position: relative;
    cursor: pointer;
}
.nav-contacts li img{
    height: 20px;
    width: auto;
}
.nav-contacts a{
    width: max-content;
	color: var(--light);
	font-family: var(--font-body);
    font-size: calc(.9rem + 0.2vw);
    line-height: 1.7;
}
.nav-contacts li::after{
    content: "";
    position: absolute;
    top: 105%;
    left: 0;
    height: 2px;
    width: 0;
    background-color: var(--ac-clr);
    box-shadow: 0 0 5px var(--ac-clr);
    transition: all .4s ease;
}
.nav-contacts li:hover::after{
    width: 100%;
}


.menu{
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    z-index: 10;
}
.menu::before{
    content: "";
    position: absolute;
    inset: -10px;
    pointer-events: auto;
}
.menu::after{
    content: "";
    position: absolute;
    inset: -10px;
    background: rgba(255, 255, 255, 0.075);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.25s ease-out;
    pointer-events: none;
    border-radius: var(--small-radius);
}
.menu:hover::after{
    opacity: 1;
}
.menu .burger,
.menu p{
    position: relative;
    z-index: 1;
}
.burger{
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.burger .bar{
    width: 100%;
    height: 2px;
    position: relative;
    background-color: var(--lighter);
    overflow: hidden;
}
.burger .bar:nth-of-type(1)::before,
.burger .bar:nth-of-type(3)::before{
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 58%;
    height: 100%;
    background-color: var(--ac-clr);
    transition: background .5s;
}
.burger .bar:nth-of-type(2)::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 58%;
    height: 100%;
    background-color: var(--ac-clr);
    transition: background .5s;
}
.burger .bar::before{
    transform: translateX(var(--before-x, 0));
    transition: none;
}




/* nav-list */
.nav-list-wrapper{
    min-width: 640px;
    width: 70%;
    max-width: 1000px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100svh;
    background-color: var(--dark);
    transform: translateX(-100%);
    transition: transform .5s ease-in-out;
    z-index: 30;
}
.nav-list-wrapper.active{
    transform: translateX(0);
    z-index: 30;
}

body.is-nav-open .menu{
    pointer-events: none;
}

body.is-nav-open .menu::after{
    opacity: 0 !important;
}

body.is-nav-open .menu .burger .bar{
    --before-x: 0;
}



.close-btn-wrapper,
.nav-contact-close-wrapper{
    width: max-content;
    height: max-content;
    border-radius: 5px;
    position: absolute;
    top: 13px;
    right: 11px;
    padding: 5px;
    transition: all .3s ease;
    z-index: 110;
    cursor: pointer;
}
.nav-contact-close-wrapper{
    top: 18px !important;
}
.close-btn-wrapper:hover{
    background-color: var(--dark);
}
.nav-contact-close-wrapper:hover{
    background-color: var(--card-clr);
}
.close-btn,
.nav-contact-close{
    width: 25px;
    height: 25px;
    position: relative;
}
.close-btn span,
.nav-contact-close span{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--lighter);
    width: 100%;
    height: 2px;
}
.close-btn span:first-of-type,
.nav-contact-close span:first-of-type{
    transform: translate(-50%, -50%) rotate(-45deg);
}
.close-btn span:last-of-type,
.nav-contact-close span:last-of-type{
    transform: translate(-50%, -50%) rotate(45deg);
}



.nav-list{
    display: flex;
    height: 100%;
    overflow: hidden;
    min-height: 0;
    width: 100%;
}

.list-left{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: var(--site-padding);
    width: 50%;
    min-width: 320px;
    position: relative;
    height: 100%;
    overflow-y: auto;
    min-height: 0;
}
.list-left-item:first-of-type{
    margin-top: 60px;
}
.list-left-item:last-of-type{
    margin-bottom: 10px;
}
.list-left-item{
    cursor: pointer;
    transition: all .3s ease;
    border-radius: var(--small-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    gap: 30px;
	user-select: none;
}
.expand-right.active{
    background-color: var(--card-clr);
}
.list-left-item:hover{
    background-color: var(--card-clr);
}
.list-left-item p,
.list-left-item a{
    font-size: 1.3rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}
.list-left-item .arrow{
    width: 0 !important;
    height: auto !important;
    transition: .4s ease;
}
.expand-right.active .arrow{
    margin-right: 10px;
    width: 20px !important;
}

.list-left-item .mini-arrow{
    height: 15px;
    width: auto;
}
.list-left-item.akt p{
    color: var(--ac-clr);
    text-shadow: 0 0 7px var(--ac-clr);
}






.list-right-wrapper{
    width: 50%;
    min-width: 320px;
    height: 100%;
    background-color: var(--card-clr);
    overflow: hidden;
    min-height: 0;
}
.list-right{
    height: 100%;
    position: relative;
    min-height: 0;
}


.list-right-content{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(12px);
    opacity: 0;
    pointer-events: none;
}
.list-right-content.active{
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}
.list-right-content-wrapper{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    align-items: center;
    min-height: 0;
}


.list-left::-webkit-scrollbar,
.list-right-content-wrapper::-webkit-scrollbar{
  	width: 10px;
}
.list-left::-webkit-scrollbar-track,
.list-right-content-wrapper::-webkit-scrollbar-track{
	background: transparent;
}
.list-left::-webkit-scrollbar-thumb,
.list-right-content-wrapper::-webkit-scrollbar-thumb{
	background: var(--heading-clr);
	border-radius: 999px;
}

.list-left,
.list-right-content-wrapper{
  scrollbar-width: thin;
  scrollbar-color: var(--heading-clr) transparent;
}



.right-buttons{
    width: 100%;
}
.right-buttons a{
    font-size: 1.2rem;
    width: 100%;
    padding: 14px 16px;
    border-bottom: 1px solid var(--dark);
    transition: .3s ease;
    display: flex;
    align-items: center;
}
.right-buttons a:first-of-type{
    border-top: 1px solid var(--dark);
}
.right-buttons a:hover{
    background-color: var(--dark);
}


.right-cards{
    margin: 2em 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2em;
    padding: var(--site-padding);
}
.nav-card{
    background-color: var(--dark);
    border-radius: var(--radius);
    width: 80%;
    min-width: 270px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
/* Referenzen cards are anchors; make width behave like block-based news cards. */
.list-right-content[data-nav-panel="referenzen"] .nav-card{
    display: block;
}
.nav-card .card-img-holder{
    width: 100%;
    height: auto;
    overflow: hidden;
    aspect-ratio: 16/9;
    height: max-content;
}
.nav-card .card-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .5s;
}

.nav-card p{
    padding: 10px 1em;
    font-size: 1.2rem;
    font-weight: 400;
}
.nav-card--overlay{
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.nav-card--overlay .card-img-holder{
    position: relative;
}
.nav-card__overlay{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1em;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.35);
}
.nav-card__overlay--bottom-left{
    align-items: flex-end;
    justify-content: flex-start;
    text-align: left;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.45) 100%);
}
.nav-card__overlay p{
    color: var(--lighter);
    font-size: 1.1rem;
    font-weight: 500;
}
.nav-card__text-row{
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav-card--dienstleistungen .nav-card__text-row{
    color: var(--lighter);
    font-size: 1.1rem;
    font-weight: 500;
}
.nav-card__placeholder{
    width: 100%;
    min-height: 200px;
    background-color: var(--light);
}
.nav-card__placeholder--light{
    background-color: var(--lighter);
}
.corner-arrow{
    height: 15px !important;
    width: auto !important;
    margin-left: 5px;
}
.nav-card:hover .card-img{
    transform: scale(1.03);
}


.top-bar{
    width: 100%;
    min-height: 60px !important;
    position: sticky;
    top: 0;
    left: 0;
    background-color: var(--card-clr);
    z-index: 103;
}
.back-btn-wrapper{
    width: 35px;
    height: 35px;
    border-radius: 5px;
    position: absolute;
    top: 13px;
    left: 11px;
    padding: 5px;
    transition: all .3s ease;
    z-index: 110;
    transform: scaleX(-1);
    display: none;
    cursor: pointer;
}
.back-btn-wrapper:hover{
    background-color: var(--dark);
}
.back-btn{
    width: 100%;
    height: auto;
    position: relative;
    color: var(--light);
}




@media(max-width: 800px){
    .logo-holder img{
        height: 70%;
    }

    .nav-right img{
        height: 25px;
    }
}

@media(max-width: 640px){
    .back-btn-wrapper{
        display: inherit;
    }


    .top-bar{
        background-color: var(--dark);
    }
    .close-btn-wrapper:hover,
    .back-btn-wrapper:hover{
        background-color: var(--card-clr);
    }


    .nav-list-wrapper,
    .list-left,
    .list-right-wrapper{
        min-width: 100%;
        width: 100%;
    }
    .nav-list{
        position: relative;
    }
    .list-left{
        padding: var(--site-padding);
    }
    .list-right-wrapper{
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        background-color: transparent;
        pointer-events: none;
    }
    .list-right-wrapper.has-active-panel{
        pointer-events: auto;
    }


    .list-right-content{
        top: 0;
        left: 0;
        z-index: 101 !important;
        height: 100%;
    }
    .list-right-content-wrapper{
        flex: 1 1 auto;
        background-color: var(--dark);
    }

    .right-buttons a{
        border-bottom: 1px solid var(--card-clr);
    }
    .right-buttons a:first-of-type{
        border-top: 1px solid var(--card-clr);
    }
    .right-buttons a:hover{
        background-color: var(--card-clr);
    }

    .nav-card{
        background-color: var(--card-clr);
    }




    .nav-right button{
        display: none;
    }
    .nav-right .icon--phone{
        display: inherit;
    }
}

@media (max-width: 500px) {
    .nav-contact-holder{
        width: 100%;
    }
}

@media(max-width: 400px){
    .menu p{
        display: none;
    }
}


/* footer */

footer{
    margin-top: 50px;
    background: #0e0e0e;
    width: 100%;
    display: flex;
    justify-content: center;
}

.footer-holder{
    width: 100%;
    display: flex;
    flex-direction: column;
}

footer .top{
    position: relative;
    width: 100%;
    display: flex;
    gap: max(3em, 20%);
    padding: var(--section-padding);
}
footer .top ul{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
footer .top ul p{
    font-size: 1.3rem;
}
footer .top ul .ac{
    text-shadow: 0 0 8px var(--ac-clr);
}

footer .top ul li a{
    position: relative;
}
footer .top ul li a::after{
    position: absolute;
    top: 100%;
    left: 0;
    width: 0;
    height: 2px;
    content: '';
    background-color: var(--ac-clr);
    transition: width .4s ease;
    box-shadow: 0 0 8px var(--ac-clr);
}
footer .top ul li a:hover::after{
    width: 100%;
}



footer .top .socials{
    display: flex;
    gap: 10px;
    position: absolute;
    top: 50px;
    right: 16px;
}
footer .top .social{
    height: 35px;
    width: auto;
    cursor: pointer;
}
footer .top .social path{
    transition: all .4s ease;
}
footer .top .social:hover path{
    fill: var(--ac-clr);
}



footer .bottom ul{
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px 16px;
    border-top: 1px solid var(--card-clr);
}
footer .bottom a{
    font-size: .95rem;
    position: relative;
}
footer .bottom a::after{
    position: absolute;
    width: 0;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    content: '';
    height: 1px;
    background-color: var(--txt);
    transition: width .4s ease;
}
footer .bottom a:hover::after{
    width: 100%;
}

footer .cookies a{
    color: var(--txt) !important;
}

@media(max-width: 700px){
    footer .top{
        justify-content: center;
        margin-bottom: 70px;
    }
    footer .top .socials{
        width: max-content;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media(max-width: 370px){
    footer .top{
        flex-direction: column;
        gap: 50px;
    }
    footer .bottom ul{
        flex-direction: column;
    }
    footer .top .socials{
      left: 1em;
        transform: translateX(0);
    }
}
