/* Smile4U · „Näher" phase C · block 13 Termin vereinbaren, the page's closing (builder hin, _tools/v8_next/hin.py).
   Concept: the last full-bleed moment. The finished crown between its neighbours, in the studio of chapter II, fills
   the block; the heading, the live hours line and the two buttons stand in ink on the picture's empty side (desktop:
   left, phones: top). The picture's ground is the band colour, so the text sits on the band as everywhere else on
   the page; a band-coloured wash under the text keeps ink at ≥ 4.5 : 1 where the studio's cove is darker.
   Buttons, phone link and hours line are v8's elements, moved (booking.js and 13-termin.js find them).
   Fahrt in (13-hin.js): the block arrives as a framed picture and opens to the full width as it enters.
   D and T: 16 : 9, the picture covers, the tooth group right. P: the 9 : 14 picture under the text, its top under a band wash. */
.tm.hn-tm { padding: 0; background: var(--paper); }
.hn-tm-stage {
  position: relative; display: grid; align-items: center; aspect-ratio: 16 / 9; min-height: 600px; max-height: 100svh;
  overflow: hidden; background: var(--band); color: var(--on-band);
}
html.motion:not(.rm) .hn-tm-stage {
  /* purpose: Fahrt in — a framed picture on the page opens to the full width as it arrives (13-hin.js sets the insets) */
  clip-path: inset(var(--hn-iy, 0px) var(--hn-ix, 0px) round var(--hn-r, 0px));
}
.hn-tm-pic { position: absolute; inset: 0; margin: 0; }
.hn-tm-pic picture, .hn-tm-pic img { display: block; width: 100%; height: 100%; }
.hn-tm-pic img { object-fit: cover; object-position: 100% 50%; }
/* the wash: band on the left third, gone before the plinth; the top edge (the cove, ink 3.4 : 1) under the header */
.hn-tm-pic::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--band) 0, rgba(73, 169, 218, .72) 22%, rgba(73, 169, 218, 0) 40%),
    linear-gradient(var(--band) 0, rgba(73, 169, 218, 0) 22%);
}
.hn-tm-in {
  position: relative; z-index: 1; display: grid; justify-items: start; gap: 16px; min-width: 0;
  padding: calc(var(--nav-bottom, 96px) + 24px) max(var(--side), 6vw) 64px;
}
.hn-tm .tm-h {
  max-width: 7em; font-size: clamp(56px, 5vw, 104px); line-height: 1; letter-spacing: -0.05em;
  font-weight: var(--fw-display); color: var(--on-band);
}
.hn-tm .tm-status { margin-top: 8px; color: var(--on-band); }
.hn-tm .tm-actions { margin-top: 24px; display: grid; justify-items: start; gap: 12px; }
@media (min-width: 1600px) { .hn-tm .tm-actions { display: flex; gap: 16px; } }

/* T and P: the text on the band above, the picture comes out of it below (on T a 16 : 9 picture would crop the
   tooth group into the text column) */
@media (max-width: 1199.98px) {
  .hn-tm-stage { display: flex; flex-direction: column; align-items: stretch; aspect-ratio: auto; min-height: 0; max-height: none; }
  .hn-tm-in { order: -1; padding: var(--sec-pad-dark) var(--side) 0; }
  .hn-tm-pic { position: relative; inset: auto; aspect-ratio: 16 / 9; margin-top: -8vw; }
  .hn-tm-pic::after { background: linear-gradient(var(--band) 0, var(--band) 8vw, rgba(73, 169, 218, 0) 16vw); }
}
@media (max-width: 809.98px) {
  .hn-tm-in { padding: calc(var(--nav-bottom, 76px) + 24px) var(--side) 24px; }
  .hn-tm .tm-h { max-width: none; font-size: clamp(44px, 12vw, 64px); }
  .hn-tm .tm-actions { display: grid; justify-items: stretch; width: 100%; }
  /* the picture under the text: its top (the cove, ink falls to 3.2 : 1 at 60–68vw, measured on closing-p.webp) lies
     under the copy, washed to the band; the light floor starts at 76vw, the crowns at 86vw, below the wash */
  .hn-tm-pic { aspect-ratio: 720 / 1120; margin-top: -66vw; }
  .hn-tm-pic::after { background: linear-gradient(var(--band) 0, var(--band) 66vw, rgba(73, 169, 218, 0) 80vw); }
}
