/* --------------------------------------------------------------------------
   Termin pages (/strategiegespraech, /kennenlernen,
                 /freundschaftsgespraech, /coaching)

   All four are rendered by pages/termin.js: text on the left, Cal.com calendar
   on the right. Deliberately without a card around the calendar - Cal renders
   its own panel, a second frame just doubles it.

   Everything scoped under `.tm-e` so core.css (portal, admin, header)
   stays untouched. The prefix was `sg-` while this was the single
   Strategiegespraech page; renamed when the module became shared.

   When editing: css/termin.css is in the cache-bump list of both deploy.sh and
   .github/workflows/deploy.yml. Without that entry Cloudflare serves the old
   file for up to an hour.
   -------------------------------------------------------------------------- */

.tm-e {
  font-family: 'Albert Sans', system-ui, sans-serif;
  padding: clamp(48px, 8vh, 96px) 24px clamp(64px, 10vh, 120px);
}

.tm-e .tm-wrap {
  max-width: 1180px;
  margin: 0 auto;
}

.tm-e .tm-grid {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

.tm-e .tm-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.25rem;
}

.tm-e .tm-h {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.75rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
  color: var(--text-primary);
}

.tm-e .tm-lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 1.1rem;
  max-width: 46ch;
}

.tm-e .tm-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 1.9rem 0 0;
  padding: 0;
  list-style: none;
}

.tm-e .tm-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--border-card);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.tm-e .tm-meta svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  flex-shrink: 0;
}

/* Conditions that change the booking itself: phone callback, client-only
   access. Set apart from the lead text, but quieter than a warning box. */
.tm-e .tm-note {
  margin: 1.9rem 0 0;
  padding: 0.9rem 1.1rem;
  border-left: 2px solid var(--accent-gold);
  background: var(--gold-10, rgba(212, 165, 116, 0.08));
  border-radius: 0 6px 6px 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 46ch;
}

.tm-e .tm-note strong { color: var(--text-primary); font-weight: 600; }
.tm-e .tm-note a { color: var(--accent-gold); }

/* No fixed height: Cal resizes its iframe to the content and reports the new
   height to us. A min-height would only add empty space below it. The small
   floor is just so the area does not collapse while the embed is loading. */
.tm-e .tm-cal {
  min-height: 320px;
}

.tm-e .tm-fallback {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.tm-e .tm-fallback a { color: var(--accent-gold); }

@media (max-width: 940px) {
  .tm-e .tm-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .tm-e .tm-cal { min-height: 320px; }
}

@media (max-width: 768px) {
  .tm-e .tm-lead { font-size: 0.9375rem; }
}
