/* Lousmont — Mobile Navigation (Hamburger + Polish) */
/* Gemeinsam für alle Seiten unter www/                  */

/* ─── Hamburger-Toggle (Desktop versteckt) ─────────────────── */
.nav-toggle {
  display: none;
  position: fixed;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 9999;
}
/* Im Open-State: Close-Pos klar abgesetzt vom Drawer-Edge */
.nav-toggle.open { background: transparent; }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink, #1A0E14);
  border-radius: 1px;
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile Full-Screen-Drawer (Desktop versteckt) ────────── */
.mobile-nav {
  display: none;
}

/* ─── Mobile Activation (≤768px) ───────────────────────────── */
@media (max-width: 768px) {
  .topstrip { position: relative; }
  .nav-toggle { display: flex; }
  /* regmark weicht dem Hamburger — der Datums-Stempel ist nicht user-aktiv */
  .regmark { display: none !important; }

  nav.mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: #F6F1E5;
    padding: 78px 28px 40px;
    z-index: 9998;
    transform: translateY(-100%);
    transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    isolation: isolate;
  }
  .mobile-nav.open { transform: translateY(0); }
  .mobile-nav a {
    display: block;
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--ink, #1A0E14);
    text-decoration: none;
    padding: 16px 0;
    border-bottom: 1px solid rgba(26,14,20,0.10);
    min-height: 48px;
    letter-spacing: -0.005em;
    transition: color 0.3s ease;
  }
  .mobile-nav a:active,
  .mobile-nav a:hover { color: var(--bordeaux, #8A3848); }
  .mobile-nav a.nav-cta {
    margin-top: 26px;
    background: var(--ink, #1A0E14);
    color: var(--paper, #F6F1E5);
    border-radius: 999px;
    padding: 16px 22px;
    text-align: center;
    border-bottom: none;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.005em;
  }
  .mobile-nav .nav-meta {
    margin-top: 32px;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3, #5A4A50);
    padding-top: 18px;
    border-top: 1px solid rgba(26,14,20,0.08);
  }

  /* ─── Touch-Target-Polish im Footer ────────────────────── */
  .footer-nav a,
  .site-footer .footer-nav a {
    padding: 10px 4px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  /* Audio-Credit-Links (Video-Embed-Page): kleinerer Pad da subtil */
  .audio-credit a { padding: 4px 0; display: inline-block; }
}

/* ─── Sehr kleine Phones (≤380px) ──────────────────────────── */
@media (max-width: 380px) {
  .brand-name .b { display: none; }
  .topstrip { gap: 10px; }
}

/* ─── Body-Scroll-Lock wenn Drawer offen ────────────────────── */
body.nav-open { overflow: hidden; }
