/* Ratgeber (Guides) – Mein Deutscher Pass
   Builds on site.css tokens. All selectors are prefixed with .rg- so existing pages are unaffected. */

.rg-hero { background: var(--panel); border-bottom: 1px solid var(--line); }
.rg-hero__inner { max-width: 820px; padding: 40px 0 44px; }
.rg-hero .h1 { margin-top: 12px; font-size: 1.9rem; }
.rg-hero .lede { margin-top: 14px; max-width: 62ch; }
@media (min-width: 768px) {
  .rg-hero__inner { padding: 56px 0 60px; }
  .rg-hero .h1 { font-size: 2.35rem; }
}

.rg-breadcrumb { font-size: 13px; color: var(--ink-soft); }
.rg-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rg-breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--gold-deep); }
.rg-breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.rg-breadcrumb [aria-current="page"] { color: var(--ink); }

.rg-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: 13.5px; color: var(--ink-soft); }
.rg-meta strong { color: var(--ink); font-weight: 600; }

.rg-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 40px 0 72px; }
.rg-layout > * { min-width: 0; }
@media (min-width: 1000px) {
  .rg-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
  .rg-aside { position: sticky; top: 110px; align-self: start; }
}

/* Article typography (site.css resets margins and list styles globally) */
.rg-article { max-width: 760px; font-size: 16.5px; line-height: 1.7; }
.rg-article > * + * { margin-top: 18px; }
.rg-article h2 { margin-top: 48px; font-size: 1.55rem; line-height: 1.22; scroll-margin-top: 110px; }
.rg-article h3 { margin-top: 30px; font-size: 1.2rem; line-height: 1.3; scroll-margin-top: 110px; }
.rg-article h2 + *, .rg-article h3 + * { margin-top: 12px; }
.rg-article p { max-width: 70ch; }
.rg-article ul, .rg-article ol { padding-left: 1.4em; max-width: 68ch; }
.rg-article ul { list-style: disc; }
.rg-article ol { list-style: decimal; }
.rg-article li + li { margin-top: 6px; }
.rg-article li::marker { color: var(--gold-deep); }
.rg-article a:not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rg-article a:not(.btn):hover { color: var(--gold-deep); }
.rg-article strong { font-weight: 600; }
.rg-article abbr { text-decoration: none; }

.rg-summary { padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius-s); }
.rg-summary__title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.rg-summary ul { margin-top: 10px; }

.rg-toc { padding: 20px 22px; background: var(--paper-deep); border-radius: var(--radius-s); font-size: 14.5px; }
.rg-toc__title { font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); }
.rg-toc ol { margin-top: 10px; padding-left: 1.3em; list-style: decimal; }
.rg-toc li + li { margin-top: 6px; }
.rg-toc a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(168,128,42,0.45); }

.rg-note { padding: 18px 20px; background: var(--gold-tint); border-radius: var(--radius-s); font-size: 15px; line-height: 1.6; }
.rg-note--warn { background: var(--red-tint); border-left: 3px solid var(--red); }
.rg-note--plain { background: var(--paper-deep); }
.rg-note__title { display: block; font-weight: 600; margin-bottom: 4px; }

.rg-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; }
.rg-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; min-width: 520px; }
.rg-table caption { padding: 12px 14px 0; text-align: left; font-size: 13px; color: var(--ink-soft); caption-side: top; }
.rg-table th, .rg-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.rg-table thead th { background: var(--paper-deep); font-weight: 600; font-size: 13.5px; }
.rg-table tbody tr:last-child td, .rg-table tbody tr:last-child th { border-bottom: 0; }
.rg-table tbody th { font-weight: 600; }

.rg-steps { counter-reset: rgstep; list-style: none !important; padding-left: 0 !important; }
.rg-steps > li { position: relative; padding-left: 48px; min-height: 34px; }
.rg-steps > li + li { margin-top: 16px; }
.rg-steps > li::before { counter-increment: rgstep; content: counter(rgstep); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--gold-tint); color: var(--gold-deep); font-weight: 700; display: grid; place-items: center; font-size: 14px; }

.rg-checklist { list-style: none !important; padding-left: 0 !important; }
.rg-checklist > li { position: relative; padding-left: 30px; }
.rg-checklist > li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border: 2px solid var(--gold-deep); border-radius: 4px; background: #fff; }

.rg-cta { margin-top: 36px !important; padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius-m); box-shadow: var(--shadow); }
.rg-cta__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.rg-cta p { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }
.rg-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.rg-cta__phone { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rg-cta__fine { margin-top: 12px !important; font-size: 13px !important; }

.rg-aside .rg-cta { margin-top: 0 !important; box-shadow: none; }
.rg-aside .rg-toc + .rg-cta { margin-top: 20px !important; }

.rg-author { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start; padding: 22px; background: var(--paper-deep); border-radius: var(--radius-m); }
.rg-author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.rg-author__name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.rg-author p { margin-top: 6px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }

.rg-sources { font-size: 14px; color: var(--ink-soft); }
.rg-sources ol { margin-top: 8px; }
.rg-sources a { word-break: break-word; }

.rg-faq { margin-top: 12px; border-top: 1px solid var(--line); }
.rg-faq__item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.rg-faq__item h3 { margin-top: 0 !important; font-size: 1.08rem; line-height: 1.35; }
.rg-faq__item > * + * { margin-top: 8px; }
.rg-faq__item p, .rg-faq__item li { font-size: 15.5px; color: var(--ink-soft); }
.rg-faq details > div { margin-top: 10px; max-width: 68ch; font-size: 15px; color: var(--ink-soft); line-height: 1.65; }
.rg-faq details > div > * + * { margin-top: 10px; }

.rg-cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 700px) { .rg-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .rg-cards--3 { grid-template-columns: repeat(3, 1fr); } }
.rg-card { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); transition: box-shadow .2s ease, transform .2s ease; }
.rg-card:hover, .rg-card:focus-within { box-shadow: var(--shadow); transform: translateY(-2px); }
.rg-card__tag { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.rg-card__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.rg-card__title a { text-decoration: none !important; }
.rg-card__title a::after { content: ""; position: absolute; inset: 0; }
.rg-card { position: relative; }
.rg-card__text { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }

/* Deadline calculator */
.rg-calc { padding: 24px; background: #fff; border: 2px solid var(--gold); border-radius: var(--radius-m); }
.rg-calc__title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.rg-calc__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 14px; }
.rg-calc label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.rg-calc input[type="date"] { font: inherit; padding: 12px 14px; border: 1px solid rgba(43,33,23,0.25); border-radius: var(--radius-s); background: var(--paper); min-width: 200px; }
.rg-calc input[type="date"]:focus { outline: 3px solid var(--gold-tint); border-color: var(--gold-deep); }
.rg-calc__result { margin-top: 16px; padding: 16px 18px; border-radius: var(--radius-s); background: var(--paper-deep); font-size: 15px; line-height: 1.6; }
.rg-calc__result[hidden] { display: none; }
.rg-calc__result--ok { background: #eef6ea; }
.rg-calc__result--wait { background: var(--gold-tint); }
.rg-calc__fine { margin-top: 12px !important; font-size: 13px !important; color: var(--ink-soft); }
.rg-calc__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 12px; }
.rg-calc__cta a:not(.btn) { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Printable template (Lebenslauf) */
.rg-template { padding: 26px 24px; background: #fff; border: 1px dashed rgba(43,33,23,0.3); border-radius: var(--radius-s); font-size: 15px; }
.rg-template h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin-top: 18px; }
.rg-template h3:first-child { margin-top: 0; }
.rg-template table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.rg-template td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rg-template td:first-child { width: 34%; color: var(--ink-soft); white-space: nowrap; }

.rg-article .btn, .rg-cta .btn { text-decoration: none; }
.rg-article :focus-visible, .rg-cta :focus-visible, .rg-card :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

@media print {
  .site-header, .site-footer, .mobile-bar, .floating-cta, .scroll-progress-track, .rg-aside, .rg-cta, #analytics-consent-banner { display: none !important; }
  body.rg-print-template * { visibility: hidden; }
  body.rg-print-template .rg-template, body.rg-print-template .rg-template * { visibility: visible; }
  body.rg-print-template .rg-template { position: absolute; left: 0; top: 0; width: 100%; border: 0; }
}
