/* =====================================================================
   /ratgeber/ und die Artikel darunter. Baut auf seite.css auf.
   Übersicht: Karten im Muster der Leistungskarten.
   Artikel: links mitlaufendes Inhaltsverzeichnis, rechts Text auf ~720 px.
   Präfix .rg-
   ===================================================================== */

/* ---------- Brotkrumen ---------- */
.rg-brotkrumen { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 24px; font-size: 14px; color: var(--ink-3); }
.rg-brotkrumen a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-mid); position: relative; }
.rg-brotkrumen a::after { content: ""; position: absolute; inset: -11px -4px; }
.rg-brotkrumen a:hover { text-decoration-color: currentColor; }

/* ---------- Übersicht ---------- */
.rg-uebersicht .abschnitt-lead { max-width: 34em; }
.rg-raster-karten { display: grid; gap: 18px; margin-top: clamp(28px, 3.5vw, 44px); }
.rg-karte h2 { font-size: clamp(21px, 2vw, 25px); line-height: 1.15; margin-bottom: 8px; }
.rg-karte h2 a { display: block; }
.rg-karte h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rg-karte .karte-flaeche { position: relative; display: flex; flex-direction: column; gap: 0; height: 100%; }
.rg-karte p { font-size: 15px; line-height: 1.6; }
.rg-karte-mehr { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 16px; font: 600 14px/1 var(--text); color: var(--accent-btn); }
.rg-karte:hover .rg-karte-mehr .ic-pfeil { transform: translateX(3px); }

@media (min-width: 760px) {
  .rg-raster-karten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Artikel ---------- */
.rg-artikel { padding-top: clamp(28px, 3vw, 44px); }
.rg-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 3vw, 40px); }
.rg-kopf { max-width: 620px; }
.rg-kopf h1 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.07; margin-bottom: 18px; }
.rg-lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 32em; }
.rg-stand { margin-top: 18px; font-size: 13px; color: var(--ink-3); }

/* Inhaltsverzeichnis */
.rg-inhalt { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper-2); }
.rg-inhalt-titel { font: 600 13px/1.3 var(--text); color: var(--ink-3); margin-bottom: 10px; }
.rg-inhalt ol { display: grid; gap: 8px; counter-reset: rg; }
.rg-inhalt li { counter-increment: rg; display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.rg-inhalt li::before { content: counter(rg); flex: none; width: 20px; font: 600 13px/1.5 var(--text); color: var(--accent-btn); }
.rg-inhalt a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-mid); }
.rg-inhalt a:hover { text-decoration-color: currentColor; color: var(--ink); }

/* Fließtext */
.rg-text { max-width: 44em; }
.rg-abschnitt + .rg-abschnitt { margin-top: clamp(34px, 3.4vw, 52px); }
.rg-abschnitt h2 { font-size: clamp(25px, 2.3vw, 31px); line-height: 1.16; margin-bottom: 14px; }
.rg-abschnitt p { font-size: 17px; line-height: 1.68; }
.rg-abschnitt p + p { margin-top: 14px; }
.rg-abschnitt .haken { margin: 18px 0 4px; font-size: 16px; }
.rg-schritte { display: grid; gap: 14px; margin: 18px 0 4px; counter-reset: rgs; }
.rg-schritte li { counter-increment: rgs; position: relative; padding-left: 40px; font-size: 16px; line-height: 1.6; }
.rg-schritte li::before {
  content: counter(rgs); position: absolute; left: 0; top: -1px;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px;
  background: var(--tint); color: var(--accent-btn); font: 700 13px/1 var(--text);
}
.rg-schritte b, .rg-abschnitt strong { color: var(--ink); }

/* Schluss-Karte im Artikel */
.rg-cta { margin-top: clamp(40px, 4vw, 64px); }
.rg-cta-kicker { font: 600 13px/1.3 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 10px; }
.rg-cta h2 { font-size: clamp(25px, 2.4vw, 33px); line-height: 1.14; margin-bottom: 12px; }
.rg-cta p { max-width: 42em; font-size: 16px; line-height: 1.65; }
.rg-cta .btn { margin-top: 22px; }
.rg-cta--breit { text-align: left; }

/* Weiterlesen */
.rg-weiter { margin-top: clamp(32px, 3.4vw, 48px); padding-top: 24px; border-top: 1px solid var(--line); }
.rg-weiter-titel { font: 600 13px/1.3 var(--text); color: var(--ink-3); margin-bottom: 12px; }
.rg-weiter ul { display: grid; gap: 10px; }
.rg-weiter a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); font: 500 17px/1.3 var(--head); letter-spacing: -.01em; color: var(--ink); }
.rg-weiter a:hover { border-color: var(--line-mid); }
.rg-weiter a:hover .ic-pfeil { transform: translateX(3px); }
.rg-weiter .ic { flex: none; width: 18px; height: 18px; color: var(--accent-btn); }

.rg-schluss { padding-top: 0; }

@media (min-width: 1000px) {
  .rg-raster { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); column-gap: clamp(40px, 4vw, 72px); align-items: start; }
  .rg-kopf { grid-column: 1 / -1; max-width: 860px; }
  .rg-inhalt { position: sticky; top: 92px; }
}

/* Absatz nach einer Liste braucht Luft */
.rg-abschnitt .haken + p,
.rg-abschnitt .rg-schritte + p { margin-top: 18px; }
