/* ================================================================== */
/* Rechtliche Seiten (Impressum, Datenschutz)                         */
/* ================================================================== */

.recht-kopf { border-bottom: 1px solid rgba(30,38,34,.10); }
.recht-kopf h1 { margin-top: 14px; }
/* Einleitung: schmaler als die breiten Elemente, aber bündig mit ihnen am linken Rand */
.recht-kopf .lead {
  color: var(--wp--preset--color--grau); font-size: var(--wp--preset--font-size--gross);
  max-width: 680px !important; margin-right: auto !important;
  margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size, 1180px)) / 2)) !important;
}
.recht-kopf .stand { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--grau); }

.recht-raster { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }

/* Inhaltsverzeichnis (wird per JS aus den Überschriften erzeugt) */
.recht-inhalt { position: sticky; top: 24px; }
.recht-inhalt .eyebrow { display: block; margin-bottom: 14px; }
.recht-inhalt ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid rgba(30,38,34,.14); }
.recht-inhalt li a {
  display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent;
  font-size: .875rem; line-height: 1.35; color: var(--wp--preset--color--grau); text-decoration: none;
}
.recht-inhalt li a:hover, .recht-inhalt li a.aktiv { color: var(--wp--preset--color--tinte); border-left-color: var(--wp--preset--color--messing); }

/* Text */
.recht-text { max-width: 720px; }
.recht-text > * + * { margin-top: 1rem; }
.recht-text h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem); margin-top: clamp(2.5rem, 5vw, 3.5rem) !important;
  padding-top: 1.25rem; border-top: 1px solid rgba(30,38,34,.10); scroll-margin-top: 24px;
  display: flex; gap: .6em; align-items: baseline;
}
.recht-text h2:first-child { margin-top: 0 !important; border-top: 0; padding-top: 0; }
.recht-text h2 .nr { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: .7em; color: var(--wp--preset--color--messing); min-width: 1.6em; }
.recht-text h3 { font-size: 1.25rem; margin-top: 1.75rem !important; }
.recht-text p, .recht-text li { color: #3B4740; }
.recht-text a { text-decoration-color: var(--wp--preset--color--messing); text-underline-offset: 3px; }

/* Karten mit Kontaktdaten */
.recht-karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 8px !important; }
.recht-karte { background: #fff; border: 1px solid rgba(30,38,34,.10); padding: 22px 22px 20px; margin: 0 !important; }
.recht-karte .eyebrow { display: block; margin-bottom: 10px; }
.recht-karte p { margin: 0; line-height: 1.6; color: var(--wp--preset--color--tinte); font-size: .9375rem; overflow-wrap: anywhere; }
.recht-karte strong { font-weight: 500; }

@media (max-width: 900px) {
  .recht-raster { grid-template-columns: minmax(0, 1fr); }
  .recht-inhalt { position: static; background: #fff; border: 1px solid rgba(30,38,34,.10); padding: 18px 20px; }
  .recht-inhalt ol { columns: 2; column-gap: 20px; border-left: 0; }
  .recht-inhalt li a { padding: 8px 0; border-left: 0; margin: 0; }
  .recht-karten { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) { .recht-inhalt ol { columns: 1; } }
/* Das Impressum ist kurz – auf dem Handy ohne Inhaltsverzeichnis */
@media (max-width: 900px) { .ist-impressum .recht-inhalt { display: none; } }
