/* ============================================================
   telefontermin.css — native Buchung (Calendly-Ablöse), v2
   Kalender-Layout im handwertig.com-Look (Montserrat, #e22278)
   ============================================================ */
.hw-tt {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  color: #101112;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 940px;
  margin: 0 auto;
}
.hw-tt *, .hw-tt *::before, .hw-tt *::after { box-sizing: border-box; }

.hw-tt-head { margin-bottom: 28px; }
.hw-tt-eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #e22278; }
.hw-tt-title { font-size: 1.7rem; font-weight: 700; margin: 5px 0 0; line-height: 1.2; }
.hw-tt-sub { font-size: 1rem; color: #777; margin-top: 5px; }

/* ── Zwei-Spalten: Kalender | Uhrzeiten ───────────────────── */
.hw-tt-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }

/* ── Kalender ─────────────────────────────────────────────── */
.hw-tt-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.hw-tt-cal-month { font-size: 1.18rem; font-weight: 700; text-transform: capitalize; }
.hw-tt-nav { display: flex; gap: 6px; }
.hw-tt-nav button {
  width: 34px; height: 34px; border: 1px solid #ddd; background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #101112; border-radius: 50%;
  transition: border-color .12s, background .12s, color .12s; font-family: inherit;
}
.hw-tt-nav button:hover:not(:disabled) { border-color: #e22278; color: #e22278; }
.hw-tt-nav button:disabled { opacity: .3; cursor: default; }
.hw-tt-nav button svg { width: 16px; height: 16px; }

.hw-tt-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 8px; }
.hw-tt-weekdays span { text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #aaa; }
.hw-tt-days-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }

/* Kästchen statt Kreise */
.hw-tt-cell { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.hw-tt-cell.empty { visibility: hidden; }
.hw-tt-day {
  width: 100%; height: 100%; border: 1.5px solid transparent; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 1.05rem; font-weight: 600; color: #101112; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s, color .12s, border-color .12s;
}
.hw-tt-day.available { border-color: #e3e3e3; }
.hw-tt-day.available:hover { background: #fdeaf2; color: #e22278; border-color: #e22278; }
.hw-tt-day.selected, .hw-tt-day.selected:hover { background: #e22278; color: #fff; border-color: #e22278; }
.hw-tt-day.disabled { color: #d2d2d2; cursor: default; border-color: transparent; }

/* ── Uhrzeiten ────────────────────────────────────────────── */
.hw-tt-times-head { font-size: 1.08rem; font-weight: 700; margin-bottom: 16px; min-height: 1.4em; text-transform: capitalize; }
.hw-tt-times-empty { color: #999; font-size: .95rem; padding: 10px 0; }
.hw-tt-times { display: flex; flex-direction: column; gap: 10px; }
.hw-tt-time {
  width: 100%; text-align: center; border: 1.5px solid #d8d8d8; background: #fff; color: #101112;
  padding: 15px 16px; font-size: 1.05rem; font-weight: 700; cursor: pointer; font-family: inherit;
  letter-spacing: .02em; transition: border-color .12s, background .12s, color .12s;
}
.hw-tt-time:hover { border-color: #e22278; color: #e22278; }
.hw-tt-time.selected { border-color: #e22278; background: #e22278; color: #fff; }

/* ── Detail-Schritt (Formular) ────────────────────────────── */
.hw-tt-form { max-width: 460px; }
.hw-tt-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; color: #777; font-family: inherit; font-size: .85rem; padding: 0 0 14px; }
.hw-tt-back:hover { color: #e22278; }
.hw-tt-back svg { width: 14px; height: 14px; }
.hw-tt-chosen { display: flex; align-items: center; gap: 10px; background: #fafafa; border: 1px solid #eee; padding: 12px 16px; margin-bottom: 18px; font-weight: 600; }
.hw-tt-chosen svg { width: 18px; height: 18px; color: #e22278; flex-shrink: 0; }
.hw-tt-field { margin-bottom: 13px; }
.hw-tt-field label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 5px; }
.hw-tt-input, .hw-tt-textarea {
  width: 100%; padding: 11px 14px; border: 1px solid #d0d0d0; background: #fff;
  font-size: 1rem; color: #101112; font-family: inherit; line-height: 1.4;
}
.hw-tt-input:focus, .hw-tt-textarea:focus { outline: none; border-color: #e22278; box-shadow: 0 0 0 3px rgba(226,34,120,.12); }
.hw-tt-textarea { min-height: 78px; resize: vertical; }
.hw-tt-consent { display: flex; align-items: flex-start; gap: 8px; font-size: .85rem; color: #444; margin: 14px 0; }
.hw-tt-consent input { margin-top: 3px; accent-color: #e22278; flex-shrink: 0; }
.hw-tt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.hw-tt-btn {
  background: #e22278; color: #fff; border: none; padding: 14px 28px; width: 100%;
  font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  cursor: pointer; font-family: inherit; transition: background .15s;
}
.hw-tt-btn:hover { background: #c41862; }
.hw-tt-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ── Zustände ─────────────────────────────────────────────── */
.hw-tt-msg { padding: 12px 16px; font-size: .9rem; margin-top: 12px; }
.hw-tt-msg.error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.hw-tt-loading { color: #777; font-size: .92rem; padding: 24px 0; text-align: center; }
.hw-tt-success { text-align: center; padding: 30px 0; }
.hw-tt-success-check {
  width: 60px; height: 60px; border: 2px solid #e22278; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.hw-tt-success-check::after { content: ''; width: 14px; height: 26px; border: 3px solid #e22278; border-top: none; border-left: none; transform: rotate(45deg) translateY(-3px); display: block; }
.hw-tt-success h3 { margin: 0 0 8px; font-size: 1.3rem; }
.hw-tt-success p { color: #555; margin: 0 0 6px; }

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hw-tt-grid { grid-template-columns: 1fr; gap: 22px; }
  .hw-tt-times { max-height: none; }
  .hw-tt-title { font-size: 1.25rem; }
}
