/* ============================================================
   Impressum und Datenschutz: bauen auf /assets/css/startseite.css auf
   Seitenkopf im dunklen Prüfraum, der Rechtstext liegt als
   leuchtende Tafel an der hellen Wand, links das Verzeichnis.
   ============================================================ */

/* Kopf, Fuß und Grundmaße wie auf der Startseite (23.10.2026). Die Startseite setzt sie in
   startseite.css unter .startseite-feinschliff; Seitenrand und Wandfarbe tragen Kopf und Fuß
   mit, darum gelten sie hier für die ganze Seite. Ändert sich der Block dort, hier mitziehen. */
body {
  --rand: clamp(1.25rem, 5vw, 5rem);
  --breite: 1240px;
  --takt: clamp(4rem, 7vw, 7rem);
  --wand: #edf0ed;
  --linie-zart: #d4dad6;
}
.kopf-innen { gap: clamp(1rem, 3vw, 3rem); }
.marke-wort { font-size: 1.4rem; }
.knopf { box-shadow: 0 3px 8px -4px rgb(8 40 24 / 28%); }
.knopf:hover { box-shadow: 0 8px 18px -10px rgb(8 40 24 / 40%); }

/* Seitenkopf im dunklen Prüfraum (wie Methodik) */
.r-kopf {
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(60% 80% at 20% 30%, #1E2427 0%, rgba(17, 20, 22, 0) 70%),
    var(--raum);
}
.r-kopf-satz { margin-top: 1.25rem; max-width: 40rem; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--raum-leise); text-wrap: pretty; }
.r-kopf-zahlen { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; margin-top: clamp(2rem, 4vw, 3rem); color: var(--raum-leise); font-size: .95rem; }
.r-kopf-zahlen b { display: block; margin-bottom: .35rem; font: 500 clamp(1.8rem, 3vw, 2.4rem)/1 var(--mess); color: var(--gruen-hell); font-variant-numeric: tabular-nums; }

/* Wand mit Tafel */
.r-inhalt { padding-block: clamp(3rem, 7vw, 6rem) var(--takt); }
.r-raster {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 48rem);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

/* Verzeichnis */
.r-verzeichnis { position: sticky; top: calc(var(--kopf-h) + 2rem); }
.r-verzeichnis-titel { margin-bottom: .9rem; font-size: .9rem; font-weight: 700; color: var(--zeichen); }
.r-verzeichnis ol { display: grid; gap: .1rem; padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--linie); padding-top: .75rem; }
.r-verzeichnis a {
  display: flex; gap: .65rem; align-items: baseline;
  padding: .35rem 0;
  font-size: .95rem; line-height: 1.35; color: var(--leise);
  text-decoration: none;
  transition: color .2s;
}
.r-verzeichnis a:hover { color: var(--zeichen); }
.r-verzeichnis .r-nr { min-width: 1.4rem; }

/* Tafel mit dem Rechtstext */
.r-text {
  padding: clamp(1.75rem, 4.5vw, 3.75rem);
  background: var(--leucht);
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(14, 16, 17, .04), 0 24px 50px -32px rgba(14, 16, 17, .35);
  color: var(--text);
}
.r-text h2 {
  display: flex; gap: .85rem; align-items: baseline;
  margin: clamp(2.25rem, 4vw, 3rem) 0 0;
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--linie-zart);
  font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 720; line-height: 1.25; letter-spacing: -0.015em;
  color: var(--zeichen);
  scroll-margin-top: calc(var(--kopf-h) + 1.5rem);
  text-wrap: balance;
}
.r-text h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.r-nr { font: 500 .85em/1 var(--mess); color: var(--leise); font-variant-numeric: tabular-nums; }
.r-text h2 .r-nr { font-size: .7em; min-width: 1.6rem; }
.r-text h3 { margin-top: 1.75rem; font-size: 1.08rem; font-weight: 700; color: var(--zeichen); }
.r-text p, .r-text li, .r-text address { font-size: 1.05rem; line-height: 1.7; max-width: 66ch; }
.r-text p { margin-top: .9rem; }
.r-text h2 + p, .r-text h3 + p { margin-top: .75rem; }
.r-text strong { color: var(--zeichen); font-weight: 650; }
.r-text a { color: var(--gruen-tief); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; overflow-wrap: anywhere; }
.r-text a:hover { text-decoration-thickness: 2px; }

.r-text ul { display: grid; gap: .45rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.r-text li { position: relative; padding-left: 1.4rem; }
.r-text li::before { content: ""; position: absolute; left: 0; top: .82em; width: .7rem; height: 2px; background: var(--gruen); }

/* Anschriften als ruhiger Block */
.r-text address {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--wand);
  border-radius: 3px;
  font-style: normal;
}

/* Schalter für die Besucherstatistik */
.r-schalter {
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between;
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--wand);
  border-radius: 3px;
}
.r-text .r-schalter p { margin: 0; max-width: 34rem; }
.r-schalter .knopf { min-height: 2.75rem; padding: 0 1.25rem; font-size: .95rem; }
.r-schalter .knopf[hidden] { display: none; }

.r-stand {
  margin-top: clamp(2.5rem, 5vw, 3.5rem) !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--linie-zart);
  font: 500 .88rem var(--mess) !important;
  color: var(--leise);
}

@media (max-width: 960px) {
  .r-raster { grid-template-columns: 1fr; }
  .r-verzeichnis { position: static; }
  .r-verzeichnis ol { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); column-gap: 2rem; }
}
@media (max-width: 560px) {
  .r-text { padding: 1.5rem 1.25rem; margin-inline: calc(var(--rand) * -.5); }
  .r-text p, .r-text li, .r-text address { font-size: 1rem; }
}
