/* resper.de – Grundgestaltung (ohne externe Ressourcen) */
:root {
  --text: #14213d;
  --muted: #5a6478;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --line: #e2e6ec;
  --accent: #c8102e;
  --accent-dark: #9e0c24;
  --max: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8ecf3;
    --muted: #a3adbf;
    --bg: #0f1522;
    --bg-soft: #172033;
    --line: #263049;
    --accent: #ff4d5e;
    --accent-dark: #ff7380;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-dark); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Kopfzeile */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 1rem; padding-bottom: 1rem;
}
.logo {
  font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none;
}
.logo span { color: var(--accent); }
.site-nav a {
  color: var(--muted); text-decoration: none; margin-left: 1.25rem; font-size: 0.95rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Inhalt */
main { flex: 1; padding: 3rem 0 4rem; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.15;
  letter-spacing: -0.03em; margin: 0 0 1rem;
}
.hero p.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 2rem; }

h1 { font-size: 2rem; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 1.5rem; }
h2 { font-size: 1.25rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.05rem; margin: 1.75rem 0 0.5rem; }

.card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 0.75rem; padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

address { font-style: normal; }

/* Entwurfs-Markierung: muss vor dem Livegang verschwinden */
.entwurf {
  border: 2px dashed #e0a800; background: rgba(255, 193, 7, 0.12);
  border-radius: 0.5rem; padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.entwurf strong:first-child { color: #b38600; }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding-top: 1.25rem; padding-bottom: 1.25rem;
}
.site-footer a { color: var(--muted); text-decoration: none; margin-right: 1.25rem; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 30rem) {
  .site-nav a { margin-left: 0.9rem; }
}
