header{
  	z-index: 999;
}

/* Sidebar Navigation */
#sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 260px;
  height: 100vh;
  background: #ffffff;
  padding: 40px 30px;
  box-shadow: 3px 0 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  z-index: 999;

}

.logo_wrap {
  margin-bottom: 60px;
}

.logo_wrap img {
  width: 100%;
  height: auto;
}

/* Navigation Liste */
.nav_vertical {
  list-style: none;
  padding: 0;
}

.nav_vertical li {
  margin-bottom: 20px;
  position: relative;
}

.nav_vertical a {
  text-decoration: none;
  font-size: 18px;
  color: #222;
  font-weight: 500;
  transition: 0.3s;
}

.nav_vertical a:hover {
  color: #804638;
}

/* Submenu */
.sub_menu {
  list-style: none;
  padding-left: 15px;
  margin-top: 10px;
  display: none;
}

.has_sub:hover .sub_menu {
  display: block;
}

.sub_menu li {
  margin-bottom: 10px;
}

.sub_menu a {
  font-size: 16px;
  color: #555;
}

@media(max-width:656px){
	#sidenav {
		display: block !important;
	}
	#sidenav a {
	  position: absolute;
	  right: -10px;
	  padding: 10px 0px 10px 20px;
	  min-width: 180px;
	  text-align: left;
	}
	#sidenav a.anmeldung {
	  bottom: 20%;
	}
	#sidenav a.termine {
	  bottom: 35%;
	}
	#sidenav a i {
	  font-size: 1.25rem;
	  margin-right: 5px;
	}
	.banner_stoerer {
	  display: block;
	}	
 .red_box + #sidenav a.anmeldung {
	   bottom: 37%;
    }
    .red_box + #sidenav a.termine {
	  bottom: 47%;
	}
}
@media(max-width:556px){
	.red_box + #sidenav a.anmeldung {
	   bottom: 45%;
    }
}

@media(max-width:456px){
    .red_box + #sidenav a.termine {
	  bottom: 55%;
	}	
	#sidenav a.termine {
	  bottom: 43%;
	}
}
@media(max-width:356px){

}
@media(max-width:300px){
	#sidenav {
		display: none !important;
	}
}


#mobile-header {
    display: none;
}
.overlay {
    display: none;
}
.overlay.open {
    display: block;
}

/* MOBILE BREAKPOINT */
@media (max-width: 1100px) {

    #sidebar { display: none; }
    main { margin-left: 0; padding-top: 80px; }

    #mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 3000; /* HIER: Burger immer oben */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

    #mobile-header img { max-width: 150px; }

    /* BURGER ICON */
    #burger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        cursor: pointer;
    }

    #burger .bar {
        height: 3px;
        width: 100%;
        background: #000;
        border-radius: 2px;
        transition: 0.3s;
    }

    /* BURGER → X ANIMATION */
    #burger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    #burger.active .bar:nth-child(2) {
        opacity: 0;
    }
    #burger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* OVERLAY MENU */
    .overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255,255,255,0.95);
    z-index: 2000; /* Overlay unter dem Header/Burger */
    text-align: center;
}

    .overlay-content {
        margin-top: 100px;
    }

    .overlay a {
        display: block;
        padding: 15px;
        font-size: 1.4rem;
        text-decoration: none;
        color: #000;
        font-weight: 600;
    }
}