/* Smile4U v8 · sub-page shell and shared sections (V8-BLOCKS-R1 §2.0; markup _tools/sections/*.py). Linked on every
   sub-page, never on the homepage. Tokens only; page CSS (css/pages/<template>.css) places, never restyles these. */

/* ---- breadcrumb: „Start › Bereich › Seite", 14 / 21, ink 64 % ---- */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--ink-64); }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs a { color: var(--ink-64); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }
.crumbs-sep { padding-inline: 10px; }

/* ---- page head: mist, H1 one line across the container, lede cols 1–5, frame cols 6–12 ---- */
.pgh { position: relative; background: var(--mist); padding-bottom: 64px; }
.pgh-copy { padding-top: calc(var(--nav-bottom) + 24px); }
.pgh-h1 {
  margin-top: 16px; font-size: min(48px, calc((100vw - 2 * var(--side)) / (var(--h1-em) * .55)));
  line-height: var(--lh-h1); letter-spacing: var(--ls-h1); font-weight: var(--fw-display);
}
.pgh-row { margin-top: 32px; row-gap: 32px; }
.pgh-text { grid-column: 1 / -1; min-width: 0; }
.pgh-lede { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-75); max-width: 34em; }
.pgh-frame { grid-column: 1 / -1; position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--rim-glass); }
.pgh-frame picture { display: block; height: 100%; }   /* block: the photo fills the 4:5 frame on phones */
.pgh-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; max-width: none; }
.pgh-index { grid-column: 1 / -1; display: grid; gap: 4px; }
.pgh-index a { display: flex; align-items: baseline; gap: 24px; padding: 12px 0; text-decoration: none; }
.pgh-num { font-size: var(--fs-body); color: var(--ink-64); font-variant-numeric: tabular-nums; }
.pgh-lab { font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); }
.pgh-index a:hover .pgh-lab { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.pgh-spread { position: relative; margin-top: 48px; height: 64svh; overflow: hidden; }
.pgh-spread picture, .sk-spread-photo picture { display: block; height: 100%; }
.pgh-spread-img { width: 100%; height: 100%; object-fit: cover; max-width: none; }

@media (min-width: 810px) {
  .pgh-h1 { font-size: min(var(--fs-h1), calc((100vw - 2 * var(--side)) / var(--h1-em))); white-space: nowrap; }
  .pgh-text { grid-column: 1 / 6; }
  .pgh-frame { grid-column: 6 / 13; aspect-ratio: auto; height: min(68svh, 640px); }
  .pgh-index { grid-column: 7 / 13; }
}
/* live (js/core/pagehead.js): the frame becomes a window onto a full-bleed layer that opens as the head leaves */
html.js:not(.rm) .pgh-frame.is-live { overflow: visible; box-shadow: none; background: none; }
html.js:not(.rm) .pgh-frame.is-live picture { display: none; }
.pgh-bleed { position: absolute; left: 0; right: 0; overflow: hidden; pointer-events: none; z-index: 2; }   /* over the copy, as the hero's photo */
.pgh-bleed-photo { position: absolute; inset: 0; will-change: clip-path; }
.pgh-bleed-img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; will-change: transform; }
.pgh-bleed-rim { position: absolute; border-radius: var(--r-lg); box-shadow: var(--rim-glass); }
.pgh-copy { position: relative; z-index: 1; }

/* ---- shared sections ---- */
.sk-h2 { grid-column: 1 / -1; }
.sk-body { grid-column: 1 / -1; display: grid; gap: 16px; }
.sk-ledger .sk-body, .sk-statement .sk-body, .sk-readout .sk-body { margin-top: 24px; align-content: start; }
@media (min-width: 810px) {
  .sk-ledger .sk-h2 { grid-column: 1 / 6; }
  .sk-ledger .sk-body { grid-column: 7 / 13; margin-top: 0; }
  .sk-statement .sk-body, .sk-readout .sk-body { grid-column: 7 / 13; }
}
.sk-list { grid-column: 1 / -1; margin-top: 32px; display: grid; gap: 24px; }
.sk-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
.sk-num { font-size: var(--fs-h3); line-height: 1; color: var(--ink-64); font-variant-numeric: tabular-nums; }
.sk-step-t { font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--fw-statement); }
.sk-step-l { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-75); }
.sk-aside { grid-column: 1 / -1; margin-top: 32px; }
@media (min-width: 810px) { .sk-list { grid-column: 1 / 8; } .sk-aside { grid-column: 9 / 13; margin-top: 32px; } }
.sk-readout { background: var(--mist); }
.sk-ro-wrap { grid-column: 1 / -1; margin-top: 32px; }
@media (min-width: 810px) { .sk-ro-wrap { grid-column: 1 / 7; } }
.sk-ro { display: grid; gap: 4px; padding: 8px; border-radius: var(--r-lg); background: var(--mist); }
.sk-readout .sk-ro { background: transparent; padding: 0; }
.sk-ro-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 16px 24px; border-radius: var(--r-md); background: var(--paper); font-size: var(--fs-body); line-height: var(--lh-body); }
.sk-ro dt { font-weight: var(--fw-display); color: var(--ink-75); }
.sk-ro dd { font-weight: var(--fw-statement); }
.sk-first { grid-column: 1 / -1; }
.sk-spread { position: relative; }
.sk-spread-photo { height: 100svh; overflow: hidden; }
.sk-spread-img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.sk-spread-text { padding-block: 48px; display: grid; gap: 24px; }
@media (min-width: 810px) {
  .sk-spread-text { position: absolute; inset: 12svh 0 auto; }
  .sk-spread--right .sk-spread-text > * { margin-left: 55%; }
  .sk-spread--on-dark .sk-spread-text { color: var(--paper); }            /* photo["on"] = "dark": the page measured it */
  .sk-spread--on-dark .t-body { color: var(--paper-75); }
}
.sk-run { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.sk-run a { text-decoration: none; }
.sk-run a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }

/* touch: breadcrumb links at 44 px (32 on pointer devices; phone pass 2026-10-22) */
@media (pointer: coarse) { .crumbs a { min-height: 44px; } }

/* phones: label above value (side by side the value column was ~140 px at 390 and a five-word value ran to eight
   lines; phone pass 2026-10-22). The Ort readout's own column split is undone with it. */
@media (max-width: 479.98px) {
  .sk-ro-row, .page-ort .or-ro .sk-ro-row { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 20px; }
}
