:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f2f2f7;
  color: #1c1c1e;
}

body {
  margin: 0;
  padding: max(12px, env(safe-area-inset-top)) 12px 24px;
}

.tafel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  color: #000;
  max-width: 720px;
  margin: 0 auto;
}

.tafel:fullscreen {
  justify-content: center;
  border-radius: 0;
  max-width: none;
  padding: 2vmin;
}

.qr {
  width: min(100%, 62vh);
  aspect-ratio: 1;
  image-rendering: pixelated;
}

.qr[data-leer] {
  visibility: hidden;
}

.tafel:fullscreen .qr {
  width: min(96vw, 78vh);
}

.uhr {
  margin: 0;
  font-size: clamp(2rem, 9vmin, 4.5rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.status {
  margin: 0;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.status[data-ton="ok"] { background: #d1f2dc; color: #0b5e26; }
.status[data-ton="warte"] { background: #fff1cc; color: #6b4b00; }
.status[data-ton="fehler"] { background: #ffd9d6; color: #8a1309; }

.klein {
  margin: 0;
  font-size: 0.85rem;
  color: #3c3c43;
}

.info {
  max-width: 720px;
  margin: 16px auto 0;
}

.knoepfe {
  display: flex;
  gap: 8px;
  justify-content: center;
}

button {
  font: inherit;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: #1c1c1e;
  color: #fff;
}

button + button {
  background: #e5e5ea;
  color: #1c1c1e;
}

.werte {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin: 16px 0;
  font-size: 0.95rem;
}

.werte dt { color: #6c6c70; }
.werte dd { margin: 0; font-variant-numeric: tabular-nums; }

.hinweise {
  padding-inline-start: 1.2em;
  font-size: 0.85rem;
  color: #3c3c43;
}
