.ratgeber-article {
  max-width: 860px;
  min-width: 0;
  margin-inline: auto;
  display: grid;
  gap: 1.5rem;
}

.ratgeber-article > hr {
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--color-border);
}

.section-shell--narrow {
  min-width: 0;
}

.ratgeber-article h1,
.ratgeber-article h2,
.ratgeber-article h3,
.ratgeber-article h4,
.ratgeber-article h5,
.ratgeber-article h6 {
  line-height: 1.3;
  margin: 1rem 0 0.55rem;
}

.ratgeber-article h1:first-child,
.ratgeber-article h2:first-child,
.ratgeber-article h3:first-child,
.ratgeber-article h4:first-child,
.ratgeber-article h5:first-child,
.ratgeber-article h6:first-child {
  margin-top: 0;
}

.ratgeber-article p,
.ratgeber-article ul,
.ratgeber-article ol {
  margin: 0;
}

.ratgeber-article > section:not(.ratgeber-faq):not(.ratgeber-cta) > :is(p, ul, ol, .ratgeber-article__table-wrap) + :is(p, ul, ol, .ratgeber-article__table-wrap, .spotlight-panel) {
  margin-top: 0.75rem;
}

.ratgeber-article__header {
  display: grid;
  gap: 0.3rem;
}

.ratgeber-toc {
  border: 1px solid var(--color-border);
  background: var(--color-surface-muted);
  border-radius: 0.2rem;
  padding: 0.55rem 1.05rem;
}

.ratgeber-toc > ol {
  margin-top: 0.3rem;
  padding-left: 1.3rem;
}

.ratgeber-toc ol ol {
  margin-top: 0.3rem;
}

.ratgeber-toc li + li {
  margin-top: 0.25rem;
}

.ratgeber-cause {
  border: 1px solid var(--color-border);
  border-radius: 0.2rem;
  padding: 0.55rem;
  background: #fff;
}

.ratgeber-cause + .ratgeber-cause {
  margin-top: 0.55rem;
}

.ratgeber-cause ul,
#selbst-testen ul {
  margin-top: 0.4rem;
  padding-left: 1.2rem;
}

.ratgeber-cause li + li,
#selbst-testen li + li {
  margin-top: 0.55rem;
}

.ratgeber-faq {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.3rem;
}

.ratgeber-faq section {
  border-top: 1px solid var(--color-border);
  padding-top: 0.45rem;
}

.ratgeber-faq section:first-of-type {
  border-top: 0;
  padding-top: 0.25rem;
}

.ratgeber-article__meta {
  color: rgba(26, 31, 41, 0.68);
  font-size: 0.9rem;
}

.ratgeber-article__table-wrap {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.ratgeber-article__table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
}

.ratgeber-article__table caption {
  margin-bottom: 0.55rem;
  font-weight: 700;
  text-align: left;
}

.ratgeber-article__table th,
.ratgeber-article__table td {
  border: 1px solid var(--color-border);
  padding: 0.7rem;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.ratgeber-article__table th {
  background: var(--color-surface-muted);
}
