:root {
  --grund: #0F1B2D;
  --flaeche: #182840;
  --flaeche2: #24395A;
  --linie: #2E4A6B;
  --text: #F3EEE3;
  --leise: #A9B4C6;
  --gold: #F2C14E;
  --gruen: #6CC2B6;
  --rot: #F08A80;
  --radius: 18px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.4;
}
a { color: var(--gold); text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 18px; font-weight: 700; }
.leise { color: var(--leise); }
.klein { font-size: 13px; }
.seite { max-width: 560px; margin: 0 auto; padding: 0 16px 110px; }
.kopf { display: flex; justify-content: space-between; align-items: center; padding: 22px 0 14px; gap: 12px; }
.kopf .unter { font-size: 13px; color: var(--leise); }
.rund {
  width: 44px; height: 44px; border-radius: 22px; background: var(--flaeche); border: 0; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer;
}
.stapel { display: flex; flex-direction: column; gap: 14px; }
.karte { background: var(--flaeche); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.karte.rahmen { border: 1.5px solid var(--gold); }
.zeile { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wer { display: flex; align-items: center; gap: 10px; min-width: 0; }
.punkt {
  width: 34px; height: 34px; border-radius: 17px; color: #0F1B2D; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pille { font-size: 12px; padding: 5px 10px; border-radius: 12px; background: var(--flaeche2); white-space: nowrap; }
.pille.voll { color: #0F1B2D; font-weight: 700; }
.tuer-gross {
  height: 140px; border-radius: 14px; background: var(--flaeche2); display: flex; align-items: center; justify-content: center;
  font-size: 72px; font-weight: 800; color: var(--gold);
}
.foto { width: 100%; max-height: 360px; object-fit: cover; border-radius: 12px; display: block; background: var(--flaeche2); }
.foto.mini { width: 76px; height: 76px; flex-shrink: 0; }
.knopf {
  display: block; width: 100%; text-align: center; padding: 14px; border-radius: 14px; border: 0; font: inherit;
  font-weight: 700; background: var(--gold); color: #0F1B2D; cursor: pointer;
}
.knopf.zweit { background: var(--flaeche2); color: var(--text); font-weight: 500; }
.knopf.rand { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.knopf.gefahr { background: transparent; border: 1px solid var(--rot); color: var(--rot); font-weight: 500; }
.knopf.klein { padding: 9px 12px; font-size: 14px; width: auto; display: inline-block; }
label.feld, .feld { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--leise); }
input[type=text], input[type=password], input[type=email], input[type=time], textarea, select {
  font: inherit; font-size: 16px; color: var(--text); background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: 12px; padding: 12px 14px; width: 100%;
}
.karte input[type=text], .karte input[type=password], .karte input[type=email], .karte input[type=time], .karte textarea { background: var(--flaeche2); }
textarea { resize: vertical; min-height: 70px; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label {
  padding: 9px 14px; border-radius: 20px; border: 1px solid var(--linie); color: var(--text); font-size: 14px; cursor: pointer;
}
.chips input:checked + label { background: var(--gold); border-color: var(--gold); color: #0F1B2D; font-weight: 700; }
.chips input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.noten { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.noten input { position: absolute; opacity: 0; pointer-events: none; }
.noten label, .noten button {
  height: 40px; border-radius: 9px; background: var(--flaeche2); color: var(--leise); font: 700 14px system-ui, sans-serif;
  display: flex; align-items: center; justify-content: center; cursor: pointer; border: 0; padding: 0;
}
.noten input:checked + label, .noten .an { background: var(--gold); color: #0F1B2D; }
.noten input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.raster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.tuer {
  height: 78px; border-radius: 14px; padding: 8px; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--flaeche); color: var(--text); border: 1px solid transparent;
}
.tuer b { font-size: 20px; font-weight: 800; }
.tuer span { font-size: 12px; font-weight: 600; }
.tuer.zu { background: #15233A; color: #7F8DA3; border-color: #1E2F49; }
.tuer.leer { border: 1px dashed var(--linie); }
.tuer.heute { background: var(--gold); color: #0F1B2D; }
.tabs { display: flex; background: var(--flaeche); border-radius: 14px; padding: 4px; gap: 4px; overflow-x: auto; }
.tabs a { flex: 1; text-align: center; padding: 10px 12px; border-radius: 10px; color: var(--leise); font-weight: 600; white-space: nowrap; font-size: 14px; }
.tabs a.an { color: #0F1B2D; }
.vergleich { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vergleich.einzeln { grid-template-columns: 1fr; }
.vergleich .karte { padding: 12px; gap: 8px; border-top: 4px solid var(--gold); }
.vergleich .foto { height: 130px; }
.reaktionen { display: flex; flex-wrap: wrap; gap: 6px; }
.reaktionen button { font: inherit; font-size: 13px; padding: 7px 11px; border-radius: 16px; border: 1px solid var(--linie); background: transparent; color: var(--text); cursor: pointer; }
.reaktionen button.an { background: var(--gold); border-color: var(--gold); color: #0F1B2D; font-weight: 700; }
.kommentar { background: var(--flaeche); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.meldung { border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 12px; }
.meldung.ok { background: #1E4A44; }
.meldung.fehler { background: #5A2630; }
.balken { display: grid; gap: 6px; align-items: end; height: 130px; }
.balken .tag { display: flex; gap: 2px; align-items: flex-end; justify-content: center; height: 100%; }
.balken .tag div { width: 100%; max-width: 12px; border-radius: 3px 3px 0 0; min-height: 2px; }
.achse { display: grid; gap: 6px; font-size: 10px; color: var(--leise); text-align: center; }
.legende { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.schalter { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--flaeche2); }
.schalter:last-child { border-bottom: 0; }
.schalter input[type=checkbox] { width: 24px; height: 24px; accent-color: var(--gold); flex-shrink: 0; }
.hinweis { background: var(--flaeche2); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: #DCE3EE; }
nav.unten {
  position: fixed; left: 0; right: 0; bottom: 0; background: #0B1524; border-top: 1px solid #22344F;
  padding-bottom: env(safe-area-inset-bottom);
}
nav.unten div { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
nav.unten a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 11px 0 12px; font-size: 11px; color: var(--leise); }
nav.unten a.an { color: var(--gold); }
.mitte { max-width: 420px; margin: 0 auto; padding: 48px 20px; }
.mitte h1 { font-size: 34px; margin-bottom: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
td, th { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--flaeche2); vertical-align: top; }
.inline { display: inline; }
.versteckt { position: absolute; left: -9999px; }
