/* HoldingsMap – Website. Farben entsprechen HoldingsMapTheme.swift */
:root {
  --bg: #F2F2F4;
  --card: #FFFFFF;
  --ink: #111214;
  --ink-soft: #3A3B3E;
  --muted: #5F6064;
  --line: rgba(0, 0, 0, 0.09);
  --accent-soft: rgba(0, 0, 0, 0.06);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --todo-bg: #FFF3B0;
  --todo-ink: #5C4400;
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D0D0F;
    --card: #1A1A1D;
    --ink: #F5F5F7;
    --ink-soft: #C8C9CD;
    --muted: #8E8F94;
    --line: rgba(255, 255, 255, 0.10);
    --accent-soft: rgba(255, 255, 255, 0.08);
    --shadow: none;
    --todo-bg: #5C4400;
    --todo-ink: #FFF3B0;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 560px) { .nav .opt { display: none; } }

/* Typografie */
h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 16px; }
h2 { font-size: clamp(24px, 4vw, 32px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
h3 { font-size: 18px; line-height: 1.3; margin: 0 0 6px; }
p, ul { margin: 0 0 12px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--ink-soft); max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

/* Abschnitte & Karten */
section { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 28px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; border: 1px solid var(--line); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
@media (max-width: 380px) { .grid-2 { grid-template-columns: 1fr; } }
.icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card p:last-child { margin-bottom: 0; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; gap: 40px; grid-template-columns: 1.1fr 1fr; align-items: center; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; padding: 0; list-style: none; }
.chips li { margin: 0; font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn[aria-disabled="true"] { cursor: default; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.treemap-card { padding: 16px; }
.treemap-card svg { display: block; width: 100%; height: auto; }
.treemap-card text { font: 600 13px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; fill: #111214; }
.treemap-card text.pct { font-weight: 400; opacity: 0.75; }
.caption { font-size: 13px; color: var(--muted); margin: 10px 4px 0; }

/* Funktionsliste */
.features { margin: 0; padding-left: 20px; }
.features li { margin-bottom: 12px; color: var(--ink-soft); }
.features li:last-child { margin-bottom: 0; }
.features strong { color: var(--ink); }

/* Schritte */
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 64px; }
.steps .card::before { counter-increment: step; content: counter(step); position: absolute; top: 22px; left: 24px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 15px; display: grid; place-items: center; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-size: 22px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 16px; color: var(--ink-soft); }
.faq .card { padding-top: 8px; padding-bottom: 8px; }

/* Rechtstexte */
.legal { padding-top: 40px; padding-bottom: 56px; }
.legal h1 { font-size: clamp(30px, 5vw, 40px); }
.legal h2 { font-size: 21px; margin: 36px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); letter-spacing: -0.01em; }
.legal h3 { font-size: 17px; margin: 24px 0 4px; }
.meta { color: var(--muted); margin-bottom: 24px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 16px 0; }
.box :last-child { margin-bottom: 0; }
address { font-style: normal; margin-bottom: 12px; }
mark { background: var(--todo-bg); color: var(--todo-ink); padding: 0 3px; border-radius: 3px; }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
