/* Default /termin hero: the photo as a stage, text on the empty wall.
   Ad landings (offer/intent) keep their own hero. */

@media (min-width: 769px) {
  .termin-page:not([data-booking-offer]):not([data-booking-intent]) .termin-hero {
    padding-top: 28px;
    border-bottom: 0;
  }

  .termin-page:not([data-booking-offer]):not([data-booking-intent]) .termin-hero-grid {
    position: relative;
    display: flex;
    align-items: center;
    /* Nearly full width: the wide crop keeps the empty wall on the left for
       the text; rounded like the phone photo. */
    min-height: clamp(560px, 44vw, 760px);
    margin-inline: calc(50% - 50vw + 24px);
    padding: clamp(48px, 5vw, 88px) max(40px, calc(50vw - 624px + var(--space-page-desktop, 40px)));
    border-radius: 28px;
    overflow: hidden;
    isolation: isolate;
  }

  /* A warm milk veil, a shade darker than the page so the rounded card reads:
     solid at the left edge, almost solid behind the text, then an eased fade, so the
     wall frame and stool disappear. A low fade along the bottom dissolves the
     dark floor and shelf in the rounded corners. */
  .termin-page:not([data-booking-offer]):not([data-booking-intent]) .termin-hero-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      linear-gradient(90deg,
        rgb(239, 235, 227) 0%,
        rgb(239, 235, 227) 17%,
        rgba(239, 235, 227, 0.95) 27%,
        rgba(239, 235, 227, 0.86) 34%,
        rgba(239, 235, 227, 0.64) 41%,
        rgba(239, 235, 227, 0.36) 48%,
        rgba(239, 235, 227, 0.14) 55%,
        rgba(239, 235, 227, 0) 62%),
      linear-gradient(0deg,
        rgba(239, 235, 227, 0.7) 0%,
        rgba(239, 235, 227, 0.32) 9%,
        rgba(239, 235, 227, 0) 22%);
  }

  .termin-page:not([data-booking-offer]):not([data-booking-intent]) .termin-hero-image {
    position: absolute;
    /* 15% wider than the stage, so the guest moves right of the text. */
    inset: 0 -15% 0 0;
    z-index: -2;
    width: auto;
    height: auto;
    max-width: none;
    margin: 0;
    aspect-ratio: auto;
    /* editorial.css sets justify-self: end, which shrinks an absolute box. */
    justify-self: stretch;
  }

  .termin-page:not([data-booking-offer]):not([data-booking-intent]) .termin-hero-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center 20%;
  }

  .termin-page:not([data-booking-offer]):not([data-booking-intent]) .termin-hero-content {
    max-width: 440px;
  }

  .termin-page:not([data-booking-offer]):not([data-booking-intent]) .termin-hero h1 {
    font-size: clamp(52px, 4.6vw, 76px);
    line-height: 1;
  }

  .termin-page:not([data-booking-offer]):not([data-booking-intent]) .termin-default-eyebrow {
    font-weight: 600;
  }

  .termin-page:not([data-booking-offer]):not([data-booking-intent]) .termin-hero-copy {
    max-width: 34ch;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.55;
  }
}

@media (max-width: 768px) {
  .termin-page:not([data-booking-offer]):not([data-booking-intent]) .termin-hero-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .termin-page:not([data-booking-offer]):not([data-booking-intent]) .termin-hero-image {
    order: -1;
    max-width: none;
  }

  .termin-page:not([data-booking-offer]):not([data-booking-intent]) .termin-hero-image img {
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    object-position: 56% 30%;
  }
}
