
/* Einsatz-Manager – globaler Stil passend zur Startseite */
:root {
  --dark-bg: #0a0c10;
  --panel-bg: #161b22;
  --card-bg: #1c1f26;
  --card-bg-soft: #20242c;
  --accent-red: #ff4d4d;
  --accent-red-dark: #e13f3f;
  --text-main: #e6edf3;
  --text-muted: #a7b0bd;
  --border: #30363d;
  --border-soft: rgba(255,255,255,.08);
  --shadow-soft: 0 18px 45px rgba(0,0,0,.28);
}

html,
body {
  min-height: 100%;
}

html { background: var(--dark-bg); }
body {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top left, rgba(255,77,77,.055), transparent 32rem),
    linear-gradient(180deg, #0a0c10 0%, #0d1015 100%);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

main .container { max-width: 1180px; }

/* Navigation */
.navbar {
  background: rgba(22, 27, 34, .94) !important;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}
.navbar-brand {
  font-weight: 800;
  color: #fff !important;
  letter-spacing: .2px;
}
.nav-link {
  color: #d6dde6 !important;
  font-weight: 500;
  border-radius: 999px;
  padding-left: .85rem !important;
  padding-right: .85rem !important;
}
.nav-link:hover,
.nav-link:focus {
  color: #fff !important;
  background: rgba(255,77,77,.11);
}
.user-tag { color: var(--text-muted); font-size: .9rem; }
.dropdown-menu {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: .5rem;
}
.dropdown-item {
  color: var(--text-main) !important;
  border-radius: 10px;
  padding: .65rem .8rem;
}
.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(255,77,77,.16);
  color: #fff !important;
}
.dropdown-divider { border-top-color: var(--border); }
.navbar-toggler { border-color: var(--border); }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(255,77,77,.18); }

/* Grundtypografie */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6,
strong, label, .form-label { color: #fff; }
p, li, td { color: var(--text-main); }
.text-muted, .small.text-muted { color: var(--text-muted) !important; opacity: 1 !important; }
a { color: #ff7777; }
a:hover { color: #ff9a9a; }

/* Karten / Panels */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
  color: var(--text-main);
  overflow: hidden;
}
.card-header {
  background: #161b22 !important;
  border-bottom: 1px solid var(--border);
  color: #fff !important;
  padding: 1rem 1.15rem;
}
.card-header.bg-primary {
  background: linear-gradient(135deg, rgba(255,77,77,.22), rgba(255,77,77,.09)) !important;
  border-bottom-color: rgba(255,77,77,.36);
}
.card-header.bg-white {
  background: #161b22 !important;
  color: #fff !important;
}
.card-body { color: var(--text-main); }
.shadow-sm { box-shadow: 0 14px 34px rgba(0,0,0,.24) !important; }

/* Dashboard-Zahlen */
.card .h3, .card .h4, .card .display-6 {
  color: #fff;
  font-weight: 800;
}
.row.g-3 > [class*="col-"] > .card .card-body:first-child {
  position: relative;
}
.row.g-3 > [class*="col-"] > .card .card-body:first-child::after {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 72px;
  height: 72px;
  background: radial-gradient(circle, rgba(255,77,77,.15), transparent 65%);
  pointer-events: none;
}

/* Formulare */
.form-control,
.form-select,
textarea.form-control {
  background-color: #11161d;
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 14px;
  min-height: 44px;
}
.form-control:focus,
.form-select:focus {
  background-color: #11161d;
  border-color: var(--accent-red);
  color: #fff;
  box-shadow: 0 0 0 .2rem rgba(255,77,77,.16);
}
.form-control::placeholder { color: #6f7a86; }
.form-select option { background: #11161d; color: #fff; }

/* Buttons */
.btn { border-radius: 999px; font-weight: 650; }
.btn-primary {
  background: var(--accent-red) !important;
  border-color: var(--accent-red) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(255,77,77,.18);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-red-dark) !important;
  border-color: var(--accent-red-dark) !important;
}
.btn-outline-light {
  border-color: rgba(255,255,255,.45);
  color: #fff;
}
.btn-outline-light:hover { background: #fff; color: #0a0c10; }
.btn-outline-danger {
  border-color: rgba(255,77,77,.65);
  color: #ff7777;
}
.btn-outline-danger:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
}
.btn-round { border-radius: 999px; }

/* Tabellen */
.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-main);
  --bs-table-border-color: var(--border);
  --bs-table-striped-color: var(--text-main);
  color: var(--text-main);
  margin-bottom: 0;
}
.table thead th {
  background: #161b22 !important;
  color: #fff;
  border-bottom: 1px solid var(--border);
  font-size: .82rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.table tbody tr { border-color: var(--border); }
.table tbody tr:hover { background: rgba(255,255,255,.035); }
.table td, .table th { padding: .9rem .85rem; vertical-align: middle; }
.table-responsive { border-radius: 16px; }

/* Badges / Alerts */
.badge.text-bg-primary,
.badge.bg-primary,
.badge-soft {
  background: rgba(255,77,77,.15) !important;
  border: 1px solid rgba(255,77,77,.35);
  color: #ffb0b0 !important;
}
.alert {
  border-radius: 16px;
  border: 1px solid var(--border);
}
.alert-danger {
  background: rgba(255,77,77,.12);
  border-color: rgba(255,77,77,.38);
  color: #ffd0d0;
}
.alert-success {
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.35);
  color: #bbf7d0;
}
.alert-info {
  background: rgba(56,189,248,.12);
  border-color: rgba(56,189,248,.32);
  color: #bae6fd;
}

/* Auth-Seiten und kleinere Formulare */
.row.justify-content-center .card,
.col-lg-5 .card,
.col-lg-7 .card,
.col-lg-6 .card {
  border-radius: 22px;
}

/* Footer */
footer {
  background: #161b22 !important;
  border-top: 1px solid var(--border) !important;
  color: var(--text-muted);
}

/* Chart-Flächen */
canvas { max-width: 100%; }

@media (max-width: 768px) {
  main { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
  .card { border-radius: 18px; }
  .card-header, .card-body { padding: 1rem; }
  .table td, .table th { white-space: nowrap; }
  .user-tag { display: block; margin-bottom: .75rem; }
}

/* Auth-Bereich: einheitlich, dunkel, ohne alte Bootstrap-Mischoptik */
.auth-shell {
  min-height: calc(100vh - 190px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0 3rem;
}
.auth-panel {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  background: linear-gradient(135deg, #161b22 0%, #0a0c10 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0,0,0,.34);
}
.auth-info {
  padding: 2.4rem;
  border-right: 1px solid var(--border);
  background:
    radial-gradient(circle at top left, rgba(255,77,77,.13), transparent 24rem),
    rgba(255,255,255,.015);
}
.auth-formarea { padding: 2.4rem; background: rgba(28,31,38,.68); }
.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--accent-red);
  background: rgba(255,77,77,.13);
  border: 1px solid rgba(255,77,77,.45);
  border-radius: 999px;
  padding: .45rem .75rem;
  font-size: .86rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.auth-title { font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 850; line-height: 1.05; margin-bottom: .9rem; }
.auth-copy { color: var(--text-muted); font-size: 1rem; max-width: 32rem; }
.auth-list { display: grid; gap: .75rem; margin-top: 1.6rem; padding: 0; list-style: none; }
.auth-list li {
  display: flex; gap: .65rem; align-items: flex-start;
  color: var(--text-main);
  padding: .75rem .85rem;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}
.auth-list li::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent-red); margin-top: .45rem; flex: 0 0 auto; box-shadow: 0 0 0 4px rgba(255,77,77,.12); }
.auth-box-title { font-weight: 800; margin-bottom: .35rem; }
.auth-box-subtitle { color: var(--text-muted); margin-bottom: 1.35rem; }
.auth-formarea .form-label { font-weight: 650; font-size: .92rem; }
.auth-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.auth-divider { height: 1px; background: var(--border); margin: 1.35rem 0; }
.auth-linkline { color: var(--text-muted); font-size: .95rem; }
.auth-status {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(135deg, #161b22 0%, #0a0c10 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2.2rem;
  box-shadow: 0 22px 60px rgba(0,0,0,.34);
}
.auth-status-icon {
  width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center;
  background: rgba(255,77,77,.13); color: var(--accent-red); font-size: 1.5rem; margin-bottom: 1rem;
}
.btn-outline-primary { border-color: rgba(255,77,77,.65); color: #ff7777; border-radius: 999px; font-weight: 650; }
.btn-outline-primary:hover { background: var(--accent-red); border-color: var(--accent-red); color: #fff; }
@media (max-width: 900px) {
  .auth-panel { grid-template-columns: 1fr; }
  .auth-info { border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 576px) {
  .auth-info, .auth-formarea, .auth-status { padding: 1.35rem; }
  .auth-panel, .auth-status { border-radius: 22px; }
}


main {
  flex: 1;
}
