/* SLIDE MENU
-------------------------------------------------- */
button{
    background: none;
    border: none;
    color: var(--clr-white);
    font-size: 24px;
    font-weight: bold;
    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 50px 20px;
    color: var(--clr-white) !important;
}
.menu-header .site-branding{
    margin-left: 40px;
}
#slide-menu li{
    list-style: none;
}
#slide-menu label,
#slide-menu a{
    text-decoration: none;
    color: var(--clr-white);
    font-size: 24px;
    font-weight: bold;
}
#slide-menu .submenu-header,
#slide-menu li .open-submenu,
#slide-menu li a{
    border-bottom: 1px solid white;
}
.submenu-header{
    margin-bottom: 30px;
}
.menu-toggle.close-menu{
    top: 82px;
}
.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;
    position: absolute;
    top: 0;
    right: 70px;
    width: 40px;
    height: 24px;
    line-height: 0px;
    display: block;
    padding: 0;
    text-indent: -9999px;
    cursor: pointer;
    margin-top: 68px;
}
.menu-toggle span{
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--clr-burger);
    left: 0;
    transition: all 250ms ease-in-out;
    border-radius: 100vmax;
}
.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-toggle::after{
    z-index: -1;
    content: '';
    position: absolute;
    top: -68px;
    right: -70px;
    width: 172px;
    height: 155px;
    background-image: url(/wp-content/themes/wptheme/assets/img/design/bg_burger.svg);
    background-size: contain;
    background-repeat: no-repeat;
}
.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);
}
.menu ul li{
    width: 100%;
}
.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 .open-submenu,
.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:not(:last-of-type) a.dropdown-item{
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    padding: 0 0 20px 0;
    margin-bottom: 20px;
}
.menu ul li a.dropdown-item:hover{
    color: var(--clr-green) !important;
}
.menu ul li button{
    position: relative;
    display: flex;
    justify-content: space-between;
    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: 16px;
    height: 16px;
    background: url(/wp-content/themes/wptheme/assets/img/arrow_white.svg) 98% 30% / 16px 16px 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;
    padding: 0 0 20px 0;
    margin-bottom: 20px;
    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: 0 20px 20px 20px;
    background: transparent;
    gap: 20px;
}
.menu ul.slide-submenu .back-button {
    background: none;
    border: none;
    color: var(--clr-white);
    font-size: 24px;
    cursor: pointer;
    padding: 0 10px 0 0;
    line-height: 1;
    transition: color 0.2s;
    width: fit-content;
    margin-inline: unset;
    margin-bottom: 0;
}
.menu ul.slide-submenu .back-button:hover {
    color: var(--clr-green);
}
.menu ul.slide-submenu .submenu-title {
    font-size: 22px;
    font-weight: bold;
    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;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: color 0.2s;
    padding: 0 0 20px 0;
    margin-bottom: 20px;
}
.menu ul.slide-submenu .open-submenu:hover {
    color: var(--clr-green);
}

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

/* 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;
    width: 100%;
    max-width: 80%;
    margin: 0 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 .menu-toggle{
    top: 80px;
}
.menu-header .site-branding{
    margin: 0;
}

.depth_1 > *:not(.submenu-header, .submenu-link),
.depth_2 > *:not(.submenu-header, .submenu-link),
.depth_3 > *:not(.submenu-header, .submenu-link),
.depth_4 > *:not(.submenu-header, .submenu-link),
.depth_5 > *:not(.submenu-header, .submenu-link){
    padding-left: 30px;
    max-width: 100%;
}


.joinus .btn{
    padding: 12px 17px;
    color: var(--clr-purple-dark);
    background-color: rgba(208, 184, 216, 1);
    margin-left: 10px;
    box-shadow: 0 0 0 5px var(--clr-white);
    font-size: 20px;
}
.joinus .btn:hover{
    box-shadow: 0 0 0 5px var(--clr-white);
}
.joinus p{
    color: rgba(255, 255, 255, 0.65);
}


.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-direction: column;
    gap: 5px;
    margin-left: 0;
}
.nav_bottom_links li{
    position: relative;
    list-style: none;
    width: fit-content !important;
}
/* .nav_bottom_links li:not(:last-child)::after{
    position: absolute;
    right: -6px;
    top: 5px;
    content: '';
    display: inline-block;
    width: 2px;
    height: 18px;
    background-color: var(--clr-white);
} */
.nav_bottom_links li a{
    font-size: 18px;
    margin-bottom: 0;
    padding-bottom: 0;
}
.nav_bottom_links li a:hover{
    color: var(--clr-green);
}
.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);
    }
}

