:root {
  --bg: #f4f6fa; --card: #ffffff; --text: #0f172a; --leise: #556070; --rand: #d6dbe4;
  --akzent: #0b7a6f; --akzent-text: #ffffff; --fehler: #b42318; --gut: #067647;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220; --card: #141c2e; --text: #e8edf6; --leise: #9aa7bd; --rand: #26324a;
    --akzent: #2dd4bf; --akzent-text: #04211d; --fehler: #ff8a80; --gut: #6ee7a8;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: env(safe-area-inset-top) 16px calc(24px + env(safe-area-inset-bottom));
}
main { max-width: 560px; margin: 0 auto; padding-top: 20px; }
h1 { font-size: 1.5rem; margin: 0 0 4px; }
h2 { font-size: 1.1rem; margin: 24px 0 8px; }
p { margin: 8px 0; }
.leise { color: var(--leise); font-size: .95rem; }
.karte { background: var(--card); border: 1px solid var(--rand); border-radius: 16px; padding: 16px; margin: 12px 0; }
.raster { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kachel { background: var(--card); border: 1px solid var(--rand); border-radius: 16px; padding: 16px; min-height: 96px; opacity: .6; }
.kachel b { display: block; font-size: 1.05rem; }
.kachel span { color: var(--leise); font-size: .85rem; }
button, input {
  font: inherit; width: 100%; min-height: 56px; border-radius: 14px; border: 1px solid var(--rand);
  padding: 12px 16px; background: var(--card); color: var(--text);
}
button { cursor: pointer; font-weight: 600; margin: 8px 0; }
button.haupt { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); }
button:disabled { opacity: .5; }
input { letter-spacing: .08em; }
input.code { text-align: center; font-size: 1.4rem; text-transform: uppercase; }
.fehler { color: var(--fehler); font-weight: 600; }
.gut { color: var(--gut); font-weight: 600; }
ol { padding-left: 22px; } li { margin: 6px 0; }
img.qr { display: block; width: 220px; height: 220px; margin: 12px auto; background: #fff; border-radius: 12px; padding: 8px; }
code { word-break: break-all; font-size: .95rem; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
td { padding: 4px 0; border-bottom: 1px solid var(--rand); vertical-align: top; }
td:first-child { color: var(--leise); white-space: nowrap; padding-right: 8px; }
.kopf { display: flex; justify-content: space-between; align-items: center; }
.kopf button { width: auto; min-height: 44px; margin: 0; }
a.knopf { display: block; text-align: center; text-decoration: none; min-height: 56px; line-height: 32px; border-radius: 14px;
  border: 1px solid var(--rand); padding: 12px 16px; font-weight: 600; margin: 8px 0; }
a.knopf.haupt { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); }
code.wahl { -webkit-user-select: all; user-select: all; font-size: 1.1rem; letter-spacing: .06em; }
