/* ═══════════════════════════════════════
   TM Elementor Widgets — Styles
   ═════��═════════════════════════════════ */

/* ── Stats Strip ���─ */
.tm-stats-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 28px 80px;
  width: 100%;
}

.tm-stats-item {
  text-align: center;
  color: #fff;
  padding: 0 48px;
}

.tm-stats-num {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 4px;
}

.tm-stats-lbl {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.tm-stats-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

@media (max-width: 767px) {
  /* Sauberes 2×2-Raster. Vorher: flex-basis 50% ohne min-width:0 — lange Wörter
     wie "THERAPIEBEREICHE" sprengten die Spalte und sprangen in eine eigene Reihe. */
  .tm-stats-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 8px;
    padding: 24px 20px;
  }
  .tm-stats-item {
    padding: 0 4px;
    min-width: 0;
  }
  .tm-stats-lbl {
    overflow-wrap: break-word;
  }
  .tm-stats-divider {
    display: none;
  }
}

/* ── Angebot Card ── */
.tm-angebot-card {
  background: var(--cream, #F5EFE6);
  padding: 52px 40px;
  position: relative;
  transition: background 0.3s;
  cursor: pointer;
  overflow: hidden;
  height: 100%;
}

.tm-angebot-card:hover {
  background: var(--beige, #ECE5DA);
}

.tm-angebot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sage, #264A52);
  transform: scaleX(0);
  transition: transform 0.4s;
  transform-origin: left;
}

.tm-angebot-card:hover::before {
  transform: scaleX(1);
}

.tm-angebot-card--rose::before {
  background: var(--sage, #264A52);
}

.tm-angebot-card__num {
  font-family: 'Fraunces', serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--sage-pale, #DDD1C5);
  line-height: 1;
  margin-bottom: 24px;
  transition: color 0.3s;
}

.tm-angebot-card:hover .tm-angebot-card__num {
  color: var(--sage, #264A52);
}

.tm-angebot-card--rose .tm-angebot-card__num {
  color: var(--sage-pale, #DDD1C5);
}

.tm-angebot-card--rose:hover .tm-angebot-card__num {
  color: var(--sage, #264A52);
}

.tm-angebot-card__title {
  font-family: 'Fraunces', serif;
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--text, #333333);
  line-height: 1.2;
  margin: 0 0 16px;
}

.tm-angebot-card__desc {
  font-size: 1.05rem;
  color: var(--text-mid, #635345);
  line-height: 1.75;
  font-weight: 400;
  margin: 0 0 32px;
}

.tm-angebot-card__link {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage, #264A52);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: gap 0.3s;
  text-decoration: none;
  font-weight: 500;
}

.tm-angebot-card:hover .tm-angebot-card__link {
  gap: 18px;
}

.tm-angebot-card--rose .tm-angebot-card__link {
  color: var(--sage, #264A52);
}

@media (max-width: 767px) {
  .tm-angebot-card {
    padding: 36px 24px;
  }
  .tm-angebot-card__num {
    font-size: 2.5rem;
  }
  .tm-angebot-card__title {
    font-size: 1.35rem;
  }
}

/* ── Booking Selector ── */
.tm-booking-widget {
  background: #fff;
  padding: 48px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.06);
}

.tm-booking-widget__heading {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text, #333333);
  margin: 0 0 28px;
  line-height: 1.2;
}

.tm-booking-widget__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

/* Ungerade Anzahl Optionen: die letzte fuellt beide Spalten,
   sonst steht sie allein in der Reihe. Passt sich selbst an. */
.tm-booking-widget__grid > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.tm-booking-widget__option {
  border: 1px solid var(--beige-mid, #CBB9A8);
  padding: 14px 12px;
  font-size: 0.92rem;
  color: var(--text-mid, #635345);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tm-booking-widget__option:hover,
.tm-booking-widget__option.active {
  border-color: var(--sage, #264A52);
  background: var(--sage-pale, #DDD1C5);
  color: var(--sage, #264A52);
}

.tm-booking-widget__icon {
  font-size: 1.1rem;
}

.tm-booking-widget__label {
  font-weight: 500;
  font-size: 0.92rem;
}

.tm-booking-widget__sublabel {
  font-size: 0.65rem;
  opacity: 0.7;
}

.tm-booking-widget__btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--sage, #264A52);
  /* !important: schlägt die globale Kit-Link-Farbe (.elementor-kit-4 a), sonst
     würde der Button-Text petrol = gleiche Farbe wie der Button-Hintergrund. */
  color: #fff !important;
  padding: 14px 38px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  transition: background 0.3s;
}

.tm-booking-widget__btn:hover {
  background: var(--sage-mid, #1E3940);
  color: #fff !important;
}

.tm-booking-widget__note {
  font-size: 0.88rem;
  color: var(--text-light, #8E7D6F);
  margin: 16px 0 0;
  line-height: 1.6;
  font-style: italic;
  text-align: center;
}

@media (max-width: 767px) {
  .tm-booking-widget {
    padding: 28px 20px;
  }
  .tm-booking-widget__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Kalender-Modal (iframe-Option im Buchungs-Widget) ── */
.tm-cal-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.tm-cal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 57, 64, 0.72);
  animation: tmCalFade .25s ease;
}
@keyframes tmCalFade { from { opacity: 0; } to { opacity: 1; } }
.tm-cal-modal__card {
  position: relative;
  width: 100%;
  max-width: 860px;
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(30, 57, 64, 0.35);
  animation: tmCalFade .3s ease;
}
/* Schliessen-Kreuz.
   Zwei Klassen (0,2,0) sind noetig, weil die Elementor-Kit-Regel
   ".elementor-kit-N button" (0,1,1) sonst Hintergrund, Radius und Padding setzt –
   dann steht ein petrolfarbenes x auf petrolfarbenem Grund und ist unsichtbar. */
.tm-cal-modal .tm-cal-modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  color: #264A52;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.tm-cal-modal .tm-cal-modal__close:hover {
  background: #fff;
  color: #1E3940;
}
.tm-cal-modal__body { padding: 8px; }
.tm-cal-modal__iframe { display: block; width: 100%; }
@media (max-width: 767px) {
  .tm-cal-modal { padding: 0; }
  .tm-cal-modal__card { max-width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; }
}
