:root {
  --grund: #f7f7f5;
  --flaeche: #ffffff;
  --text: #1d1d1b;
  --leise: #66665f;
  --linie: #deded8;
  --akzent: #2a5db0;
  --ok: #1f7a3a;
  --warn: #a35c00;
  --fail: #b3261e;
  --info: #2a5db0;
  --code: #f0f0ec;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #161615;
    --flaeche: #1f1f1d;
    --text: #ececea;
    --leise: #a3a39c;
    --linie: #33332f;
    --akzent: #7aa4ec;
    --ok: #5cc27a;
    --warn: #e6a23c;
    --fail: #f07167;
    --info: #7aa4ec;
    --code: #2a2a27;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 16px 48px;
  background: var(--grund);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

header, main, footer { max-width: 960px; margin: 0 auto; }
header { padding: 24px 0 8px; }
h1 { font-size: 1.5rem; margin: 0 0 4px; }
h2 { font-size: 1.1rem; margin: 0; }
header p { margin: 0; color: var(--leise); }

section, details {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 10px;
  padding: 16px;
  margin-top: 16px;
}

.kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.klein { font-size: 0.85rem; color: var(--leise); }
code { background: var(--code); padding: 1px 4px; border-radius: 4px; }

.fazit #urteil { font-weight: 600; font-size: 1.05rem; margin: 0 0 4px; }

button {
  font: inherit;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--akzent);
  background: var(--akzent);
  color: #fff;
  cursor: pointer;
  min-height: 40px;
}
button.leise { background: transparent; color: var(--akzent); }
button:disabled { opacity: 0.45; cursor: default; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 0.9rem; }
td { padding: 6px 6px; border-top: 1px solid var(--linie); vertical-align: top; }
td.sym { width: 1.6em; font-weight: 700; text-align: center; }
td.id { width: 3em; color: var(--leise); }
td.titel { width: 34%; }
td.detail { overflow-wrap: anywhere; }
td.dauer { width: 4.5em; text-align: right; color: var(--leise); white-space: nowrap; }

tr.ok .sym { color: var(--ok); }
tr.warn .sym { color: var(--warn); }
tr.fail .sym, tr.fail .detail { color: var(--fail); }
tr.info .sym { color: var(--info); }
tr.skip, tr.offen { color: var(--leise); }
tr.run .sym { animation: puls 1s infinite; }
@keyframes puls { 50% { opacity: 0.2; } }

label { display: block; font-weight: 600; margin: 12px 0 4px; }
textarea, input[type="text"] {
  width: 100%;
  font: 14px/1.4 ui-monospace, Menlo, Consolas, monospace;
  padding: 8px;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: var(--grund);
  color: var(--text);
}
.reihe { display: grid; grid-template-columns: 7em 1fr auto; gap: 8px; align-items: center; margin-top: 12px; }
.reihe label { margin: 0; }

.ausgabe {
  background: var(--code);
  border-radius: 8px;
  padding: 10px;
  max-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
  font: 12.5px/1.45 ui-monospace, Menlo, Consolas, monospace;
  margin: 12px 0 0;
}
.ausgabe:empty { display: none; }
summary { cursor: pointer; font-weight: 600; }

.anmeldung { max-width: 360px; padding-top: 15vh; }
.anmeldung h1 { margin-bottom: 8px; }
input[type="password"] {
  width: 100%;
  font: inherit;
  padding: 8px;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: var(--grund);
  color: var(--text);
}
.fehler { color: var(--fail); margin: 8px 0 0; }

footer { margin-top: 24px; }
footer a { color: var(--akzent); }

@media (max-width: 640px) {
  td.titel { width: auto; }
  td.id { display: none; }
  .reihe { grid-template-columns: 1fr; }
}
