/* Basis-Styles für alle Seiten (öffentlich und Admin). Farben nur über Tokens des Design-Sets. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1 { font-family: var(--font-display); font-size: 2rem; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; text-wrap: balance; font-weight: 700; }
h2 { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -0.01em; margin: 0 0 8px; text-wrap: balance; }
h3 { font-size: 1.05rem; margin: 0 0 4px; }
p { margin: 0 0 12px; max-width: 65ch; }
.lead { font-size: 1.1rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.87rem; }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mitte { max-width: 640px; margin: 0 auto; padding-inline: 16px; padding-block: 12vh 48px; }

.btn { appearance: none; border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 600; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap; transition: transform .12s ease, opacity .12s ease; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-secondary { background: var(--accent-soft); color: var(--accent); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-plain { background: none; color: var(--accent); padding-inline: 6px; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }
.klein { min-height: 32px; padding: 4px 0; font-size: 0.87rem; }

.group { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.pill { display: inline-block; border-radius: 999px; padding: 1px 9px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok-fg); }
.pill.draft { background: var(--surface-2); color: var(--muted); }
.pill.warn { background: var(--warn-soft); color: var(--warn-fg); }
.err { color: var(--danger); font-size: 0.87rem; margin: 6px 0 0; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 40; max-width: calc(100% - 32px); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Rechtliche Links (US-1.18) */
.rechtliches { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px)); font-size: 0.8rem; }
.rechtliches a { color: var(--muted); text-decoration: none; }
.rechtliches a:hover, .rechtliches a:focus-visible { color: var(--fg); text-decoration: underline; }
