/* ---------------------------------------------------------- */
/* #MENUEBAR – Hintergrund und Layout */
body.desktop #menuebar {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    margin-top: 0;
    background-color: rgba(255, 224, 104,0.8);
    border-radius: 3px;
    width: 100%;
}



/* ---------------------------------------------------------- */
/* #DROPDOWN Wrapper – Zentrierungshilfe */
body.desktop #dropdown {
    width: 100%;
    text-align: center;
}

/* ---------------------------------------------------------- */
/* LEVEL 1 – Hauptnavigation */
body.desktop #dropdown ul.level_1 {
    display: inline-flex;
    margin: 0 auto;
    padding: 0;
    background-color: transparent; /* kein eigener Hintergrund */
}

body.desktop #dropdown ul.level_1 li {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.desktop #dropdown ul.level_1 li a,
body.desktop #dropdown ul.level_1 li strong {
    display: block;
    height: 40px;
    line-height: 40px;
    padding: 0 15px;
    font-size: 0.8em;
    background-color: transparent; /* <- übernimmt Hintergrund von #menuebar */
    color: #000;
    transition: background-color 0.3s ease;
    border-right: 1px solid #fff;
}

body.desktop #dropdown ul.level_1 li:last-child a {
    border-right: none;
}

body.desktop #dropdown ul.level_1 li a:hover,
body.desktop #dropdown ul.level_1 li strong:hover {
    background-color: rgba(255, 204, 0, 1.0); /* satteres Gelb beim Hover */
}

/* ---------------------------------------------------------- */
/* LEVEL 2 – Dropdown-Untermenü */
body.desktop #dropdown ul.level_2 {
    position: absolute;
    width: 220px;
    left: -9999999px;
    margin: 0;
    padding: 0;
    background-color: #fff;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
    z-index: 999;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

body.desktop #dropdown .submenu:hover ul.level_2 {
    max-height: 100%;
    opacity: 1;
    left: auto;
}

body.desktop #dropdown ul.level_2 li {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

body.desktop #dropdown ul.level_2 li a,
body.desktop #dropdown ul.level_2 li strong {
    display: block;
    padding: 12px 10px;
    font-size: 90%;
    color: #000;
    background-color: #fff;
    border: 1px solid #f4f4f4;
    transition: background-color 0.3s ease;
}

body.desktop #dropdown ul.level_2 li a:hover,
body.desktop #dropdown ul.level_2 li strong:hover {
    background-color: rgba(255, 204, 0, 0.2);
}

/* ---------------------------------------------------------- */
/* SUBMENUE (falls verwendet) */
.submenue {
    padding: 10px;
    border: 1px solid #ccc;
}

.submenue *:before {
    font-family: jukfont;
    display: inline-block;
    margin-left: -20px;
    width: 20px;
}

.submenue a,
.submenue strong.active,
.submenue strong.trail {
    display: block;
    margin-top: 1px;
    padding: 8px 0 8px 25px;
    border-bottom: 1px solid #ddd;
    color: #666;
}

.submenue a.last {
    border: none;
}

.submenue a:hover,
.submenue .trail,
.submenue strong.active {
    color: #A0B43A;
}

.submenue li a:before {
    content: "\e762";
}

.submenue li a:hover:before,
.submenue li strong.active:before,
.submenue li.submenu.trail a.submenu.trail:before {
    content: "\e8a5";
    color: #A0B43A;
}

.submenue strong.trail:before {
    content: "\e8a5";
}

.submenue .level_2 li {
    margin: 0 0 0 40px;
    padding: 0;
}

.submenue .level_2 li a,
.submenue .level_2 strong {
    display: block;
    border-bottom: 1px dashed #ddd;
    margin: 0 0 0 4px;
    padding: 0 0 0 8px;
    font-size: 90%;
}

.submenue .level_2 li a:hover,
.submenue ul.level_1 li.trail ul li.active strong.active {
    text-align: left;
    background: transparent;
    font-size: 90%;
}

.submenue .level_2 li a:before {
    content: "\2d";
}





/* ---------------------------------------------------------- */
/* RESPONSIVE UMSCHALTUNG BEI MAX-WIDTH */
@media screen and (max-width: 800px) {

  /* Menubar Layout anpassen */
  body.desktop #menuebar {
    flex-direction: column;
    align-items: flex-start;

       background-color: #fff;

  }

  /* Hauptmenü vertikal statt horizontal */
  body.desktop #dropdown ul.level_1 {
    flex-direction: column;
    width: 100%;
  }

  body.desktop #dropdown ul.level_1 li {
    width: 100%;
  }

  body.desktop #dropdown ul.level_1 li a,
  body.desktop #dropdown ul.level_1 li strong {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #fff;
  }

  /* Untermenüs direkt anzeigen */
  body.desktop #dropdown ul.level_2 {
    position: static;
    opacity: 1;
    max-height: none;
    box-shadow: none;
    padding-left: 20px;
    margin: 0;
    transition: none;
  }

  /* Kein Hover mehr nötig – sichtbar */
  body.desktop #dropdown .submenu:hover ul.level_2 {
    left: auto;
  }


}


/* ---------------------------------------------------------- */
/* MOBILES MENÜ – Umschalter und vertikale Darstellung */
/* --- Toggle Button immer gelber Balken --- */
body.desktop #menutoggle {
  display: none;
}

@media screen and (max-width: 900px) {

  body.mobile #menutoggle {
    display: flex;
    background-color: rgba(255, 204, 0, 0.6);
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 10px 15px;
    color: #000;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
  }

  body.mobile #dropdown ul.level_1 {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #f4f4f4;
  }

  body.mobile #dropdown ul.level_1.open {
    display: flex;
  }



  body.mobile #dropdown ul.level_1 li a,
  body.mobile #dropdown ul.level_2 li a,
  body.mobile #dropdown ul.level_1 li strong,
  body.mobile #dropdown ul.level_2 li strong {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 12px 0;
    text-align: center;
    background-color: #fff;
    color: #000;
    text-decoration: none;

  }

  body.mobile #dropdown ul.level_2 {
    position: static;
    box-shadow: none;
    background-color: #fff !important;
    padding: 0;
    margin: 0;
  }

  body.mobile #dropdown ul.level_2 li a:hover,
  body.mobile #dropdown ul.level_1 li a:hover {
    background-color: rgba(255, 204, 0, 0.2);
  }


  body.mobile #dropdown ul.level_1 li,
body.mobile #dropdown ul.level_2 li {
  width: 100%;
  background-color: #fff;
  list-style: none;

}

body.mobile #dropdown ul.level_1 li a,
body.mobile #dropdown ul.level_1 li strong {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 12px 0;
  background-color: #fff;
  color: #000;
  border-bottom: 1px solid #ccc;
  text-decoration: none;
}


}
