@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&display=swap');

main.section {
  padding: 4rem 2rem;
  background-color: #111;
  color: #eee;
}

.container.termin-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.termin-wrapper,
.calendar-wrapper {
  flex: 1 1 48%;
  background-color: #1b1b1b;
  border: 1px solid #3eb489;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  padding: 2rem;
}

.centered-title {
  text-align: center;
  font-size: 1.8rem;
  color: #ffd700;
  margin-bottom: 0.5rem;
  font-family: 'Cinzel', serif;
}

.centered-subtext {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #ccc;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}

.form-row .form-group {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
}

.form-row .form-group label {
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  color: #ddd;
}

.form-row > label,
.form-row > input,
.form-row > button,
.form-row > textarea {
  flex: 1 1 48%;
}

form label {
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: #ccc;
  display: block;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: #2e2e2e;
  border: 1px solid #555;
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
  box-sizing: border-box;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #ffd700;
  background-color: #262626;
}

.cta-button {
  background-color: #3cb043;
  color: white;
  font-weight: bold;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 0.5rem;
}

.cta-button:hover {
  background-color: #6a0dad;
}

/* Kategorie-Auswahl */
.kategorie-auswahl {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.kategorie-auswahl label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #ccc;
}

/* Leistungsliste */
.leistung-dropdown {
  background-color: #2a2a2a;
  border: 1px solid #555;
  padding: 1rem;
  border-radius: 8px;
  max-height: 250px;
  overflow-y: auto;
}

.leistung-option {
  display: flex;
  align-items: flex-start !important;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #eee;
  line-height: 1.4;
}

.leistung-option input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.leistung-hinweis {
  font-style: italic;
}

/* Kalenderbereich */
.kalender-box {
  margin-top: 1rem;
}

.kalender-ansicht-button {
  background-color: #3cb043;
  color: white;
  font-weight: bold;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  border-radius: 30px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.kalender-ansicht-button:hover {
  background-color: #6a0dad;
}

/* Responsive */
@media (max-width: 900px) {
  .container.termin-grid {
    flex-direction: column;
  }

  .termin-wrapper,
  .calendar-wrapper {
    flex: 1 1 100%;
  }

  .form-row {
    flex-direction: column;
  }

  .form-row > * {
    flex: 1 1 100%;
  }
}

/* ========== Spaltenanordnung für Terminseite ========== */

.kontakt-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

/* Linke Spalte: Formular */
.termin-wrapper {
  flex: 1 1 48%;
  background-color: #1b1b1b;
  border: 1px solid #3eb489;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Rechte Spalte: Kalender */
.calendar-wrapper {
  flex: 1 1 48%;
  background-color: #1b1b1b;
  border: 1px solid #3eb489;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Überschrift & Subtext zentrieren */
.centered-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #ffd700;
  font-family: 'Cinzel', serif;
}

.centered-subtext {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #ccc;
}

/* Kalender-Button */
.kalender-ansicht-button {
  background-color: #3cb043;
  color: white;
  font-weight: bold;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  border-radius: 30px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.kalender-ansicht-button:hover {
  background-color: #6a0dad;
}

/* Responsive Verhalten */
@media (max-width: 900px) {
  .kontakt-grid {
    flex-direction: column;
  }

  .termin-wrapper,
  .calendar-wrapper {
    flex: 1 1 100%;
  }
}

.cta-button.small {
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
}

/* Warnmodal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-content {
  background-color: #1b1b1b;
  border: 2px solid #ffd700;
  border-radius: 10px;
  padding: 2rem;
  color: #fff;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.modal-content.warning h3 {
  color: #ffcc00;
  margin-bottom: 0.5rem;
}

.modal-content.warning p {
  margin-bottom: 1.2rem;
}

@media (max-width: 768px) {
  .form-row .form-group {
    flex: 1 1 100%;
  }
}
