/* ============================================================
   Kontaktformular – Wunschdatum-Kalender + Tageszeit
   Lädt automatisch via module_css_links() wenn contact-form aktiv ist.
   ============================================================ */

.termin-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.termin-picker .form-field--full { grid-column: 1 / -1; }

.termin-picker label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-mid);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  display: block;
}

/* --- Kalender --- */
.termin-cal {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 14px 16px 16px;
  max-width: 420px;
}

.termin-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.termin-cal__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}

.termin-cal__nav {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--teal-deep);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), opacity var(--t-fast);
}

.termin-cal__nav:hover { background: var(--teal-tint); border-color: var(--teal-soft); }
.termin-cal__nav svg { width: 18px; height: 18px; }
.termin-cal__nav:disabled { opacity: 0.3; cursor: not-allowed; }

.termin-cal__weekdays,
.termin-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.termin-cal__weekdays {
  margin-bottom: 6px;
}

.termin-cal__weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 4px 0;
}

.termin-cal__day {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast);
}

.termin-cal__day:hover:not(.is-disabled):not(.is-empty) {
  background: var(--teal-tint);
  color: var(--teal-deep);
}

.termin-cal__day.is-selected {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-teal);
}

.termin-cal__day.is-disabled {
  background: transparent;
  color: var(--ink-soft);
  opacity: 0.4;
  cursor: not-allowed;
}

.termin-cal__day.is-empty {
  background: transparent;
  cursor: default;
}

.termin-cal__selected {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-deep);
  min-height: 18px;
}

@media (max-width: 640px) {
  .termin-picker { grid-template-columns: 1fr; }
  .termin-cal { max-width: none; }
}
