:root { color-scheme: light dark; --bg: #f4f6f5; --flaeche: #fff; --text: #1c2522; --neben: #5c6a65; --rand: #d5dcd9; --akzent: #17694f; --auf: #fff; --fehler: #b3261e; }
@media (prefers-color-scheme: dark) { :root { --bg: #141917; --flaeche: #1e2522; --text: #e6ece9; --neben: #9caaa4; --rand: #36413c; --akzent: #6fcfac; --auf: #0c2a20; --fehler: #ff9c93; } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, sans-serif; }
header, main, footer { max-width: 1100px; margin: 0 auto; padding: 1rem; }
header { display: flex; justify-content: space-between; align-items: center; }
h1 { font-size: 1.4rem; margin: 0; }
h2 { font-size: 1.15rem; margin: 0; }
h3 { font-size: 1.1rem; margin: 0 0 .25rem; }
a { color: var(--akzent); }
footer, .neben { color: var(--neben); font-size: .875rem; }
.notiz { white-space: pre-wrap; overflow-wrap: anywhere; }
.fehler { color: var(--fehler); }
.kasten { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 10px; padding: 1rem; }
.anmeldung { max-width: 400px; padding-top: 12vh; }
.anmeldung form { display: grid; gap: 1rem; }
.anmeldung p { margin: 0; }
label { display: grid; gap: .25rem; font-size: .875rem; color: var(--neben); }
input, select, textarea, button { font: inherit; min-width: 0; padding: .5rem .7rem; border: 1px solid var(--rand); border-radius: 7px; background: var(--flaeche); color: var(--text); }
label > * { width: 100%; font-size: 1rem; }
button { cursor: pointer; }
button:hover { border-color: var(--akzent); }
button:disabled { opacity: .5; }
button.haupt { background: var(--akzent); border-color: var(--akzent); color: var(--auf); font-weight: 600; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
#generator { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem; align-items: end; }
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: .75rem; margin: 1rem 0; }
.karte { display: flex; flex-direction: column; }
button.wert { border: 0; padding: 0; background: none; text-align: left; font-weight: inherit; overflow-wrap: anywhere; }
button.wert:hover { color: var(--akzent); }
.knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .9rem; }
.karte .knoepfe button { font-size: .875rem; padding: .35rem .6rem; }
.leiste { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 2rem; }
.leiste h2 { flex: 1 0 auto; }
dialog { width: min(620px, calc(100vw - 2rem)); background: var(--flaeche); color: var(--text); border: 1px solid var(--rand); border-radius: 12px; padding: 1.25rem; }
dialog::backdrop { background: #0008; }
.felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: .75rem; margin-top: 1rem; }
.breit { grid-column: 1 / -1; }
dialog .knoepfe { justify-content: flex-end; }
#meldung { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: .6rem 1rem; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 90vw; }
#meldung.sichtbar { opacity: 1; }
