/* Stage-Menü: Variante 08 am Desktop, bestätigte Menüvorschau auf Mobilgeräten. */
@media (min-width: 769px) {
  body #hd .n-termin {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    color: #0a0909 !important;
    box-shadow: none;
    white-space: nowrap;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 7px;
  }

  body #hd .n-termin-label {
    display: inline;
    color: inherit !important;
    font: inherit;
    letter-spacing: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 7px;
  }

  body #hd .n-termin :is(.button__icon, .button__icon-wrapper) {
    display: none !important;
  }

  body #hd .n-termin:focus-visible {
    outline: 2px solid #6e17c7;
    outline-offset: 3px;
  }

  body #hd .n-termin-label::after {
    content: " →";
  }

  @media (hover: hover) {
    body #hd .n-termin:hover { color: #6e17c7 !important; }
  }
}

@media (max-width: 768px) {
  body.nav-open #hd,
  body.nav-open #n-mobile-nav.open {
    background: #fff !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  body.nav-open #hd .n-logo,
  body.nav-open #hd .n-hamburger {
    color: #0a0909 !important;
    opacity: 1 !important;
  }

  body.nav-open #hd .n-hamburger {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: #6e17c7 !important;
  }

  body.nav-open #hd .n-ham-arr { color: inherit !important; }

  body.nav-open #n-mobile-nav.open {
    max-height: calc(100vh - var(--nav-h, 64px));
    max-height: calc(100dvh - var(--nav-h, 64px));
    padding: 16px var(--margin, 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body.nav-open #n-mobile-nav.open .n-item {
    display: flex;
    box-sizing: border-box;
    min-height: 44px;
    width: 100%;
    align-items: center;
    padding: 0;
    border: 0;
    background-image: none;
    color: #0a0909 !important;
    opacity: 1 !important;
    font-size: 17px;
    line-height: 24px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 7px;
  }

  body.nav-open #n-mobile-nav.open > :is(.n-item, .n-sub-item) + :is(.n-item, .n-termin) {
    border-top: 1px solid #e9e4e8;
  }

  body.nav-open #n-mobile-nav.open .n-sub-item {
    display: flex;
    box-sizing: border-box;
    width: calc(100% - 16px);
    min-height: 44px;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-inline-start: 16px;
    padding: 8px 0;
    border: 0 !important;
    color: #0a0909 !important;
    font: var(--fw-u, 100) 15px / 21px var(--fm);
    letter-spacing: .3px;
    text-decoration: none;
  }

  body.nav-open #n-mobile-nav.open .n-sub-item:has(+ .n-item) { margin-bottom: 8px; }

  body.nav-open #n-mobile-nav.open .n-sub-label {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  body.nav-open #n-mobile-nav.open .n-sub-arrow {
    flex: 0 0 auto;
    color: currentColor;
  }

  body.nav-open #n-mobile-nav.open .n-termin {
    display: flex;
    min-height: 48px;
    width: 100%;
    margin: 0;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent !important;
    color: #0a0909 !important;
    box-shadow: none;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 7px;
  }

  body.nav-open #n-mobile-nav.open .n-termin-label {
    color: inherit !important;
    font: inherit;
    letter-spacing: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 7px;
  }

  body.nav-open #n-mobile-nav.open .n-termin-label::after {
    content: " →";
  }

  @media (hover: hover) {
    body.nav-open #n-mobile-nav.open .n-termin:hover { color: #6e17c7 !important; }
  }

  body.nav-open #n-mobile-nav.open .n-termin :is(.button__icon, .button__icon-wrapper) {
    display: none !important;
  }

  body.nav-open #n-mobile-nav.open :is(a, button):focus-visible,
  body.nav-open #hd :is(a, button):focus-visible {
    outline: 2px solid #6e17c7;
    outline-offset: 3px;
  }
}
