/* site.css — Basis für alle Seiten: Grundraster, Typografie, Kopf, Fuß.
 *
 * Enthält den früheren <style>-Block der Startseite (unverändert) sowie die
 * Abweichungen der Rechtstexte unter `body.doc`.
 * Erwartet tokens.css davor.
 */

* { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: var(--accent); color: var(--bg); }

html { border-top: 3px solid var(--accent); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.serif { font-family: var(--font-serif); }
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--space-m); }

/* Sprungmarke für Tastatur- und Screenreader-Nutzung: nur bei Fokus sichtbar. */
.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: var(--bg);
  padding: 0.6rem 1rem; border-radius: 0 0 3px 0;
}
.skip:focus { left: 0; top: 0; z-index: 10; }
/* Das Sprungziel selbst bekommt keinen sichtbaren Rahmen — es ist nur
   programmatisch fokussierbar, damit der Sprung auch Screenreader mitnimmt. */
main[tabindex="-1"]:focus { outline: none; }

/* ---------- Kopf ---------- */

header.site { text-align: center; padding: var(--space-2xl) 0 3rem; }

.monogram {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.4rem; height: 3.4rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 1.7rem; line-height: 1;
  color: var(--accent);
  margin-bottom: 1.6rem;
  /* Optische statt geometrischer Mitte: Eine Versalie ohne Unterlänge sitzt bei
     exakter Zentrierung sichtbar zu tief im Kreis. Das Polster unten hebt den
     Buchstaben um eine Winzigkeit an. */
  padding-bottom: 0.09em;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 5.5vw, 2.7rem);
  line-height: 1.2;
  /* Große Serifengrade wirken mit minimal negativem Tracking geschlossener.
     Das &shy; in der Wortmarke bleibt die letzte Reserve für sehr schmale
     Displays; darüber übernimmt text-wrap den Umbruch. */
  letter-spacing: -0.008em;
  text-wrap: balance;
}

.sub { color: var(--muted); margin-top: 1rem; font-size: 1rem; }

.head-rule {
  width: 4.5rem; height: 1px; background: var(--accent);
  margin: 2.4rem auto 0; border: 0;
}

/* ---------- Fließtext ----------
 * text-wrap: balance verteilt Überschriften auf gleich lange Zeilen — kein
 * einzelnes Wort hängt mehr allein in der letzten. pretty tut dasselbe
 * zurückhaltender für Absätze. Wo ein Browser die Eigenschaft nicht kennt,
 * bleibt schlicht der bisherige Umbruch.
 */

main { padding: 1.5rem 0 1rem; }
section { margin-bottom: var(--space-xl); }

h2 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-m);
  text-wrap: balance;
}

p { margin-bottom: 1rem; text-wrap: pretty; }

.lead {
  font-family: var(--font-serif);
  font-size: 1.16rem;
  line-height: 1.65;
  text-wrap: pretty;
}

/* Lange deutsche Komposita ("Veränderungssituationen") brechen auf schmalen
   Displays sonst hart über den Rand. lang="de-AT" steht im <html>, das
   Trennwörterbuch greift also. Breakpoint identisch zum Nachfolger-Bau. */
@media (max-width: 40rem) {
  p, .lead, li, ol.fields span { hyphens: auto; }
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---------- Leistungsfelder (Startseite) ----------
 * Bewusst keine Karten, keine Buttons, keine Pfeile: Die Startseite ist die
 * stille Tür des Rechtsträgers, kein Verkaufsprospekt. Der Titel ist ein Link,
 * mehr nicht.
 */

ol.fields { list-style: none; counter-reset: feld; border-top: 1px solid var(--line); }
ol.fields li {
  counter-increment: feld;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  column-gap: 0.4rem;
  padding: 1.35rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}
ol.fields li::before {
  content: counter(feld, decimal-leading-zero);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding-top: var(--space-xs);
  /* Gleiche Ziffernbreiten: 01–04 stehen damit auf exakt derselben Kante,
     unabhängig davon, welche Systemschrift greift. */
  font-variant-numeric: tabular-nums;
}
ol.fields strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.4;
  margin-bottom: 0.3rem;
  text-wrap: balance;
}
ol.fields strong a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
ol.fields strong a:hover,
ol.fields strong a:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
ol.fields span {
  color: var(--muted); font-size: 0.98rem; line-height: 1.6;
  text-wrap: pretty;
}

/* ---------- Kontakt ---------- */

.contact dl { border-top: 1px solid var(--line); }
.contact div {
  display: grid; grid-template-columns: 11rem 1fr; column-gap: 1.2rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line-soft);
}
.contact dt {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); padding-top: 0.3rem;
}
/* Telefonnummer und Postleitzahl in gleichbreiten Ziffern — sonst „tanzen"
   die Zahlen gegenüber den ruhigen Beschriftungen links. */
.contact dd { margin: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 34rem) {
  .contact div { grid-template-columns: 1fr; row-gap: 0.15rem; }
}

/* ---------- Fuß ---------- */

footer.site {
  border-top: 1px solid var(--line);
  margin-top: var(--space-l);
  padding: 2rem 0 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.8;
}
footer.site a { color: var(--muted); }
footer.site .legal {
  letter-spacing: 0.02em;
  text-wrap: pretty;
  font-variant-numeric: tabular-nums;  /* FN 621958 w, Postleitzahl */
}

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */

.doc header.site { padding: 3.4rem 0 2.2rem; }
.doc h1 { font-size: clamp(1.7rem, 5vw, 2.2rem); }
.doc .head-rule { margin-top: 1.9rem; }
.doc main { padding: 1.6rem 0 1rem; }
.doc .intro { color: var(--muted); font-size: 0.98rem; margin-bottom: 1.6rem; }
.doc h2 {
  margin: 2.2rem 0 0.7rem;
  padding-top: var(--space-m);
  border-top: 1px solid var(--line);
}
.doc p, .doc ul { margin-bottom: 0.9rem; }
.doc ul { padding-left: 1.3rem; }
.doc li { margin-bottom: 0.25rem; text-wrap: pretty; }
.doc footer.site { margin-top: 2.6rem; padding: 1.8rem 0 3rem; }
/* Datenschutz beginnt direkt mit einer H2 — dort keine Trennlinie darüber. */
.doc--flush h2:first-of-type { margin-top: 0.5rem; border-top: none; padding-top: 0; }

@media print {
  html { border-top: none; }
  body { background: #fff; color: #000; }
}
