/* Smile4U v8 · Ratgeber template: the hub /ratgeber/ and the guides (V8-TEMPLATES-BRIEF Builder C). Markup
   _tools/pages/ratgeber.py. Concept: the insurer's printed leaflet: one reading column (≤ 70 characters), section
   heads in the left margin, the date on top, the source at the foot; the practice's own section at statement size.
   Adjacency hub: head (mist, type) / contents (paper, ruled entries at --fs-h2) / related run / Termin band.
   Adjacency guide: head (mist, index of anchors) / article (paper, margin heads + column) / FAQ panel / Termin band.
   Shared sections and blocks are placed here, never restyled. */

/* ---- guide head: byline above the lede; the index of the guide's sections (shared .pgh-index), sized for eight ---- */
.page-ratgeber .rg-byline { margin-bottom: 16px; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--ink-64); }
.page-ratgeber .pgh-index .pgh-lab { font-size: var(--fs-h5); line-height: var(--lh-h5); letter-spacing: var(--ls-h5); }
.page-ratgeber .pgh-index a { padding: 8px 0; }
.page-ratgeber .pgh-num { flex: none; }                       /* „05" never breaks beside a two-line label */

/* ---- the article: margin heads cols 1–4, the column cols 5–11 at ≤ 32em (≈ 68 characters of Onest at 18 px) ---- */
.page-ratgeber .rg-art { background: var(--paper); padding-top: 120px; padding-bottom: 0; }   /* the FAQ's own top padding follows the source line */
.page-ratgeber .rg-sec {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-grid); row-gap: 16px;
  scroll-margin-top: calc(var(--nav-bottom) + 24px);
}
.page-ratgeber .rg-sec + .rg-sec { margin-top: 72px; }
.page-ratgeber .rg-h { grid-column: 1 / -1; font-size: var(--fs-h4); line-height: 1.25; letter-spacing: var(--ls-h4); }
.page-ratgeber .rg-body { grid-column: 1 / -1; min-width: 0; max-width: 32em; display: grid; gap: 16px; align-content: start; }   /* 32em ≈ 68 characters of Onest (metrics.em_width) */
.page-ratgeber .rg-p { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-75); }
.page-ratgeber .rg-in { color: var(--blue-deep); text-decoration-color: currentColor; }
@media (min-width: 810px) {
  .page-ratgeber .rg-h { grid-column: 1 / 5; padding-top: 2px; }
  .page-ratgeber .rg-body { grid-column: 5 / 12; }
  .page-ratgeber .rg-sec + .rg-sec { margin-top: 96px; }
}

/* CP ruled list: rows on mist, 4 px apart (the house's ruled list, no hairlines), the item at --fs-h5 */
.page-ratgeber .rg-ruled { display: grid; gap: 4px; margin-block: 8px; }
.page-ratgeber .rg-ruled li {
  padding: 16px 24px; border-radius: var(--r-md); background: var(--mist);
  font-size: var(--fs-h5); line-height: var(--lh-h5); letter-spacing: var(--ls-h5); color: var(--ink);
}
.page-ratgeber .rg-ruled .rg-in { color: inherit; }
.page-ratgeber .rg-ruled-b { display: block; margin-top: 4px; font-size: var(--fs-body); letter-spacing: 0; color: var(--ink-75); }

/* CP steps: numbered rows, every line visible */
.page-ratgeber .rg-steps { display: grid; gap: 24px; margin-block: 8px; }
.page-ratgeber .rg-steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; }
.page-ratgeber .rg-num { font-size: var(--fs-h4); line-height: 1; color: var(--ink-64); font-variant-numeric: tabular-nums; }
.page-ratgeber .rg-step-t { font-weight: var(--fw-statement); }
.page-ratgeber .rg-step-l { color: var(--ink-75); }

/* the practice's own section: the paragraph at statement size, the link under it */
.page-ratgeber .rg-sec--turn { padding-top: 72px; }
.page-ratgeber .rg-turn { color: var(--ink); }
.page-ratgeber .rg-more { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--blue-deep); text-decoration: none; }
.page-ratgeber .rg-more:hover > span:first-child { text-decoration: underline; text-underline-offset: .2em; }
.page-ratgeber .rg-arrow { display: inline-flex; }
.page-ratgeber .rg-arrow svg { width: 20px; height: 20px; transition: transform .45s var(--spring-enter); }
@media (hover: hover) { .page-ratgeber .rg-more:hover .rg-arrow svg { transform: translateX(4px); } }

/* the CP sources line: under the column, ink 64 % */
.page-ratgeber .rg-source { margin-top: 96px; max-width: 46em; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--ink-64); }
@media (min-width: 810px) { .page-ratgeber .rg-source { margin-left: calc((100% + var(--gap-grid)) * 4 / 12); } }

/* ---- hub: the contents, three ruled entries; the question is the link, the row its target ---- */
.page-ratgeber .rg-hub { padding-top: 96px; padding-bottom: 96px; }
.page-ratgeber .rg-entries { border-bottom: 1px solid var(--ink-64); }
.page-ratgeber .rg-entry {
  position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-grid);
  row-gap: 16px; padding: 40px 0 44px; border-top: 1px solid var(--ink-64);
}
.page-ratgeber .rg-q { grid-column: 1 / -1; font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
.page-ratgeber .rg-q a { color: var(--ink); text-decoration: none; }
.page-ratgeber .rg-q a::after { content: ""; position: absolute; inset: 0; }          /* the whole entry is the link's target */
.page-ratgeber .rg-meta { grid-column: 1 / -1; min-width: 0; display: grid; gap: 8px; align-content: start; }
.page-ratgeber .rg-line { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-75); max-width: 24em; }
.page-ratgeber .rg-date { font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--ink-64); }
.page-ratgeber .rg-entry > .rg-arrow { display: none; }
@media (hover: hover) {
  .page-ratgeber .rg-entry:hover .rg-q a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
  .page-ratgeber .rg-entry:hover > .rg-arrow svg { transform: translateX(6px); }
}
.page-ratgeber .rg-q a:focus-visible { outline: none; }
.page-ratgeber .rg-q a:focus-visible::after { outline: 2px solid var(--blue-deep); outline-offset: 4px; border-radius: var(--r-sm); }
@media (min-width: 810px) {
  .page-ratgeber .rg-q { grid-column: 1 / 8; }
  .page-ratgeber .rg-meta { grid-column: 8 / 12; padding-top: 12px; }
  .page-ratgeber .rg-entry > .rg-arrow { display: flex; grid-column: 12 / 13; justify-content: flex-end; padding-top: 18px; }
  .page-ratgeber .rg-entry > .rg-arrow svg { width: 28px; height: 28px; }
}
.page-ratgeber .rg-related { padding-top: 0; }

/* phone numbers set on the CP text (tel: links): the number never breaks across lines */
.page-ratgeber .rg-tel { white-space: nowrap; }
