/* Ratgeber teilungserklaerung.de: Stil fuer /ratgeber/ und /ratgeber/<slug>/.
   Farben und Schriften wie die Hülle (Impressum): Tokens uicore_headline, uicore_body, uicore_accent,
   Textspalte 720 px, am Handy 390 px ohne Überlauf, Knöpfe mindestens 44 px hoch. */

.rg {
  box-sizing: border-box;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 64px;
  color: #6B7280;
  font-family: var(--e-global-typography-uicore_text-font-family, Inter, sans-serif);
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
  hyphens: none;
}

.rg *, .rg *::before, .rg *::after {
  box-sizing: border-box;
}

.rg h1, .rg h2, .rg h3, .rg .rg-kurz-titel, .rg .rg-inhalt-titel {
  color: #111827;
  font-family: var(--e-global-typography-uicore_primary-font-family, Poppins, sans-serif);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.rg h1 {
  margin: 8px 0 12px;
  font-size: 30px;
  font-weight: 700;
}

.rg h2 {
  margin: 40px 0 12px;
  font-size: 23px;
  font-weight: 600;
  scroll-margin-top: 96px;
}

.rg h3 {
  margin: 28px 0 8px;
  font-size: 18px;
  font-weight: 600;
  scroll-margin-top: 96px;
}

.rg p {
  margin: 0 0 16px;
}

.rg a {
  color: #1C7495;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rg strong {
  color: #111827;
  font-weight: 600;
}

.rg ul, .rg ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.rg li {
  margin: 0 0 6px;
}

.rg-brot ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.rg-brot li {
  margin: 0;
}

.rg-brot li + li::before {
  content: "/";
  margin-right: 6px;
  color: #9CA3AF;
}

.rg-brot li[aria-current] {
  color: #6B7280;
}

.rg-meta {
  margin: 0 0 24px;
  font-size: 14px;
  color: #6B7280;
}

.rg-kurz {
  margin: 0 0 24px;
  padding: 20px 20px 8px;
  background: #F9FAFB;
  border: 1px solid #ebebeb;
  border-radius: 12px;
}

.rg-kurz-titel, .rg-inhalt-titel {
  margin: 0 0 10px !important;
  font-size: 16px;
  font-weight: 600;
}

.rg-kurz ul {
  margin: 0 0 12px;
}

.rg-inhalt {
  margin: 0 0 28px;
  padding: 16px 20px;
  border: 1px solid #ebebeb;
  border-radius: 12px;
}

.rg-inhalt ol {
  margin: 0;
  padding-left: 20px;
}

.rg-inhalt li {
  margin: 0 0 6px;
}

.rg-hinweis {
  margin: 0 0 20px;
  padding: 14px 18px;
  background: #EEF8FC;
  border-left: 4px solid #36AEDD;
  border-radius: 8px;
}

.rg-hinweis p {
  margin: 0;
}

.rg-hinweis-wichtig {
  background: #FFF7ED;
  border-left-color: #F59E0B;
}

.rg-tabelle {
  margin: 0 0 20px;
  overflow-x: auto;
  border: 1px solid #ebebeb;
  border-radius: 8px;
}

.rg-tabelle table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.rg-tabelle th, .rg-tabelle td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #ebebeb;
}

.rg-tabelle th {
  color: #111827;
  background: #F9FAFB;
  font-weight: 600;
}

.rg-cta {
  margin: 40px 0 32px;
  padding: 24px 20px;
  background: #F9FAFB;
  border: 1px solid #ebebeb;
  border-radius: 12px;
}

.rg-cta p {
  margin: 0 0 16px;
  color: #111827;
}

.rg-knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  color: #FFFFFF !important;
  background: #1C7495;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none !important;
}

.rg-knopf:hover, .rg-knopf:focus-visible {
  background: #155C78;
}

.rg-verwandt {
  margin: 8px 0 24px;
}

.rg-karten {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 16px;
}

.rg-karte {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 44px;
  padding: 16px 18px;
  background: #FFFFFF;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  color: #6B7280;
  text-decoration: none;
}

.rg a.rg-karte, .rg a.rg-karte:hover {
  color: #6B7280;
  text-decoration: none;
}

.rg a.rg-karte:hover .rg-karte-titel, .rg a.rg-karte:focus-visible .rg-karte-titel {
  color: #1C7495;
}

.rg-karte:hover, .rg-karte:focus-visible {
  border-color: #36AEDD;
}

.rg-karte-kat {
  font-size: 13px;
  color: #1C7495;
  font-weight: 600;
}

.rg-karte-titel {
  color: #111827;
  font-family: var(--e-global-typography-uicore_primary-font-family, Poppins, sans-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.rg-karte-text {
  font-size: 15px;
}

.rg-kat {
  margin: 0;
}

.rg-recht {
  margin: 32px 0 0;
  font-size: 14px;
  color: #6B7280;
}

@media (min-width: 640px) {
  .rg-karten {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .rg {
    padding: 16px 16px 48px;
    font-size: 16px;
  }

  .rg h1 {
    font-size: 26px;
  }

  .rg h2 {
    font-size: 21px;
  }

  .rg-knopf {
    width: 100%;
  }

  .rg-cta {
    padding: 20px 16px;
  }
}
