/* ── Variablen ────────────────────────────────────── */
:root {
  --bg:         #0f0f0f;
  --bg2:        #1a1a1a;
  --bg3:        #242424;
  --border:     #2e2e2e;
  --text:       #f1f1f1;
  --text-muted: #888;
  --primary:    #6366f1;
  --primary-d:  #4f46e5;
  --success:    #22c55e;
  --success-d:  #16a34a;
  --danger:     #ef4444;
  --danger-d:   #dc2626;
  --warning:    #f59e0b;
  --radius:     12px;
  --nav-h:      64px;
}

/* ── Reset ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

/* ── Screens ─────────────────────────────────────── */
.screen {
  display: none;
  flex-direction: column;
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-h) + 8px);
}
.screen.active { display: flex; }

/* ── Login ───────────────────────────────────────── */
.app-header {
  text-align: center;
  padding: 48px 24px 24px;
}
.logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.subtitle {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 0.9rem;
}
.step-title {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  padding: 8px 24px 16px;
  font-weight: 400;
}

.mitarbeiter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 16px;
}
.mitarbeiter-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.mitarbeiter-btn:active { background: var(--bg3); }
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}

/* PIN */
.back-btn {
  background: none;
  border: none;
  color: var(--primary);
  padding: 16px 20px 8px;
  font-size: 0.95rem;
  cursor: pointer;
}
.pin-name-badge {
  text-align: center;
  padding: 16px;
  font-size: 1.4rem;
  font-weight: 600;
}
.pin-label {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.pin-display {
  text-align: center;
  font-size: 2rem;
  letter-spacing: 12px;
  min-height: 48px;
  padding: 0 24px;
}
.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
  max-width: 320px;
  margin: 0 auto;
}
.pin-key {
  padding: 18px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.1s;
}
.pin-key:active { background: var(--bg3); }
.pin-ok  { background: var(--success); border-color: var(--success); color: #fff; }
.pin-ok:active { background: var(--success-d); }
.pin-del { font-size: 1.1rem; }
.pin-error {
  text-align: center;
  color: var(--danger);
  font-size: 0.9rem;
  padding: 8px;
}

/* ── Topbar ──────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 8px;
}
.topbar-name { font-size: 1.1rem; font-weight: 600; }
.logout-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* ── Status-Card ─────────────────────────────────── */
.status-card {
  margin: 16px;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}
.status-card.ausgestempelt { background: var(--bg2); }
.status-card.eingestempelt { background: #0d2818; border-color: #1a4a2a; }

.status-icon { font-size: 2.5rem; margin-bottom: 8px; }
.status-text { font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; }
.timer {
  font-size: 3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
  color: var(--success);
  margin-bottom: 8px;
}
.status-card.ausgestempelt .timer { color: var(--text-muted); }
.status-seit { font-size: 0.85rem; color: var(--text-muted); }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 14px 24px;
  transition: opacity 0.15s, transform 0.1s;
}
.btn:active { opacity: 0.85; transform: scale(0.98); }
.btn-xl {
  width: calc(100% - 32px);
  margin: 0 16px;
  padding: 20px;
  font-size: 1.2rem;
  border-radius: 16px;
}
.btn-block { width: 100%; }
.btn-primary  { background: var(--primary);  color: #fff; }
.btn-success  { background: var(--success);  color: #fff; }
.btn-danger   { background: var(--danger);   color: #fff; }
.btn-secondary { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }

/* ── Seiten-Header ───────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 12px;
}
.page-header h2 { font-size: 1.3rem; }
.page-header input[type="month"] { font-size: 0.9rem; padding: 6px 10px; width: auto; }
.header-sub { font-size: 0.85rem; color: var(--text-muted); }

.section-title {
  padding: 16px 20px 8px;
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Formulare ───────────────────────────────────── */
.form-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 16px 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: -4px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"] {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  padding: 10px 12px;
  width: 100%;
  outline: none;
  -webkit-appearance: none;
}
input:focus { border-color: var(--primary); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Listen ──────────────────────────────────────── */
.list-container {
  padding: 0 16px;
  flex: 1;
}

.week-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.week-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}
.week-label { font-size: 0.9rem; font-weight: 600; }
.week-total { font-weight: 700; color: var(--success); }

.eintrag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.eintrag-row:last-child { border-bottom: none; }
.eintrag-row.manuell { background: rgba(99, 102, 241, 0.06); }
.eintrag-row.krank   { background: rgba(239, 68, 68, 0.07); }
.eintrag-row.urlaub  { background: rgba(34, 197, 94, 0.07); }
.eintrag-typ-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  width: fit-content;
}
.eintrag-typ-badge.typ-krank  { background: rgba(239, 68, 68, 0.18); color: #f87171; }
.eintrag-typ-badge.typ-urlaub { background: rgba(34, 197, 94, 0.18); color: #4ade80; }
/* ── Typ-Dropdown (Manuell-Formular) ─────────────── */
.typ-option {
  padding: 11px 14px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
  transition: background 0.1s;
}
.typ-option:hover                { background: var(--bg3); }
.typ-option.aktiv                { color: var(--primary);  background: rgba(99,102,241,0.10); }
.typ-option.typ-krank.aktiv      { color: #f87171;         background: rgba(239,68,68,0.10); }
.typ-option.typ-urlaub.aktiv     { color: #4ade80;         background: rgba(34,197,94,0.10); }
.typ-option.typ-militaer.aktiv   { color: #60a5fa;         background: rgba(59,130,246,0.10); }
.typ-option.typ-unfall.aktiv     { color: #fb923c;         background: rgba(249,115,22,0.10); }
.typ-option.typ-feiertag.aktiv   { color: #c084fc;         background: rgba(168,85,247,0.10); }
.typ-option.typ-unbezahlt.aktiv  { color: #94a3b8;         background: rgba(148,163,184,0.10); }
.eintrag-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.eintrag-datum { font-size: 0.9rem; font-weight: 500; }
.eintrag-zeit  { font-size: 0.8rem; color: var(--text-muted); }
.eintrag-projekt   { font-size: 0.78rem; color: var(--warning); font-weight: 600; }
.eintrag-kommentar { font-size: 0.8rem; color: var(--primary); font-style: italic; }
.eintrag-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.eintrag-stunden { font-weight: 700; font-size: 1rem; white-space: nowrap; }
.eintrag-actions { display: flex; gap: 4px; }
.action-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.85rem;
  cursor: pointer;
  line-height: 1;
}
.action-btn:active { background: var(--bg3); }

/* Monatssummary */
.stunden-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 16px 12px;
  padding: 12px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.summary-label { font-size: 0.9rem; color: var(--text-muted); }
.summary-value { font-size: 1.4rem; font-weight: 700; color: var(--success); }

/* Urlaub */
.urlaub-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px;
}
.urlaub-dates { font-weight: 600; font-size: 0.95rem; }
.urlaub-tage  { font-size: 0.85rem; color: var(--text-muted); }
.urlaub-kommentar {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 4px;
}
.badge-beantragt { color: var(--warning); font-size: 0.8rem; font-weight: 600; }
.badge-genehmigt { color: var(--success); font-size: 0.8rem; font-weight: 600; }
.badge-abgelehnt { color: var(--danger);  font-size: 0.8rem; font-weight: 600; }

/* ── Bottom Nav ──────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--bg2);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  z-index: 100;
}
.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  transition: color 0.15s;
}
.nav-btn.active { color: var(--primary); }
.nav-icon  { font-size: 1.3rem; }
.nav-label { font-size: 0.65rem; font-weight: 500; }

/* ── Dialog ──────────────────────────────────────── */
.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: flex-end;
  z-index: 200;
}
.dialog {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  padding: 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dialog h3 { font-size: 1.1rem; }
.dialog p  { color: var(--text-muted); font-size: 0.9rem; }
.dialog-section-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: -4px;
}
.aus-kein-projekt { width: 100%; margin-top: 6px; text-align: center; }
.projekt-btn.aktiv, .preset-btn.aktiv {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.projekt-btn.aktiv .projekt-code { color: #fff; }
.pause-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.preset-btn {
  padding: 8px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
}
.preset-btn:active { background: var(--primary); border-color: var(--primary); }
.dialog-buttons { display: flex; gap: 12px; }
.dialog-buttons .btn { flex: 1; }

/* ── Toast ───────────────────────────────────────── */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: var(--bg3);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 300;
  transition: transform 0.3s ease;
  white-space: nowrap;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: #0d2818; border-color: #22c55e; color: #22c55e; }
.toast.error   { background: #2a0a0a; border-color: #ef4444; color: #ef4444; }

/* ── Projekt Custom Select ───────────────────────── */
.projekt-select-wrap { position: relative; }
.projekt-select-display {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; cursor: pointer; font-size: 1rem; color: var(--text);
}
.projekt-select-display:active { border-color: var(--primary); }
.projekt-select-arrow { color: var(--text-muted); font-size: 0.8rem; }
.projekt-select-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
  z-index: 50; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.projekt-select-search {
  width: 100%; border: none; border-bottom: 1px solid var(--border);
  border-radius: 0; background: var(--bg3);
}
.projekt-select-options { max-height: 220px; overflow-y: auto; }
.projekt-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer; font-size: 0.9rem;
}
.projekt-option:hover { background: var(--bg3); }
.projekt-option .projekt-code { font-weight: 700; color: var(--warning); min-width: 55px; font-size: 0.82rem; }
.projekt-option .projekt-name { color: var(--text); }

/* ── Dialog Projekt-Liste ────────────────────────── */
.dialog-search { margin-bottom: 8px; }
.dialog-projekt-liste {
  max-height: 38vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 4px;
}
.dialog-projekt-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer;
}
.dialog-projekt-item:active,
.dialog-projekt-item.aktiv { background: var(--primary); border-color: var(--primary); }
.dialog-projekt-item.aktiv .projekt-code,
.dialog-projekt-item.aktiv .projekt-name { color: #fff; }
.projekt-code { font-weight: 700; font-size: 0.82rem; color: var(--warning); min-width: 55px; }
.projekt-name { font-size: 0.9rem; }

/* ── Hilfklassen ─────────────────────────────────── */
.hidden { display: none !important; }
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
  font-size: 0.95rem;
}

/* ── Neue Absenz-Typen ─────────────────────────── */
.typ-btn.typ-militaer  { color: #5d8a5e; border-color: #5d8a5e; }
.typ-btn.typ-unfall    { color: #e08030; border-color: #e08030; }
.typ-btn.typ-feiertag  { color: #6b8cba; border-color: #6b8cba; }
.typ-btn.typ-unbezahlt { color: #8a7a6b; border-color: #8a7a6b; }
.typ-btn.typ-militaer.aktiv  { background: #5d8a5e; color: #fff; }
.typ-btn.typ-unfall.aktiv    { background: #e08030; color: #fff; }
.typ-btn.typ-feiertag.aktiv  { background: #6b8cba; color: #fff; }
.typ-btn.typ-unbezahlt.aktiv { background: #8a7a6b; color: #fff; }
.typ-militaer  { border-left: 3px solid #5d8a5e; }
.typ-unfall    { border-left: 3px solid #e08030; }
.typ-feiertag  { border-left: 3px solid #6b8cba; }
.typ-unbezahlt { border-left: 3px solid #8a7a6b; }
.typ-militaer .eintrag-typ-badge  { background: rgba(93,138,94,0.15);  color: #5d8a5e; }
.typ-unfall .eintrag-typ-badge    { background: rgba(224,128,48,0.15); color: #e08030; }
.typ-feiertag .eintrag-typ-badge  { background: rgba(107,140,186,0.15);color: #6b8cba; }
.typ-unbezahlt .eintrag-typ-badge { background: rgba(138,122,107,0.15);color: #8a7a6b; }

/* ── Globales Select-Styling ────────────────────────── */
select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--bg3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  padding: 10px 36px 10px 12px;
  width: 100%;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
select:hover { border-color: #444; }
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
}
select option {
  background: var(--bg3);
  color: var(--text);
}

/* ── Projekt-Dropdown (Ausstempeln) ────────────────── */
.aus-projekt-select {
  margin-bottom: 4px;
}

/* ── Pausenwarnung ─────────────────────────────────── */
.pause-warnung {
  background: rgba(234,179,8,0.15);
  border: 1px solid rgba(234,179,8,0.4);
  color: #b45309;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  margin: 8px 0 4px;
  line-height: 1.4;
}

/* ── Ferienkonto-Saldo ─────────────────────────────── */
.ferien-saldo {
  display: flex;
  gap: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.ferien-saldo-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border-right: 1px solid var(--border);
}
.ferien-saldo-item:last-child { border-right: none; }
.fs-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.fs-value { font-size: 1.1rem; font-weight: 600; }
.fs-saldo { font-size: 1.25rem; }
.fs-plus  { color: #1e8a4a; }
.fs-minus { color: #c0392b; }

/* ── TOTP Login ──────────────────────────────────────── */
.totp-input-wrap {
  display: flex;
  justify-content: center;
  margin: 20px 0 8px;
}
.totp-input {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-align: center;
  width: 220px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
}
.totp-input:focus {
  border-color: var(--primary);
  outline: none;
}
.totp-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ── TOTP Setup Screen ───────────────────────────────── */
.totp-setup-wrap {
  padding: 20px;
  max-width: 360px;
  margin: 0 auto;
  text-align: center;
}
.totp-setup-text {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 8px;
}
.totp-setup-apps {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.totp-qr-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
  margin-bottom: 8px;
}
.totp-qr-img {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.totp-success-icon {
  font-size: 3rem;
  color: #1e8a4a;
  margin-bottom: 16px;
}
.btn-primary-full {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-secondary-full {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ── TOTP Setup Button (Topbar) ─────────────────────── */
.totp-setup-topbar-btn {
  background: rgba(93,107,181,0.12);
  border: 1px solid rgba(93,107,181,0.3);
  color: var(--primary);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1rem;
  cursor: pointer;
  margin-right: 4px;
}

/* ── TOTP Secret (manuelle Eingabe) ─────────────────── */
.totp-secret-wrap {
  margin: 12px 0 4px;
  text-align: center;
}
.totp-secret-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.totp-secret-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
}
.totp-secret-box code {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  word-break: break-all;
  color: var(--primary);
}
.totp-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-muted);
  padding: 2px 4px;
  border-radius: 4px;
  flex-shrink: 0;
}
.totp-copy-btn:hover { color: var(--primary); }

/* ── Mein Bericht ────────────────────────────────── */
.mb-bericht-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 16px 12px;
}
.mb-preset-btn {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 6px 12px;
  cursor: pointer;
}
.mb-preset-btn:active { background: var(--bg3); color: var(--text); }
.mb-gesamt-card {
  margin: 0 16px 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.mb-gc-row { display: flex; gap: 0; }
.mb-gc-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border-right: 1px solid var(--border);
  padding: 0 8px;
}
.mb-gc-item:last-child { border-right: none; }
.mb-gc-val { font-size: 1.25rem; font-weight: 700; }
.mb-gc-lbl { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; text-align: center; }
.mb-plus  { color: var(--success); }
.mb-minus { color: var(--danger); }
.mb-download-row {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
}
.mb-tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.mb-tabelle th {
  background: var(--bg3);
  padding: 6px 10px;
  text-align: left;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.mb-tabelle td { padding: 6px 10px; border-bottom: 1px solid var(--border); }

/* ── Korrektur-Dialog ────────────────────────────── */
.korrektur-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.korrektur-overlay.hidden { display: none; }
.korrektur-dialog {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  width: 100%;
  max-width: 380px;
}
.korrektur-icon  { font-size: 2.5rem; text-align: center; margin-bottom: 8px; }
.korrektur-title { font-size: 1.15rem; font-weight: 700; text-align: center; margin-bottom: 10px; }
.korrektur-text  { font-size: 0.9rem; color: var(--text-muted); text-align: center; margin-bottom: 20px; line-height: 1.5; }
.korrektur-text strong { color: var(--text); }

/* ── Datenschutz-Modal ───────────────────────────── */
.datenschutz-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000; padding: 16px;
}
.datenschutz-overlay.hidden { display: none; }
.datenschutz-dialog {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  width: 100%; max-width: 420px;
  max-height: 90vh; overflow-y: auto;
}
.datenschutz-icon  { font-size: 2rem; text-align: center; margin-bottom: 8px; }
.datenschutz-title { font-size: 1.1rem; font-weight: 700; text-align: center; margin-bottom: 14px; }
.datenschutz-text  {
  font-size: 0.82rem; color: var(--text-muted); line-height: 1.6;
  white-space: pre-wrap; background: var(--bg3);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 12px; margin-bottom: 16px; max-height: 40vh; overflow-y: auto;
}
.datenschutz-accept-wrap  { margin-top: 12px; }
.datenschutz-checkbox-label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.88rem; cursor: pointer; margin-bottom: 14px; line-height: 1.4;
}
.datenschutz-checkbox-label input { margin-top: 2px; flex-shrink: 0; }
.datenschutz-akzeptiert-info {
  font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 10px;
}

/* ── Inaktivitäts-Warnung ────────────────────────── */
.inaktiv-warnung {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--warning);
  color: #000;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  padding: 10px 16px;
  z-index: 1500;
  animation: warnung-pulse 1.5s ease-in-out infinite;
}
.inaktiv-warnung.hidden { display: none; }
@keyframes warnung-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}

/* ── Gleitzeitkonto ──────────────────────────────── */
.gleitzeit-card {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px; margin: 0 16px 12px;
}
.gleitzeit-label { font-size: 0.88rem; color: var(--text-muted); }
.gleitzeit-saldo { font-size: 1.1rem; font-weight: 700; }
.gz-plus  { color: var(--success); }
.gz-minus { color: var(--danger); }

/* ── Urlaub-Benachrichtigung ────────────────────── */
.notif-badge {
  display: inline-block; width: 8px; height: 8px;
  background: var(--danger); border-radius: 50%;
  vertical-align: top; margin-left: 2px;
}
.notif-badge.hidden { display: none; }
.urlaub-benachrichtigung { margin: 0 16px 12px; }
.urlaub-notif-item {
  padding: 10px 14px; border-radius: 8px; font-size: 0.88rem;
  margin-bottom: 8px; line-height: 1.4;
}
.urlaub-notif-genehmigt { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: var(--success); }
.urlaub-notif-abgelehnt { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--danger); }

/* ── Pausenblock ───────────────────────────────── */
.pause-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 4px;
}
.pause-block-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.pause-block .row-2 { margin-bottom: 8px; }
.pause2-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  padding: 4px 0;
}
.pause2-toggle-label input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}
#manuell-pause2-wrap, #edit-pause2-wrap, #aus-pause2-wrap, #korrektur-pause2-wrap {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* ── Passkey ──────────────────────────────────────────── */
.passkey-or {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  position: relative;
}
.passkey-or::before, .passkey-or::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--border);
  vertical-align: middle;
  margin: 0 8px;
}
.btn-passkey {
  display: block;
  width: 100%;
  padding: 13px 16px;
  background: var(--surface);
  border: 1.5px solid var(--primary);
  border-radius: 12px;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-passkey:active { background: var(--primary-muted, #1a2a3a); }
