:root {
  --hg: #ffffff;
  --text: #1a1a1a;
  --leise: #5f6368;
  --flaeche: #f1f3f4;
  --akzent: #1a73e8;
  --ok: #188038;
  --fehlt: #c5221f;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --hg: #121212;
    --text: #e8eaed;
    --leise: #9aa0a6;
    --flaeche: #202124;
    --akzent: #8ab4f8;
    --ok: #81c995;
    --fehlt: #f28b82;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--hg);
  color: var(--text);
  font: 16px/1.45 system-ui, sans-serif;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 16px;
}

h1 { font-size: 1.5rem; margin: 0.5rem 0; }
h2 { font-size: 1.1rem; margin: 0 0 0.5rem; }

section {
  background: var(--flaeche);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 12px 0;
}

.hinweis { color: var(--leise); font-size: 0.9rem; }

.knopf {
  display: inline-block;
  min-height: 48px;
  padding: 12px 18px;
  margin: 4px 4px 4px 0;
  border: 0;
  border-radius: 24px;
  background: var(--akzent);
  color: var(--hg);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.knopf.zweitrangig { background: transparent; color: var(--akzent); border: 2px solid var(--akzent); }
.knopf:disabled { opacity: 0.4; cursor: default; }

select { font: inherit; padding: 8px; margin: 4px 0 8px; width: 100%; }

.liste { width: 100%; border-collapse: collapse; margin: 8px 0; font-variant-numeric: tabular-nums; }
.liste th { text-align: left; font-weight: normal; color: var(--leise); padding: 4px 8px 4px 0; }
.liste td { text-align: right; padding: 4px 0; }
.ok { color: var(--ok); font-weight: 600; }
.fehlt { color: var(--fehlt); font-weight: 600; }

.ziel { font-size: 1.6rem; font-weight: 600; text-align: center; margin: 12px 0; }

fieldset { border: 0; padding: 0; margin: 8px 0; }
fieldset label { margin-right: 16px; }
label { display: inline-block; padding: 6px 0; }

.zeiger-feld {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 12px auto;
  border-radius: 50%;
  border: 2px solid var(--leise);
}
.zeiger {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 0;
  height: 0;
  margin-left: -10px;
  border: 10px solid transparent;
  border-bottom: 58px solid var(--akzent);
  border-top: 0;
  transform-origin: 10px 60px;
}

pre {
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 0.8rem;
  background: var(--hg);
  padding: 8px;
  border-radius: 8px;
}
