/* Menue im hims/hers-Glas (Owner 30.09.2026) — Burger-Knopf + Vollbild-Menue.
   Markup: includes/mobile-header.blade.php (.gm-*). Mechanik unveraendert (main-layout.js:
   body.mobile-menu-open). Die Selektoren haengen an #mobileNavOverlay/#menuToggleBtn, damit
   sie die Alt-Regeln aus main-layout.css UND cinematic-v2.css (body#body_cinematic …) schlagen. */

.mobile-header-shell {
  --gm-t: #f4f1ea;
  --gm-t2: rgba(244, 241, 234, .74);
  --gm-t3: rgba(244, 241, 234, .5);
  --gm-cream: #e9dcc3;
  --gm-oncream: #2e281e;
  --gm-ink: #1b211c;
  --gm-font: 'Jost', 'Avenir Next', 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ---------- Burger als runder Glasknopf (wie hims ← / ♡); 36 px, damit das Logo wirkt (Owner 30.09.) ---------- */
html body .mobile-header-shell #menuToggleBtn.menu-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(12, 15, 13, .35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--gm-t);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 1120;
  transition: background .25s ease, border-color .25s ease;
}
html body .mobile-header-shell #menuToggleBtn.menu-toggle-btn svg { width: 18px; height: 18px; stroke-width: 1.6; }
html body.mobile-menu-open .mobile-header-shell #menuToggleBtn.menu-toggle-btn {
  background: var(--gm-t);
  border-color: var(--gm-t);
  color: var(--gm-ink);
}

/* ---------- Overlay ---------- */
html body .mobile-header-shell #mobileNavOverlay.gm {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 1090;
  display: block;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: calc(92px + env(safe-area-inset-top, 0px)) 18px calc(28px + env(safe-area-inset-bottom, 0px));
  background:
    linear-gradient(180deg, rgba(8, 11, 9, .62), rgba(8, 11, 9, .82) 55%, rgba(8, 11, 9, .92)),
    rgba(8, 11, 9, .4);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  backdrop-filter: blur(28px) saturate(140%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
  font-family: var(--gm-font);
  font-weight: 300;
  color: var(--gm-t);
  text-align: left;
}
html body.mobile-menu-open .mobile-header-shell #mobileNavOverlay.gm { opacity: 1; visibility: visible; pointer-events: auto; }
html body .mobile-header-shell #mobileNavOverlay.gm *,
html body .mobile-header-shell #mobileNavOverlay.gm *::before,
html body .mobile-header-shell #mobileNavOverlay.gm *::after { box-sizing: border-box; }

html body .mobile-header-shell #mobileNavOverlay.gm .gm-inhalt {
  display: block;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 0;
  transform: translateY(18px) !important;
  opacity: 0;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), opacity .4s ease;
}
html body.mobile-menu-open .mobile-header-shell #mobileNavOverlay.gm .gm-inhalt { transform: none !important; opacity: 1; }

#mobileNavOverlay.gm .gm-over {
  margin: 0 0 7.5px;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gm-cream);
}
html body .mobile-header-shell #mobileNavOverlay.gm .gm-titel {
  margin: 0 0 18.5px;
  font-family: var(--gm-font);
  font-size: 31.5px;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--gm-t);
  text-transform: none;
}
#mobileNavOverlay.gm .gm-titel span { color: rgba(244, 241, 234, .52); }

/* ---------- Zeilen wie die hims-Produktkarte ---------- */
html body .mobile-header-shell #mobileNavOverlay.gm .gm-liste {
  list-style: none;
  margin: 0;
  padding: 5.5px;
  border-radius: 29.5px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  text-align: left;
}
html body .mobile-header-shell #mobileNavOverlay.gm .gm-liste li { margin: 0; }
html body .mobile-header-shell #mobileNavOverlay.gm .gm-liste li + li { border-top: 1px solid rgba(255, 255, 255, .08); }
html body .mobile-header-shell #mobileNavOverlay.gm .gm-liste .gm-zeile {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 62.5px;
  padding: 9px 9px 9px 7.5px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--gm-t);
  font: 300 14.5px/1.2 var(--gm-font);
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  transition: background .2s ease;
}
html body .mobile-header-shell #mobileNavOverlay.gm .gm-liste .gm-zeile:hover,
html body .mobile-header-shell #mobileNavOverlay.gm .gm-liste .gm-zeile:focus-visible { background: rgba(255, 255, 255, .07); opacity: 1; color: var(--gm-t); }
#mobileNavOverlay.gm .gm-icon {
  flex: 0 0 auto;
  width: 42.5px;
  height: 42.5px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gm-t);
}
#mobileNavOverlay.gm .gm-icon svg { width: 18.5px; height: 18.5px; fill: none; stroke: var(--gm-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#mobileNavOverlay.gm .gm-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#mobileNavOverlay.gm .gm-text b { font-weight: 300; font-size: 16.5px; color: var(--gm-t); }
#mobileNavOverlay.gm .gm-text small { font-size: 12px; color: var(--gm-t3); }
#mobileNavOverlay.gm .gm-pfeil {
  flex: 0 0 auto;
  width: 31.5px;
  height: 31.5px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .26);
}
#mobileNavOverlay.gm .gm-pfeil svg { width: 14px; height: 14px; fill: none; stroke: var(--gm-t); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
html body .mobile-header-shell #mobileNavOverlay.gm .gm-liste .gm-klein { min-height: 40.5px; padding-left: 14.5px; }

/* ---------- Intro-Pass als Creme-Karte ---------- */
html body .mobile-header-shell #mobileNavOverlay.gm .gm-liste-cta {
  margin-top: 11px;
  padding: 0;
  border: 0;
  background: none;
}
html body .mobile-header-shell #mobileNavOverlay.gm .gm-liste .gm-angebot {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 7.5px 11px;
  padding: 14.5px 14.5px 14.5px 18.5px;
  border-radius: 26px;
  background: var(--gm-cream);
  color: var(--gm-oncream);
  text-decoration: none;
  font: 300 14.5px/1.2 var(--gm-font);
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
html body .mobile-header-shell #mobileNavOverlay.gm .gm-liste .gm-angebot:hover { opacity: .95; background: var(--gm-cream); color: var(--gm-oncream); }
#mobileNavOverlay.gm .gm-chip {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 11px;
  background: rgba(46, 40, 30, .12);
  font-size: 11px;
  line-height: 1;
  color: var(--gm-oncream);
}
#mobileNavOverlay.gm .gm-angebot-titel { font-size: 20px; line-height: 1.12; letter-spacing: -.01em; }
#mobileNavOverlay.gm .gm-angebot-titel span { color: rgba(46, 40, 30, .6); }
#mobileNavOverlay.gm .gm-angebot-go {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gm-ink);
}
#mobileNavOverlay.gm .gm-angebot-go svg { width: 16.5px; height: 16.5px; fill: none; stroke: var(--gm-cream); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Profil / Login unten ---------- */
html body .mobile-header-shell #mobileNavOverlay.gm .gm-user {
  display: block;
  width: 100%;
  max-width: none;
  margin: 11px 0 0;
}
html body .mobile-header-shell #mobileNavOverlay.gm .gm-user .gm-profil {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 64.5px;
  padding: 9px 13px 9px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  color: var(--gm-t);
  text-align: left;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  font: 300 14.5px/1.2 var(--gm-font);
  cursor: pointer;
}
#mobileNavOverlay.gm .gm-avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gm-t);
  color: var(--gm-ink);
  font-size: 17.5px;
}
#mobileNavOverlay.gm .gm-avatar svg { width: 20px; height: 20px; fill: none; stroke: var(--gm-ink); stroke-width: 1.5; stroke-linecap: round; }
#mobileNavOverlay.gm .gm-profil-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#mobileNavOverlay.gm .gm-profil-text b { font-weight: 300; font-size: 15.5px; }
#mobileNavOverlay.gm .gm-profil-text small { font-size: 11.5px; color: var(--gm-t3); }
#mobileNavOverlay.gm .gm-punkte {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  background: var(--gm-cream);
  color: var(--gm-oncream);
  font-size: 11.5px;
  line-height: 1;
}

/* Alte Home-Taste und Punkte-Zeile gibt es nicht mehr */
#mobileNavOverlay.gm .nav-bottom-home,
#mobileNavOverlay.gm .user-points { display: none; }

@media (prefers-reduced-motion: reduce) {
  html body .mobile-header-shell #mobileNavOverlay.gm .gm-inhalt { transition: none; transform: none !important; }
}

/* Kopf (Logo + X) bleibt ueber dem offenen Menue — auf Seiten ohne Cinematic-Kopf lag
   .top-bar-wrapper auf Ebene 5 und verschwand unter dem Overlay (kein Schliessen-Knopf). */
html body.mobile-menu-open .mobile-header-shell .top-bar-wrapper { z-index: 1100 !important; }
