/* =====================================================================
   Take Da Chat - Stilvorlage der Rechtstexte (web.takedachat.com/recht/
   und /quelltext/). Fassung 1.0-Entwurf, 02.11.2026.

   Abgeleitet von der Website-Stilvorlage (APOLLO Website/stil.css,
   Stand 05.08.2026), gekuerzt auf das, was die Rechtstexte brauchen.

   Regeln (CSP von web.*: default-src 'self'):
   - keine externen Ressourcen: keine Web-Fonts, kein CDN, keine
     nachgeladenen Stilvorlagen;
   - kein Inline-CSS in den Seiten (alles hier), kein Skript;
   - Systemschriften.
   ===================================================================== */

:root {
    --tinte:        #16181d;
    --tinte-leise:  #5b6270;
    --papier:       #ffffff;
    --papier-warm:  #f6f5f2;
    --linie:        #e2e0da;
    --akzent:       #b4472a;
    --akzent-tief:  #8d3520;
    --offen-grund:  #fff3cd;
    --offen-text:   #6b4e00;
    --offen-rand:   #c9a227;
    --annahme-grund: #e3eefb;
    --annahme-text:  #1f4a7a;
    --annahme-rand:  #5b8fc9;
    --breite:       46rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --tinte:       #e8e6e1;
        --tinte-leise: #9aa1ad;
        --papier:      #16181d;
        --papier-warm: #1d2027;
        --linie:       #2e323b;
        --akzent:      #e2795a;
        --akzent-tief: #f0a189;
        --offen-grund: #3a3212;
        --offen-text:  #f0d98a;
        --annahme-grund: #16283d;
        --annahme-text:  #a9c8ee;
    }
}

* { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    line-height: 1.65;
    color: var(--tinte);
    background: var(--papier);
}

.huelle { max-width: var(--breite); margin: 0 auto; padding: 0 1.2rem; }

header.kopf { border-bottom: 1px solid var(--linie); background: var(--papier); }
.kopf .huelle {
    display: flex; flex-wrap: wrap; align-items: baseline;
    gap: 0.5rem 1.3rem; padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.marke {
    font-size: 1.22rem; font-weight: 700; letter-spacing: -0.015em;
    color: var(--tinte); margin-right: auto; white-space: nowrap;
}
.marke .da { color: var(--akzent); }

nav.haupt { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
nav.haupt a { color: var(--tinte-leise); text-decoration: none; font-size: 0.93rem; }
nav.haupt a:hover, nav.haupt a:focus { color: var(--akzent); text-decoration: underline; }
nav.haupt a[aria-current="page"] { color: var(--tinte); font-weight: 600; }

main { padding: 2.2rem 0 3rem; }

h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.4rem; }
h2 { font-size: 1.3rem; letter-spacing: -0.01em; margin: 2.4rem 0 0.7rem;
     padding-top: 1.3rem; border-top: 1px solid var(--linie); }
h3 { font-size: 1.05rem; margin: 1.6rem 0 0.4rem; }

p, li { max-width: 42rem; overflow-wrap: break-word; }
a { color: var(--akzent); }
a:hover { color: var(--akzent-tief); }

.stand { color: var(--tinte-leise); font-size: 0.92rem; margin: 0 0 1.6rem; }
.vorspann { font-size: 1.1rem; color: var(--tinte-leise); margin-bottom: 1.8rem; }
.fussnote { color: var(--tinte-leise); font-size: 0.92rem; margin-top: 2.5rem; }

ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.4rem; }

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88em; background: var(--papier-warm);
    border: 1px solid var(--linie); border-radius: 4px; padding: 0.1em 0.35em;
    overflow-wrap: anywhere;
}

.hinweis {
    background: var(--papier-warm); border-left: 3px solid var(--akzent);
    padding: 1rem 1.2rem; margin: 1.6rem 0; border-radius: 0 6px 6px 0;
}
.hinweis p:first-child { margin-top: 0; }
.hinweis p:last-child, .hinweis ul:last-child { margin-bottom: 0; }
.hinweis.offen { border-left-color: var(--offen-rand); }

/* Inhaltsverzeichnis */
nav.inhalt { background: var(--papier-warm); border: 1px solid var(--linie);
             border-radius: 8px; padding: 0.8rem 1.2rem; margin: 1.4rem 0 0.6rem; }
nav.inhalt ol { margin: 0.3rem 0 0; }
nav.inhalt li { margin-bottom: 0.15rem; }

/* Tabellen */
.tabelle { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.95rem; }
.tabelle th, .tabelle td { text-align: left; padding: 0.55rem 0.6rem;
    border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { font-weight: 600; }
.tabelle.zwei tr td:first-child { color: var(--tinte-leise); width: 38%; }
.breit { overflow-x: auto; }

/* Markierungen im Entwurf: OFFEN = fehlt noch, ANNAHME = eingesetzt,
   vom Betreiber zu bestaetigen. Vor der Veroeffentlichung muessen alle
   verschwunden sein (_recht_hoch.ps1 prueft das und bricht sonst ab). */
mark { font-weight: 600; border-radius: 4px; padding: 0.05em 0.35em;
       -webkit-box-decoration-break: clone; box-decoration-break: clone; }
mark.offen { background: var(--offen-grund); color: var(--offen-text);
             border: 1px dashed var(--offen-rand); }
mark.annahme { background: var(--annahme-grund); color: var(--annahme-text);
               border: 1px dashed var(--annahme-rand); }

footer.fuss { border-top: 1px solid var(--linie); margin-top: 2.5rem;
              padding: 1.6rem 0 2.4rem; font-size: 0.9rem; color: var(--tinte-leise); }
footer.fuss nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin-bottom: 0.7rem; }
footer.fuss a { color: var(--tinte-leise); }
footer.fuss p { margin: 0.3rem 0 0; max-width: none; }

@media (max-width: 34rem) {
    html { font-size: 16px; }
    h1 { font-size: 1.65rem; }
    .tabelle { font-size: 0.9rem; }
}
