/* Gemeinsame Gestaltung der Rechtstexte (AGB, AVV) */
:root { --text: #111827; --muted: #6b7280; --line: #e5e7eb; --accent: #4f46e5; --bg: #f5f6f8; --card: #fff; --soft: #eef2ff; --warn-bg: #fffbeb; --warn: #92400e; }
/* Dunkel: per Schalter (data-theme, assets/legal.js) oder Geräteeinstellung, solange nichts gewählt ist */
:root[data-theme='dark'] { --text: #f3f4f6; --muted: #9ca3af; --line: #2a303c; --accent: #818cf8; --bg: #0d1017; --card: #161a23; --soft: rgba(99,102,241,.14); --warn-bg: rgba(245,158,11,.14); --warn: #fbbf24; color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --text: #f3f4f6; --muted: #9ca3af; --line: #2a303c; --accent: #818cf8; --bg: #0d1017; --card: #161a23; --soft: rgba(99,102,241,.14); --warn-bg: rgba(245,158,11,.14); --warn: #fbbf24; } }
* { box-sizing: border-box; }
body { margin: 0; padding: 2rem 1rem; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; line-height: 1.65; color: var(--text); background: var(--bg); }
.container { max-width: 860px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 2.5rem; }
h1 { font-size: 1.9rem; margin: 0 0 .25rem; }
h2 { font-size: 1.15rem; margin: 2rem 0 .5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
p, ul, ol { margin: 0 0 .8rem; }
ol, ul { padding-left: 1.4rem; }
li { margin-bottom: .35rem; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.back { display: inline-block; text-decoration: none; font-weight: 600; }
.theme-toggle { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: .35rem .9rem; font: inherit; font-size: .9rem; cursor: pointer; }
.theme-toggle:hover { border-color: var(--accent); }
.switch { font-size: .9rem; color: var(--muted); }
dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.5rem; margin: 0 0 1rem; }
dt { color: var(--muted); }
dd { margin: 0; }
@media (max-width: 600px) { dl { grid-template-columns: 1fr; } dt { margin-top: .5rem; } }
.draft { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: .9rem 1.2rem; margin: 0 0 1.5rem; font-weight: 600; }
.todo { background: var(--warn-bg); color: var(--warn); border-radius: 4px; padding: 0 .3rem; font-weight: 600; font-size: .9em; }
.box { background: var(--soft); border-radius: 12px; padding: 1rem 1.25rem; margin: 1rem 0 1.5rem; }
table { width: 100%; border-collapse: collapse; margin: .5rem 0 1.2rem; font-size: .95rem; }
th, td { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.toc { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.25rem; margin: 0 0 1.5rem; }
.toc strong { display: block; margin-bottom: .4rem; }
.toc ol { columns: 2; column-gap: 2rem; margin: 0; font-size: .95rem; }
.toc li { break-inside: avoid; margin-bottom: .2rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.plain { border-left: 3px solid var(--accent); padding: .3rem 0 .3rem 1rem; margin: .6rem 0 1rem; color: var(--muted); font-size: .95rem; }
.plain b { color: var(--text); }
.facts td:first-child { white-space: nowrap; color: var(--muted); }
.actions { display: flex; gap: .5rem; align-items: center; }
h3 { font-size: 1rem; margin: 1.4rem 0 .4rem; }
h2[id], h3[id] { scroll-margin-top: 1rem; }
.version { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1rem; }
@media (max-width: 600px) { .container { padding: 1.5rem; } .toc ol { columns: 1; } table { font-size: .9rem; } th, td { padding: .45rem .35rem; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; } th { text-transform: none; letter-spacing: 0; } tbody th { width: 34%; } .facts tr, .facts td { display: block; } .facts td { border: 0; padding: 0; } .facts td:first-child { padding-top: .6rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; } .facts tr { border-bottom: 1px solid var(--line); padding-bottom: .5rem; } }
@media print { :root { --text: #000; --muted: #333; --line: #bbb; --accent: #000; --bg: #fff; --card: #fff; --soft: #f2f2f2; } body { background: #fff; padding: 0; font-size: 10.5pt; } .container { border: none; padding: 0; max-width: none; } .topbar, .toc { display: none; } a { text-decoration: none; } h2 { break-after: avoid; } tr, li { break-inside: avoid; } }
