:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --border: #e3e0da;
  --text: #1c1b19;
  --muted: #63605a;
  --accent: #2f6f4e;
  --accent-soft: #eef4f0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131311;
    --surface: #1c1c1a;
    --border: #2e2e2a;
    --text: #eceae5;
    --muted: #a4a09a;
    --accent: #7cc79b;
    --accent-soft: #1e2a23;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.5rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }

/* --- Startseite --- */
header { padding: 5rem 0 2.5rem; }
.eyebrow {
  display: inline-block; margin: 0 0 1rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: .3rem .7rem; border-radius: 999px;
}
h1 { margin: 0 0 .6rem; font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 650; }
.lede { margin: 0; font-size: 1.15rem; color: var(--muted); max-width: 34rem; }

/* --- Unterseiten --- */
header.sub { padding: 3rem 0 2rem; }
header.sub h1 { font-size: clamp(1.6rem, 5vw, 2.1rem); }
.back { margin: 0 0 1.25rem; font-size: .92rem; }
.back a { color: var(--muted); text-decoration: none; }
.back a:hover { color: var(--accent); text-decoration: underline; }

section { padding: 2.5rem 0; border-top: 1px solid var(--border); }
h2 { margin: 0 0 1.25rem; font-size: .82rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
h3 { margin: 0 0 .3rem; font-size: 1.02rem; font-weight: 600; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Projektkarten --- */
.cards { display: grid; gap: .9rem; }
.card {
  display: block; padding: 1.1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  text-decoration: none; color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-1px); }
.card h3 { color: var(--accent); }
.card p { margin: 0; font-size: .95rem; color: var(--muted); }

/* --- Kontakt --- */
dl.contact { margin: 0; display: grid; grid-template-columns: 7rem 1fr; gap: .5rem 1rem; }
dl.contact dt { color: var(--muted); font-size: .95rem; }
dl.contact dd { margin: 0; }

footer {
  padding: 2rem 0 4rem; border-top: 1px solid var(--border);
  font-size: .9rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: baseline;
}
footer .spacer { flex: 1 1 auto; }

@media (max-width: 30rem) {
  header { padding-top: 3.5rem; }
  dl.contact { grid-template-columns: 1fr; gap: .15rem; }
  dl.contact dd { margin-bottom: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
