/* Gemeinsamer Look der Rechtstexte — greift das Dither-Raster der Startseite auf */

:root {
  --bg: #0d0d0f;
  --fg: #e8e8ec;
  --muted: #8a8a95;
  --line: #24242a;
  --mark: #d8b26a;
  --mono: "SF Mono", "Menlo", "Consolas", "DejaVu Sans Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  background-color: var(--bg);
  /* Punktraster wie das Dither-Korn der Startseite */
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.085) 1px, transparent 1px);
  background-size: 15px 15px;
  background-position: 0 0;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  padding: 0 1.4rem 5rem;
}

/* Inhaltsspalte hebt sich vom Punktraster ab, damit alles lesbar bleibt */
.wrap {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(13, 13, 15, 0.94);
  box-shadow: 0 0 0 1px var(--line), 0 30px 90px rgba(0, 0, 0, 0.6);
  padding: clamp(1.6rem, 5vw, 3.2rem);
}

/* ---------- Kopf ---------- */
header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.6rem;
  margin-bottom: 2.4rem;
  border-bottom: 1px solid var(--line);
}
header a.home {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--fg);
}
header img { width: 34px; height: auto; display: block; }
header .name {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--muted);
}
header a.home:hover .name { color: var(--fg); }

nav.pages {
  margin-left: auto;
  display: flex;
  gap: 1.1rem;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}
nav.pages a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
nav.pages a:hover { color: var(--fg); border-bottom-color: var(--line); }
nav.pages a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--fg); }

/* ---------- Typografie ---------- */
h1 {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}
.lead {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2.6rem;
}

h2 {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 2.6rem 0 0.7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
h2:first-of-type { border-top: none; padding-top: 0; }

h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1.5rem 0 0.4rem;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

address { font-style: normal; margin-bottom: 1rem; }

ul { margin: 0.6rem 0 1.2rem 1.3rem; }
li { margin-bottom: 0.35rem; }

a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
a:hover { text-decoration-color: var(--fg); }

strong { font-weight: 600; }
.muted { color: var(--muted); }

/* Auszufüllende Angaben deutlich sichtbar */
.todo {
  color: var(--mark);
  font-family: var(--mono);
  font-size: 0.9em;
  border-bottom: 1px dashed rgba(216, 178, 106, 0.5);
}

/* Faktenblock für Anschrift/Kontakt */
.facts {
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.9;
  border-left: 2px solid var(--line);
  padding-left: 1.1rem;
  margin-bottom: 1.2rem;
}

footer {
  max-width: 720px;
  margin: 2rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--fg); }

@media (max-width: 560px) {
  body { font-size: 15px; padding-bottom: 3rem; }
  header { flex-wrap: wrap; gap: 0.8rem; }
  nav.pages { margin-left: 0; width: 100%; }
}
