/* Schatzmeister – Website (statisch, keine externen Schriften oder Skripte) */
:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --surface-2: #f2efe6;
  --text: #1d2a24;
  --muted: #5b6a62;
  --line: #e2ddd0;
  --brand: #1f5c45;
  --brand-ink: #ffffff;
  --brand-soft: #e3efe9;
  --gold: #b8892b;
  --warn: #9a4b2a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 40, 30, .06), 0 8px 24px rgba(20, 40, 30, .06);
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111814;
    --surface: #18211c;
    --surface-2: #1e2923;
    --text: #e8eee9;
    --muted: #a3b2a9;
    --line: #2c3a32;
    --brand: #5fbf95;
    --brand-ink: #0d1a14;
    --brand-soft: #1d3329;
    --gold: #d9ad55;
    --warn: #e0906b;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
img, svg { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Kopfzeile */
.top {
  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);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.logo svg { width: 28px; height: 28px; }
.top nav { display: flex; gap: 20px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--text); }
@media (max-width: 760px) { .top nav { display: none; } .top .btn { margin-left: auto; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--brand);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.small { padding: 7px 14px; font-size: 15px; }

/* Abschnitte */
section { padding: 72px 0; }
section.alt { background: var(--surface-2); border-block: 1px solid var(--line); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5vw, 54px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 19px; }
.lead { font-size: 19px; color: var(--muted); max-width: 40em; }
.eyebrow { color: var(--gold); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }

/* Hero */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero .note { font-size: 14px; color: var(--muted); }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } }

.chart-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 20px 12px;
}
.chart-card .legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.chart-card .legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.chart-card .caption { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.chart .grid { stroke: var(--line); }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart .a { stroke: var(--brand); }
.chart .a-fill { fill: var(--brand); opacity: .12; }
.chart .b { stroke: var(--gold); }
.chart .marker { stroke: var(--muted); stroke-dasharray: 3 4; }
.chart .label { fill: var(--muted); font-size: 11px; }

/* Karten */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
@media (max-width: 880px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .ico { font-size: 24px; margin-bottom: 8px; }

/* Schritte */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; padding: 0; list-style: none; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.steps li { position: relative; padding-top: 52px; }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700;
  background: var(--brand-soft); color: var(--brand);
}
.steps p { color: var(--muted); margin: 0; }

/* Ziele */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
@media (max-width: 720px) { .two { grid-template-columns: 1fr; } }
.goal { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 22px; }
.goal.gold { border-left-color: var(--gold); }
.goal p { margin: 0; color: var(--muted); }

/* Beispiel */
.example { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; margin-top: 32px; }
@media (max-width: 800px) { .example { grid-template-columns: 1fr; } }
table.facts { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 16px; }
table.facts td { padding: 10px 16px; border-bottom: 1px solid var(--line); }
table.facts tr:last-child td { border-bottom: 0; }
table.facts td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* FAQ */
.faq { max-width: 760px; margin-top: 28px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Aufruf + Hinweis */
.cta { text-align: center; }
.cta .lead { margin: 0 auto 26px; }
.disclaimer { font-size: 14px; color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-top: 40px; background: var(--surface); }

/* Fußzeile */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer nav { display: flex; gap: 18px; margin-left: auto; }
footer a { color: var(--muted); }

/* Rechtstexte */
.legal { max-width: 760px; padding: 48px 20px 72px; margin: 0 auto; }
.legal h2 { font-size: 22px; margin-top: 1.6em; }
.legal .todo { background: #fff3c4; color: #5a4300; padding: 0 4px; border-radius: 4px; }
@media (prefers-color-scheme: dark) { .legal .todo { background: #4a3c10; color: #ffe7a0; } }
