:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --ink: #17171c;
  --muted: #5d5d66;
  --line: #e2dfd6;
  --accent: #2b4eff;
  --accent-ink: #ffffff;
  --radius: 14px;
  --max: 1040px;
}

* { box-sizing: border-box; }

html { 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;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

/* Kopfzeile */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(245, 243, 238, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.logo-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 800; letter-spacing: 0.02em;
}
nav.main a { text-decoration: none; color: var(--muted); margin-left: 22px; font-size: 15px; }
nav.main a:hover { color: var(--ink); }

/* Hero */
.hero { padding-top: 96px; padding-bottom: 72px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 16px; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 22px; max-width: 16ch; }
.hero p.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 52ch; margin: 0 0 34px; }
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(43, 78, 255, .25); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); margin-left: 10px; }
.btn.ghost:hover { box-shadow: none; border-color: var(--ink); }

/* Abschnitte */
section { padding: 72px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
section .intro { color: var(--muted); max-width: 56ch; margin: 0 0 40px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -0.01em; }
.card p { margin: 0 0 14px; color: var(--muted); }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.card li { margin-bottom: 4px; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: #e8ecff; color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }

.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.step { padding-top: 18px; border-top: 2px solid var(--ink); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

.about { display: grid; gap: 40px; grid-template-columns: 1fr 1.4fr; align-items: start; }
.about .facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.about .facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; }
.about .facts dt { color: var(--muted); }
.about .facts dd { margin: 0; font-weight: 600; }
.about p { margin: 0 0 16px; }

.contact { background: var(--ink); color: var(--bg); border-radius: 22px; padding: 56px 40px; }
.contact h2 { color: var(--bg); }
.contact p { color: #b9b7b0; max-width: 50ch; }
.contact .lines { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.contact .btn.ghost { color: var(--bg); border-color: #44444c; margin-left: 0; }
.contact .btn.ghost:hover { border-color: var(--bg); }

footer { padding: 36px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { margin-left: 18px; }

/* Rechtstexte */
.legal { padding: 64px 0 80px; max-width: 760px; }
.legal h1 { font-size: 38px; letter-spacing: -0.02em; margin: 0 0 28px; }
.legal h2 { font-size: 21px; margin: 36px 0 8px; }
.legal p, .legal li { color: #34343b; }

@media (max-width: 720px) {
  nav.main a:not(:last-child) { display: none; }
  .hero { padding-top: 64px; padding-bottom: 48px; }
  section { padding: 56px 0; }
  .about { grid-template-columns: 1fr; }
  .contact { padding: 40px 24px; }
  .btn.ghost { margin-left: 0; margin-top: 10px; }
  footer a { margin-left: 0; margin-right: 18px; }
}
