/* ══════════════════════════════════════════════════════════════════
   MARCHER SHELL — Shared Styles für marcher.li
   ────────────────────────────────────────────────────────────────
   Verwendet auf:  marcher.li/, /lab/, /lab/studio/, /lab/starterkit/, /agb/, /legal-notice/
   Voraussetzung:  tokens.css muss VOR dieser Datei geladen sein
   
   Klassen-Prefix: .marcher-*  (vermeidet Kollisionen mit Studio-Shell)
   ══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: clip; /* clip, nicht hidden — sonst bricht position:sticky am Nav */
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: clip;
}

section, footer { max-width: 100vw; overflow-x: clip; }

a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ── Container ───────────────────────────────────────────────── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section           { padding: 5rem 0; }
.section--dark     { background: var(--navy); color: var(--white); }
.section--gray     { background: var(--bg); }

/* ══════════════════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════════════════ */
.marcher-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 32, 57, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.marcher-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.marcher-nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.marcher-nav-logo span { color: var(--gold); }

.marcher-nav-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.marcher-nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.marcher-nav-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.marcher-nav-links a:hover { color: var(--gold); }

/* Gold-CTA (Studio-Login, Member-Login, etc.) */
.marcher-nav-cta {
  display: inline-block;
  color: var(--navy) !important;
  background: var(--gold);
  border: 1px solid var(--gold);
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 700 !important;
  transition: all 0.2s;
}
.marcher-nav-cta:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--navy) !important;
}

/* Back-Button (← LAB) */
.marcher-nav-back {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-dark);
  background: var(--gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.2s;
}
.marcher-nav-back:hover { background: var(--gold-dark); color: var(--navy); }

/* Mobile-Toggle */
.marcher-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: 10px;
}
.marcher-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* Mobile-Back: versteckt auf Desktop, erscheint im Mobile-Menu */
.marcher-nav-back-mobile      { display: none; }
.marcher-nav-links li.marcher-nav-back-mobile-wrap { display: none; }

/* ── Back-Link Subtle-Variante (für Home / übergeordnete Seiten) ──
   Kleiner, dezenter Gold-Link absolut rechts im Nav.
   Mobile-Version wandert in die Liste (siehe Responsive). */
.marcher-nav-back-subtle {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  color: rgba(245, 197, 24, 0.7);
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
  font-weight: 500;
  z-index: 2;
  transition: color 0.2s;
}
.marcher-nav-back-subtle:hover { color: var(--gold); }

.marcher-nav-back-subtle-mobile {
  font-size: 0.8rem;
  color: var(--gold);
  text-decoration: none;
  padding: 8px 0;
}

/* ── Nav-Link: Highlight + Badge (z.B. für "Studio NEU") ── */
.marcher-nav-link-highlight {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  color: var(--white) !important;
  font-weight: 600;
}
.marcher-nav-link-highlight:hover { color: var(--gold) !important; }

.marcher-nav-link-badge {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--gold);
  color: var(--navy);
  padding: 2px 6px;
  border-radius: 3px;
  line-height: 1.1;
}

/* Icon-only Nav-Link (z.B. LinkedIn) */
.marcher-nav-links li { display: flex; align-items: center; }
.marcher-nav-links a.marcher-nav-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
  line-height: 1;
}
.marcher-nav-links a.marcher-nav-link-icon:hover { color: var(--gold); }
.marcher-nav-links a.marcher-nav-link-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}


/* ══════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════ */
.marcher-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  padding: 2rem 0;
}

.marcher-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.marcher-footer-logo {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.marcher-footer-logo span { color: var(--gold); }

.marcher-footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.marcher-footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
}
.marcher-footer-links a:hover { color: var(--gold); }

.marcher-footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.marcher-footer-copy span { color: var(--gold); }

/* ══════════════════════════════════════════════════════════════════
   KONTAKT-MODAL
   ══════════════════════════════════════════════════════════════════ */
.marcher-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 32, 57, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 2000;
}
.marcher-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.marcher-modal {
  background: var(--white);
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.25s;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}
.marcher-modal-overlay.is-open .marcher-modal { transform: translateY(0); }

.marcher-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.marcher-modal-close:hover { background: var(--border); }

.marcher-modal-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.marcher-modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
  line-height: 1.2;
}
.marcher-modal-title::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--gold);
  margin-top: 0.6rem;
}

/* Paket-Badge: für Starterkit-Varianten mit Paket-Kontext */
.marcher-modal-paket-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: var(--gold-light);
  border: 1px solid var(--gold);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.marcher-modal-form .form-group { margin-bottom: 1rem; }
.marcher-modal-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.marcher-modal-form input,
.marcher-modal-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.15s;
}
.marcher-modal-form input:focus,
.marcher-modal-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.marcher-modal-form textarea {
  resize: vertical;
  min-height: 110px;
}

.marcher-modal-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}
.marcher-modal-submit:hover { background: var(--gold-dark); }
.marcher-modal-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.marcher-modal-success { display: none; text-align: center; padding: 1.5rem 0; }
.marcher-modal-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--gold-dark);
  font-size: 1.75rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.marcher-modal-success h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.marcher-modal-success p { font-size: 0.88rem; color: var(--muted); }

/* ══════════════════════════════════════════════════════════════════
   STATUS-BANNER (Success/Cancel-Meldungen)
   ══════════════════════════════════════════════════════════════════ */
.marcher-status-banner {
  display: none;
  position: fixed;
  top: 90px;
  right: 2rem;
  max-width: 400px;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 1500;
  align-items: flex-start;
  gap: 0.9rem;
}
.marcher-status-banner.is-visible { display: flex; }
.marcher-status-banner--success { background: #fff; border-left: 4px solid #22C55E; color: var(--text); }
.marcher-status-banner--cancel  { background: #fff; border-left: 4px solid var(--muted); color: var(--text); }

.marcher-status-banner-icon { font-size: 1.2rem; flex-shrink: 0; line-height: 1.3; }
.marcher-status-banner-body { flex: 1; font-size: 0.88rem; line-height: 1.5; }
.marcher-status-banner-title { font-weight: 700; color: var(--navy); margin-bottom: 0.2rem; }
.marcher-status-banner-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  padding: 0 0.3rem;
  cursor: pointer;
}
.marcher-status-banner-close:hover { color: var(--navy); }

/* ══════════════════════════════════════════════════════════════════
   BACK-TO-TOP
   ══════════════════════════════════════════════════════════════════ */
.marcher-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, background 0.2s;
  z-index: 1000;
}
.marcher-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.marcher-back-to-top:hover { background: var(--gold-dark); }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .marcher-nav-inner { padding: 0 1.5rem; }
  .marcher-nav-toggle { display: flex; }

  .marcher-nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(22, 32, 57, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    gap: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .marcher-nav-links.is-open { display: flex; }
  .marcher-nav-links a { font-size: 0.95rem; }

  /* Desktop-Back verstecken, Mobile-Back zeigen */
  .marcher-nav-back-desktop     { display: none !important; }
  .marcher-nav-back-mobile      { display: inline-flex; margin-top: 0.5rem; align-self: flex-start; }
  .marcher-nav-links li.marcher-nav-back-mobile-wrap { display: list-item; }

  /* Subtle-Back (Home): Desktop-Variante verstecken, Mobile-Variante in Liste */
  .marcher-nav-back-subtle      { display: none; }

  .marcher-footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .marcher-footer-links { justify-content: center; }

  .marcher-status-banner { right: 1rem; left: 1rem; max-width: none; }
  .marcher-back-to-top { bottom: 1.5rem; right: 1.5rem; }
}

@media (max-width: 600px) {
  .marcher-modal { padding: 2rem 1.5rem; }
}