:root {
  --bg: #000000;
  --flaeche: #111214;
  --flaeche2: #1b1d21;
  --linie: #2a2d33;
  --text: #ffffff;
  --text2: #9aa0a8;
  --blau: #38b6ff;
  --blau-dunkel: #1e8fd6;
  --rot: #ff5a5a;
  --gelb: #ffd166;
  --gruen: #4cd18a;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.4;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
.seite { max-width: 560px; margin: 0 auto; padding: 16px 16px 40px; }
a { color: var(--blau); text-decoration: none; }

.kopf { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 8px; }
.kopf .zurueck { font-size: 16px; }
.kopf .wer { color: var(--text2); font-size: 14px; }
.logo { display: block; width: 70%; max-width: 300px; margin: 28px auto 32px; }

h1 { font-size: 24px; font-weight: 700; margin: 4px 0 16px; letter-spacing: .2px; }
h2 { font-size: 13px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 1.2px; margin: 28px 0 10px; }
.klein { font-size: 14px; color: var(--text2); }

.kachel {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px;
  padding: 18px; margin-bottom: 12px; color: var(--text);
}
.kachel:active { background: var(--flaeche2); }
.kachel .titel { font-size: 19px; font-weight: 600; }
.kachel .unter { font-size: 14px; color: var(--text2); margin-top: 2px; }
.kachel .pfeil { color: var(--blau); font-size: 22px; }
.kachel.haupt { border-color: var(--blau); }

.knopf {
  display: block; width: 100%; text-align: center; cursor: pointer;
  background: var(--blau); color: #000; font-weight: 600; font-size: 17px;
  border: 0; border-radius: 12px; padding: 15px; margin: 10px 0;
}
.knopf:active { background: var(--blau-dunkel); }
.knopf.zweit { background: transparent; color: var(--text); border: 1px solid var(--linie); }
.knopf[disabled] { opacity: .35; }

input[type=text], input[type=password] {
  width: 100%; font-size: 17px; color: var(--text); background: var(--flaeche);
  border: 1px solid var(--linie); border-radius: 12px; padding: 14px; margin: 6px 0 12px;
  outline: none;
}
input:focus { border-color: var(--blau); }
label { font-size: 14px; color: var(--text2); }
.fehler { color: var(--rot); margin: 8px 0; }
.hinweis { background: #2a2310; border: 1px solid #5c4a14; color: var(--gelb); border-radius: 12px; padding: 12px 14px; font-size: 15px; margin: 12px 0; }

.raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.raster .bild { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--flaeche); }
.raster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.raster .weg { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,.65); color: #fff; border: 0; font-size: 16px; line-height: 28px; padding: 0; }
.raster .laedt { display: flex; align-items: center; justify-content: center; color: var(--text2); font-size: 13px; }

.wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wahl input { display: none; }
.wahl label { display: block; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 14px; color: var(--text); }
.wahl label b { display: block; font-size: 17px; }
.wahl label span { font-size: 13px; color: var(--text2); }
.wahl input:checked + label { border-color: var(--blau); background: #0b1c27; }

.chip { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.chip.fertig { background: #0f2a1c; color: var(--gruen); }
.chip.laeuft { background: #0b1c27; color: var(--blau); }
.chip.fehler { background: #2c1212; color: var(--rot); }
.chip.fotos { background: var(--flaeche2); color: var(--text2); }

.status-gross { text-align: center; padding: 40px 0; }
.kreis { width: 44px; height: 44px; margin: 0 auto 18px; border: 3px solid var(--linie); border-top-color: var(--blau);
  border-radius: 50%; animation: dreh 1s linear infinite; }
@keyframes dreh { to { transform: rotate(360deg); } }

.tabelle-wrap { overflow-x: auto; border: 1px solid var(--linie); border-radius: 12px; margin: 12px 0; }
table { border-collapse: collapse; font-size: 13px; width: 100%; }
th, td { padding: 7px 8px; border-bottom: 1px solid var(--linie); text-align: left; white-space: nowrap; }
th { color: var(--text2); font-weight: 600; background: var(--flaeche); position: sticky; top: 0; }
td.warn { color: var(--gelb); font-weight: 700; }
.zeile { display: flex; gap: 10px; }
.zeile .knopf { flex: 1; }
.meldung { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); background: var(--flaeche2);
  border: 1px solid var(--linie); padding: 10px 18px; border-radius: 20px; font-size: 15px; display: none; }
