:root {
  --grund: #f6f4ee; --karte: #fff; --text: #1f2a24; --leise: #6b756f;
  --akzent: #2f6b4f; --rand: #dcd8cc; --weg: #a3392b; --gut: #e3f1e8;
  --schlecht: #f7e1dd;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #151a17; --karte: #1e2521; --text: #e7ebe8; --leise: #97a29b;
    --akzent: #7cc39c; --rand: #334039; --weg: #e0806f; --gut: #1f3a2b;
    --schlecht: #45231d;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--grund); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.seite { max-width: 52rem; margin: 0 auto; padding: 2.5rem 1rem 4rem; }
h1 { margin: 0 0 .5rem; font-size: 1.8rem; }
h2 { margin: 0; font-size: 1.25rem; }
a { color: var(--akzent); }
code { font-size: .9em; }
.lead { font-size: 1.05rem; }
.leise { color: var(--leise); font-size: .9rem; }
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

button, input { font: inherit; }
button { border: 1px solid var(--akzent); background: var(--akzent); color: #fff;
  border-radius: .4rem; padding: .35rem .8rem; cursor: pointer; }
button.leise { background: transparent; color: var(--leise); border-color: var(--rand); }
button.weg { background: transparent; color: var(--weg); border-color: var(--weg); }
input { border: 1px solid var(--rand); background: var(--karte); color: var(--text);
  border-radius: .4rem; padding: .35rem .6rem; min-width: 0; }

.meldung { padding: .6rem .9rem; border-radius: .4rem; }
.meldung.gut { background: var(--gut); }
.meldung.schlecht { background: var(--schlecht); }

.anmelden { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.anmelden label { flex-basis: 100%; }
.anmelden input { flex: 1 1 14rem; }

.deck { background: var(--karte); border: 1px solid var(--rand); border-radius: .6rem;
  padding: 1.1rem 1.2rem; margin: 1.2rem 0; }
.deck .leise { margin: .2rem 0 .8rem; }
.links { list-style: none; margin: 0; padding: 0; }
.links li { border-top: 1px solid var(--rand); padding: .7rem 0; }
.links li.gesperrt .link-zeile input { text-decoration: line-through; opacity: .6; }
.link-kopf { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.link-zeile { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-top: .4rem; }
.link-zeile input { flex: 1 1 18rem; font-family: ui-monospace, monospace; font-size: .85rem; }
.link-zeile form { margin: 0; }
.marke { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--weg); border: 1px solid var(--weg); border-radius: .3rem; padding: 0 .35rem; }
.neu { display: flex; gap: .4rem; flex-wrap: wrap; border-top: 1px solid var(--rand); padding-top: .8rem; }
.neu input { flex: 1 1 16rem; }
.gefahr { margin-top: .8rem; }
.gefahr summary { cursor: pointer; color: var(--leise); font-size: .9rem; }
