:root {
  color-scheme: light dark;
  --seite: #f4f5f7;
  --karte: #ffffff;
  --text: #1b1d21;
  --gedaempft: #5b6270;
  --rand: #8b929e;
  --akzent: #1d5fb8;
  --auf-akzent: #ffffff;
  --gefahr: #b42318;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.5;
  color: var(--text);
  background: var(--seite);
}
@media (prefers-color-scheme: dark) {
  :root {
    --seite: #111316;
    --karte: #1a1d21;
    --text: #e8eaed;
    --gedaempft: #a3a9b3;
    --rand: #6b7280;
    --akzent: #6aa7ff;
    --auf-akzent: #0b1220;
    --gefahr: #f97066;
  }
}
/* «hidden» gilt immer – auch für Karten mit display: flex */
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--seite);
}
main {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
h1 {
  font-size: 1.5rem;
}
h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}
.klein {
  font-size: 0.875rem;
  color: var(--gedaempft);
}
.karte {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 1rem 0;
  padding: 1.25rem;
  border-radius: 0.875rem;
  background: var(--karte);
  box-shadow: 0 0 0 1px rgb(16 24 40 / 0.08);
}
label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 500;
}
label.auswahl {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-weight: 400;
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  margin-bottom: 0.25rem;
  font-weight: 500;
}
input,
textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--rand);
  border-radius: 0.5rem;
  font: inherit;
  color: inherit;
  background: var(--karte);
}
input[type='checkbox'] {
  width: 1.25rem;
  min-height: 1.25rem;
}
textarea {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  word-break: break-all;
}
button {
  align-self: flex-start;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 0.5rem;
  font: inherit;
  font-weight: 600;
  color: var(--auf-akzent);
  background: var(--akzent);
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 2px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
.meldung:empty {
  display: none;
}
.meldung.fehler {
  color: var(--gefahr);
}
code {
  font-size: 0.85em;
}
