
/* ========================================
   MOBILES MENÜ
   ======================================== */

.mod_mobile_menu {
  position: fixed;
  left: 20px;
  top: 20px;
  z-index: 10000;
  overflow: visible;
}

/* Menüfläche: volle verfügbare Höhe */

.mobile_menu {
  box-sizing: border-box;
  width: max-content !important;
  min-width: 50%;
  height: calc(100vh - 40px);
  height: calc(100dvh - 40px);
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  font-size: 1em;
}

.mobile_menu .inner {
  box-sizing: border-box;
  min-height: 100%;
  margin: 0;
  background: #94151b;
  border: 1px solid #d8b957;
  box-shadow: 0 5px 20px rgba(45, 0, 0, 0.3);
}

/* ========================================
   NAVIGATION UND LISTEN
   ======================================== */

.mobile_menu .mod_navigation {
  padding: 6rem 0 0.4rem;
}

.mobile_menu ul {
  margin: 0;
  padding: 0;
}

.mobile_menu li {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 0;
  background: transparent;
}

/* ========================================
   LINKS UND AKTIVE MENÜPUNKTE
   ======================================== */

.mobile_menu a,
.mobile_menu li strong {
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  max-width: 100%;
  padding: 0.4rem 0.7rem;
  color: #f5e4a5;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(45, 0, 0, 0.35);
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.mobile_menu a:visited {
  color: #f5e4a5;
  text-decoration: none;
}

/* Goldene Linie unter den Links */

.mobile_menu a::after,
.mobile_menu li strong::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.15rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #e9cf77,
    #fff0bd,
    #e9cf77,
    transparent
  );
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

/* Hover und Tastaturfokus */

.mobile_menu a:hover,
.mobile_menu a:focus-visible {
  color: #fff8df;
  background-color: rgba(238, 207, 119, 0.09);
  transform: translateY(-1px);
}

.mobile_menu a:hover::after,
.mobile_menu a:focus-visible::after {
  transform: scaleX(1);
}

.mobile_menu a:focus-visible {
  outline: 1px solid #f5e4a5;
  outline-offset: 2px;
}

/* ========================================
   AKTIVER MENÜPFAD
   ======================================== */

.mobile_menu li.trail > a::after {
  transform: scaleX(1);
}

.mobile_menu li.active > strong,
.mobile_menu li strong.active {
  color: #fff0b5;
  font-weight: 700;
}

.mobile_menu li.active > strong::after,
.mobile_menu li strong.active::after {
  transform: scaleX(1);
  background: #f2d77f;
}

/* ========================================
   UNTERMENÜEBENEN
   ======================================== */

.mobile_menu ul.level_2,
.mobile_menu ul.level_3 {
  margin: 0;
  padding: 0 0 0 0.8rem;
  border: 0;
  background: transparent;
}

.mobile_menu ul.level_2 a,
.mobile_menu ul.level_2 li strong {
  padding: 0.35rem 0.7rem;
  font-size: 0.95rem;
}

.mobile_menu ul.level_3 a,
.mobile_menu ul.level_3 li strong {
  padding: 0.3rem 0.7rem;
  font-size: 0.9rem;
}

/* Einheitlicher Hintergrund, keine Trennlinien */

.mobile_menu li,
.mobile_menu li.active,
.mobile_menu li.trail,
.mobile_menu ul.level_2,
.mobile_menu ul.level_3 {
  border: 0;
  background: transparent;
}

.mobile_menu li.active::before {
  content: none;
}

/* ========================================
   TRIGGER ÜBER DEM MENÜ
   ======================================== */

.mobile_menu_trigger {
  position: relative;
  z-index: 10002;
  box-sizing: border-box;
  width: 60px;
  height: 60px;
  cursor: pointer;
  background: #94151b;
  border: 1px solid #d8b957;
  box-shadow: 0 0 0 1px rgba(164, 123, 60, 0.45);
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.mobile_menu_trigger:hover,
.mobile_menu_trigger:focus-visible {
  background: #a51d23;
  box-shadow: 0 0 0 2px #e9cf77;
}

.mobile_menu_trigger:focus-visible {
  outline: 2px solid #f5e4a5;
  outline-offset: 3px;
}

/* ========================================
   HAMBURGER-ICON
   ======================================== */

.trickytrigger {
  display: block;
  position: relative;
  top: 50%;
  width: 35px;
  height: 2px;
  margin: 0 auto;
  background: #f5e4a5;
  transform: translateY(-50%);
}

.trickytrigger::before,
.trickytrigger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 35px;
  height: 2px;
  background: #f5e4a5;
}

.trickytrigger::before {
  top: -10px;
}

.trickytrigger::after {
  top: 10px;
}

/* ========================================
   SKIP-NAVIGATION
   ======================================== */

.mobile_menu a.invisible,
.mobile_menu .invisible {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mobile_menu a.invisible:focus,
.mobile_menu a.invisible:focus-visible {
  position: fixed !important;
  top: 1rem !important;
  left: 1rem !important;
  z-index: 10003 !important;
  width: auto !important;
  height: auto !important;
  padding: 0.8rem 1.2rem !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  color: #4b100d !important;
  background: #fff0bd !important;
  border: 2px solid #d8b957 !important;
  border-radius: 3px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
  font-weight: 700 !important;
  text-decoration: underline !important;
}
