/* FREIHEITSPILOT — Terminbuchung (Cal.com-Inline)
   ---------------------------------------------------------------------------
   Bewusst eine HELLE Sektion: Cal.com rendert seinen Kalender hell. Auf Navy
   waere das ein weisser Klotz mitten im Layout. Auf Sand sitzt er wie ein
   Blatt Papier auf dem Tisch - und erzeugt zugleich Kontrast zum Navy-CTA-Band,
   das direkt darunter folgt.
   Nutzt ausschliesslich Tokens aus css/tokens.css.
   --------------------------------------------------------------------------- */

.booking { position: relative; }

.booking__head {
  max-width: 60ch;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}
/* Bewusst NICHT gold: Gold (#D4A843) auf Sand ergibt ~2,2:1 und faellt damit
   durch WCAG AA. Die Seite nutzt das Muster an anderen Stellen (.surface-sand
   .eyebrow) - hier wird es nicht fortgeschrieben. Gemessen: 5,59:1.
   Die Gold-Note traegt stattdessen der Punkt vor jedem Merkmal unten.
   Zwei Klassen, weil sonst `.section p` aus article.css (0,1,1) gewinnt. */
.booking .booking__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.9rem;
}
.booking__head h2 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  color: var(--ink);
  margin-bottom: 0.85rem;
  line-height: 1.15;
}
.booking .booking__head p {
  color: var(--ink-muted);
  font-size: var(--text-base);
  line-height: 1.65;
}

/* Die Merkmale des Termins - beantwortet "was kostet mich das?" vor dem Klick */
.booking__facts {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.6rem 1.75rem;
  margin-top: 1.4rem;
}
.booking__fact {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.booking__fact::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-500); flex: none;
}

/* Rahmen um den Kalender - Papier auf Sand */
.booking__frame {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(19, 28, 46, 0.10);
  padding: clamp(0.5rem, 1.5vw, 0.9rem);
  overflow: hidden;
}

[data-fp-cal] {
  width: 100%;
  min-height: 620px;
  overflow: auto;
  border-radius: calc(var(--radius-lg) - 6px);
}
@media (max-width: 640px) {
  [data-fp-cal] { min-height: 560px; }
}

/* Ohne Einwilligung (oder wenn Cal streikt): kein leeres Loch, sondern zwei Wege */
.fp-cal__fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.4rem;
  min-height: 320px;
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
}
.fp-cal__fallback p {
  max-width: 46ch;
  color: var(--ink-muted);
  font-size: var(--text-base);
  line-height: 1.6;
  margin: 0;
}
.fp-cal__fallback-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
}
/* Die Ghost-Variante ist fuer dunkle Flaechen gebaut - hier auf hell umdrehen */
.fp-cal__fallback .btn--ghost {
  border-color: var(--line-light);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}
.fp-cal__fallback .btn--ghost:hover {
  border-color: var(--gold-500);
  color: var(--ink);
}

/* Nach erfolgreicher Buchung: Cal zeigt seine eigene Bestaetigung im iframe.
   Der Rahmen bekommt zusaetzlich eine ruhige Gold-Kante als Quittung. */
[data-fp-cal-booked] { box-shadow: inset 0 0 0 2px var(--gold-400); }

@media (prefers-reduced-motion: reduce) {
  .booking__frame { transition: none; }
}

/* ---------------------------------------------------------------------------
   Kalender im Ergebnis des Freiheits-Checks. Steht dort NACH dem Formular als
   zweiter Weg - deshalb ein deutliches "oder" als Trenner statt zwei
   gleichrangiger Bloecke untereinander.
   Der Check laeuft auf dunklem Grund, nicht auf Sand: Farben hier entsprechend.
   --------------------------------------------------------------------------- */
.check-booking { margin-top: clamp(2.5rem, 6vw, 4rem); text-align: center; }

.check-booking__or {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-faint);
  margin: 0 0 1.5rem;
  position: relative;
}
/* Linie links und rechts vom "oder" - macht die Alternative sichtbar,
   ohne eine zweite Ueberschriften-Ebene aufzumachen. */
.check-booking__or::before,
.check-booking__or::after {
  content: '';
  position: absolute; top: 50%;
  width: min(28%, 180px); height: 1px;
  background: var(--line-dark-soft);
}
.check-booking__or::before { left: 0; }
.check-booking__or::after  { right: 0; }

.check-booking__title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  color: var(--paper);
  margin: 0 0 0.6rem;
}
.check-booking__hint {
  color: var(--paper-muted);
  font-size: var(--text-base);
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}
/* Der Rahmen bleibt hell (Cal rendert hell) - auf dunklem Grund wirkt er als
   Karte, genau wie auf den Landingpages. */
.check-booking .booking__frame { max-width: 820px; }
