/* Ratgeber pages (/ratgeber/…): reading layout on top of site.css. Same tokens, Barlow, signal orange only for actions. */
.rg { padding: 64px 0 112px; }
.rg-wrap { max-width: 920px; }
.rg-head { margin-bottom: 28px; }
.rg .rg-eyebrow { margin: 0 0 12px; font-weight: 500; font-size: 1rem; color: var(--ink-2); }
.rg-head h1 { max-width: 20ch; }
.rg-lead { font-size: 1.2rem; color: var(--ink-2); margin-top: 18px; max-width: 62ch; }

.rg-note { margin: 0 0 48px; padding: 18px 22px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--wash); color: var(--ink-2); max-width: 70ch; }
.rg-note strong { color: var(--ink); }

.rg h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin: 56px 0 18px; }
.rg h3 { font-size: 1.4rem; margin: 0 0 6px; }
.rg p { max-width: 70ch; color: var(--ink-2); }

.rg-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; max-width: 72ch; }
.rg-points li { padding-left: 22px; position: relative; color: var(--ink-2); }
.rg-points li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 2px; background: var(--ink-3); }
.rg-points strong { color: var(--ink); }

.rg-toc ul { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 24px; }
.rg-toc a { font-weight: 500; }
.rg-toc-none { font-size: 1rem; color: var(--ink-3); }

.rg-land { padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: 88px; }
.rg-law { font-weight: 600; color: var(--ink) !important; margin-bottom: 10px; }
.rg-none { font-style: italic; }
.rg-calc { margin: 12px 0 0; font-weight: 500; }

.rg-table { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.rg-table table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 1rem; }
.rg-table th, .rg-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.rg-table tbody tr:last-child td { border-bottom: 0; }
.rg-table thead th { font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: #FAFBFC; }
.rg-table td { color: var(--ink-2); }
.rg-table td:first-child { color: var(--ink); font-weight: 500; }
.rg-num { white-space: nowrap; color: var(--ink) !important; font-weight: 600; }
.rg-table td:last-child { min-width: 200px; }

.rg-cta { margin-top: 56px; padding: 32px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: #fff; }
.rg-cta h2 { margin-top: 0; }
.rg-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }
.rg-sources { margin-top: 40px; color: var(--ink-3) !important; }

@media (max-width: 680px) {
  .rg { padding: 40px 0 72px; }
  .rg h2 { margin-top: 44px; }
  .rg-cta { padding: 24px 20px; }
  .rg-cta-row .btn { width: 100%; }
}

/* Numbered checklist (Fristverlängerung: what goes into the entry) and sub-headings inside a section */
.rg section h3 { margin-top: 28px; }
.rg-steps { margin: 0 0 20px; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; max-width: 72ch; }
.rg-steps li { counter-increment: step; position: relative; padding-left: 40px; color: var(--ink-2); }
.rg-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 600; font-size: .9rem; color: var(--ink); }
.rg-steps strong { color: var(--ink); }

/* Overview /ratgeber and "Weitere Ratgeber" at the end of each guide: link cards */
.rg-cards { list-style: none; margin: 8px 0 40px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.rg-card { display: grid; align-content: start; gap: 6px; height: 100%; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; color: var(--ink-2); text-decoration: none; transition: border-color .15s var(--ease); }
.rg-card:hover { border-color: var(--ink-3); color: var(--ink-2); }
.rg-card strong { font-size: 1.25rem; color: var(--ink); }
.rg-card:hover strong { color: var(--accent-press); }
.rg-more { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--line); }
.rg-eyebrow a { color: inherit; }

/* Long German compounds (Landeseisenbahnaufsicht) hyphenate instead of running out of the phone screen */
.rg h1, .rg h2, .rg h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

/* Glossar: letter navigation and definition list */
.gl-letters ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gl-letters a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; }
.gl-letters a:hover { border-color: var(--ink-3); }
.gl-letter { padding-top: 8px; border-top: 1px solid var(--line); scroll-margin-top: 88px; }
.gl-letter h2 { margin: 24px 0 8px; }
.gl-list { margin: 0; }
.gl-entry { padding: 14px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 88px; }
.gl-entry:last-child { border-bottom: 0; }
.gl-entry dt { font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.gl-also { font-weight: 400; font-size: 1rem; color: var(--ink-3); }
.gl-entry dd { margin: 4px 0 0; color: var(--ink-2); max-width: 72ch; }
.gl-entry:target { background: var(--accent-tint); box-shadow: -12px 0 0 var(--accent-tint), 12px 0 0 var(--accent-tint); }

/* Checkliste Behördenprüfung (werkzeuge/checkliste-behoerdenpruefung) */
.ck-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 20px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--wash); }
.ck-progress { margin: 0; font-weight: 600; color: var(--ink) !important; }
.ck-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ck-list { display: grid; gap: 16px; margin-bottom: 28px; }
.ck-group { margin: 0; padding: 16px 20px 8px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.ck-group legend { padding: 0 6px; font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.ck-item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); }
.ck-item:first-of-type { border-top: 0; }
.ck-item input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.ck-item label { font-weight: 400; color: var(--ink-2); cursor: pointer; }
.ck-item input:checked + label { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
@media print {
  .nav, .site-footer, .skip, .ck-actions, .rg-note, .rg-eyebrow { display: none !important; }
  .rg { padding: 0; }
  .ck-bar, .ck-group { border-color: var(--ink-3); background: #fff; }
  .ck-group { break-inside: avoid; }
  .ck-item input:checked + label { text-decoration: none; color: #000; }
}
