/* SLIDE MENU
-------------------------------------------------- */
button{
    background: none;
    border: none;
    color: var(--clr-white);
    font-size: 24px;
    cursor: pointer;
    text-align: left;
    padding: 0 0 20px 0;
}
.menu-header{
    z-index: 9998;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 67px 20px 0 20px;
    color: var(--clr-white) !important;
}
.menu-header .site-branding{
    margin-left: 40px;
}
#slide-menu li{
    list-style: none;
}
#slide-menu.depth_0 > li{
    margin-bottom: 20px;
}


/* ########### HOVER ############### */

/* #slide-menu.depth_0 > li:hover{
    background-color: var(--clr-white);
} */
#slide-menu.depth_0 > li:hover > *{
    color: var(--clr-pink);
}

/* .slide-submenu.depth_1 > li:hover,
.slide-submenu.depth_2 > li:hover,
.slide-submenu.depth_3 > li:hover,
.slide-submenu.depth_4 > li:hover{
    background-color: var(--clr-white);
} */
.slide-submenu.depth_1 > li:hover > *,
.slide-submenu.depth_2 > li:hover > *,
.slide-submenu.depth_3 > li:hover > *,
.slide-submenu.depth_4 > li:hover > *{
    color: var(--clr-pink) !important;
}
.slide-submenu.depth_1 > li.submenu-header:hover > *,
.slide-submenu.depth_2 > li.submenu-header:hover > *,
.slide-submenu.depth_3 > li.submenu-header:hover > *,
.slide-submenu.depth_4 > li.submenu-header:hover > *{
    color: var(--clr-white) !important;
}

/* ################################# */


.slide-submenu.depth_1 > li,
.slide-submenu.depth_2 > li,
.slide-submenu.depth_3 > li,
.slide-submenu.depth_4 > li{
    margin-bottom: 10px;    
}
.slide-submenu.depth_1 > li:not(.submenu-header, .submenu-link) > *,
.slide-submenu.depth_2 > li:not(.submenu-header, .submenu-link) > *,
.slide-submenu.depth_3 > li:not(.submenu-header, .submenu-link) > *,
.slide-submenu.depth_4 > li:not(.submenu-header, .submenu-link) > *{
    font-size: 24px !important;
    line-height: 1.3;
}


#slide-menu label,
#slide-menu a{
    text-decoration: none;
    color: var(--clr-white);
    font-size: 24px;
}
#slide-menu .open-submenu{
    max-width: 80%;
}
#slide-menu.depth_0{
    padding-top: 20px;
}
#slide-menu.depth_0 > li > .open-submenu{
    font-weight: bold;
}
#slide-menu .submenu-link{
    margin-bottom: 40px;
}
#slide-menu .submenu-link a{
    padding-bottom: 27px;
    border-bottom: 2px solid var(--clr-white);
    font-weight: bold;
}
/* #slide-menu .submenu-header,
#slide-menu li:not(:last-of-type){
    border-bottom: 1px solid white;
} */
.submenu-header{
    margin-bottom: 30px;
}
.menu-toggle.close-menu span:nth-child(1){
    transform: rotateZ(45deg);
    top: 10px;
}
.menu-toggle.close-menu span:nth-child(2){
    width: 0;
    left: 25px;
}
.menu-toggle.close-menu span:nth-child(3){
    transform: rotateZ(-45deg);
    top: 10px;
}
.menu-toggle{
    z-index: 10;
    opacity: 1;
    display: block;
    position: relative;
    top: 0;
    width: 40px;
    height: 24px;
    line-height: 0px;
    padding: 0;
    cursor: pointer;
    transition: all 250ms ease-in-out;
}
.menu-toggle span{
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--clr-burger);
    left: 0;
    transition: all 250ms ease-in-out;
}
.menu-toggle.close-menu span{
    background-color: var(--clr-burger-open);
}
.menu-toggle span:nth-child(1){
    top: 0;
}
.menu-toggle span:nth-child(2){
    top: 10px;
}
.menu-toggle span:nth-child(3){
    top: 20px;
}
.menu-toggle.show span:nth-child(1){
    transform: rotateZ(45deg);
    top: 10px;
}
.menu-toggle.show span:nth-child(2){
    width: 0;
    left: 25px;
}
.menu-toggle.show span:nth-child(3){
    transform: rotateZ(-45deg);
    top: 10px;
}
.menu-toggle.show span{
    background-color: var(--clr-burger-open);
}
.menu-toggle:focus {
    text-decoration: none;
    outline: 0;
     box-shadow: none;
}
.menu-header .menu-toggle::after{
    display: none;
}
#slide-menu{
    height: auto !important;
    background: none !important;
}
#slide-menu.navbar-nav{
    flex-direction: column;
}
.menu.menuBG{
    overflow: hidden;
    background-image: var(--bg-slide-menu);
    overflow-y: auto;
    overflow-x: hidden;
}
.menu{
    z-index: 9999;
    position: absolute;
    display: flex;
    flex-direction: column;
    top: -68px;
    right: 0;    
    width: 617px;
    height: calc(100dvh + 68px);
    transform: translate3d(617px, 0, 0);
    transition: transform 0.5s ease-in-out;
}
.menu.open {
    transform: translate3d(0, 0, 0);
    box-shadow: -15px 0 84px 0 rgba(0, 0, 0, 0.52);
}
.menu ul li{
    width: 100%;
    transition: all 0.3s ease-in-out;
}
.menu ul li .nav-link{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 80%;
    margin-inline: auto;
}
.menu ul li a.dropdown-item{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 80%;
    margin-inline: auto;
    color: var(--clr-white);
}
.menu ul li button{
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 80%;
    margin-inline: auto;
}
.menu ul li button::after{
    position: absolute;
    right: 0;
    content: '';
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 26px;
    height: 26px;
    background: url(/wp-content/themes/wptheme/assets/img/arrow_white.svg) 98% 30% / 26px 26px no-repeat;
}
.menu ul li .back-button::after{
    display: none;
}
.menu ul li:not(:last-of-type) > label{
    border-bottom: 1px solid white;
    
}
.menu ul li > label.back-button{
    font-size: 18px !important;
    font-weight: normal !important;
    background: url(/wp-content/themes/wptheme/assets/img/arrow_white_left.svg) 0% 28% / 12px 12px no-repeat;
    padding-left: 10%;
    padding-bottom: 12px;
}
.menu button,
.menu a,
label{
    display: block;
    text-decoration: none;
    color: var(--clr-white);
}
.menu li a{
    padding-left: 0;
}

/* Remove/hide old checkbox logic */
.menu-checkbox {
  display: none !important;
}

/* Slide menu base styles */
.menu ul.slide-submenu {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100dvh;
    background: var(--bg-slide-submenu);
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(.77,0,.18,1), opacity 0.5s cubic-bezier(.77,0,.18,1);
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    opacity: 1;
    pointer-events: none;
}

/* Root-Menü: nur sichtbar und relativ, wenn aktiv */
.menu ul.slide-submenu.depth_0.active {
    position: relative;
    transform: none;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    z-index: 10001;
}

/* Root-Menü: unsichtbar, wenn nicht aktiv */
.menu ul.slide-submenu.depth_0:not(.active) {
    position: relative;
    transform: none;
    visibility: hidden;
    opacity: 1;
    pointer-events: none;
    z-index: 10001;
}

/* Untermenüs: immer absolut, sliden von rechts rein */
.menu ul.slide-submenu.depth_1,
.menu ul.slide-submenu.depth_2,
.menu ul.slide-submenu.depth_3 {
    position: absolute;
    z-index: 10002; /* Tiefe kann je nach Bedarf erhöht werden */
}

/* Show active submenu: slidet von rechts rein */
.menu ul.slide-submenu.active {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    z-index: 20000 !important;
}

/* Tiefe-Klassen für Überlagerung */
.menu ul.slide-submenu.depth_0 { z-index: 10001; }
.menu ul.slide-submenu.depth_1 { z-index: 10002; }
.menu ul.slide-submenu.depth_2 { z-index: 10003; }
.menu ul.slide-submenu.depth_3 { z-index: 10004; }

/* Submenu header styles */
.menu ul.slide-submenu .submenu-header {
    display: flex;
    align-items: center;
    padding: 30px 20px 40px 0;
    background: transparent;
    gap: 20px;
    width: 100%;
    max-width: 80%;
    margin-left: 47px;
}
.menu ul.slide-submenu .back-button {
    background: none;
    border: none;
    color: var(--clr-white);
    font-size: 22px;
    cursor: pointer;
    padding: 0 10px 0 0;
    line-height: 1;
    transition: color 0.2s;
    margin-inline: unset;
    margin-bottom: 0;
}
.menu ul.slide-submenu .back-button img{
    width: 100%;
    max-width: 25px;
}
.menu ul.slide-submenu .back-button:hover {
    color: var(--clr-white);
}
.menu ul.slide-submenu .submenu-title {
    font-size: 22px;
    color: var(--clr-white);
}

/* Button für Untermenü öffnen */
.menu ul.slide-submenu .open-submenu {
    background: none;
    border: none;
    color: var(--clr-white);
    font-size: 24px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: color 0.2s;
    padding: 10px 30px 10px 0;
}
.menu ul.slide-submenu .open-submenu:hover {
    color: var(--clr-white);
}

/* Links im Menü */
.menu ul.slide-submenu a.dropdown-item {
    display: block;
    color: var(--clr-white);
    font-size: 24px;
    padding: 10px 0;
    text-decoration: none;
    transition: color 0.2s;
}
.menu ul.slide-submenu a.dropdown-item:hover {
    color: var(--clr-white);
}

/* Entferne veraltete Styles */
.menu-checkbox { display: none !important; }
.menu ul li > label,
.menu ul li:not(:last-of-type) > label,
.menu ul li > label.back-button {
    display: none !important;
}

.menu-bottom{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px 0;
    width: 100%;
    max-width: 80%;
    margin-inline: auto;
}
.menu-bottom a:not(:last-child)::after{
    content: '';
    display: inline-block;
    width: 2px;
    height: 18px;
    background-color: var(--clr-white);
    margin-inline: 15px;
}
.menu .socialmedia,
.menu .socialmedia .icons{
    display: flex;
    gap: 25px;
    background-color: #025194;
}
.menu .socialmedia{
    padding-left: 61px;
}
.menu .socialmedia a{
    margin-bottom: 0;
}
.menu .socialmedia a svg path{
    fill: white;
}
.menu .socialmedia a{
    filter: drop-shadow(0 0 48px var(--clr-green));
}
.menu-header .site-branding{
    margin: 0;
}

.joinus{
    margin-bottom: 30px;
}
.joinus .btn{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 0 25px;
    border: 1px solid var(--clr-white);
    color: var(--clr-white);
    box-shadow: none;
}
.joinus p{
    color: var(--clr-white);
}
.joinus .link_svg{
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--clr-white);
    border-radius: 100vmax;
    width: 60px;
    height: 60px;
    margin-left: 20px;
}


.ksb_sm{
    display: flex;
    gap: 20px;
    margin-top: 40px;
}
.ksb_sm a{
    margin-bottom: 20px;
    padding-bottom: 0;
}
.ksb_sm a::after{
    display: none !important;
}
.ksb_sm a svg{
    width: 34px;
    height: auto;
    max-height: 36px;
}
.ksb_sm a svg path{
    fill: var(--clr-white);
}


.nav_bottom_links{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-left: 0;
}
ul.nav_bottom_links li{
    position: relative;
    list-style: none;
    width: fit-content !important;
    margin-left: 0;
}
ul.nav_bottom_links li:not(:last-child)::after{
    position: absolute;
    right: -11px;
    top: 5px;
    content: '';
    display: inline-block;
    width: 2px;
    height: 18px;
    background-color: var(--clr-white);
}
ul.nav_bottom_links li a{
    font-size: 20px;
    margin-bottom: 0;
    padding-bottom: 0;
}
ul.nav_bottom_links li:not(:first-child) a{
    font-weight: 400;
}
@media only screen and (max-width: 617px){
    .menu{
        width: 100vw;
        transform: translate3d(100vw, 0, 0);
    }
    .menu.open {
        transform: translate3d(0, 0, 0);
    }
}
@media only screen and (max-width: 400px){
    .menu-bottom .btn{
        font-size: 18px;
    }
    .joinus .link_svg {
        width: 50px;
        height: 50px;
    }
    .site-branding a {
        grid-template-columns: 60px 1fr !important;
    }
    .site-branding a span {
        font-size: 16px !important;
    }
}
