.termin-page {
  background: var(--color-cream);
  color: var(--color-ink);
}

.termin-main {
  width: 100%;
  padding-top: 58px;
}

.termin-hero {
  padding: 32px 0 0;
  border-bottom: var(--border-thin);
}

.termin-hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: var(--border-thin);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.termin-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  padding: 38px 0 32px;
}

.termin-hero h1 {
  margin: 0;
  font-size: clamp(52px, 6.8vw, 88px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.055em;
  text-transform: none;
}

.termin-hero h1 span {
  display: inline-block;
  margin-left: 0.35em;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.07em;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.065em;
}

.termin-hero-copy {
  max-width: 40ch;
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
}

.termin-hero-image {
  margin: 12px 0 0;
  min-width: 0;
}

.termin-hero-image img {
  display: block;
  width: 100%;
  height: 290px;
  object-fit: cover;
  object-position: 48% center;
}

.termin-hero-image figcaption {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}

.termin-hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-top: var(--border-thin);
}

.termin-hero-guide {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  line-height: 1.4;
}

.termin-hero-guide span {
  font-size: 24px;
  line-height: 1;
}

.termin-hero-note {
  font-size: 12px;
  line-height: 1.5;
}

.termin-hero-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.termin-loading {
  display: grid;
  min-height: 280px;
  place-items: center;
  padding: 32px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.termin-loading[hidden],
.termin-error[hidden] {
  display: none;
}

.termin-widget {
  width: 100%;
  max-width: none;
}

.termin-widget:empty {
  display: none;
}

.termin-error {
  padding: 64px 24px;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
}

/* Fill the shared page container; leave fixed Planity overlays unconstrained. */
#planitywl,
#planitywl > :nth-child(2) {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}

/* Planity white-label styling supplied for the Liva palette. */
#planitywl {
  background-color: #f6f4ee;
}

@media (min-width: 768px) {
  #planitywl h3 {
    color: #100e0d !important;
  }
}

#planitywl .planity_bookappointment-button-choose,
#planitywl .planity-gift-voucher-button-choose {
  background-color: #d0b9a3 !important;
}

.planity_ui_appointment_background > div:nth-child(2) {
  padding: 10px;
}

#planitywl > div:nth-child(2) > div:nth-child(2) > div > div > div > div > h2,
#planitywl > div:nth-child(2) > div:nth-child(2) > div > div > div > h2,
#planitywl > div:nth-child(2) > div:nth-child(2) > div > div > div:nth-child(2) > span {
  color: #100e0d !important;
}

.termin-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 28px 0 48px;
  border-top: 1px solid var(--color-ink);
}

.termin-support p {
  font-size: 16px;
  line-height: 1.4;
}

.termin-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.termin-contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  min-width: 180px;
  gap: 24px;
  padding: 12px 16px;
  border: 1px solid var(--color-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  transition: opacity var(--transition-fast);
}

.termin-contact-actions a:hover {
  opacity: 0.7;
}

.termin-contact-primary {
  background: var(--color-ink);
  color: var(--color-cream);
}

@media (max-width: 768px) {
  /* Keep the vendor navigation compact and its panels inside our page gutters. */
  #planitywl > :nth-child(2) > :first-child:has(> .planity-widget-nav) {
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    padding: 16px 0;
  }

  #planitywl .planity-widget-nav {
    flex: 1;
    min-width: 0;
    margin: 0;
  }

  #planitywl .planity-widget-nav > button,
  #planitywl > :nth-child(2) > :first-child > button {
    width: auto;
    min-height: 44px;
    height: 44px !important;
    margin: 0 !important;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.35;
  }

  #planitywl .planity-widget-nav > button {
    flex: 1;
  }

  #planitywl > :nth-child(2) > :nth-child(2) {
    margin-top: 16px;
  }

  #planitywl .planity_ui_appointment_background > div:nth-child(2) {
    padding-inline: 0;
  }

  #planitywl .planity_appointment_mobile_container,
  #planitywl .planity_appointment_steps_step,
  #planitywl [class*="booking_service-module_bookingService-"],
  #planitywl [class*="mobile_availabilities_picker-module_selection-"] {
    width: 100%;
    margin-inline: 0;
  }

  #planitywl .planity_bookappointment-button-choose {
    min-height: 44px;
    color: var(--color-ink);
  }

  .termin-hero {
    padding-top: 24px;
  }

  .termin-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 0 24px;
  }

  .termin-hero h1 {
    font-size: clamp(44px, 8.5vw, 64px);
  }

  .termin-hero-copy {
    max-width: 42ch;
    margin-top: 20px;
    font-size: 15px;
  }

  .termin-hero-image {
    margin-top: 0;
  }

  .termin-hero-image img {
    height: auto;
    aspect-ratio: 2 / 1;
    object-position: center 25%;
  }

  .termin-hero-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
  }

  .termin-support {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (min-width: 600px) and (max-width: 768px) {
  .termin-hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 28px;
  }

  .termin-hero h1 {
    font-size: clamp(44px, 7vw, 54px);
  }

  .termin-hero-image img {
    height: 240px;
    aspect-ratio: auto;
  }

  .termin-hero-bottom {
    align-items: center;
    flex-direction: row;
  }
}

@media (max-width: 480px) {
  .termin-hero-meta {
    font-size: 9px;
    gap: 12px;
    letter-spacing: 0.05em;
  }

  .termin-hero-meta p:last-child {
    max-width: 20ch;
    text-align: right;
  }

  .termin-hero h1 span {
    margin-left: 0.25em;
  }

  .termin-contact-actions {
    flex-direction: column;
  }

  .termin-contact-actions a {
    width: 100%;
  }
}
