:root { --fc-red: #b71c1c; }
body { padding-bottom: env(safe-area-inset-bottom); }
.app-topbar { background: var(--bs-body-bg); border-bottom: 1px solid var(--bs-border-color); padding-top: calc(.4rem + env(safe-area-inset-top)); }
.app-topbar .navbar-brand { color: var(--fc-red); }
[data-bs-theme="dark"] .app-topbar .navbar-brand { color: #ef7777; }
.app-topbar .nav-link.active { color: var(--fc-red); }
[data-bs-theme="dark"] .app-topbar .nav-link.active { color: #ef7777; }

/* Navigation unten auf dem Handy */
@media (max-width: 767.98px) {
  body.has-bottom-nav { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; background: var(--bs-body-bg);
  border-top: 1px solid var(--bs-border-color); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px;
  font-size: .72rem; color: var(--bs-secondary-color); text-decoration: none; min-height: 56px; justify-content: center; }
.bottom-nav a i { font-size: 1.3rem; }
.bottom-nav a.active { color: var(--fc-red); font-weight: 600; }
[data-bs-theme="dark"] .bottom-nav a.active { color: #ef7777; }

/* Fahrzeug-Kacheln */
.vehicle-tile { border-left: 6px solid var(--bs-border-color); transition: transform .1s; }
.vehicle-tile:hover { transform: translateY(-1px); }
.vehicle-tile.light-success { border-left-color: var(--bs-success); }
.vehicle-tile.light-warning { border-left-color: var(--bs-warning); }
.vehicle-tile.light-danger { border-left-color: var(--bs-danger); }
.light-dot { width: .8rem; height: .8rem; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.stretched-link-wrap { position: relative; }

/* Mängelliste */
.defect-item .defect-meta { font-size: .8rem; }
.badge-status-gemeldet { background: var(--bs-danger-bg-subtle); color: var(--bs-danger-text-emphasis); }
.badge-status-in_arbeit { background: var(--bs-warning-bg-subtle); color: var(--bs-warning-text-emphasis); }
.badge-status-erledigt { background: var(--bs-success-bg-subtle); color: var(--bs-success-text-emphasis); }
.badge-status-kein_mangel { background: var(--bs-secondary-bg-subtle); color: var(--bs-secondary-text-emphasis); }
.badge-source { background: var(--bs-info-bg-subtle); color: var(--bs-info-text-emphasis); }

/* Prüfungsdetail */
.result-ok { color: var(--bs-success-text-emphasis); }
.result-not_ok, .result-yes { color: var(--bs-danger-text-emphasis); font-weight: 600; }
.result-not_checked { color: var(--bs-warning-text-emphasis); }
.result-row td { vertical-align: top; }
.out-of-range { background: var(--bs-danger-bg-subtle) !important; }

.chart-box { position: relative; height: 260px; }
.admin-sidebar { width: 240px; flex: 0 0 240px; min-height: calc(100vh - 56px); }
.admin-main { min-width: 0; }
.table-sm td, .table-sm th { white-space: normal; }
.text-pre { white-space: pre-line; }
.min-w-0 { min-width: 0; }
.btn-touch { min-height: 40px; }
