/* ============================================================
   ratgeber.css: Themenseiten unter /ratgeber

   Ergaenzt bundesland.css (Grundlayout, Breadcrumb, page-heading,
   bl-intro, bl-cta-*, #site-footer) um Lauftext-Typografie und die
   Ratgeber-eigenen Bausteine. NACH bundesland.css und tokens.css
   einbinden.
   ============================================================ */

.rg-main { max-width: 760px; }

/* ── Meta-Zeile unter der H1 ─────────────────────────────── */
.rg-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ── Lead: die direkte Antwort in 2 bis 3 Saetzen ─────────────
   Bewusst als erstes Textelement nach der H1, das ist der Absatz,
   den Suchmaschinen als Snippet und KI-Assistenten als Antwort
   uebernehmen. */
.rg-lead {
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--text);
  margin-bottom: 22px;
}
.rg-lead strong { font-weight: 700; }
.rg-lead a { color: #116366; text-decoration: underline; text-underline-offset: 2px; }

/* ── „Kurz beantwortet“-Kasten ───────────────────────────── */
.rg-facts {
  background: var(--teal-light);
  border: 1px solid #c5e6e2;
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 26px;
}
.rg-facts-h {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #0f766e;
  margin-bottom: 10px;
}
.rg-facts-list { list-style: none; display: grid; gap: 8px; }
.rg-facts-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
}
.rg-facts-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
}
.rg-facts-list a { color: #0e5f63; text-decoration: underline; text-underline-offset: 2px; }
.rg-facts-list strong { font-weight: 700; }

/* ── Lauftext ────────────────────────────────────────────── */
.rg-body { font-size: 14.5px; line-height: 1.75; color: var(--text-muted); }
.rg-body h2 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 34px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.rg-body > h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.rg-body h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  margin: 22px 0 8px;
}
.rg-body p { margin-bottom: 14px; }
.rg-body p:last-child { margin-bottom: 0; }
.rg-body strong { color: var(--text); font-weight: 600; }
.rg-body a { color: #116366; text-decoration: underline; text-underline-offset: 2px; }
.rg-body a:hover { color: #0e5f63; }
.rg-body ul, .rg-body ol { margin: 0 0 16px 20px; display: grid; gap: 7px; }
.rg-body li { padding-left: 2px; }
.rg-body li::marker { color: var(--teal); }

/* Definitionsliste für „Begriff → Bedeutung“-Abschnitte */
.rg-body dl {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.rg-body dt { font-weight: 700; color: var(--text); font-size: 14px; }
.rg-body dt + dd { margin-top: 3px; }
.rg-body dd + dt { margin-top: 14px; }
.rg-body dd { font-size: 13.5px; line-height: 1.65; }

/* Hervorgehobener Praxis-Hinweis mitten im Text */
.rg-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 13.5px;
  line-height: 1.65;
  box-shadow: var(--shadow);
}
.rg-note strong { color: var(--text); }

/* Tabellen bleiben auf kleinen Displays scrollbar statt zu brechen */
.rg-table-wrap { overflow-x: auto; margin-bottom: 18px; }
.rg-body table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  overflow: hidden;
}
.rg-body th, .rg-body td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.rg-body th { background: var(--surface-soft); color: var(--text); font-weight: 700; }
.rg-body tr:last-child td { border-bottom: none; }

/* ── FAQ-Block (gleiche Optik wie /faq) ──────────────────── */
.rg-faq { margin-top: 36px; }
.rg-faq h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.faq-item[open] { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.faq-item > summary {
  cursor: pointer; list-style: none;
  padding: 15px 48px 15px 20px; position: relative;
  font-size: 15px; font-weight: 600; color: var(--text);
  line-height: 1.4; -webkit-tap-highlight-color: transparent;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: #116366; }
.faq-item > summary:focus-visible { outline: 3px solid #79d1dc; outline-offset: -3px; border-radius: var(--radius); }
.faq-item > summary::after {
  content: ""; position: absolute; right: 20px; top: 50%;
  width: 10px; height: 10px; margin-top: -5px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] > summary::after { transform: rotate(-135deg); }
.faq-a { padding: 0 20px 18px; color: var(--text-muted); font-size: 13.5px; line-height: 1.7; }
.faq-a p { margin-bottom: 10px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a strong { color: var(--text); }
.faq-a a { color: #116366; text-decoration: none; }
.faq-a a:hover { text-decoration: underline; }

/* ── Weiterlesen ─────────────────────────────────────────── */
.rg-related { margin-top: 30px; }
.rg-related h2 {
  font-size: 16px; font-weight: 700; color: var(--text);
  margin-bottom: 12px; padding-top: 20px; border-top: 1px solid var(--border);
}
.rg-related-grid { display: grid; gap: 10px; }
.rg-related-card {
  display: grid; gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.rg-related-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.rg-related-title { font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.35; }
.rg-related-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }

/* ── Übersicht /ratgeber ─────────────────────────────────── */
.rg-card-grid { display: grid; gap: 12px; margin-bottom: 24px; }
.rg-card {
  display: grid; gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 18px 22px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.rg-card:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.rg-card-title { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.3; }
.rg-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.rg-card-more { font-size: 12.5px; font-weight: 600; color: #116366; margin-top: 2px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .rg-lead { font-size: 15.5px; }
  .rg-facts { padding: 14px 16px; }
  .rg-body { font-size: 14px; }
  .rg-body h2 { font-size: 17.5px; }
  .rg-body dl { padding: 14px 16px; }
  .rg-card { padding: 15px 17px; }
  .rg-card-title { font-size: 15px; }
  .faq-item > summary { font-size: 14px; padding: 14px 44px 14px 16px; }
  .faq-a { padding: 0 16px 16px; }
}

/* ── Quellen ─────────────────────────────────────────────── */
.rg-sources { margin-top: 30px; }
.rg-sources h2 {
  font-size: 15px; font-weight: 700; color: var(--text);
  margin-bottom: 10px; padding-top: 20px; border-top: 1px solid var(--border);
}
.rg-sources ul { list-style: none; display: grid; gap: 6px; }
.rg-sources li {
  position: relative;
  padding-left: 16px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
}
.rg-sources li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--border-strong);
}
.rg-sources a { color: #116366; text-decoration: none; overflow-wrap: anywhere; }
.rg-sources a:hover { text-decoration: underline; }

/* Stand-/Gewährleistungshinweis am Artikelende (nur bei Zahlen-Artikeln) */
.rg-standdate {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}
