/* Smile4U v8 · Leistungen hub (V8-BLOCKS-R1 §2.4 subject sequence, PLAN S5-4). Markup _tools/pages/leistungen.py,
   motion js/pages/p-leistungen.js. Adjacency: head + index (mist) / night band, picture left / object on mist, entries
   under / entries + frame right (paper) / ledger (mist) / photo half-bleed (paper) / type stack (mist) / Termin band.
   Shared sections (pages.css) and block 13 are placed, never restyled. Tokens only. */

.page-leistungen { --ls-rule: color-mix(in srgb, var(--ink) 14%, transparent); --ls-rule-night: var(--on-band-line); }

/* ---- the entry: one treatment. Name (link, stretched over the entry) at --fs-h4, its CP line at 18 / 27. One border
   device for the whole page: the hairline above each entry (CP: "ruled"). ---- */
.page-leistungen .ls-list { display: grid; align-content: start; }
.page-leistungen .ls-e { position: relative; display: grid; gap: 4px; padding-block: 20px 24px; border-top: 1px solid var(--ls-rule); }
.page-leistungen .ls-e-h { font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); font-weight: var(--fw-display); }
.page-leistungen .ls-e-a { display: inline-flex; align-items: baseline; gap: .3em; color: inherit; text-decoration: none; }
.page-leistungen .ls-e-a::after { content: ""; position: absolute; inset: 0; }                    /* the whole entry is the target */
.page-leistungen .ls-e-a:focus-visible { outline: none; }
.page-leistungen .ls-e:has(.ls-e-a:focus-visible) { outline: 2px solid var(--blue-deep); outline-offset: 4px; border-radius: var(--r-sm); }
.page-leistungen .ls-e-l { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-75); max-width: 30em; }
.page-leistungen .ls-arrow { display: inline-grid; place-items: center; width: .62em; height: .62em; flex: none; transform: translateY(.06em); transition: transform var(--dur-ui) var(--ease-ui); }
.page-leistungen .ls-arrow svg { width: 100%; height: 100%; }
@media (hover: hover) {
  .page-leistungen .ls-e:hover .ls-e-a > span:first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
  .page-leistungen .ls-e:hover .ls-arrow, .page-leistungen .ls-link:hover .ls-arrow { transform: translate(4px, .06em); }   /* the link answers the pointer */
}

/* text links (Angst, Technik) and the lede's Heil- und Kostenplan */
.page-leistungen .ls-link { display: inline-flex; align-items: baseline; gap: .3em; min-height: 44px; color: var(--blue-deep); text-decoration: none; font-size: var(--fs-body); line-height: var(--lh-body); padding-top: 8px; }
.page-leistungen .ls-link > span:first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.page-leistungen .ls-link .ls-arrow { width: .9em; height: .9em; transform: translateY(.14em); }
.page-leistungen .ls-inlink { color: var(--blue-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.page-leistungen .ls-inlink:hover { color: var(--ink); }
.page-leistungen .ls-h2 { grid-column: 1 / -1; }

/* ---- 2 · Zahnersatz: the inset night band (block 13's shape), the implant poster left, the legend right ---- */
.page-leistungen .ls-ersatz { background: var(--paper); padding: var(--band-inset); scroll-margin-top: calc(var(--nav-bottom) + 16px); }
.page-leistungen .ls-band { padding-block: var(--sec-pad-dark); border-radius: var(--r-band); background: var(--band); color: var(--on-band); }
.page-leistungen .ls-ersatz-in { align-items: center; row-gap: 32px; }
.page-leistungen .ls-ersatz-fig, .page-leistungen .ls-ersatz-text { grid-column: 1 / -1; min-width: 0; }
.page-leistungen .ls-ersatz-fig picture { display: block; }
/* the implant on a transparent ground: it stands on the band itself, no mask */
.page-leistungen .ls-ersatz-img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(72svh, 640px); margin-inline: auto; }
.page-leistungen .ls-ersatz .ls-list { margin-top: 32px; }
.page-leistungen .ls-ersatz .ls-e { border-top-color: var(--ls-rule-night); }
.page-leistungen .ls-ersatz .ls-e-l { color: var(--on-band-2); }
.page-leistungen .ls-ersatz .ls-e:has(.ls-e-a:focus-visible) { outline-color: var(--ink); }
@media (min-width: 810px) {
  .page-leistungen .ls-ersatz-fig { grid-column: 1 / 8; }
  .page-leistungen .ls-ersatz-text { grid-column: 8 / 13; }
}

/* ---- 3 · Ästhetik: the render as the object on the mist ground (R1), two entries under it, side by side ---- */
.page-leistungen .ls-aesth { background: var(--mist); }
/* the render's file is 5 : 2 with transparent margins; the object window holds x .12–.875, y .20–.76 of it (the
   teeth's alpha box is x .149–.848, y .240–.732, measured on teeth-a1-2400), so nothing of the teeth is cut */
.page-leistungen .ls-obj { grid-column: 1 / -1; position: relative; margin-top: 32px; aspect-ratio: 1812 / 538; overflow: hidden; transform-origin: 50% 100%; }
.page-leistungen .ls-obj picture { display: block; }
.page-leistungen .ls-teeth-img { position: absolute; max-width: none; width: calc(100% / .755); height: auto; left: calc(-100% * .12 / .755); top: calc(-100% * .20 / .56); }
.page-leistungen .ls-list--pair { grid-column: 1 / -1; margin-top: 16px; }
@media (min-width: 810px) {
  .page-leistungen .ls-aesth .ls-h2 { grid-column: 1 / 7; }
  .page-leistungen .ls-obj { grid-column: 2 / 12; margin-top: 48px; }   /* the reading runs H2 top left → object → entries bottom right */
  .page-leistungen .ls-list--pair { grid-column: 7 / 13; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap-grid); margin-top: 8px; }
}

/* ---- 4 · Zahnerhalt: entries left (H2 at the top, the entries at the frame's foot), the microscope in use framed right ---- */
.page-leistungen .ls-erhalt { background: var(--paper); }
.page-leistungen .ls-erhalt .g12 { row-gap: 40px; }
.page-leistungen .ls-erhalt-text { grid-column: 1 / -1; min-width: 0; display: grid; align-content: space-between; gap: 40px; }
.page-leistungen .ls-frame { grid-column: 1 / -1; position: relative; overflow: hidden; aspect-ratio: 2701 / 3376; border-radius: var(--r-lg); background: var(--mist); }
.page-leistungen .ls-frame picture { display: block; height: 100%; }
.page-leistungen .ls-mikro-img { width: 100%; height: 100%; object-fit: cover; max-width: none; }   /* the frame has the file's aspect: nothing is cropped */
@media (min-width: 810px) {
  .page-leistungen .ls-erhalt-text { grid-column: 1 / 7; }
  .page-leistungen .ls-frame { grid-column: 8 / 13; }
}

/* ---- 5 · Vorsorge: ledger, the H2 left, the one entry right ---- */
.page-leistungen .ls-vorsorge { background: var(--mist); padding-block: calc(var(--sec-pad) * .66); }
.page-leistungen .ls-vorsorge .ls-list { grid-column: 1 / -1; margin-top: 24px; }
@media (min-width: 810px) {
  .page-leistungen .ls-vorsorge .ls-h2 { grid-column: 1 / 6; }
  .page-leistungen .ls-vorsorge .ls-list { grid-column: 7 / 13; margin-top: 0; }
  .page-leistungen .ls-vorsorge .ls-e { padding-top: 12px; }
}

/* ---- 6 · Angst: foto-07 from the viewport's left edge to col 7, the text cols 9–12 ---- */
.page-leistungen .ls-angst { background: var(--paper); padding-block: var(--sec-pad); overflow-x: clip; }
.page-leistungen .ls-angst .g12 { row-gap: 40px; align-items: center; }
.page-leistungen .ls-angst-fig { grid-column: 1 / -1; margin-inline: calc(-1 * var(--side)); position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.page-leistungen .ls-angst-fig picture { display: block; height: 100%; }
/* phones: angst-card-foto-07-p fills the 4:5 whole; ≥ 810 foto-07 with his face at x .62, y .38 of the frame; the
   patient is seen from behind (no face) */
.page-leistungen .ls-angst-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; max-width: none; }
.page-leistungen .ls-angst-text { grid-column: 1 / -1; min-width: 0; display: grid; gap: 20px; align-content: center; }
.page-leistungen .ls-p { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-75); max-width: 30em; }
@media (min-width: 810px) {
  .page-leistungen .ls-angst-fig {
    grid-column: 1 / 8; margin-inline: 0; margin-left: calc(-1 * max(var(--side), (100vw - var(--container)) / 2));
    aspect-ratio: auto; height: min(78svh, 820px); min-height: 520px; border-radius: 0 var(--r-lg) var(--r-lg) 0;
  }
  .page-leistungen .ls-angst-img { object-position: 75% 35%; }
  .page-leistungen .ls-angst-text { grid-column: 9 / 13; }
}

/* ---- 7 · Die Geräte dahinter: type stack on mist, the sentence word by word ---- */
.page-leistungen .ls-geraete { background: var(--mist); }
.page-leistungen .ls-geraete-body { grid-column: 1 / -1; margin-top: 32px; display: grid; gap: 16px; }
.page-leistungen .ls-stmt { max-width: 22em; }
@media (min-width: 810px) { .page-leistungen .ls-geraete-body { grid-column: 1 / 10; } }

/* touch: treatment links at 44 px (35 px at 390; phone pass 2026-10-22) */
@media (pointer: coarse) { .page-leistungen .ls-e-a { min-height: 44px; align-items: center; } }
