/* Rechtsseiten und Kontaktformular — baut auf site.css auf (Farben, Schriften, Felder, Knöpfe). Kein Inline-Stil, kein
   Skript: die Seiten laufen unter der strengen CSP der Website und funktionieren auch ohne JavaScript.
   Jersey 10 (--pixel) nur für Überschriften ohne Paragrafenzeichen. */

.recht-page { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh;
  padding: max(22px, env(safe-area-inset-top)) 0 max(36px, env(safe-area-inset-bottom)); }
.recht-page .aurora, .recht-page .dots { position: absolute; inset: 0 0 auto; height: 640px; z-index: -1; pointer-events: none; }
.recht-wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)); }
.recht-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.recht-text { margin-top: 52px; color: #d8deec; font-size: 16.5px; line-height: 1.7; overflow-wrap: break-word; }
.recht-text h1 { margin: 0; color: var(--text); font: 400 clamp(52px, 10vw, 88px)/0.92 var(--pixel); text-wrap: balance; }
.recht-text h2 { margin: 44px 0 12px; color: var(--text); font: 400 32px/1 var(--pixel); text-wrap: balance; }
.recht-text p { margin: 0 0 14px; text-wrap: pretty; }
.recht-text h1 + p { margin-top: 18px; }
.recht-text b { color: var(--text); font-weight: 600; }
.recht-text a { color: var(--sky); text-decoration: underline; text-underline-offset: 2px; }
.recht-text a:hover { color: var(--text); }
.recht-text address { font-style: normal; }
.recht-text ul { display: grid; gap: 6px; margin: 0 0 14px; padding: 0 0 0 20px; }
.recht-text li::marker { color: var(--gold); }
.recht-text code { color: var(--text); font: 400 14.5px/1.4 var(--mono); }
.recht-text .nowrap { white-space: nowrap; }
.recht-text .recht-stand { margin-top: 14px; color: var(--text-2); font-size: 15px; }
.recht-text .recht-klein { margin-top: 14px; color: var(--text-2); font-size: 14.5px; }

.recht-table { margin: 0 0 14px; }
.recht-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.recht-table th, .recht-table td { padding: 10px 14px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.recht-table thead th { color: var(--text-3); font-size: 13px; font-weight: 500; }
.recht-table tbody th { color: var(--text-2); font-size: 13px; font-weight: 400; white-space: nowrap; }

.recht-muster { margin: 0 0 14px; padding: 18px 20px 6px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(27, 32, 64, 0.5); }

/* ------------------------------------------------------------ Kontaktformular */
.recht-form { max-width: 520px; margin-top: 8px; }
.recht-form textarea.input { height: 170px; padding: 12px 15px; resize: vertical; font: 400 15px/1.5 var(--font); }
.recht-falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* nur für Programme */
.recht-note { display: flex; gap: 10px; align-items: flex-start; max-width: 520px; margin: 18px 0 0; padding: 13px 16px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 15px; line-height: 1.5; }
.recht-note::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 7px; }
.recht-note.ok { border-color: rgba(94, 224, 138, 0.5); background: rgba(94, 224, 138, 0.08); color: var(--text); }
.recht-note.ok::before { background: var(--led-g); box-shadow: 0 0 10px var(--led-g); }
.recht-note.err { border-color: rgba(255, 107, 125, 0.55); background: rgba(255, 107, 125, 0.08); color: #ffd3d8; }

/* -------------------------------------------------------------------- Fußzeile */
.recht-foot { display: grid; gap: 10px; margin-top: 56px; padding-top: 22px; color: var(--text-3); font-size: 13.5px; }
.recht-foot::before { content: ""; height: 1px; margin-bottom: 12px; background: var(--line); }
.recht-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.recht-foot a { color: var(--text-2); text-decoration: none; }
.recht-foot a:hover { color: var(--text); text-decoration: underline; }
.recht-foot a[aria-current] { color: var(--gold); }
.recht-foot p { margin: 0; }

@media (max-width: 640px) {
  .recht-text { margin-top: 36px; font-size: 16px; }
  .recht-text h2 { font-size: 28px; }
  /* zu schmal für drei Spalten: je Eintrag ein Block, die Namen bleiben ganz */
  .recht-table thead { display: none; }
  .recht-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .recht-table th, .recht-table td { display: block; padding: 2px 0; border: 0; }
}
