/* =====================================================================
   funk it.consulting · „Das Fehn“ · Ergänzung Gruppe „recht“ (28.11.2026)
   Nur für: impressum, datenschutz, agb, avv, belegimport.
   Nutzt ausschließlich die Tokens aus fehn.css (:root).
   ===================================================================== */

/* ---------- Seitenkopf ohne Foto (Rechtsseiten) ---------- */
.seitenkopf--schlicht .wrap { align-items: end; }
.seitenkopf--schlicht h1 { max-width: 16ch; }

/* ---------- Lange Texte: Spalte, Inhaltsverzeichnis ---------- */
.recht { display: grid; grid-template-columns: minmax(13rem, 4fr) 8fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.recht > * { min-width: 0; }
.recht--kurz { display: block; }

.recht__text { max-width: 68ch; }
.recht__text > :first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.recht__text h2 {
  font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.015em;
  margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line-strong);
  scroll-margin-top: 96px;
}
.recht__text h2 + p, .recht__text h2 + ul, .recht__text h2 + table { margin-top: 14px; }
.recht__text p + p, .recht__text ul + p, .recht__text p + ul { margin-top: 14px; }
.recht__text ul { display: grid; gap: 6px; }
.recht__text ul li { position: relative; padding-left: 24px; }
.recht__text ul li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; background: var(--blau); border-radius: 2px; }
.recht__text a { overflow-wrap: anywhere; }
.recht__stand { margin-top: 44px !important; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.recht__knopf { margin-top: 18px !important; }

.inhalt-liste { position: sticky; top: 100px; font-size: var(--fs-small); }
.inhalt-liste h2 { font-size: 1rem; letter-spacing: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); }
.inhalt-liste ol li { border-bottom: 1px solid var(--line); }
.inhalt-liste a { display: block; padding: 8px 0; color: var(--muted); text-decoration: none; line-height: 1.4; }
.inhalt-liste a:hover { color: var(--blau); text-decoration: underline; }
@media (max-width: 900px) {
  .recht { grid-template-columns: 1fr; }
  .inhalt-liste { position: static; }
  .inhalt-liste ol { columns: 2; column-gap: 24px; }
  .inhalt-liste ol li { break-inside: avoid; }
}
@media (max-width: 520px) { .inhalt-liste ol { columns: 1; } }

/* ---------- AVV-Tabelle ---------- */
.avv-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); border-top: 1px solid var(--line-strong); }
.avv-table th, .avv-table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line-strong); }
.avv-table thead th { color: var(--muted); font-weight: 600; }
.avv-table tbody th { font-weight: 600; }
@media (max-width: 640px) {
  .avv-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .avv-table tr, .avv-table th, .avv-table td { display: block; }
  .avv-table tr { padding: 12px 0; border-bottom: 1px solid var(--line-strong); }
  .avv-table th, .avv-table td { border: 0; padding: 4px 0; }
  .avv-table td::before { content: attr(data-label) ": "; color: var(--muted); }
}

/* ---------- Belegimport ---------- */
.seitenkopf--beleg { --kopf-fokus: 72% 40%; }

/* Illustration der Prüfansicht: flach, Haarlinien, Marke */
.bi-mock { background: var(--weiss); border: 1px solid var(--line-strong); border-radius: 4px; padding: 20px; font-size: var(--fs-small); line-height: 1.45; }
.bi-mock__beleg { background: var(--eis-tint); border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; }
.bi-mock__beleg strong { display: block; margin-bottom: 6px; }
.bi-mock__beleg span { display: block; color: var(--muted); }
.bi-mock__pfeil { color: var(--muted); margin: 12px 0; padding-left: 16px; border-left: 4px solid var(--kanal-hell); }
.bi-mock__kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; font-weight: 700; margin-bottom: 8px; }
.bi-mock__marke { font-weight: 600; font-size: 0.8125rem; padding: 3px 10px; border-radius: 2px; background: var(--eis); color: var(--navy); }
.bi-mock table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line-strong); }
.bi-mock td { padding: 9px 6px; border-bottom: 1px solid var(--line); }
.bi-mock td.n { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bi-mock td.r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bi-mock tr.pruefen td { background: var(--eis-tint); }
.bi-mock tr.pruefen td { font-weight: 600; }
.bi-mock__fuss { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.bi-mock__fuss small { color: var(--muted); font-size: 0.8125rem; }
.bi-mock__knopf { background: var(--blau); color: var(--weiss); font-weight: 600; padding: 8px 16px; border-radius: var(--radius-ctl); }
.bi-problem { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.bi-problem > * { min-width: 0; }
@media (max-width: 900px) { .bi-problem { grid-template-columns: 1fr; } }

.bi-video { margin-top: 44px; max-width: 52rem; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; background: var(--navy); }
.bi-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.bi-foto { margin-top: 44px; }
.bi-foto img { width: 100%; height: clamp(220px, 32vw, 420px); object-fit: cover; object-position: center 35%; border-radius: 4px; }
.bi-zwei + .bi-zwei { margin-top: clamp(48px, 6vw, 80px); }
.abschluss .einstieg__fakten { margin-top: 22px; }
