/* ============================================================================
   landing-mobile.css — Welle 5 Mobile-Härtung + A11y
   Eingebunden NACH dem inline-<style>-Block jeder Page, daher overrides via
   Source-Order (gleiche Specificity gewinnt der letzte).

   Scope:
     A.2 Burger-Menü (CSS-only, Hidden-Checkbox)
     A.3 scroll-padding-top für Sticky-Header-Anchor-Jumps
     B.1 Tap-Target-Mindesthöhen
     B.3 Logo Mobile-Wortmarke-Hide (<400px)
     B.5 Kontaktformular Mobile-Inputs
     B.6 Skip-Link + dekorative SVGs (CSS-Side, aria-hidden im Partial)
   ============================================================================ */

/* -- A.3 Scroll-Padding für Sticky-Header (allen 6 Pages) -- */
html {
  scroll-padding-top: 80px;
}
@media (max-width: 980px) {
  html { scroll-padding-top: 64px; }
}

/* -- B.6 Skip-Link (visuell versteckt bis Focus) -- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--navy, #1A2744);
  color: var(--warm-white, #FAF9F6);
  padding: 0.85rem 1.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--gold, #B8884A);
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  outline: none;
}

/* -- A.2 / Welle-5-Review-Fix B: Burger-Button (semantisch) + Backdrop auf Desktop versteckt -- */
.nav-burger {
  display: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 10px 8px;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  background: transparent;
  border: none;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger:focus-visible {
  outline: 2px solid var(--gold, #B8884A);
  outline-offset: 2px;
  border-radius: 2px;
}
.nav-burger-line {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--navy, #1A2744);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-backdrop {
  display: none;
}

/* -- B.3 Logo: Wortmarke ist im Partial in eigenem <span class="logo-text">.
   Auf <400px ausblenden, Mark bleibt. -- */
@media (max-width: 400px) {
  .logo-text { display: none; }
  .logo-mark { margin-right: 0; }
}

/* -- Welle-5-Review-Fix-2 (17.05. abends): nav-cta-mobile Desktop-Hide.
   Im Drawer (Mobile) sichtbar, auf Desktop versteckt damit kein doppelter
   "Erstgespräch"-Link neben dem cta-only-Btn entsteht. -- */
.nav-cta-mobile {
  display: none;
}

/* -- Welle 14 A.3 + A.4 (19.05.): Desktop Login-Inline-Text-Link + Gold-CTA --
   Login als kleinerer Text-Link rechts neben dem Gold-CTA (Inline-Text, Option E1-1).
   Gold-CTA-Button "Erstgespräch anfragen" als Primary-Action.
   .cta-only ist Flex-Container — Login + Btn stehen nebeneinander.
   Welle-16 H.1 Fix (19.05.): .nav-login-link (Drawer-Mobile-Anchor) auf Desktop
   verstecken, sonst Doppel-Login-Link im Top-Nav. */
.nav-login-desktop {
  font-size: 0.85rem;
  color: var(--ink-soft, #5A4F3D);
  letter-spacing: 0.02em;
  margin-right: 1.2rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-login-desktop:hover { color: var(--navy, #1A2744); }
.nav-links.cta-only { align-items: center; }
/* Desktop-Default: Mobile-Drawer-Login-Link versteckt (kommt nur im Mobile-Drawer) */
.nav-login-link { display: none; }

/* -- A.2 Burger + Drawer auf Mobile (<= 980px) -- */
@media (max-width: 980px) {
  /* Burger sichtbar */
  .nav-burger {
    display: flex;
    margin-left: auto;
    order: 2;
  }
  /* CTA-only-Block: ausblenden auf Mobile (CTA kommt in den Drawer) */
  .nav-links.cta-only { display: none !important; }

  /* Drawer-Position: rechts unter dem Header, slide-in von rechts */
  .nav-links:not(.cta-only) {
    display: flex !important;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper, #EFE5D0);
    border-left: 1px solid var(--border-strong, #C9C0AE);
    padding: 5rem 1.6rem 2rem;
    transform: translateX(100%);
    transition: transform 0.28s ease-out;
    box-shadow: -12px 0 32px rgba(31, 26, 20, 0.08);
    z-index: 200;
    overflow-y: auto;
  }

  /* Welle-5-Review-Fix B: Drawer öffnet via body.nav-open (gesetzt durch JS) */
  body.nav-open .nav-links:not(.cta-only) {
    transform: translateX(0);
  }

  /* Backdrop wenn offen */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(31, 26, 20, 0.45);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  body.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  /* Burger-Animation zu X wenn offen */
  body.nav-open .nav-burger .nav-burger-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  body.nav-open .nav-burger .nav-burger-line:nth-child(2) {
    opacity: 0;
  }
  body.nav-open .nav-burger .nav-burger-line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  /* B.1 Tap-Targets im Drawer: Items mind. 44px hoch */
  .nav-links:not(.cta-only) .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.6rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border, #E2DDD2);
  }
  .nav-links:not(.cta-only) .nav-link:last-child {
    border-bottom: none;
  }
  /* Mobile-CTA: hervorgehoben am unteren Drawer-Bereich */
  .nav-cta-mobile {
    display: flex;
    margin-top: auto;
    background: var(--navy, #1A2744);
    color: var(--warm-white, #FAF9F6) !important;
    padding: 1rem 1.2rem !important;
    border-radius: 4px;
    text-align: center;
    border: none !important;
    justify-content: center;
  }
  .nav-cta-mobile:hover { background: var(--navy-soft, #2A3552); }
  .nav-portal-link, .nav-login-link {
    color: var(--slate, #5C6478) !important;
    font-size: 0.92rem !important;
    display: flex !important;  /* Welle-16 H.1: Mobile-Drawer zeigt Login-Link wieder (Desktop-Default ist display:none) */
  }

  /* Welle 14 A.3: Desktop-only Login-Link versteckt auf Mobile (Login kommt im Drawer als nav-login-link) */
  .nav-login-desktop { display: none !important; }

  /* Body-Scroll-Lock wenn Drawer offen — via body.nav-open (gesetzt durch JS in landing-mobile.js) */
  body.nav-open {
    overflow: hidden;
  }
}

/* -- B.1 Tap-Targets: Logo + Burger sind schon 44px. Globale Buttons + Inputs prüfen -- */
@media (max-width: 980px) {
  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* -- B.5 Kontaktformular Mobile-Inputs -- */
@media (max-width: 980px) {
  .kontakt-form input,
  .kontakt-form textarea,
  .kontakt-form button {
    min-height: 44px;
    font-size: 16px; /* verhindert iOS-Zoom-on-Focus */
  }
  .kontakt-form textarea {
    min-height: 88px;
  }
}

/* -- B.2 Pricing-Volumen-Tabelle Mobile-Wrapper -- */
.staffel-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
}
@media (max-width: 600px) {
  .staffel-table-wrapper {
    margin-right: -1rem; /* erlaubt visuellen Scroll-Hinweis */
    padding-right: 1rem;
    box-shadow: inset -8px 0 8px -8px rgba(31, 26, 20, 0.15);
  }
  .staffel-table {
    min-width: 540px;
    font-size: 0.84rem;
  }
}
