/* === Mobile Menue: Nav Toggle und Drawer ================================ */
/* Salon Stil. Slide In von rechts. Vollflaechig Creme. */
/* Single Source of Truth fuer alles was mit Mobile Menue zu tun hat. */
/* Version 1.0  2026-04-28 */

/* === Burger Button und Close Button ====================================== */

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--vr-linie);
  border-radius: var(--vr-radius-sm);
  cursor: pointer;
  color: var(--vr-anthrazit);
  transition: background var(--vr-trans-fast), color var(--vr-trans-fast);
}

.nav-toggle:hover {
  color: var(--vr-burgund);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--vr-gold);
  outline-offset: 2px;
}

@media (min-width: 1400px) {
  .nav-toggle {
    display: none;
  }
}

/* === Mobile Drawer ======================================================= */

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9000;
  background: var(--vr-creme);
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(100%);
  visibility: hidden;
  transition:
    transform 320ms cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s linear 320ms;
}

.mobile-menu[aria-hidden="false"] {
  transform: translateX(0);
  visibility: visible;
  transition:
    transform 320ms cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s linear 0s;
}

@media (min-width: 1400px) {
  .mobile-menu {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mobile-menu[aria-hidden="false"] {
    transition: none;
  }
}

.mobile-menu .container {
  position: relative;
  padding-top: var(--vr-space-lg);
  padding-bottom: var(--vr-space-2xl);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Schliessen Button rechts oben */
.mobile-menu .nav-toggle[data-close] {
  align-self: flex-end;
}

/* === Liste =============================================================== */

.mobile-menu__list {
  list-style: none;
  padding: 0;
  margin: var(--vr-space-2xl) 0 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--vr-space-sm);
}

.mobile-menu__list > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu__list > li::before,
.mobile-menu__list > li::marker {
  content: none;
  display: none;
}

/* === Links =============================================================== */

.mobile-menu__link {
  display: inline-block;
  font-family: var(--vr-font-display);
  font-size: clamp(1.625rem, 6.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--vr-anthrazit);
  padding: var(--vr-space-2xs) 0;
  border-bottom: 1px solid transparent;
  transition:
    color 200ms ease,
    border-color 200ms ease;
}

.mobile-menu__link:hover,
.mobile-menu__link:focus-visible {
  color: var(--vr-burgund);
  border-bottom-color: var(--vr-gold);
  outline: none;
}

.mobile-menu__link[aria-current="page"] {
  color: var(--vr-burgund);
  border-bottom-color: var(--vr-burgund);
}

/* === Body Scroll Lock ==================================================== */

.body--menu-open {
  overflow: hidden;
  touch-action: none;
}
