
/* Bootstrap Farbvariablen vollständig überschreiben */
:root {
  --bs-primary: #b30000 !important;
  --bs-primary-rgb: 179, 0, 0 !important;
}

/* Farben & Basis-Styles */
body { background: #f8f9fa; color: #333; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
h2 { color: #b30000; font-weight: 600; }
.navbar, .btn-primary, .btn-danger, .btn-warning, .btn-info, .btn-secondary {
  background-color: #b30000 !important;
  border-color: #b30000 !important;
  color: #fff !important;
}
.btn-primary:hover, .btn-info:hover, .btn-secondary:hover {
  background-color: #800000 !important;
}

/* Auch Outline-Buttons einfärben */
.btn-outline-primary, .btn-outline-info, .btn-outline-secondary {
  background-color: #b30000 !important;
  border-color: #b30000 !important;
  color: #fff !important;
}
.btn-outline-primary:hover, .btn-outline-info:hover, .btn-outline-secondary:hover {
  background-color: #800000 !important;
  border-color: #800000 !important;
  color: #fff !important;
}

/* Auch Success Buttons einfärben */
.btn-success, .btn-outline-success {
  background-color: #b30000 !important;
  border-color: #b30000 !important;
  color: #fff !important;
}
.btn-success:hover, .btn-outline-success:hover {
  background-color: #800000 !important;
  border-color: #800000 !important;
  color: #fff !important;
}

/* Auch btn-link Buttons einfärben */
.btn-link {
  color: #b30000 !important;
}
.btn-link:hover {
  color: #800000 !important;
}

/* Auch outline-secondary Buttons noch sauber einfärben */
.btn-outline-secondary {
  background-color: #b30000 !important;
  border-color: #b30000 !important;
  color: #fff !important;
}
.btn-outline-secondary:hover {
  background-color: #800000 !important;
  border-color: #800000 !important;
  color: #fff !important;
}

/* Angepasste Farben für Badges und History */
.text-primary, .border-primary {
  color: #b30000 !important;
  border-color: #b30000 !important;
}
.badge-primary {
  background-color: #f2dede !important;
  color: #b30000 !important;
}
.bg-primary, .list-group-item-primary {
  background-color: #fff4f4 !important;
  color: #b30000 !important;
}
.pagination .active a, .pagination .active span {
  background-color: #b30000 !important;
  border-color: #b30000 !important;
  color: #fff !important;
}

.table th { background-color: #f2dede; }
.table td { vertical-align: middle; }

/* Kreise der eingestempelten Benutzer */
.active-user-circle {
  background-color: #b30000 !important;
  border-color: #800000 !important;
  color: #fff !important;
}

/* Allgemeine Kreise anpassen (z.B. Bootstrap rounded-circle) */
.rounded-circle {
  background-color: #b30000 !important;
  border: 2px solid #800000 !important;
  color: #fff !important;
}

/* History Design Optimierungen */
.history-header {
  background-color: #fff4f4;
  border-bottom: 2px solid #b30000;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 20px;
}

.table-history {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Mobile Optimierungen */
@media (max-width: 768px) {
  body { padding: 10px; }
  h2 { font-size: 1.5rem; }
  .container { max-width: 100% !important; padding: 0 15px; }
  form { max-width: 400px; margin: auto; }

  .timer-container {
    width: 90vw !important;
    height: 90vw !important;
    max-width: 400px;
    max-height: 400px;
    margin: auto;
  }
  #circleTimer {
    width: 100% !important;
    height: 100% !important;
  }
  #circleTimer + div { font-size: 2rem; }
  #timerDisplay { font-size: 2.5rem !important; }
}

/* Touch-Optimierungen */
button, .btn {
  padding: 0.75rem 1.25rem;
  font-size: 1.1rem;
}

/* Tabellen Scrollbar für Mobile */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Formulare mittig begrenzen */
form {
  max-width: 600px;
  margin: auto;
}

/* Einheitliche Schriftgröße für Inputs */
input, select, textarea {
  font-size: 1rem;
}

/* Karten-Stil für Detailseiten */
.card {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 10px;
  background-color: #ffffff;
}

/* DataTables mobile-freundlich */
.dataTables_wrapper {
  width: 100% !important;
  overflow-x: auto;
}

/* Modals */
.modal-content {
  border-radius: 1rem;
}
