/* Zusagepilot – gemeinsame Styles
   Bewusst ohne Google Fonts (DSGVO: keine Daten an Dritte beim Laden). */

:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #efede6;
  --text: #1b2230;
  --muted: #5b6474;
  --line: #dedbd1;
  --brand: #16324f;
  --brand-2: #22476e;
  --accent: #e8792b;
  --accent-ink: #ffffff;
  --ok: #2f8a4e;
  --warn: #c7581a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 50, 79, 0.10);
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11161f;
    --surface: #18202c;
    --surface-2: #1f2937;
    --text: #e9edf3;
    --muted: #a3adbd;
    --line: #2c3646;
    --brand: #9cc3ec;
    --brand-2: #c4dcf5;
    --accent: #f08a3e;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--brand);
  display: grid; place-items: center; color: var(--bg); font-size: 16px;
}
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-links a { white-space: nowrap; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--accent-ink); }
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } .nav-links { gap: 14px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: 16px; cursor: pointer; text-decoration: none;
  transition: transform .08s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* Typo */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 5.4vw, 56px); font-weight: 850; }
h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 750; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 640px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

section { padding: 72px 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }

/* Hero */
.hero { padding: 64px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; }
.trust span::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* Karten */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--bg);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 14px;
}

/* Dashboard-Mockup */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.mock-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock-top strong { font-size: 15px; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.pill-due { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--warn); border-color: transparent; }
.pill-ok { background: color-mix(in srgb, var(--ok) 15%, var(--surface)); color: var(--ok); border-color: transparent; }
.mock-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: center; }
.mock-row:last-child { border-bottom: 0; }
.mock-row .who { font-weight: 650; }
.mock-row .what { color: var(--muted); font-size: 14px; }
.mock-row .amt { font-weight: 750; text-align: right; }
.mock-sum { display: flex; justify-content: space-between; padding: 16px 18px; background: var(--brand); color: var(--bg); }
.mock-sum b { font-size: 20px; }

/* Rechner */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 650; font-size: 15px; }
.field .hint { font-size: 13px; color: var(--muted); }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 1px; border-color: var(--accent); }
input[type="range"] { padding: 0; accent-color: var(--accent); }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row output { min-width: 64px; font-weight: 750; text-align: right; }
.result { background: var(--brand); color: var(--bg); border-radius: var(--radius); padding: 28px; }
.result .big { font-size: clamp(36px, 5vw, 52px); font-weight: 850; letter-spacing: -0.03em; line-height: 1.1; }
.result p { margin: 6px 0 0; opacity: .85; }
.result hr { border: 0; border-top: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); margin: 20px 0; }

/* Preise */
.price { position: relative; display: flex; flex-direction: column; }
.price .amount { font-size: 40px; font-weight: 850; letter-spacing: -0.03em; }
.price .amount small { font-size: 16px; font-weight: 600; color: var(--muted); }
.price ul { list-style: none; padding: 0; margin: 16px 0 24px; flex: 1; }
.price li { padding: 5px 0; }
.price li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.price.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.badge { position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Warteliste */
.signup { background: var(--brand); color: var(--bg); border-radius: 20px; padding: 44px; text-align: center; }
.signup h2 { color: var(--bg); }
.signup p { opacity: .85; }
.signup form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.signup input, .signup select { max-width: 280px; }
.signup .consent { flex-basis: 100%; display: flex; gap: 10px; align-items: flex-start; justify-content: center; max-width: 620px; margin: 6px auto 0; text-align: left; font-size: 14px; opacity: .9; cursor: pointer; }
.signup .consent input { width: auto; margin-top: 4px; accent-color: var(--accent); }
.signup .consent a { color: inherit; }
.signup .msg { margin-top: 14px; font-weight: 650; min-height: 1.5em; }
@media (max-width: 600px) { .signup { padding: 28px 18px; } .signup input, .signup select { max-width: none; } }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--muted); }

/* Generator */
.gen { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
@media (max-width: 920px) { .gen { grid-template-columns: 1fr; } }
.seg { display: flex; background: var(--surface-2); border-radius: 10px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 650; padding: 8px 6px; border-radius: 8px; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.tl { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: var(--text); }
.tl small { display: block; color: var(--muted); font-size: 13px; }
.tl b { font-size: 15px; }
.tl[aria-pressed="true"] { border: 2px solid var(--accent); padding: 11px; }
.mail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mail-head { padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 15px; }
.mail-body { padding: 18px; white-space: pre-wrap; min-height: 260px; }
.mail-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); }
.upsell { margin-top: 18px; border-left: 4px solid var(--accent); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 10px; font-weight: 650; opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.show { opacity: 1; }
