:root {
  --ink: #0f1b2d;
  --muted: #566275;
  --bg: #f8f8f5;
  --card: #ffffff;
  --line: #e3e5e9;
  --accent: #0f766e;
  --accent-soft: #e5f1ef;
  --ph-bg: #fff4c2;
  --ph-ink: #6b4e00;
  --radius: 14px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8ecf2;
    --muted: #9aa6b6;
    --bg: #0d141f;
    --card: #131c29;
    --line: #243042;
    --accent: #4fc3b4;
    --accent-soft: #15312f;
    --ph-bg: #4a3b0a;
    --ph-ink: #ffe28a;
  }
}

* { box-sizing: border-box; }

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

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

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-bg { fill: var(--accent); }
.brand b { color: var(--accent); font-weight: inherit; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav { display: none; } }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 56px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(32px, 5.4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 17ch;
}
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 60ch; margin: 0 0 28px; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 10px;
}
@media (prefers-color-scheme: dark) { .btn { color: #06201d; } }
.btn:hover { filter: brightness(1.08); }

/* Sections */
section { padding: 56px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 12px; }
.section-intro { color: var(--muted); max-width: 62ch; margin: 0 0 32px; }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid.three { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { font-size: 18px; margin: 0 0 6px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .ref { display: block; margin-top: 10px; font-size: 13px; color: var(--accent); font-weight: 600; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 26px 56px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.steps li:last-child { padding-bottom: 0; }
.steps h3 { margin: 4px 0 4px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); max-width: 64ch; }

.split { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 40px; } }

.note {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 18px 20px;
}
.note p { margin: 0 0 10px; }
.note p:last-child { margin-bottom: 0; }
.note .en { color: var(--muted); font-size: 15px; }

.contact-mail { font-size: clamp(20px, 3vw, 26px); font-weight: 700; word-break: break-word; }

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

/* Legal pages */
.legal { padding-top: 48px; padding-bottom: 64px; max-width: 760px; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.02em; margin: 0 0 24px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.legal address { font-style: normal; }

/* Platzhalter: vor dem Livegang ersetzen */
.ph {
  background: var(--ph-bg);
  color: var(--ph-ink);
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 600;
}
.draft-banner {
  background: var(--ph-bg);
  color: var(--ph-ink);
  font-size: 14px;
  padding: 8px 16px;
  text-align: center;
}
