/* Custom CSS fÃ¼r HiOrg-Server Buchungsportal */
/* Angepasst an das Design der Erste-Hilfe & Brandschutz Website */

/* ========================================
   ALLGEMEINE EINSTELLUNGEN
   ======================================== */

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: linear-gradient(to bottom right, #f9fafb, #f3f4f6) !important;
  margin: 0;
  padding: 20px;
}

/* Container */
#content,
.content,
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ========================================
   ÃœBERSCHRIFTEN
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  color: #111827;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  background: linear-gradient(to right, #dc2626, #ea580c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  color: #dc2626;
  border-bottom: 3px solid #dc2626;
  padding-bottom: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  color: #ea580c;
  margin-top: 1.5rem;
}

/* ========================================
   TABELLEN
   ======================================== */

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

thead {
  background: linear-gradient(to right, #dc2626, #ea580c);
  color: white;
}

thead th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s;
}

tbody tr:hover {
  background-color: #fef2f2;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody td {
  padding: 1rem;
  color: #374151;
}

/* Wechselnde Zeilenfarben */
tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

tbody tr:nth-child(even):hover {
  background-color: #fef2f2;
}

/* ========================================
   BUTTONS UND LINKS
   ======================================== */

a {
  color: #dc2626;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #b91c1c;
  text-decoration: underline;
}

button,
input[type="button"],
input[type="submit"],
.button,
.btn {
  background: linear-gradient(to right, #dc2626, #ea580c);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(220, 38, 38, 0.2);
  text-transform: none;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.button:hover,
.btn:hover {
  background: linear-gradient(to right, #b91c1c, #c2410c);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(220, 38, 38, 0.3);
}

button:active,
input[type="button"]:active,
input[type="submit"]:active {
  transform: translateY(0);
}

/* SekundÃ¤re Buttons */
.button-secondary,
.btn-secondary {
  background: white;
  color: #dc2626;
  border: 2px solid #dc2626;
}

.button-secondary:hover,
.btn-secondary:hover {
  background: #fef2f2;
  border-color: #b91c1c;
}

/* ========================================
   FORMULARE
   ======================================== */

form {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 12px;
  margin: 1.5rem 0;
}

label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s;
  background: white;
  margin-bottom: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Checkbox und Radio */
input[type="checkbox"],
input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  cursor: pointer;
  accent-color: #dc2626;
}

/* ========================================
   KURS-LISTE
   ======================================== */

.course-item,
.kurs-item {
  background: white;
  border-left: 4px solid #dc2626;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.course-item:hover,
.kurs-item:hover {
  box-shadow: 0 8px 16px rgba(220, 38, 38, 0.15);
  transform: translateX(4px);
}

.course-title,
.kurs-titel {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

.course-date,
.kurs-datum {
  color: #dc2626;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.course-info,
.kurs-info {
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.course-location,
.kurs-ort {
  color: #374151;
  font-weight: 500;
}

/* VerfÃ¼gbarkeit */
.available,
.verfuegbar {
  color: #16a34a;
  font-weight: 600;
}

.limited,
.wenige-plaetze {
  color: #ea580c;
  font-weight: 600;
}

.full,
.ausgebucht {
  color: #dc2626;
  font-weight: 600;
}

/* ========================================
   BADGES UND LABELS
   ======================================== */

.badge,
.label,
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.badge-red,
.label-erste-hilfe {
  background: linear-gradient(to right, #fee2e2, #fed7aa);
  color: #dc2626;
}

.badge-blue,
.label-brandschutz {
  background: linear-gradient(to right, #dbeafe, #bfdbfe);
  color: #2563eb;
}

.badge-green,
.label-success {
  background: #dcfce7;
  color: #16a34a;
}

/* ========================================
   WARNUNGEN UND HINWEISE
   ======================================== */

.alert,
.hinweis,
.warnung {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  border-left: 4px solid;
}

.alert-info,
.hinweis {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #1e40af;
}

.alert-warning,
.warnung {
  background: #fed7aa;
  border-color: #ea580c;
  color: #9a3412;
}

.alert-error,
.fehler {
  background: #fee2e2;
  border-color: #dc2626;
  color: #991b1b;
}

.alert-success,
.erfolg {
  background: #dcfce7;
  border-color: #16a34a;
  color: #166534;
}

/* ========================================
   LOADING UND STATUS
   ======================================== */

.loading,
.laden {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
}

.spinner {
  border: 4px solid #f3f4f6;
  border-top: 4px solid #dc2626;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.pagination a,
.pagination span {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: white;
  border: 2px solid #e5e7eb;
  color: #374151;
  transition: all 0.2s;
}

.pagination a:hover {
  background: #fef2f2;
  border-color: #dc2626;
  color: #dc2626;
  text-decoration: none;
}

.pagination .active {
  background: linear-gradient(to right, #dc2626, #ea580c);
  border-color: #dc2626;
  color: white;
}

/* ========================================
   CARDS UND BOXEN
   ======================================== */

.card,
.box {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

.card-header,
.box-header {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
}

/* ========================================
   LISTS
   ======================================== */

ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

ul li:before {
  content: "â€¢";
  color: #dc2626;
  font-weight: bold;
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: 0.25rem;
}

ol {
  padding-left: 1.5rem;
}

ol li {
  padding: 0.5rem 0;
  color: #374151;
}

/* ========================================
   FOOTER
   ======================================== */

footer,
.footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e5e7eb;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  #content,
  .content,
  .main-content {
    padding: 15px;
    border-radius: 12px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  table {
    font-size: 0.875rem;
  }

  thead th,
  tbody td {
    padding: 0.75rem 0.5rem;
  }

  /* Tabellen scrollbar auf Mobile */
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  button,
  input[type="button"],
  input[type="submit"],
  .button,
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .course-item,
  .kurs-item {
    padding: 1rem;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  body {
    background: white;
    padding: 0;
  }

  #content,
  .content,
  .main-content {
    box-shadow: none;
    border-radius: 0;
  }

  button,
  input[type="button"],
  input[type="submit"],
  .button,
  .btn {
    display: none;
  }
}