/* Ratgeber-Seiten (/ratgeber). Baut auf style.css auf, nur eigene rg-Klassen. */

.rg {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 20px 24px;
}

.rg-intro {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}

.rg-intro-img {
  width: 200px;
  height: 200px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
  background: var(--surface-variant);
}

.rg-lead {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 12px;
}

.rg-meta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.rg-meta a {
  color: var(--mango-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rg-box {
  background: var(--surface-variant);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  margin: 0 0 24px;
}

.rg-box h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--text);
}

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

.rg-box li {
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 6px;
}

.rg-box li:last-child { margin-bottom: 0; }

.rg-toc summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  list-style-position: outside;
}

.rg-toc[open] summary { margin-bottom: 10px; }

.rg-toc a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.rg-toc a:hover { color: var(--mango-deep); border-color: var(--mango-deep); }

.rg-qa {
  border-top: 1px solid var(--border);
  padding: 30px 0 8px;
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

.rg-qa h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 12px;
  text-wrap: balance;
}

.rg p,
.rg li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.rg-qa p,
.rg-qa li,
.rg-section p,
.rg-section li {
  font-weight: 600;
  margin-bottom: 14px;
}

.rg-qa ul,
.rg-qa ol {
  padding-left: 22px;
  margin-bottom: 14px;
}

.rg-qa li { margin-bottom: 6px; }

.rg-qa strong { font-weight: 800; }

.rg-qa a,
.rg-section a,
.rg-cta a {
  color: var(--mango-deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rg-cite {
  font-size: 0.72em;
  line-height: 0;
  vertical-align: super;
  white-space: nowrap;
}

.rg .rg-cite a {
  color: var(--text-secondary);
  font-weight: 700;
  text-decoration: none;
}

.rg .rg-cite a:hover { color: var(--mango-deep); }

.rg-section {
  border-top: 1px solid var(--border);
  padding: 30px 0 6px;
}

.rg-section h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text);
}

.rg-note {
  font-size: 0.95rem;
}

.rg-sources ol {
  padding-left: 22px;
}

.rg-sources li {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 8px;
  overflow-wrap: anywhere;
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

.rg-sources li:target { color: var(--text); }

.rg-sources a {
  font-weight: 700;
}

.rg-cta {
  margin: 26px 0 8px;
  font-size: 1.05rem;
}

.rg-more ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}

.rg-more li { margin: 0; }

/* Übersicht */
.rg-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 8px 0 32px;
}

.rg-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rg-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.rg-card img {
  width: 112px;
  height: 112px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--surface-variant);
}

.rg-card h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 6px;
}

.rg-card p {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 6px;
}

.rg-card span {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--mango-deep);
}

@media (max-width: 767px) {
  .rg {
    padding: 22px 20px 16px;
  }

  .rg-intro {
    grid-template-columns: 1fr 96px;
    gap: 16px;
    align-items: start;
  }

  .rg-intro-img {
    width: 96px;
    height: 96px;
    border-radius: 18px;
  }

  .rg-lead { font-size: 1.02rem; }

  .rg-box { padding: 18px 18px; }

  .rg-qa { padding-top: 24px; }

  .rg-qa h2 { font-size: 1.25rem; }

  .rg-more ul { grid-template-columns: 1fr; }

  .rg-cards { grid-template-columns: 1fr; gap: 14px; }

  .rg-card {
    grid-template-columns: 84px 1fr;
    gap: 14px;
    padding: 12px;
  }

  .rg-card img {
    width: 84px;
    height: 84px;
  }
}
