/* quik Websites: öffentliche Rechtsseiten des Betreibers (/recht/…, server/rechtsseiten.mjs). Ruhig und gut lesbar:
   Inter, hellgrauer Grund, weiße Fläche mit feiner Linie, eine Textspalte, hell und dunkel nach dem System. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/inter/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/inter/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --rs-bg: #f4f4f5; --rs-card: #ffffff; --rs-line: #e4e4e7; --rs-line-2: #d4d4d8;
  --rs-ink: #18181b; --rs-ink-2: #3f3f46; --rs-muted: #71717a; --rs-soft: #fafafa;
  --rs-mark: #fef3c7; --rs-mark-ink: #78350f; --rs-note: #fffbeb; --rs-note-line: #fde68a;
  --rs-radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --rs-bg: #0f0f11; --rs-card: #17171a; --rs-line: #26262b; --rs-line-2: #34343a;
    --rs-ink: #f4f4f5; --rs-ink-2: #d4d4d8; --rs-muted: #a1a1aa; --rs-soft: #1c1c20;
    --rs-mark: #3b2f0d; --rs-mark-ink: #fde68a; --rs-note: #1f1a0b; --rs-note-line: #4a3b10;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body.rs { margin: 0; background: var(--rs-bg); color: var(--rs-ink); font: 400 16px/1.65 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; }
.rs-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--rs-line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--rs-ink); outline-offset: 2px; border-radius: 6px; }

/* Kopf */
.rs-top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--rs-bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rs-line); }
.rs-top-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; }
.rs-marke { display: inline-flex; align-items: center; text-decoration: none; }
.rs-marke { gap: 8px; color: var(--rs-ink); font-size: 16px; letter-spacing: -.01em; }
.rs-marke .qlogo { height: 24px; }
.rs-nav { display: flex; flex-wrap: wrap; gap: 2px; justify-content: flex-end; }
.rs-nav a { font-size: 14px; font-weight: 500; color: var(--rs-muted); text-decoration: none; padding: 6px 10px; border-radius: 999px; }
.rs-nav a:hover { color: var(--rs-ink); background: var(--rs-card); }
.rs-nav a[aria-current="page"] { color: var(--rs-ink); background: var(--rs-card); box-shadow: inset 0 0 0 1px var(--rs-line); }

/* Hinweis „Entwurf“ (nur Systemadministrator) */
.rs-entwurf { background: var(--rs-note); border-bottom: 1px solid var(--rs-note-line); font-size: 14px; }
.rs-entwurf .rs-wrap { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; padding-top: 12px; padding-bottom: 12px; }
.rs-entwurf b { font-weight: 600; }
.rs-entwurf span { color: var(--rs-ink-2); }
.rs-entwurf details { flex-basis: 100%; }
.rs-entwurf summary { cursor: pointer; font-weight: 500; }
.rs-entwurf ul { margin: 6px 0 0; padding-left: 18px; columns: 2 280px; }
.rs-entwurf li { break-inside: avoid; margin: 2px 0; }
.rs-entwurf li span { color: var(--rs-muted); }

/* Inhalt */
.rs-main { display: block; padding-top: 40px; padding-bottom: 72px; }
.rs-main.has-toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.rs-col { min-width: 0; max-width: 760px; }
.rs-toc { position: sticky; top: 84px; font-size: 13px; line-height: 1.45; max-height: calc(100vh - 110px); overflow: auto; padding-right: 4px; }
.rs-toc b { display: block; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--rs-muted); font-weight: 600; margin-bottom: 8px; }
.rs-toc ol { list-style: none; margin: 0; padding: 0; }
.rs-toc li { margin: 0; }
.rs-toc a { display: block; padding: 4px 0; color: var(--rs-muted); text-decoration: none; }
.rs-toc a:hover { color: var(--rs-ink); }
.rs-toc .rs-toc-anlage { margin-top: 8px; border-top: 1px solid var(--rs-line); padding-top: 6px; }
.rs-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: 13px; color: var(--rs-muted); margin-bottom: 14px; }
.rs-acts { display: inline-flex; gap: 6px; }
.rs-btn { font: 500 13px/1 Inter, system-ui, sans-serif; color: var(--rs-ink); background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: 999px; padding: 7px 12px; text-decoration: none; cursor: pointer; }
.rs-btn:hover { border-color: var(--rs-line-2); }
.rs-alt { font-size: 14px; background: var(--rs-note); border: 1px solid var(--rs-note-line); border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; }

.rs-doc { background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: var(--rs-radius); padding: 44px 52px 40px; color: var(--rs-ink-2); overflow-wrap: anywhere; }
.rs-doc h1, .rs-doc h2, .rs-doc h3, .rs-doc h4 { color: var(--rs-ink); line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.rs-doc h1 { font-size: 30px; font-weight: 650; letter-spacing: -.02em; margin: 0 0 20px; }
.rs-doc h2 { font-size: 19px; font-weight: 620; margin: 36px 0 10px; }
.rs-doc h3 { font-size: 16px; font-weight: 620; margin: 26px 0 8px; }
.rs-doc h4 { font-size: 15px; font-weight: 600; margin: 20px 0 6px; }
.rs-teil + .rs-anlage-hr + .rs-teil h2:first-child { font-size: 24px; margin-top: 8px; }
.rs-doc p { margin: 0 0 14px; }
.rs-doc ul, .rs-doc ol { margin: 0 0 16px; padding-left: 22px; }
.rs-doc li { margin: 4px 0; padding-left: 2px; }
.rs-doc li::marker { color: var(--rs-muted); }
.rs-doc strong { color: var(--rs-ink); font-weight: 600; }
/* Keine Festbreitenschrift (tests/keine-monoschrift): Code und Kennungen in der Textschrift */
code, kbd, pre, samp, tt { font-family: inherit; font-variant-numeric: tabular-nums; }
.rs-doc code { font-family: inherit; font-size: .8125em; font-weight: 500; line-height: 1.4; background: var(--rs-soft); border: 1px solid var(--rs-line); border-radius: 5px; padding: 1px 5px; }
.rs-doc hr { border: 0; border-top: 1px solid var(--rs-line); margin: 28px 0; }
.rs-doc hr.rs-anlage-hr { margin: 44px -52px 36px; }
.rs-doc blockquote { margin: 0 0 16px; padding: 10px 16px; border-left: 3px solid var(--rs-line-2); background: var(--rs-soft); border-radius: 0 8px 8px 0; }
.rs-table { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--rs-line); border-radius: 10px; }
.rs-doc table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.5; }
.rs-doc th, .rs-doc td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--rs-line); }
.rs-doc th { font-weight: 600; color: var(--rs-ink); background: var(--rs-soft); white-space: nowrap; }
.rs-doc tr:last-child td { border-bottom: 0; }
.rs-doc td:first-child { color: var(--rs-ink); }
mark.rs-offen { background: var(--rs-mark); color: var(--rs-mark-ink); border-radius: 4px; padding: 0 3px; font-weight: 500; }
.rs-liste { list-style: none; padding: 0; margin: 0; }
.rs-liste li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rs-line); }
.rs-liste li:last-child { border-bottom: 0; }
.rs-liste a { font-weight: 550; color: var(--rs-ink); }
.rs-liste span { color: var(--rs-muted); font-size: 14px; }
.rs-fassungen { margin-top: 28px; font-size: 14px; }
.rs-fassungen h2 { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--rs-muted); font-weight: 600; margin: 0 0 8px; }
.rs-fassungen ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rs-fassungen li a { display: inline-block; padding: 6px 12px; border: 1px solid var(--rs-line); border-radius: 999px; background: var(--rs-card); text-decoration: none; }
.rs-fassungen li span { color: var(--rs-muted); }

/* Fuß */
.rs-fuss { border-top: 1px solid var(--rs-line); font-size: 13px; color: var(--rs-muted); }
.rs-fuss .rs-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding-top: 18px; padding-bottom: 28px; }
.rs-fuss nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.rs-fuss nav a { text-decoration: none; color: var(--rs-muted); }
.rs-fuss nav a:hover { color: var(--rs-ink); }

@media (max-width: 900px) {
  .rs-main.has-toc { display: block; }
  .rs-toc { position: static; max-height: none; margin-bottom: 20px; background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: var(--rs-radius); padding: 14px 18px; }
  .rs-toc ol { columns: 2 200px; column-gap: 20px; }
  .rs-toc li { break-inside: avoid; }
}
@media (max-width: 640px) {
  .rs-wrap { padding: 0 16px; }
  .rs-top-in { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 0; }
  .rs-nav { justify-content: flex-start; margin-left: -10px; }
  .rs-main { padding-top: 24px; }
  .rs-doc { padding: 26px 20px 22px; border-radius: 12px; }
  .rs-doc hr.rs-anlage-hr { margin: 32px -20px 28px; }
  .rs-doc h1 { font-size: 24px; }
  .rs-doc h2 { font-size: 18px; }
  .rs-toc ol { columns: 1; }
  .rs-liste li { flex-direction: column; gap: 2px; }
}

/* Druck und PDF: ohne Kopf, Fuß, Inhalt und Knöpfe, schwarz auf weiß */
@media print {
  :root { --rs-bg: #fff; --rs-card: #fff; --rs-ink: #000; --rs-ink-2: #111; --rs-muted: #444; --rs-line: #ccc; --rs-soft: #f5f5f5; color-scheme: light; }
  .rs-top, .rs-fuss, .rs-toc, .rs-acts, .rs-fassungen, .rs-entwurf { display: none !important; }
  .rs-main, .rs-main.has-toc { display: block; padding: 0; }
  .rs-col { max-width: none; }
  .rs-doc { border: 0; padding: 0; font-size: 11pt; line-height: 1.5; }
  .rs-doc hr.rs-anlage-hr { break-before: page; border: 0; margin: 0; }
  .rs-doc h2, .rs-doc h3 { break-after: avoid; }
  .rs-table { overflow: visible; border: 0; }
  .rs-doc table { font-size: 9.5pt; }
  .rs-doc tr { break-inside: avoid; }
  a { text-decoration: none; }
}
body.rs-druck .rs-top, body.rs-druck .rs-fuss { display: none; }
body.rs-pdf { background: #fff; color: #000; font-size: 10.5pt; }
body.rs-pdf .rs-main { padding: 0; }
body.rs-pdf .rs-col { max-width: none; }
body.rs-pdf .rs-doc { border: 0; padding: 0; color: #111; }
body.rs-pdf .rs-meta { color: #555; }

/* ---------- Mit Kopf und Fuß der Website (html.rs-web-rahmen, server/rechtsseiten.mjs: websiteRahmen) ----------
   Oben die Navigation der Website (public/landing/rahmen.css), darunter die Leiste mit den Rechtstexten. Inhalt und
   Leiste enden an denselben Kanten wie die Navigation (1240 px). */
.rs-web-rahmen { scroll-padding-top: calc(var(--kopf-h) + 24px); }
.rs-web-rahmen .rs-wrap { max-width: 1240px; padding-inline: clamp(18px, 4vw, 40px); }
.rs-web-rahmen .rs-top { position: static; }
.rs-web-rahmen .rs-top-in { min-height: 56px; }
.rs-titel { font-weight: 650; font-size: 15px; letter-spacing: -.01em; color: var(--rs-ink); text-decoration: none; }
.rs-web-rahmen .rs-toc { top: calc(var(--kopf-h) + 24px); max-height: calc(100vh - var(--kopf-h) - 48px); }
