* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f5;
  color: #1f1f1f;
}
.app { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 1.6rem; margin-bottom: 4px; }
h2 { font-size: 1.2rem; margin-top: 28px; }
.hinweis { color: #666; font-size: 0.95rem; }
.fehler { color: #b3261e; font-weight: 600; }
.ok { color: #1a7f37; font-weight: 600; }
.warnung { color: #b3261e; font-weight: 700; }

.tages-status {
  background: #fff;
  border: 2px solid #e5e5e5;
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 16px;
  font-size: 1.05rem;
}
.tages-status .zahl { font-weight: 700; font-size: 1.3rem; }

.kachel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.kachel-grid form { display: contents; }
.kachel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  width: 100%;
  background: #fff;
  border: 2px solid #e5e5e5;
  border-radius: 14px;
  text-decoration: none;
  color: #1f1f1f;
  font-weight: 600;
  font-size: 1.05rem;
  font-family: inherit;
  text-align: center;
  padding: 10px;
  cursor: pointer;
}
.kachel:active { background: #f0e6d2; border-color: #c6a75e; }
.kachel-sub { display: block; margin-top: 4px; font-size: 0.8rem; font-weight: 400; color: #777; }

.pin-form { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.pin-input {
  font-size: 1.6rem;
  letter-spacing: 6px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 2px solid #ccc;
  width: 200px;
}

.btn {
  display: inline-block;
  background: #c6a75e;
  color: #1f1f1f;
  border: none;
  border-radius: 10px;
  padding: 14px 22px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: #c6a75e; }
.btn-klein { padding: 8px 14px; font-size: 0.9rem; }

.kopf { display: flex; justify-content: space-between; align-items: flex-start; }

.aufgabe {
  background: #fff;
  border: 2px solid #e5e5e5;
  border-radius: 14px;
  padding: 16px;
  margin-top: 14px;
}
.aufgabe-ueberfaellig { border-color: #b3261e; background: #fdf1f0; }
.aufgabe-erledigt { opacity: 0.6; }
.aufgabe-kopf { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.zeitfenster { color: #666; font-size: 0.9rem; }
.beschreibung { color: #444; margin: 6px 0 0; }
.schulung-bild { display: block; max-width: 100%; height: auto; border-radius: 10px; margin: 0 auto 12px; }
.schulung-seite-vorschau { max-width: 120px; max-height: 90px; border-radius: 6px; }

.modul-badge {
  background: #eef0f5;
  color: #555;
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: middle;
}

.erledigen-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wert-input, .kommentar-input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 2px solid #ccc;
  font-size: 1rem;
  flex: 1 1 140px;
}

.flash { margin-bottom: 16px; }
.flash-msg {
  background: #fff4e5;
  border: 2px solid #c6a75e;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
}

.tabelle { width: 100%; border-collapse: collapse; margin-top: 16px; background: #fff; }
.tabelle th, .tabelle td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e5e5e5; }
.zeile-warnung { background: #fdf1f0; }
.zeile-inaktiv { opacity: 0.55; }

.formular { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; max-width: 480px; }
.feld label { display: block; font-weight: 600; margin-bottom: 4px; }
.feld input[type="text"], .feld input[type="number"], .feld textarea, .feld select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 2px solid #ccc;
  font-size: 1rem;
  font-family: inherit;
}
.feld textarea { min-height: 70px; resize: vertical; }
.feld label:has(input[type="checkbox"]) { font-weight: 400; display: flex; align-items: center; gap: 6px; }
.checkbox-reihe { display: flex; gap: 12px; flex-wrap: wrap; }
.checkbox-reihe label { display: flex; align-items: center; gap: 4px; font-weight: 400; }

.antwort-liste { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.antwort-liste label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  background: #fff;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  padding: 10px 14px;
}

.badge-inaktiv {
  background: #eee;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.85rem;
  color: #666;
}

.modul-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.modul-kachel {
  display: block;
  background: #fff;
  border: 2px solid #e5e5e5;
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  color: #1f1f1f;
  min-height: 96px;
}
.modul-kachel h3 { margin: 0; font-size: 1.1rem; }
a.modul-kachel:active { background: #f0e6d2; border-color: #c6a75e; }
.modul-stats { color: #444; font-size: 0.9rem; margin-top: 10px; }
.modul-stats .warnung { color: #b3261e; font-weight: 600; }

.modul-kachel-platzhalter {
  background: #f0f0f0;
  border: 2px dashed #ddd;
}
.modul-kachel-platzhalter h3 { color: #999; }
.badge-bald {
  display: inline-block;
  margin-top: 10px;
  background: #e5e5e5;
  color: #888;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.8rem;
}

/* Kassen-Modus: eingeblendete Tastatur (static/js/kasse.js) */
.osk {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: #d9d9d9; border-top: 2px solid #bbb; padding: 10px 10px 12px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}
.osk-reihe { display: flex; justify-content: center; gap: 8px; margin-bottom: 8px; }
.osk-reihe:last-child { margin-bottom: 0; }
.osk-num, .osk-decimal { max-width: 420px; margin-left: auto; margin-right: auto; }
.osk-taste {
  flex: 1 1 0; min-width: 0; min-height: 56px; font-size: 1.3rem; font-weight: 600;
  background: #fff; border: 2px solid #bbb; border-radius: 10px; cursor: pointer;
  font-family: inherit; color: #1f1f1f;
}
.osk-taste:active { background: #f0e6d2; border-color: #c6a75e; }
.osk-ok { background: #c6a75e; border-color: #c6a75e; }
.osk-an { background: #f0e6d2; border-color: #c6a75e; }
.osk-leer { flex: 4 1 0; font-size: 1rem; }
.kasse-modus .btn { min-height: 48px; }

@media print { .no-print, .btn { display: none; } }
