/* Smile4U v8 · treatment template (V8-BLOCKS-R1 §2.4; markup _tools/pages/leistung.py). Six pages, one skeleton:
   selectors name section kinds (.lt-*), not pages. Tokens only; the shared sections (css/pages.css) are placed here,
   never restyled. No page JS: the head, rise and words primitives come from main.js, block 07 brings its own. */

/* ---- grounds: paper sections stay opaque; two paper sections in a row share one padding (360 px of air between them
   read as a page break) ---- */
.page-leistung .lt-p, .page-leistung .lt-related { position: relative; background: var(--paper); }
.page-leistung .lt-p + .lt-p, .page-leistung .lt-p + .bl, .page-leistung .bl + .lt-p, .page-leistung .lt-p + .fq { padding-top: 0; }

/* ---- ledger: an H3 opens a group inside the text column ---- */
.page-leistung .lt-h3 { margin-top: 24px; color: var(--ink); font-weight: var(--fw-statement); }

/* ---- rows: the steps across the container, a plan to read top to bottom: numeral, title, line, one hairline a row ---- */
.page-leistung .lt-rows .sk-list { grid-column: 1 / -1; gap: 0; margin-top: var(--gap-stack); }
.page-leistung .lt-rows .sk-list li { padding-block: 24px; border-top: 1px solid var(--mist); }
.page-leistung .lt-rows .sk-step-t { font-size: var(--fs-h5); line-height: var(--lh-h5); letter-spacing: var(--ls-h5); font-weight: var(--fw-statement); }
.page-leistung .lt-rows .sk-step-l { max-width: 40em; }
@media (min-width: 810px) {
  .page-leistung .lt-rows .sk-list li { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-grid); align-items: baseline; }
  .page-leistung .lt-rows .sk-num { grid-column: 1 / 2; }
  .page-leistung .lt-rows .sk-step { display: contents; }
  .page-leistung .lt-rows .sk-step-t { grid-column: 2 / 6; }
  .page-leistung .lt-rows .sk-step-l { grid-column: 6 / 13; }
}

/* ---- split: the photo from the viewport's left edge to col 7, whole (the frame has the file's aspect), the text cols
   9–12; phones: the photo first, full width ---- */
.page-leistung .lt-split { overflow-x: clip; }
.page-leistung .lt-split .g12 { row-gap: 40px; align-items: center; }
.page-leistung .lt-split-fig {
  grid-column: 1 / -1; margin-inline: calc(-1 * var(--side)); position: relative; overflow: hidden; aspect-ratio: 1120 / 720; background: var(--mist);
}
.page-leistung .lt-split-fig picture { display: block; height: 100%; }
.page-leistung .lt-split-img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.page-leistung .lt-split-text { grid-column: 1 / -1; min-width: 0; display: grid; gap: 20px; }
.page-leistung .lt-split-body { display: grid; gap: 16px; }
@media (min-width: 810px) {
  .page-leistung .lt-split-fig {
    grid-column: 1 / 8; margin-inline: 0; margin-left: calc(-1 * max(var(--side), (100vw - var(--container)) / 2)); border-radius: 0 var(--r-lg) var(--r-lg) 0;
  }
  .page-leistung .lt-split-text { grid-column: 8 / 13; padding-left: var(--gap-grid); }
}

/* ---- ladder: three sentences, each a step further right: the larger the defect, the further along ---- */
.page-leistung .lt-ladder-h { grid-column: 1 / -1; }
.page-leistung .lt-ladder-list {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-grid); row-gap: 24px; margin-top: var(--gap-stack);
}
.page-leistung .lt-ladder-list li { grid-column: 1 / -1; text-wrap: balance; }
.page-leistung .lt-ladder-more { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 32px; margin-top: 24px; }
@media (min-width: 810px) {
  .page-leistung .lt-ladder-list li:nth-child(1) { grid-column: 1 / 9; }
  .page-leistung .lt-ladder-list li:nth-child(2) { grid-column: 3 / 11; }
  .page-leistung .lt-ladder-list li:nth-child(3) { grid-column: 5 / 13; }
  .page-leistung .lt-ladder-more { grid-column: 5 / 13; }
}

/* ---- pair: two ways side by side, no box: the columns are the device ---- */
.page-leistung .lt-pair .g12 { row-gap: 40px; }
.page-leistung .lt-pair-h { grid-column: 1 / -1; }
.page-leistung .lt-way { grid-column: 1 / -1; min-width: 0; display: grid; gap: 16px; align-content: start; }
@media (min-width: 810px) {
  .page-leistung .lt-pair-h { margin-bottom: 8px; }
  .page-leistung .lt-way { grid-column: span 6; }
  .page-leistung .lt-way .t-body { max-width: 30em; }
}

/* ---- readout: the H2 left, the card right, in the same place on every page; a paragraph goes under the card ---- */
.page-leistung .lt-readout { position: relative; padding-block: calc(var(--sec-pad) * .66); }
.page-leistung .lt-readout .sk-body { align-content: start; }
@media (min-width: 810px) {
  .page-leistung .lt-readout .sk-h2 { grid-column: 1 / 6; }
  .page-leistung .lt-readout .sk-ro-wrap { grid-column: 7 / 13; margin-top: 0; }
  .page-leistung .lt-readout .sk-body { grid-column: 7 / 13; }
}

/* ---- phones: a heading or statement never sets larger than its longest word fits the line (the statement's words
   are inline boxes once split, so they cannot break; the build measures --lt-w in em, pages/leistung.py _fit) ---- */
@media (max-width: 809.98px) {
  .page-leistung .t-h2.lt-fit { font-size: min(var(--fs-h2), calc((100vw - 2 * var(--side)) / var(--lt-w))); }
  .page-leistung .t-band.lt-fit { font-size: min(var(--fs-band), calc((100vw - 2 * var(--side)) / var(--lt-w))); }
}

/* ---- an inline link inside the copy ---- */
.page-leistung .lt-inlink { color: var(--blue-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.page-leistung .lt-inlink:hover { color: var(--ink); }
.page-leistung .fq-a .lt-inlink { color: var(--blue-deep); }
.page-leistung .tm-p a { color: var(--paper); text-decoration-color: var(--paper-64); }

/* ---- statement: the Kasse rule, large, no last word alone on a line. With a visible H2 the sentence stays the large
   line and the H2 steps down to --fs-h5 above it (56 over 64 px read as two headlines) ---- */
.page-leistung .lt-stmt .sk-first { max-width: 20em; text-wrap: balance; }
.page-leistung .lt-stmt--h .sk-h2 {
  margin-bottom: 16px; font-size: var(--fs-h5); line-height: var(--lh-h5); letter-spacing: var(--ls-h5); font-weight: var(--fw-statement); color: var(--ink-75);
}

/* ---- whitening (block 07): the H1 says „Bleaching", so the block's H2 stays for the outline only and the line opens
   the section ---- */
.page-leistung .bl-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 810px) { .page-leistung .bl-p { grid-column: 1 / 8; } }

/* ---- related: the run under the FAQ, tight to the band ---- */
.page-leistung .lt-related { padding-block: 0 120px; }
@media (max-width: 809.98px) { .page-leistung .lt-related { padding-bottom: 64px; } }

/* ---- Termin band: the CTA word fits at 320 px (the build stops above 7.2 em); /wurzelbehandlung/: the call first,
   as the CP writes it ---- */
.page-leistung .tm-h { font-size: min(var(--fs-band), calc((100vw - 2 * var(--band-inset) - 2 * var(--side)) / 7.2)); }
.page-leistung .lt-call-first .tm-call { order: -1; }
