
/* ── Base ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  background: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #0f172a;
  min-height: 100vh;
}

/* ── Wrapper ───────────────────────────────────────────────────────────────── */
.content-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 28px 16px 60px;
}

.content-wrapper-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 16px 60px;
}

@media (max-width: 576px) {
  .content-wrapper,
  .content-wrapper-wide {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  background: #fff;
}

.card-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 12px 12px 0 0 !important;
  padding: 12px 16px;
}

.card-header button {
  font-weight: 600;
  font-size: 1rem;
  color: #0d6efd;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
}
.card-header button:hover { text-decoration: underline; }

.card-body {
  background: #fff;
  border-radius: 0 0 12px 12px;
}

.card-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-radius: 0 0 12px 12px !important;
}

/* ── Tables ────────────────────────────────────────────────────────────────── */
.table {
  color: #1e293b;
}
.table thead th {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b !important;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.table thead th a,
.table thead th a:hover,
.table thead th a:visited {
  color: #64748b;
  text-decoration: none;
}
.table thead th a:hover { color: #2563eb; }
.table td, .table th {
  border-color: #f1f5f9;
  vertical-align: middle;
}
.table-hover tbody tr:hover > * ,
.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: #f8fafc;
  --bs-table-accent-bg: #f8fafc;
  --bs-table-bg-state: #f8fafc;
}
/* Card als Tabellen-Wrapper */
.table-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  overflow: hidden;
}
.table-card .table { margin-bottom: 0; }

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.form-label {
  margin-bottom: 0.3rem;
  font-weight: 500;
  font-size: 0.88rem;
  color: #374151;
}

.form-control, .form-select {
  border-color: #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #0f172a;
}
.form-control:focus, .form-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.form-group + .form-group,
.mb-3 + .mb-3,
.mb-4 + .mb-4 {
  margin-top: 1.25rem !important;
}
form > div:last-of-type { margin-bottom: 1.5rem; }
form .btn + .btn { margin-left: 0.5rem; }
form .btn { margin-bottom: 0.5rem; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ── Alerts ────────────────────────────────────────────────────────────────── */
.alert { border-radius: 10px; border: none; }
.alert-success { background: #f0fdf4; color: #15803d; }
.alert-warning { background: #fffbeb; color: #92400e; }
.alert-danger  { background: #fef2f2; color: #991b1b; }
.alert-info    { background: #eff6ff; color: #1d4ed8; }

/* ── List Group ────────────────────────────────────────────────────────────── */
.list-group-item {
  border-color: #f1f5f9;
  color: #374151;
  font-size: 0.9rem;
  padding: 10px 16px;
}
.list-group-item a {
  color: #374151;
  text-decoration: none;
}
.list-group-item a:hover { color: #2563eb; }

/* ── Badges ────────────────────────────────────────────────────────────────── */
.badge { border-radius: 6px; font-weight: 500; }

/* ── FullCalendar ──────────────────────────────────────────────────────────── */
.fc-button-primary {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
}
.fc-button-primary:hover {
  background-color: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}
.fc-button-primary:not(.fc-button-active) {
  background-color: #fff !important;
  border-color: #d1d5db !important;
  color: #374151 !important;
}
.fc-button-primary:not(.fc-button-active):hover {
  background-color: #f1f5f9 !important;
}
.fc-button-active {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
  color: #fff !important;
}
.fc-today-button {
  background-color: #64748b !important;
  border-color: #64748b !important;
  color: #fff !important;
}
.fc-daygrid-day.fc-day-today {
  background-color: #eff6ff !important;
}
