/* ============================================
   RATGEBER-ARTIKEL.CSS — Prosa-Styling für
   einzelne Ratgeber-Artikel (/ratgeber/[slug]/)
   ============================================ */

/* KOMPAKTER HERO für Artikel */
.hero.hero-compact { min-height: 300px }
.hero.hero-compact h1 {
  font-size: 34px; line-height: 1.25; max-width: 860px;
}
@media (max-width: 768px) {
  .hero.hero-compact { min-height: 280px }
  .hero.hero-compact h1 { font-size: 26px }
}

.rg-prose {
  max-width: 820px;
  margin: 0 auto;
}
.rg-prose h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 24px; font-weight: 700;
  color: var(--navy);
  margin: 40px 0 16px;
  line-height: 1.3;
}
.rg-prose h2:first-child { margin-top: 0 }
.rg-prose p {
  font-size: 17px; line-height: 1.75;
  color: var(--gray-text);
  margin: 0 0 18px;
}
.rg-prose strong { color: var(--navy) }
.rg-prose a { color: var(--green-dark); font-weight: 600 }
.rg-prose a:hover { color: var(--green) }

.rg-prose ul {
  margin: 0 0 18px; padding: 0;
  list-style: none;
}
.rg-prose ul li {
  position: relative; padding-left: 26px;
  font-size: 17px; line-height: 1.7;
  color: var(--gray-text);
  margin-bottom: 10px;
}
.rg-prose ul li::before {
  content: '\2192'; position: absolute; left: 0;
  color: var(--green); font-weight: 700;
}

/* TABELLEN */
.rg-table-wrap { overflow-x: auto; margin: 0 0 24px }
.rg-prose table {
  width: 100%; border-collapse: collapse;
  font-size: 15px; line-height: 1.55;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
}
.rg-prose th {
  background: var(--navy); color: white;
  text-align: left; padding: 12px 16px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px;
}
.rg-prose td {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  color: var(--gray-text); vertical-align: top;
}
.rg-prose tbody tr:nth-child(even) td { background: #f8fafc }
.rg-prose td strong { color: var(--navy) }

/* HERVORHEBUNGS-KASTEN (Blockzitate / Praxisgeschichten) */
.rg-quote {
  background: #f8fafc;
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 22px 26px;
  margin: 0 0 24px;
  font-size: 17px; line-height: 1.75;
  color: var(--navy); font-style: italic;
}
.rg-quote p { margin: 0 0 12px; color: var(--navy); font-style: italic }
.rg-quote p:last-child { margin: 0 }

/* HINWEIS-ABSATZ (kursive Steuer-/Rechtshinweise) */
.rg-note {
  font-size: 14px; line-height: 1.65;
  color: var(--gray-muted); font-style: italic;
  background: #f1f5f9; border-radius: 8px;
  padding: 14px 18px; margin: 0 0 24px;
}

/* AUTOREN-ZEILE unter H1 */
.rg-byline {
  font-size: 14px; color: var(--gray-muted);
  font-style: italic; line-height: 1.6;
  margin: 0 0 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

/* ABSCHLUSS-CTA-BOX */
.rg-closing {
  background: var(--navy); color: white;
  border-radius: 12px; padding: 28px 32px;
  margin: 36px auto 0; max-width: 820px;
}
.rg-closing p {
  margin: 0 0 18px; font-size: 16px; line-height: 1.7;
  color: rgba(255,255,255,0.92);
}
.rg-closing p:last-child { margin: 0 }
.rg-closing a:not(.btn-primary) { color: #9fe06a; font-weight: 600 }
.rg-closing .btn-primary { background: var(--green); color: white }
.rg-closing .btn-primary:hover { background: var(--green-dark); color: white }

/* WEITERE ARTIKEL (Spoke-Liste auf Hub-Artikel) */
.rg-weitere-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 28px;
}
.rg-weitere {
  background: white; border: 1px solid var(--border);
  border-radius: 10px; padding: 22px 24px;
  text-decoration: none; color: inherit;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  display: block;
}
.rg-weitere:hover {
  border-color: var(--green); box-shadow: 0 6px 20px rgba(0,39,112,0.08);
  transform: translateY(-2px); text-decoration: none; color: inherit;
}
.rg-weitere h4 {
  font-size: 16px; color: var(--navy); margin: 0 0 8px;
  font-family: 'Poppins', sans-serif; font-weight: 700; line-height: 1.35;
}
.rg-weitere p { font-size: 13px; color: var(--gray-muted); line-height: 1.6; margin: 0 }

@media (max-width: 768px) {
  .rg-prose h2 { font-size: 21px }
  .rg-prose p, .rg-prose ul li { font-size: 16px }
}
