/* Yarnaz — Pre-Launch. Keine externen Ressourcen, keine Cookies, kein JavaScript. */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --surface: #ffffff;
  --text: #0e1a2b;
  --text-muted: #4d5b70;
  --border: #dfe6f0;
  --brand: #0b4fd6;
  --brand-strong: #083da8;
  --brand-soft: #e8f0ff;
  --accent: #12a978;
  --accent-soft: #e3f7ef;
  --warn-soft: #fff4dc;
  --warn-text: #8a5a00;
  --shadow: 0 1px 2px rgba(14, 26, 43, 0.06), 0 8px 24px rgba(14, 26, 43, 0.06);
  --radius: 14px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-soft: #0f1829;
    --surface: #121d31;
    --text: #e8eef8;
    --text-muted: #a3b1c6;
    --border: #22314b;
    --brand: #5b8cff;
    --brand-strong: #84a8ff;
    --brand-soft: #16264a;
    --accent: #3fd6a0;
    --accent-soft: #0f2e27;
    --warn-soft: #2e2511;
    --warn-text: #f2c66d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
a:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px;
}
.skip:focus { left: 8px; z-index: 10; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
}
.brand img { width: 32px; height: 32px; display: block; }
.brand span { font-weight: 800; letter-spacing: 0.14em; font-size: 1.05rem; }
.nav { display: flex; align-items: center; gap: 20px; font-size: 0.95rem; }
.nav a { color: var(--text-muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav .hide-sm { display: none; }
@media (min-width: 720px) { .nav .hide-sm { display: inline; } }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
  white-space: nowrap;
}
.pill::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
}

/* Hero */
.hero {
  background:
    radial-gradient(1100px 380px at 85% -10%, var(--brand-soft), transparent 70%),
    var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.hero .wrap {
  display: grid; gap: 32px;
  padding-top: 48px; padding-bottom: 56px;
}
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr) 520px; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
}
.eyebrow {
  margin: 0 0 12px; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand);
}
h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5.2vw, 3.1rem); line-height: 1.12; letter-spacing: -0.02em;
}
.lead { margin: 0 0 24px; font-size: 1.12rem; color: var(--text-muted); max-width: 40em; }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; }
.hero-points li::before {
  content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800; background: var(--accent-soft); color: var(--accent);
  margin-top: 2px;
}

/* Example calculation card */
.calc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.calc-head { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.calc-head h2 { margin: 0; font-size: 1.02rem; }
.calc-head p { margin: 4px 0 0; font-size: 0.85rem; color: var(--text-muted); }
.calc-body { display: grid; gap: 1px; background: var(--border); }
@media (min-width: 480px) { .calc-body { grid-template-columns: 1fr 1fr; } }
.option { background: var(--surface); padding: 16px 20px; }
.option h3 { margin: 0 0 10px; font-size: 0.92rem; }
.option dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 0.86rem; }
.option dt { color: var(--text-muted); }
.option dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.option h3 { white-space: nowrap; }
.option .total { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); font-weight: 700; }
.option .total dd { font-size: 1.05rem; }
.option.best { background: linear-gradient(0deg, var(--accent-soft), var(--accent-soft)), var(--surface); }
.option.best h3 { color: var(--accent); }
.calc-foot {
  padding: 14px 20px; display: flex; flex-wrap: wrap; gap: 8px 16px;
  justify-content: space-between; align-items: center; font-size: 0.9rem;
}
.calc-foot strong { color: var(--accent); }
.calc-note {
  padding: 10px 20px; font-size: 0.78rem; color: var(--warn-text); background: var(--warn-soft);
}

/* Sections */
section { padding: 56px 0; }
@media (min-width: 720px) { section { padding: 72px 0; } }
.section-head { max-width: 44em; margin-bottom: 32px; }
.section-head h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3.4vw, 2rem); letter-spacing: -0.01em; line-height: 1.2; }
.section-head p { margin: 0; color: var(--text-muted); }

.grid-3 { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.card .num {
  display: inline-flex; width: 36px; height: 36px; border-radius: 10px;
  align-items: center; justify-content: center; font-weight: 800;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.steps li {
  counter-increment: step; position: relative;
  padding: 20px 20px 20px 64px; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--border);
}
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 20px;
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 0.9rem;
}
.steps h3 { margin: 0 0 4px; font-size: 1rem; }
.steps p { margin: 0; color: var(--text-muted); font-size: 0.93rem; }

.categories { display: grid; gap: 12px; }
@media (min-width: 720px) { .categories { grid-template-columns: repeat(3, 1fr); } }
.category {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
}
.category strong { font-size: 1rem; }
.category span { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }

.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.disclosure {
  margin-top: 24px; padding: 16px 20px; border-radius: var(--radius);
  background: var(--brand-soft); color: var(--text); font-size: 0.93rem;
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; font-size: 0.9rem; color: var(--text-muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--text-muted); }

/* Legal pages */
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { margin: 32px 0 8px; font-size: 1.2rem; }
.legal h3 { margin: 20px 0 6px; font-size: 1rem; }
.legal p, .legal li { color: var(--text); }
.legal address { font-style: normal; }
.todo {
  background: var(--warn-soft); color: var(--warn-text);
  padding: 0 4px; border-radius: 4px; font-weight: 600;
}

/* 404 */
.notfound { padding: 96px 0; text-align: center; }
.notfound h1 { margin-bottom: 8px; }
.button {
  display: inline-block; margin-top: 16px; padding: 10px 18px; border-radius: 10px;
  background: var(--brand); color: #fff; text-decoration: none; font-weight: 600;
}
.button:hover { background: var(--brand-strong); color: #fff; }
