/* ---------- Farben & Grundwerte (hier zentral anpassen) ---------- */
:root {
  --bg: #F4F6F8;
  --surface: #FFFFFF;
  --ink: #2A323C;        /* dunkles Grau statt Schwarz */
  --muted: #6A7480;
  --soft: #E8ECF0;
  --line: #D6DCE2;
  --blue: #2F5D8C;       /* Hauptfarbe Blau */
  --blue-dark: #244A70;
  --on-blue: #FFFFFF;
  --max: 72rem;
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1E242B; --surface: #262D35; --ink: #E4E8EC; --muted: #9AA4AE; --soft: #2C343D;
          --line: #38424C; --blue: #7FA8D4; --blue-dark: #9BBCE0; --on-blue: #14202C; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* ---------- Kopfzeile ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; flex-wrap: wrap; }
.logo { font-weight: 700; font-size: 1.4rem; letter-spacing: -0.04em; color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: 2rem; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(4.5rem, 14vw, 9rem) clamp(3.5rem, 9vw, 6rem); }
.hero h1 { font-size: clamp(2.6rem, 7.5vw, 5.5rem); line-height: 1; letter-spacing: -0.045em; font-weight: 700; margin: 0 0 2rem; max-width: 14ch; }
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 40ch; margin: 0 0 2.5rem; }

.button { display: inline-block; padding: 0.9rem 1.75rem; background: var(--blue); color: var(--on-blue); font-weight: 500; text-decoration: none; border: 1px solid var(--blue); border-radius: 4px; }
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.button.secondary { background: transparent; color: var(--blue); margin-left: .5rem; }
.button.secondary:hover { background: var(--soft); color: var(--blue-dark); }

/* ---------- Abschnitte ---------- */
section { padding-block: clamp(3.5rem, 8vw, 6rem); border-top: 1px solid var(--line); }
section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.035em; font-weight: 700; margin: 0 0 3rem; line-height: 1.1; }

/* Leistungen: Zeilen mit Trennlinien */
.services { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--blue); }
.services li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem 3rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.services h3 { margin: 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }
.services p { margin: 0; color: var(--muted); }
@media (max-width: 40rem) { .services li { grid-template-columns: 1fr; } }

/* Über uns */
.about { display: grid; gap: 3rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); align-items: start; }
.about p { margin: 0 0 1rem; max-width: 60ch; }
.facts { margin: 0; display: grid; gap: 1.5rem; }
.facts div { border-top: 2px solid var(--blue); padding-top: .75rem; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; }

/* Ablauf: echte Reihenfolge, daher nummeriert */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.steps li { counter-increment: step; border-top: 2px solid var(--blue); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font-size: 2.5rem; font-weight: 300; line-height: 1; margin-bottom: 1rem; color: var(--blue); }
.steps h3 { margin: 0 0 .35rem; font-size: 1.1rem; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); }

/* Kontakt: invertierter Block */
.contact { background: var(--surface); border-top: 1px solid var(--line); }
.contact a { color: var(--blue); }
.contact-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.contact address { font-style: normal; line-height: 1.8; opacity: 1; }
.contact p { color: inherit; }
.contact .big { font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 700; letter-spacing: -0.03em; display: block; margin-bottom: .3rem; text-decoration: none; word-break: break-word; }
.contact .big:hover { text-decoration: underline; text-underline-offset: 6px; }

/* Fußzeile */
.site-footer { padding-block: 2rem; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); margin-left: 1.5rem; }

/* Rechtsseiten (Impressum/Datenschutz) */
.legal { padding-block: 3rem 5rem; max-width: 46rem; }
.legal h1 { font-size: 2.4rem; letter-spacing: -0.04em; }
.legal h2 { font-size: 1.2rem; margin-top: 2.25rem; }
.note { background: var(--surface); border-left: 2px solid var(--blue); padding: 1rem 1.25rem; }
