/* =============================================================================
   Reportify – Admin Center Stylesheet
   Dark + Light Theme · Konsistent mit dem Meldetool
   ============================================================================= */

/* ----------- Theme Variables --------------------------------------------- */
:root,
:root[data-theme="dark"] {
  --bg: #080c16;
  --bg-elev: #0e1323;
  --bg-elev-2: #141a2e;
  --bg-elev-3: #1a2240;
  --border: #222b45;
  --text: #e6e9f2;
  --text-dim: #8892aa;
  --text-muted: #5a6278;
  --accent: #6c8cff;
  --accent-hover: #8aa4ff;
  --accent-soft: rgba(108, 140, 255, 0.1);
  --success: #4ade80;
  --success-soft: rgba(74, 222, 128, 0.08);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.08);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.08);
  --info: #38bdf8;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --sidebar-w: 240px;

  /* Status-Farben */
  --status-pending: #fbbf24;
  --status-in-review: #38bdf8;
  --status-resolved: #4ade80;
  --status-closed: #6b7280;
}

:root[data-theme="light"] {
  --bg: #f0f3fa;
  --bg-elev: #ffffff;
  --bg-elev-2: #f5f7ff;
  --bg-elev-3: #eaeefa;
  --border: #dde2ed;
  --text: #1a2030;
  --text-dim: #5a6478;
  --text-muted: #9aa0b0;
  --accent: #4f6cd6;
  --accent-hover: #3f5cc6;
  --accent-soft: rgba(79, 108, 214, 0.08);
  --success: #22a05a;
  --success-soft: rgba(34, 160, 90, 0.08);
  --danger: #d04444;
  --danger-soft: rgba(208, 68, 68, 0.08);
  --warning: #c87000;
  --warning-soft: rgba(200, 112, 0, 0.08);
  --info: #0077aa;
  --shadow: 0 4px 16px rgba(20, 30, 60, 0.08);
  --shadow-sm: 0 1px 4px rgba(20, 30, 60, 0.06);
}

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

html, body { height: 100%; overflow: hidden; }

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}

/* ----------- Layout ------------------------------------------------------ */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: 100vh;
  height: 100vh;
}

/* ----------- Sidebar ----------------------------------------------------- */
.sidebar {
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.sidebar-header {
  padding: 20px 16px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #4f6cd6);
  display: grid; place-items: center;
  color: white; font-weight: 800;
  font-size: 0.8rem; letter-spacing: -0.5px;
  flex-shrink: 0;
}

.sidebar-brand h1 {
  font-size: 0.88rem; font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.sidebar-brand span {
  font-size: 0.68rem; color: var(--text-dim);
  font-weight: 500; letter-spacing: 0.03em;
}

/* Nav */
.sidebar-nav {
  flex: 1;
  padding: 10px 8px;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
  padding: 8px 8px 4px;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-dim);
  font-size: 0.85rem; font-weight: 500;
  transition: background 0.12s, color 0.12s;
  user-select: none;
  border: none; background: none; width: 100%; text-align: left;
}

.nav-item:hover { background: var(--bg-elev-2); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); }

.nav-item .icon { font-size: 0.95rem; width: 18px; text-align: center; flex-shrink: 0; }

.nav-badge {
  margin-left: auto;
  font-size: 0.68rem; font-weight: 700;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  padding: 1px 7px;
  min-width: 20px; text-align: center;
}

.nav-badge.danger { background: var(--danger); }

/* Sidebar Footer */
.sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid var(--border);
}

/* ----------- Main Area --------------------------------------------------- */
.main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

/* Topbar */
.topbar {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  height: 52px;
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}

.topbar-title {
  font-size: 0.92rem; font-weight: 700;
  color: var(--text);
}

.topbar-spacer { flex: 1; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }

/* Search */
.search-wrap {
  position: relative;
  display: flex; align-items: center;
}

.search-wrap .search-icon {
  position: absolute; left: 10px;
  color: var(--text-muted); font-size: 0.85rem; pointer-events: none;
}

.topbar-search {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  padding: 7px 12px 7px 30px;
  width: 200px;
  transition: border-color 0.15s, width 0.2s;
}

.topbar-search:focus {
  outline: none; border-color: var(--accent);
  width: 260px;
}

/* Icon Button */
.icon-btn {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  cursor: pointer;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  font-size: 0.9rem;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ----------- Content ----------------------------------------------------- */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* Pages */
.page { display: none; }
.page.active { display: block; animation: fadeUp 0.2s ease-out; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ----------- Stats Cards ------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.stat-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }

.stat-card .stat-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-card .stat-value {
  font-size: 1.8rem; font-weight: 800;
  color: var(--text); line-height: 1;
}

.stat-card .stat-sub {
  font-size: 0.72rem; color: var(--text-dim);
  margin-top: 6px;
}

.stat-card .stat-icon {
  position: absolute; top: 12px; right: 14px;
  font-size: 1.4rem; opacity: 0.2;
}

.stat-card.accent-green { border-left: 3px solid var(--success); }
.stat-card.accent-yellow { border-left: 3px solid var(--warning); }
.stat-card.accent-blue { border-left: 3px solid var(--info); }
.stat-card.accent-red { border-left: 3px solid var(--danger); }

/* ----------- Section Header ---------------------------------------------- */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 0.9rem; font-weight: 700;
  color: var(--text);
}

/* ----------- Table ------------------------------------------------------- */
.table-wrap {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.filter-chip {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem; font-weight: 600; color: var(--text-dim);
  cursor: pointer; transition: all 0.12s;
}

.filter-chip:hover,
.filter-chip.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

.table-spacer { flex: 1; }

table {
  width: 100%; border-collapse: collapse;
}

thead th {
  padding: 9px 14px;
  text-align: left;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
  background: var(--bg-elev-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: color 0.12s;
}

thead th:hover { color: var(--accent); }
thead th.sorted { color: var(--accent); }

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.08s;
  cursor: pointer;
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-elev-2); }

td {
  padding: 10px 14px;
  font-size: 0.83rem;
  color: var(--text);
  white-space: nowrap;
}

td.wrap { white-space: normal; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }

.ref-code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
}

/* ----------- Status Badge ------------------------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.72rem; font-weight: 700;
  white-space: nowrap;
}

.badge::before {
  content: ""; width: 5px; height: 5px;
  border-radius: 50%; background: currentColor;
  flex-shrink: 0;
}

.badge-pending  { background: var(--warning-soft); color: var(--status-pending); }
.badge-review   { background: rgba(56,189,248,0.1); color: var(--status-in-review); }
.badge-resolved { background: var(--success-soft); color: var(--status-resolved); }
.badge-closed   { background: rgba(107,114,128,0.1); color: var(--status-closed); }

/* ----------- Category Tag ------------------------------------------------ */
.cat-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem; font-weight: 600;
  background: var(--bg-elev-3);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* ----------- Pagination -------------------------------------------------- */
.pagination {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 6px; padding: 10px 14px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem; color: var(--text-dim);
}

.page-btn {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-dim);
  cursor: pointer;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 600;
  transition: all 0.12s;
}

.page-btn:hover,
.page-btn.active { background: var(--accent); color: white; border-color: var(--accent); }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ----------- Detail Drawer ----------------------------------------------- */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 50;
  display: none; opacity: 0;
  transition: opacity 0.2s;
  backdrop-filter: blur(2px);
}

.drawer-overlay.open { display: block; opacity: 1; }

.drawer {
  position: fixed; top: 0; right: -500px; bottom: 0;
  width: 480px;
  background: var(--bg-elev);
  border-left: 1px solid var(--border);
  z-index: 51;
  overflow-y: auto;
  transition: right 0.25s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.3);
}

.drawer.open { right: 0; }

.drawer-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  position: sticky; top: 0;
  background: var(--bg-elev);
  z-index: 1;
}

.drawer-header h3 { font-size: 0.92rem; font-weight: 700; flex: 1; }

.drawer-body { padding: 18px; }

.drawer-section { margin-bottom: 20px; }

.drawer-section h4 {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 10px;
}

.meta-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 14px;
  font-size: 0.83rem;
}

.meta-grid dt { color: var(--text-dim); font-weight: 600; }
.meta-grid dd { color: var(--text); word-break: break-word; }

.desc-box {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.83rem; color: var(--text-dim);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Gallery */
.att-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}

.att-thumb {
  aspect-ratio: 1/1;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.att-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.15s;
}

.att-thumb:hover img { transform: scale(1.05); }

.att-thumb .att-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.6);
  color: white; font-size: 0.62rem;
  padding: 3px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transition: opacity 0.15s;
}

.att-thumb:hover .att-label { opacity: 1; }

/* Status Change */
.status-select {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit; font-size: 0.83rem;
  padding: 7px 10px; width: 100%;
  margin-bottom: 8px;
}

.status-select:focus { outline: none; border-color: var(--accent); }

.drawer-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ----------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit; font-size: 0.83rem; font-weight: 600;
  cursor: pointer; transition: all 0.12s;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }

.btn-secondary {
  background: var(--bg-elev-2); color: var(--text); border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }

.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.btn-danger:hover:not(:disabled) { background: var(--danger); color: white; }

.btn-success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.btn-success:hover:not(:disabled) { background: var(--success); color: white; }

.btn-sm { padding: 5px 10px; font-size: 0.76rem; }

/* ----------- Lightbox ---------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
  backdrop-filter: blur(4px);
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.1); color: white; border: none;
  border-radius: 50%; width: 40px; height: 40px;
  font-size: 1.3rem; cursor: pointer;
  transition: background 0.12s;
}

.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* ----------- Empty State ------------------------------------------------- */
.empty-state {
  text-align: center; padding: 48px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state p { font-size: 0.85rem; }

/* ----------- Loading Spinner --------------------------------------------- */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-row td {
  text-align: center; padding: 40px;
  color: var(--text-muted);
}

/* ----------- Toast ------------------------------------------------------- */
.toast-container {
  position: fixed; bottom: 20px; right: 20px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 200;
}

.toast {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px;
  min-width: 220px; max-width: 320px;
  animation: slideIn 0.2s ease-out;
  border-left: 3px solid var(--accent);
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }

@keyframes slideIn {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ----------- Charts placeholder ------------------------------------------ */
.chart-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.chart-card h3 {
  font-size: 0.82rem; font-weight: 700;
  color: var(--text); margin-bottom: 12px;
}

.bar-chart { display: flex; flex-direction: column; gap: 8px; }

.bar-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem;
}

.bar-row .bar-label { width: 110px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bar-track {
  flex: 1; height: 8px;
  background: var(--bg-elev-2);
  border-radius: 4px; overflow: hidden;
}

.bar-fill {
  height: 100%; border-radius: 4px;
  background: var(--accent);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-row .bar-count { width: 28px; text-align: right; color: var(--text-dim); font-weight: 600; }

/* ----------- Login Screen ------------------------------------------------ */
.login-screen {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 500;
}

.login-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 360px;
  box-shadow: var(--shadow);
  text-align: center;
}

.login-logo {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #4f6cd6);
  display: grid; place-items: center;
  color: white; font-weight: 800; font-size: 1rem;
  margin: 0 auto 16px;
}

.login-card h2 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.login-card .sub { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 24px; }

.login-field {
  margin-bottom: 12px; text-align: left;
}

.login-field label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--text-dim); margin-bottom: 5px;
}

.login-field input {
  width: 100%;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit; font-size: 0.88rem;
  padding: 9px 12px;
  transition: border-color 0.15s;
}

.login-field input:focus { outline: none; border-color: var(--accent); }

.login-error {
  font-size: 0.78rem; color: var(--danger); margin-bottom: 10px;
  min-height: 18px;
}

/* ----------- Responsive -------------------------------------------------- */
@media (max-width: 768px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .drawer { width: 100%; }
}

/* =============================================================================
   Neue Felder: Review-Formular, Severity, Status-Pipeline
   ============================================================================= */

/* Severity Badge in Tabelle */
.sev-dot {
  font-size: 0.85rem;
  cursor: default;
}

/* Drawer Checkbox */
.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  padding: 6px 0;
}
.checkbox input { margin-top: 2px; accent-color: var(--accent); }

/* Review-Formular Input/Select einheitlich */
.drawer-body input[type="text"],
.drawer-body input[type="number"],
.drawer-body textarea {
  width: 100%;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.83rem;
  padding: 7px 10px;
  transition: border-color 0.15s;
}

.drawer-body input[type="text"]:focus,
.drawer-body input[type="number"]:focus,
.drawer-body textarea:focus,
.drawer-body select:focus {
  outline: none;
  border-color: var(--accent);
}

.drawer-body textarea {
  resize: vertical;
  min-height: 60px;
}

/* Field Label im Drawer */
.drawer-field-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

/* Status-Pipeline Badge-Farben */
.badge-neu       { background: rgba(108,140,255,0.1); color: #6c8cff; }
.badge-bestaetigt { background: rgba(56,189,248,0.1);  color: #38bdf8; }
.badge-in_bearbeitung { background: rgba(56,189,248,0.1); color: #38bdf8; }
.badge-weitergeleitet { background: rgba(74,222,128,0.1); color: #4ade80; }
.badge-abgeschlossen  { background: rgba(74,222,128,0.1); color: #4ade80; }
.badge-abgelehnt      { background: rgba(107,114,128,0.1); color: #6b7280; }

/* Export-Bereich Datums-Inputs */
input[type="date"] {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  padding: 6px 10px;
  transition: border-color 0.15s;
}
input[type="date"]:focus { outline: none; border-color: var(--accent); }

/* Stat-Card hover (Kacheln klickbar) */
.stat-card {
  transition: border-color 0.15s, box-shadow 0.15s, opacity 0.1s;
}

/* Wiederholungstäter-Warnung im Meta */
.repeat-warning {
  color: var(--warning);
  font-weight: 600;
  font-size: 0.82rem;
}

/* Altersfeld im Meldeformular (index.html) */
input[type="number"]#reporter_age {
  width: 120px;
}
