/* ===========================================================================
   Demo Booking — feature component styles
   ---------------------------------------------------------------------------
   Bounded context: "Demo Booking" (Erstgespräch / Book a Demo).

   This module owns ONLY the presentation of the demo-booking view. It does not
   redefine design tokens: it composes the shared ones from the global
   stylesheet (assets.firma.de/web/stylesheets/stylesheets.css):
     - brand purple ......... #6b35ff   (accent, links, checks)
     - brand purple (hover) . #8a4fff
     - ink .................. #0b0c0c   (headings / body)
     - surface .............. #f7f7f8   (soft fills)
     - hairline ............. #e5e7eb   (borders / dividers)
     - cta yellow ........... #f1c40f   (primary button — via .nav-buttons_login)
   The Cal.com scheduler is an external system; it is mounted into a single
   container (.demo-booking__scheduler) so the third-party integration stays
   quarantined behind one boundary.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   Layout: intro (value proposition) + scheduler (Cal.com mount)
   --------------------------------------------------------------------------- */
.demo-booking {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px 88px;
}
.demo-booking__grid {
  display: grid;
  gap: 40px;
}
/* Two columns only from 1240px up. The container is capped at max-width:1240px,
   so at/above this breakpoint the right column is a constant ~776px and the
   Cal.com widget always stays in its compact 3-column layout — which is what
   lets the (scaled) intro column reliably match its height. Below 1240px the
   page stacks, so there is no side-by-side height to align. */
@media only screen and (min-width: 1240px) {
  .demo-booking__grid {
    grid-template-columns: 360px 1fr;
    gap: 56px;
    align-items: start;
  }
}

/* ---------------------------------------------------------------------------
   Intro column (left) — the demo's value proposition.
   On desktop the inner wrapper is transform-scaled (JS) to match the Cal.com
   widget height. transform-origin is top-left and the layout width is widened
   to compensate, so the scaled content still fills the column; overflow is
   clipped because that pre-scale box is intentionally wider than the column.
   --------------------------------------------------------------------------- */
.demo-booking__intro {
  overflow: hidden;
}
.demo-booking__intro-inner {
  width: 100%;
  transform-origin: top left;
}
.demo-booking__eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 7px 14px;
  border-radius: 8px;
  background-color: rgba(107, 53, 255, 0.1);
  color: #6b35ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 16px;
  text-transform: uppercase;
}
.demo-booking__title {
  margin: 0 0 20px;
  color: #0b0c0c;
  font-size: 44px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: -0.5px;
}
.demo-booking__lead {
  margin: 0 0 28px;
  max-width: 34ch;
  color: #4a4a52;
  font-size: 16px;
  line-height: 26px;
}

/* Benefits — the named reasons to book (ubiquitous language) */
.demo-booking__benefits {
  margin: 0 0 28px;
}
.demo-booking__benefit {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #ededf0;
}
.demo-booking__benefit:last-child {
  border-bottom: 1px solid #ededf0;
}
.demo-booking__benefit-check {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(107, 53, 255, 0.1);
}
.demo-booking__benefit-check svg {
  width: 16px;
  height: 16px;
  stroke: #6b35ff;
}
.demo-booking__benefit-title {
  margin: 0 0 4px;
  color: #0b0c0c;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}
.demo-booking__benefit-text {
  margin: 0;
  color: #6b6b70;
  font-size: 14px;
  line-height: 20px;
}

/* Support card — "Noch Fragen?" */
.demo-booking__support {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: 12px;
  background-color: rgba(107, 53, 255, 0.06);
}
.demo-booking__support-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #fff;
}
.demo-booking__support-icon svg {
  width: 22px;
  height: 22px;
  stroke: #6b35ff;
}
.demo-booking__support-title {
  margin: 0 0 4px;
  color: #0b0c0c;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}
.demo-booking__support-text {
  margin: 0 0 8px;
  color: #6b6b70;
  font-size: 14px;
  line-height: 20px;
}
.demo-booking__support-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b35ff;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 0;
  padding-bottom: 0;
}
.demo-booking__support-link:hover {
  color: #8a4fff;
}

/* ---------------------------------------------------------------------------
   Scheduler column (right) — Cal.com inline embed boundary.

   The Cal.com widget is the height REFERENCE: left completely untouched at its
   natural height. On desktop the page's fit script transform-scales the INTRO
   column DOWN to match this widget's height (not the other way round), so the
   two columns bottom-align. No border/background here — the widget renders its
   own card; a wrapper card would create a box-in-a-box.
   --------------------------------------------------------------------------- */
.demo-booking__scheduler-fit {
  position: relative;
  width: 100%;
}
/* Reserve the column height while the Cal.com iframe loads, so the intro is
   never scaled against a 0-height widget. Removed (with the skeleton) on load. */
.demo-booking__scheduler-fit.is-loading {
  min-height: 600px;
}

/* Skeleton loading state for the Cal.com widget */
.demo-booking__skeleton {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 1fr;
  gap: 28px;
  padding: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background-color: #fff;
}
.demo-booking__scheduler-fit:not(.is-loading) .demo-booking__skeleton {
  display: none;
}
.demo-booking__skeleton-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.db-sk {
  display: block;
  border-radius: 6px;
  background-image: linear-gradient(100deg, #eef0f3 30%, #f7f8fa 50%, #eef0f3 70%);
  background-size: 200% 100%;
  animation: db-skeleton-shimmer 1.4s ease-in-out infinite;
}
.db-sk--avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-bottom: 6px;
}
.db-sk--line {
  height: 14px;
}
.db-sk--block {
  flex: 1 1 auto;
  min-height: 280px;
  border-radius: 10px;
}
.db-sk--pill {
  height: 46px;
  border-radius: 8px;
}
@keyframes db-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .db-sk { animation: none; }
}

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media only screen and (max-width: 767px) {
  .demo-booking {
    padding: 32px 20px 64px;
  }
  .demo-booking__title {
    font-size: 36px;
    line-height: 40px;
  }
  .demo-booking__lead {
    font-size: 16px;
    line-height: 26px;
  }
}
