/* ==== GRUNDBLOCK ==== */

/* === Kursblock (einzelne Zeile) === */
.kurs-block {
  border-bottom: 1px solid #ddd;
  padding: 20px 20px;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}
.kurs-block.ausgebucht {
  opacity: 0.6;
}

/* === Layout für Header und Inhalt (Grid!) === */
.kurs-table-header,
.kurs-inner {
  display: grid;
  grid-template-columns: 260px 2.6fr 0.6fr;
  gap: 20px;
  align-items: start;
  padding: 10px 0;
}

/* === Tabellenkopf === */
.kurs-table-header {
  font-weight: 600;
  color: #888;
  font-size: 0.95em;
  border-bottom: 1px solid #eee;
}

/* === Datum & Uhrzeit (linke Spalte) === */
.kurs-zeit {
  font-weight: bold;
}
.kurs-zeit .datum,
.kurs-zeit .uhrzeit {
  display: block;
}

/* === Kursinfos (mittlere Spalte) === */
.kurs-text {
  display: flex;
  flex-direction: column;
}
.kurs-titel {
  font-weight: 600;
  font-size: 1.2em;
  color: #333;
}
.kurs-subtitel {
  font-size: 0.95em;
  color: #666;
}

/* === Preis & Button (rechte Spalte) === */
.kurs-action {
  text-align: right;
}
.kurs-action .preis {
  font-size: 1.1em;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}
.kurs-action .ausgebucht-label {
  font-weight: bold;
  color: red;
}
.start-booking-btn {
  padding: 8px 16px;
  background: #978667;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

/* === Formular === */
.kurs-form-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.kurs-form-wrapper.open {
  max-height: 1500px;
}
.kurs-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kurs-form input,
.kurs-form select,
.kurs-form textarea {
  width: 100%;
  padding: 6px;
  margin-bottom: 10px;
  box-sizing: border-box;
}
.kurs-form .submit-row {
  display: flex;
  justify-content: flex-end;
}
.kurs-form button[type="submit"] {
  padding: 10px 15px;
  background: #978667;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 4px;
}
.kurs-form button:disabled {
  background: #aaa;
  cursor: not-allowed;
}
.gutschein-hinweis {
  font-size: 0.9em;
  color: #555;
  font-style: italic;
  margin-top: -5px;
  margin-bottom: 15px;
}

/* === Monatsüberschrift === */
.monat-block {
  margin-top: 60px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.1s;
}
.monat-block h3 {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

/* === Checkboxen === */
.checkbox-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
}
.checkbox-row label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95em;
  color: #333;
}

/* === Responsive (Mobil) === */
@media (max-width: 768px) {
  .kurs-table-header {
    display: none;
  }

  .kurs-inner {
    display: block;
  }

  .kurs-action {
    margin-top: 15px;
    text-align: left;
  }
}
.kurs-form button[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* Abstand zwischen Spinner und Text */
}
.kurs-form button:disabled {
  background: #978667; /* gleiche Farbe wie aktiv */
  cursor: not-allowed;
  opacity: 0.7; /* leicht abgedunkelt, damit man merkt, dass er deaktiviert ist */
}
/* === Spinner === */
.spinner {
  border: 6px solid #eee;
  border-top: 6px solid #978667;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 40px auto;
}
	/* Spinner im Button */
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === Fade-In Animation === */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}