/* ===========================================================
   Merkpilot — Styles (v2, 2026-06-07)
   Umsetzung von STYLE-GUIDE.md: edel · souverän · modern.
   Dark-first, ein Amber-Akzent (90/10), Tiefe durch Flächen-
   schichtung + Haarlinien, Mono für alle Daten.
   Schriften selbst gehostet (kein Google-CDN → DSGVO/Souveränität).
   =========================================================== */

/* ---------- Selbst gehostete Schriften (woff2 in assets/fonts/) ---------- */
/* Fallback rendert sauber, bis die Dateien liegen. KEIN externes CDN. */
@font-face {
  font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('fonts/HankenGrotesk-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600;
  font-display: swap; src: url('fonts/HankenGrotesk-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 700;
  font-display: swap; src: url('fonts/HankenGrotesk-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('fonts/GeistMono-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono'; font-style: normal; font-weight: 500;
  font-display: swap; src: url('fonts/GeistMono-Medium.woff2') format('woff2');
}

/* ---------- Tokens (siehe STYLE-GUIDE.md §2–§5) ---------- */
:root {
  /* Flächen */
  --bg:          oklch(0.16 0.006 264);
  --surface-1:   oklch(0.20 0.007 264);
  --surface-2:   oklch(0.24 0.008 264);
  --surface-3:   oklch(0.28 0.009 264);
  /* Haarlinien / Overlays */
  --border:        oklch(1 0 0 / 0.09);
  --border-strong: oklch(1 0 0 / 0.16);
  /* Text */
  --text:        oklch(0.96 0.004 264);
  --text-muted:  oklch(0.72 0.006 264);
  --text-faint:  oklch(0.56 0.006 264);
  /* Akzent: Sicherheits-Amber */
  --accent:          oklch(0.80 0.150 74);
  --accent-hover:    oklch(0.84 0.150 76);
  --accent-press:    oklch(0.74 0.145 72);
  --accent-contrast: oklch(0.18 0.020 74);
  --accent-tint:     oklch(0.80 0.150 74 / 0.12);
  --accent-line:     oklch(0.80 0.150 74 / 0.32);
  /* Semantik */
  --ok:        oklch(0.74 0.120 155);
  --ok-tint:   oklch(0.74 0.120 155 / 0.12);
  --danger:    oklch(0.66 0.150 25);
  /* Fokus + Schatten */
  --ring:     0 0 0 3px oklch(0.80 0.150 74 / 0.38);
  --shadow-1: 0 2px 8px oklch(0 0 0 / 0.30);
  --shadow-2: 0 12px 32px oklch(0 0 0 / 0.45);
  /* Form */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-full: 999px;
  /* Schrift */
  --font-sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, monospace;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-muted);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 { color: var(--text); line-height: 1.15; font-weight: 700; margin: 0 0 16px; }
h1 { font-size: clamp(2.0rem, 5.5vw, 3.2rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 18px; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: -0.015em; margin-bottom: 18px; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: 8px; }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 16px; }
strong { color: var(--text); font-weight: 600; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* Daten/technisch = Mono mit Tabular-Nums */
.mono, .header-phone, .footer-phone, .step__num, .badge, .logo__tag {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
}

/* ---------- Buttons (Amber = exklusiv Haupt-Aktion) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: var(--font-sans); font-weight: 640; font-size: 1.0rem;
  padding: 14px 26px; border-radius: var(--r-sm); text-decoration: none;
  border: 1px solid transparent; cursor: pointer; min-height: 50px;
  transition: transform .1s ease, background .14s ease, border-color .14s ease, color .14s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn--primary { background: var(--accent); color: var(--accent-contrast); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-contrast); }
.btn--primary:active { background: var(--accent-press); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--border-strong); background: var(--surface-2); color: var(--text); }
.btn--text { background: transparent; color: var(--text); min-height: auto; padding: 12px 4px; border: none; }
.btn--text:hover { color: var(--accent); }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 16px; min-height: 40px; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.16 0.006 264 / 0.78);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; font-size: 1.2rem; color: var(--text); letter-spacing: -0.01em; }
.logo:hover { color: var(--text); }
.logo__mark { display: inline-flex; color: var(--accent); }
.logo__group { display: flex; flex-direction: column; line-height: 1.05; }
.logo__text { color: var(--text); }
.logo__tag { display: none; font-size: .66rem; font-weight: 500; color: var(--text-faint); letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }
.logo__accent { color: var(--accent); }
.header-phone { display: none; font-weight: 500; font-size: .95rem; color: var(--text-muted); text-decoration: none; }
.header-phone:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--surface-1) 0%, var(--bg) 70%); padding: 56px 0 60px; border-bottom: 1px solid var(--border); }
.hero__inner { max-width: 840px; }
.badge {
  display: inline-block; background: var(--accent-tint); color: var(--accent);
  border: 1px solid var(--accent-line); font-weight: 500; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 14px; border-radius: var(--r-full); margin-bottom: 24px;
}
.hl, .lead--strong { color: var(--text); }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.2rem); color: var(--text-muted); margin-bottom: 14px; }
.lead--strong { font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }

/* Souveränitäts-/Trust-Zeile (leise, kein Fake-Siegel) */
.trustrow { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--border); }
.trustrow span { font-size: .88rem; color: var(--text-muted); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Bands ---------- */
.band { padding: 56px 0; }
.band--alt { background: var(--surface-1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band--dark { background: oklch(0.13 0.006 264); }
.muted-lead { color: var(--text-muted); font-size: 1.06rem; }

/* Schmerz + Lösung */
.solution { display: grid; gap: 12px; margin-top: 24px; }
.solution li {
  list-style: none; background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 16px 18px; font-weight: 500; color: var(--text);
  display: flex; gap: 12px; align-items: flex-start;
}
.solution li::before { content: "✓"; color: var(--ok); font-weight: 700; flex-shrink: 0; }
.pain-list { color: var(--text-muted); padding-left: 22px; margin-top: 8px; }
.pain-list li { margin-bottom: 9px; }
.pain-list li::marker { color: var(--text-faint); }

/* Steps */
.steps { display: grid; gap: 16px; margin-top: 30px; }
.step { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-md); padding: 26px 22px; transition: border-color .14s ease, background .14s ease; }
.step:hover { border-color: var(--border-strong); background: var(--surface-2); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--accent-line);
  color: var(--accent); font-weight: 500; font-size: 1.05rem; margin-bottom: 16px;
}

/* Vergleich */
.compare { display: grid; gap: 14px; margin-top: 28px; }
.compare__col { border-radius: var(--r-md); padding: 22px; border: 1px solid var(--border); background: var(--surface-1); }
.compare__col h4 { margin: 0 0 12px; font-size: 1.05rem; }
.compare__col ul { margin: 0; padding-left: 20px; color: var(--text-muted); }
.compare__col li { margin-bottom: 8px; }
.compare__col--no { background: transparent; }
.compare__col--no h4 { color: var(--text-faint); }
.compare__col--no li::marker { content: "✕  "; color: var(--danger); }
.compare__col--yes { background: var(--surface-1); border-color: var(--accent-line); position: relative; }
.compare__col--yes::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); border-radius: var(--r-md) 0 0 var(--r-md); }
.compare__col--yes h4 { color: var(--accent); }
.compare__col--yes ul { color: var(--text); }
.compare__col--yes li::marker { content: "✓  "; color: var(--ok); }

/* Gründer / Gesicht */
.founder { display: grid; gap: 24px; align-items: center; margin-top: 8px; }
.founder__photo { border-radius: var(--r-md); overflow: hidden; }
.founder__photo img { width: 100%; height: auto; display: block; border-radius: var(--r-md); }
.founder ul { padding-left: 20px; color: var(--text-muted); margin-top: 14px; }
.founder li { margin-bottom: 7px; }
.founder li::marker { color: var(--accent); }

/* Pilot Box */
.pilot-box { background: var(--surface-1); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r-md); padding: 30px 28px; }
.pilot-box h2 { color: var(--text); }

/* FAQ */
.faq { margin-top: 28px; }
.faq details { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-md); padding: 2px 20px; margin-bottom: 10px; transition: border-color .14s ease; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 500; font-size: 1.4rem; line-height: 1; font-family: var(--font-mono); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--text-muted); margin: 0 0 16px; }

/* ---------- Form ---------- */
.form { margin-top: 30px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--text); margin-bottom: 8px; font-size: .96rem; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"] {
  width: 100%; padding: 14px; font-size: 1.02rem; border: 1px solid var(--border);
  border-radius: var(--r-sm); background: var(--surface-2); color: var(--text);
  font-family: inherit; min-height: 50px;
}
.field input::placeholder { color: var(--text-faint); }
.field input:focus { outline: none; border-color: var(--border-strong); box-shadow: var(--ring); }
.field .hint { display: block; color: var(--text-faint); font-size: .84rem; margin-top: 6px; }
.optional { color: var(--text-faint); font-weight: 400; }
.field--check { display: flex; gap: 12px; align-items: flex-start; }
.field--check input { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }
.field--check label { font-weight: 400; color: var(--text-muted); font-size: .92rem; }
.form-status { margin: 14px 0 0; font-weight: 500; min-height: 1px; }
.form-status.is-error { color: var(--danger); }
.form-done { text-align: center; padding: 18px 6px; }
.form-done h3 { color: var(--ok); }

/* ---------- Footer ---------- */
.site-footer { background: oklch(0.13 0.006 264); color: var(--text-muted); padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-brand { font-weight: 700; font-size: 1.15rem; color: var(--text); margin: 0; letter-spacing: -0.01em; }
.footer-by { margin: 0; font-size: .9rem; color: var(--text-faint); }
.footer-phone { color: var(--text-muted); font-weight: 500; text-decoration: none; }
.footer-phone:hover { color: var(--accent); }
.footer-nav { display: flex; gap: 20px; margin-top: 4px; }
.footer-nav a { color: var(--text-muted); text-decoration: none; font-size: .9rem; }
.footer-nav a:hover { color: var(--text); }

/* ---------- Floating WhatsApp (edel: dunkle Pille, grüner Akzent) ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface-2); color: var(--text); font-weight: 600; font-size: .92rem;
  padding: 12px 16px; border-radius: var(--r-full); text-decoration: none;
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-2);
}
.wa-float:hover { background: var(--surface-3); color: var(--text); }
.wa-float svg { width: 21px; height: 21px; color: #25D366; }
.wa-float span { display: none; }

/* ---------- Legal pages ---------- */
.legal { padding: 48px 0 64px; }
.legal h1 { font-size: 1.9rem; }
.legal h2 { font-size: 1.3rem; margin-top: 32px; color: var(--text); }
.legal p, .legal li { color: var(--text-muted); }
.legal a { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .header-phone { display: inline-flex; align-items: center; gap: 7px; }
  .logo__tag { display: block; }
  .wa-float span { display: inline; }
  .solution { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .compare { grid-template-columns: 1fr 1fr; }
  .founder { grid-template-columns: 280px 1fr; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
}
@media (min-width: 900px) {
  .band { padding: 88px 0; }
  .hero { padding: 80px 0 84px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
