/* Schiessbuch-Modus (/schiessbuch): Tablet-Erfassung, Aufsicht, Mitglieder-Portal.
   Touch-freundlich (iPad): grosse Flaechen, keine Hover-Abhaengigkeit. */
body.sb-modus { background: var(--bg, #f4f6f9); overflow-x: hidden; }
#sb-root { min-height: 100vh; font-size: 18px; color: var(--text, #1e293b); display: flex; flex-direction: column; }
.sb-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px;
  background: #1a3a5c; color: #fff; }
.sb-kopf h1 { font-size: 22px; margin: 0; font-weight: 600; }
.sb-kopf .sb-klein { font-size: 14px; opacity: .85; }
.sb-inhalt { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 22px; }
.sb-karte { background: var(--bg-card, #fff); border: 1px solid var(--border, #d8dee6); border-radius: 14px; padding: 22px; margin-bottom: 18px; }
.sb-karte h2 { margin: 0 0 12px; font-size: 20px; }
.sb-zentriert { text-align: center; }
.sb-hinweis { color: #475569; font-size: 16px; }
.sb-fehler { background: #fee2e2; color: #991b1b; border-radius: 10px; padding: 12px 16px; margin: 12px 0; font-size: 17px; }
.sb-ok { background: #dcfce7; color: #166534; border-radius: 10px; padding: 12px 16px; margin: 12px 0; }
.sb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 12px 26px;
  font-size: 18px; font-weight: 600; border-radius: 12px; border: 2px solid #1a3a5c; background: #1a3a5c; color: #fff;
  cursor: pointer; touch-action: manipulation; }
.sb-btn:disabled { opacity: .4; cursor: not-allowed; }
.sb-btn.sekundaer { background: #fff; color: #1a3a5c; }
.sb-btn.gross { min-height: 72px; font-size: 22px; padding: 16px 40px; }
.sb-btn.klein { min-height: 44px; padding: 8px 16px; font-size: 16px; }
.sb-gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.sb-kachel { min-height: 76px; padding: 12px 14px; text-align: left; border-radius: 12px; border: 2px solid var(--border, #d8dee6);
  background: #fff; font-size: 18px; cursor: pointer; touch-action: manipulation; display: flex; flex-direction: column; justify-content: center; }
.sb-kachel small { color: #64748b; font-size: 14px; }
.sb-kachel.gewaehlt { border-color: #1a3a5c; background: #e8eef5; box-shadow: inset 0 0 0 2px #1a3a5c; font-weight: 600; }
.sb-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.sb-chip { min-height: 52px; padding: 10px 20px; border-radius: 26px; border: 2px solid var(--border, #d8dee6); background: #fff;
  font-size: 18px; cursor: pointer; touch-action: manipulation; }
.sb-chip.gewaehlt { border-color: #1a3a5c; background: #1a3a5c; color: #fff; }
.sb-chip.nur-anzeige { cursor: default; background: #f1f5f9; }
.sb-feld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.sb-feld label { font-size: 15px; color: #475569; }
.sb-feld input { min-height: 54px; font-size: 20px; padding: 8px 14px; border: 2px solid var(--border, #d8dee6); border-radius: 10px; width: 100%; box-sizing: border-box; }
.sb-zeile { display: flex; gap: 16px; flex-wrap: wrap; }
.sb-zeile > * { flex: 1; min-width: 200px; }
#sb-reader { width: 100%; max-width: 560px; margin: 0 auto; border-radius: 12px; overflow: hidden; min-height: 80px; background: #0f172a; }
.sb-tabelle { width: 100%; border-collapse: collapse; font-size: 16px; }
.sb-tabelle th, .sb-tabelle td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border, #d8dee6); }
.sb-haken { font-size: 84px; line-height: 1; color: #16a34a; }
.sb-login { max-width: 460px; margin: 60px auto; }

/* Dialog (Freigabe durch die Standaufsicht) */
.sb-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .6); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 24px; overflow-y: auto; }
.sb-dialog { background: #fff; border-radius: 16px; padding: 24px; width: 100%; max-width: 640px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.sb-dialog h2 { margin: 0 0 8px; font-size: 22px; }
.sb-dialog h3 { font-size: 17px; margin: 0; color: #334155; }
.sb-dialog select { min-height: 54px; font-size: 18px; padding: 8px 12px; border: 2px solid var(--border, #d8dee6); border-radius: 10px; width: 100%; background: #fff; }
/* Reiter und Status */
.sb-tabs { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.sb-tab { min-height: 48px; padding: 8px 20px; border-radius: 24px; border: 2px solid #1a3a5c; background: #fff; color: #1a3a5c; font-size: 17px; font-weight: 600; cursor: pointer; }
.sb-tab.aktiv { background: #1a3a5c; color: #fff; }
.sb-status { display: inline-block; padding: 2px 12px; border-radius: 14px; font-size: 14px; font-weight: 600; background: #e2e8f0; }
.sb-status.verifiziert { background: #dcfce7; color: #166534; }
.sb-status.offen { background: #fef9c3; color: #713f12; }
.sb-status.abgelehnt, .sb-status.storniert { background: #fee2e2; color: #991b1b; }
.sb-check { width: 28px; height: 28px; }
.sb-tabelle small { color: #64748b; }

/* Auswertung: Ampel und Monatsuebersicht (Schiessbuch-Modus und Vereinssoftware) */
.sb-ampel { display: flex; align-items: flex-start; gap: 22px; flex-wrap: wrap; }
.sb-ampel-punkt { width: 84px; height: 84px; border-radius: 50%; flex: none; box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .18); }
.sb-ampel-punkt.gruen { background: #16a34a; }
.sb-ampel-punkt.gelb { background: #facc15; }
.sb-ampel-punkt.rot { background: #dc2626; }
.sb-ampel-titel { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.sb-ampel-liste { margin: 8px 0; padding-left: 20px; line-height: 1.5; }
.sb-monate { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.sb-monat { border: 2px solid #e2e8f0; border-radius: 10px; padding: 6px 4px; text-align: center; background: #fff; }
.sb-monat small { display: block; color: #64748b; font-size: 13px; }
.sb-monat b { display: block; font-size: 22px; }
.sb-monat.im-zeitraum { border-color: #1a3a5c; }
.sb-monat.im-zeitraum.leer { background: #fee2e2; border-color: #dc2626; }
.sb-monat.laufend { border-style: dashed; }
