/* Schreibwerkstatt – schlicht, ohne externe Schriften */
:root { color-scheme: light dark; --rand: #8884; --akzent: #7a4b1f; --auf-akzent: #fff; --fehler: #b3261e; --warnung: #8a6100; }
/* Hell/dunkel: ohne Wahl wie das System, sonst nach data-thema auf <html> (public/thema.js). */
@media (prefers-color-scheme: dark) { :root:not([data-thema="light"]) { --akzent: #d9a66c; --auf-akzent: #1a1917; --fehler: #f2b8b5; --warnung: #e0b35a; } }
:root[data-thema="light"] { color-scheme: light; }
:root[data-thema="dark"] { color-scheme: dark; --akzent: #d9a66c; --auf-akzent: #1a1917; --fehler: #f2b8b5; --warnung: #e0b35a; }
* { box-sizing: border-box; }
html { background: Canvas; color: CanvasText; }
body { margin: 0; background: Canvas; color: CanvasText; font: 1rem/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
header { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; padding: .75rem 1.25rem; border-bottom: 1px solid var(--rand); }
.marke { font-weight: 600; color: var(--akzent); }
nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; }
nav a, button.link { color: inherit; }
main { max-width: 60rem; margin: 2rem auto; padding: 0 1.25rem; }
h1 { font-size: 1.5rem; margin: 0 0 1rem; }
form.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
form.anmelden { display: grid; gap: .5rem; max-width: 20rem; }
input[type=password] { font: inherit; padding: .6rem; border: 1px solid var(--rand); border-radius: .4rem; }
form.anmelden button { font: inherit; padding: .6rem; border: 0; border-radius: .4rem; background: var(--akzent); color: var(--auf-akzent); cursor: pointer; }
.hinweis { padding: .6rem .8rem; border-left: 4px solid var(--fehler); background: #b3261e14; }
.erfolg { padding: .6rem .8rem; border-left: 4px solid #2e7d32; background: #2e7d3214; }
form.anmelden .klein { margin: 0; }
.filter a, .filter strong { margin-right: .75rem; }
.klein { font-size: .875rem; opacity: .75; }
.tabelle { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .875rem; }
th, td { text-align: left; vertical-align: top; padding: .4rem .5rem; border-bottom: 1px solid var(--rand); }
tr.stufe-fehler td:nth-child(2) { color: var(--fehler); font-weight: 600; }
tr.stufe-warnung td:nth-child(2) { color: var(--warnung); }
button.thema-schalter { display: inline-flex; align-items: center; gap: .3rem; font: inherit; font-size: .875rem; color: inherit; background: none; border: 1px solid var(--rand); border-radius: 999px; padding: .2rem .7rem; min-height: 32px; cursor: pointer; white-space: nowrap; }
button.thema-schalter[hidden] { display: none; }
button.thema-schalter:hover { border-color: currentColor; }
.thema-zeichen { font-size: 1rem; line-height: 1; }
