* ==========================================
   1. ALLGEMEINE MENÃœ-ELEMENTE & LINKS
   ================================          */
.item a {
  color: #fff;
  background: #09558e;
  text-decoration: none;
  transition: all 1s ease;
}

.item a:hover {
  color: #fff;
  background: #010101;
}

/* ==========================================
   2. HAUPTMENÃœ (.acmenu)
   ================================          */
.acmenu {
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
  width: 235px;
  height: auto;
  background: #f0b504;
  /*max-height: calc(100vh - 10px);*/
  border-radius: 8px;
  overflow-y: auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.acmenu li {
  list-style: none;
}

.acmenu .btn {
  display: block;
  padding: 6px;
  border-bottom: solid 1px #232323;
  border-top: solid 1px #efefef;
  position: relative;
}

/* ==========================================
   3. SUBMENÃœS & AKKORDEON-ZUSTÃ„NDE
   ================================          */
.offen,
.acmenu .submenu {

  overflow: hidden;
  transition: max-height 0.8s ease-out;
}

.acmenu a {
  background: #3885c1;
  border-top: solid 1px #f2eef6;
  color:#fff;
  text-decoration:none;
}

.offen {
  max-height: 100rem; /* Korrigiert: 'auto' ist nicht animierbar */
}

/* Standard: Alle SubmenÃ¼s sind eingeklappt */
.acmenu .submenu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.8s ease-out;
}

/* Wenn das jeweilige li angesteuert wird, klappt genau dieses auf */
.item:target .submenu {
  max-height: 160rem; /* HÃ¶he ggf. anpassen, falls deine MenÃ¼s lÃ¤nger sind */
}

.acmenu .submenu a, 
.acmenu .offen a {
background:#f0b504;
color:#000;
  display: block;
  padding: 3px;
  position: relative;
  transition: all 1s ease;
}

/* Hover-Indikator (Linker Rand) */
.acmenu .submenu a::before, 
.acmenu .offen a::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 5px;
  opacity: 0;
  transition: all 0.8s ease;
}

.acmenu .submenu a:hover, 
.acmenu .offen a:hover {
  padding-left: 8px; /* 3px + 5px zusammengefasst */
  background:#09558e; color:#fff;
}

.acmenu .submenu a:hover::before, 
.acmenu .offen a:hover::before {
  opacity: 1;
}

.item:target .submenu {
  max-height: 220rem;
}

/* ==========================================
   4. AKTIVER MENÃœPUNKT (.aktu)
   ================================          */

.acmenu a.aktu::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 6px;
  background: #222;
}

.acmenu a.aktu {
  background: #09558E; color:#fff;
}

/* ==========================================
   5. NAVIGATION & HAMBURGER (RESPONSIV)
   ================================          */
#hamburgerac, 
#burgerblock {
  display: none;
}

nav {
  position: sticky;
  top: 5px;
  margin-left: 10px;
  margin-top: 50px;
}

/* Mobile Ansicht (< 900px) */
@media (max-width: 899.98px) {
	
#burgerblock {
	    display: flex;
		justify-content: center;
		align-items:center;
		background: #f0b504; width:100%;
		padding:10px;
		margin-top:4px;
	
}
	
  nav {
    position: fixed;
    width: calc(100vw - 60px);
    left: -100vw;
    top: 0;
    transition: all 2s ease;
    flex-direction: column;
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: auto;
    z-index: 9999999;
  }

  .acmenu {
    width: 85vw;
  }

  /* Checkbox verstecken */
  #hamburgerac {
    display: none;
  }

  /* Visueller Hamburger-Button (als Label oder Button umsetzen) */
  .hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 99999999999;
    position: relative;
    padding: 0;
  }

  /* Die 3 Balken */
  .hamburger-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background: #555;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
  }

  /* Animation wenn Checkboxchecked ist (#hamburgerac:checked + .hamburger-btn bzw. Ã¼ber Label) */
#hamburgerac:checked ~ #burgerblock .hamburger-btn span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
  }

  #hamburgerac:checked ~ #burgerblock .hamburger-btn span:nth-child(2) {
    opacity: 0;
  }

  #hamburgerac:checked ~ #burgerblock .hamburger-btn span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
  }

  #hamburgerac:checked ~ nav {
    transition: all 2s ease;
    position:absolute;
	top:280px;
    left: 5vw;
    right: 5vw;
  }
}