
/* Nur dieses Mobilmenue; vorhandene Desktopnavigation bleibt unberuehrt. */
#mbm-root { display: none; }
#mbm-root [hidden] { display: none !important; }
@media (max-width: 734px) {
  #mbm-root { display: block; }
  html.mbm-open, html.mbm-open body { overflow: hidden !important; }
  #mbm-root, #mbm-root * { box-sizing: border-box; }
  #mbm-root button, #mbm-root a { font-family: Arial, Helvetica, sans-serif; }
  #mbm-root .mbm-launch {
    position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px;
    z-index: 10000; display: flex; align-items: center; gap: 9px;
    min-height: 44px; padding: 10px 14px; margin: 0;
    border: 1px solid #d77900; border-radius: 10px;
    background: #ff9900; color: #072e49; font-size: 16px; font-weight: 700;
    cursor: pointer; box-shadow: 0 3px 12px #0002;
  }
  #mbm-root .mbm-hamburger { display: grid; gap: 4px; width: 21px; }
  #mbm-root .mbm-hamburger i { display: block; height: 2px; width: 100%; background: currentColor; }
  #mbm-root .mbm-dialog {
    position: fixed; inset: 0; width: 100%; max-width: none;
    height: 100%; height: 100dvh; max-height: none; margin: 0; padding: 0;
    border: 0; background: transparent; color: #072e49; overflow: hidden;
  }
  #mbm-root .mbm-dialog:not([open]) { display: none; }
  #mbm-root .mbm-dialog::backdrop { background: rgba(5, 25, 40, .48); }
  #mbm-root .mbm-panel {
    display: flex; flex-direction: column; width: min(380px, calc(100% - 48px));
    height: 100%; background: #fff; box-shadow: 5px 0 25px #0003;
    padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
    font-family: Arial, Helvetica, sans-serif;
  }
  #mbm-root .mbm-heading {
    display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between;
    padding: 10px 14px; background: #073c5c; color: white;
  }
  #mbm-root .mbm-title { margin: 0; padding: 0; font: 700 20px/1.3 Arial, sans-serif; color: white; }
  #mbm-root .mbm-close {
    display: block; width: 44px; height: 44px; padding: 0; margin: 0;
    border: 1px solid #ffffff70; border-radius: 8px; background: transparent;
    color: white; font: 400 30px/1 Arial, sans-serif; cursor: pointer;
  }
  #mbm-root .mbm-nav { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 0 20px; }
  #mbm-root ul { display: block; list-style: none; margin: 0; padding: 0; width: auto; float: none; }
  #mbm-root li { display: block; margin: 0; padding: 0; width: auto; float: none; border: 0; }
  #mbm-root .mbm-row { display: flex; align-items: stretch; border-bottom: 1px solid #e1e9ee; }
  #mbm-root .mbm-row a {
    position: static; display: flex; flex: 1; align-items: center;
    min-width: 0; min-height: 48px; padding: 12px 16px; margin: 0;
    background: transparent; color: #073c5c !important;
    -webkit-text-fill-color: #073c5c; text-decoration: none;
    font-size: 16px; line-height: 1.4; font-weight: 700; text-align: left;
    white-space: normal; overflow-wrap: anywhere; border: 0;
  }
  #mbm-root .mbm-expand {
    flex: 0 0 48px; display: grid; place-items: center; min-height: 48px;
    padding: 0; margin: 0; border: 0; border-left: 1px solid #e1e9ee;
    background: #fff4de; color: #073c5c; font-size: 24px; cursor: pointer;
  }
  #mbm-root .mbm-expand span { display: block; color: inherit; }
  #mbm-root .mbm-expand[aria-expanded="true"] span { transform: rotate(180deg); }
  #mbm-root .mbm-level-2 { background: #f0f6fa; }
  #mbm-root .mbm-level-2 > li > .mbm-row a { padding-left: 28px; font-weight: 400; }
  #mbm-root .mbm-level-3 { background: #e4eef5; }
  #mbm-root .mbm-level-3 > li > .mbm-row a { padding-left: 40px; font-size: 15px; font-weight: 400; }
  #mbm-root .mbm-row a:hover { background: #fff0ce; }
  #mbm-root a:focus-visible, #mbm-root button:focus-visible { outline: 3px solid #d56b00; outline-offset: -3px; }
  #mbm-root a[aria-current="page"] { box-shadow: inset 4px 0 #f90; background: #fff0ce; }
}

/* Die alte layout.css setzt alle span-Texte orange. Hier lokal zuruecksetzen. */
#mbm-root .mbm-launch > span { color: inherit; -webkit-text-fill-color: currentColor; }
/* Nur auf bereits umgestellten Seiten eventuell verbliebene alte Mobilknopfe verbergen. */
@media (max-width: 734px) {
  html.mbm-enabled .menu-toggle, html.mbm-enabled .navbar { display: none !important; }
}
