/* Germany Cleaning – Ratgeber
   Baut auf district.css auf (Navy + Cyan, Inter) und ergänzt nur,
   was ein Lesetext braucht: Satzspiegel, Tabellen, Inhaltsverzeichnis. */

.rg-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .86rem; color: rgba(255,255,255,.62); margin-top: 6px; }
.rg-meta strong { color: #fff; font-weight: 600; }
.dhero.rg-hero { padding: 48px 0 40px; }
.dhero.rg-hero h1 { max-width: 860px; }
.dhero.rg-hero .dhero-sub { max-width: 760px; }

.rg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.rg-figure { margin: 0 0 32px; }
.rg-figure img { width: 100%; height: auto; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }

/* Kurzantwort */
.rg-key { background: var(--bg); border: 1px solid var(--light); border-left: 4px solid var(--cyan); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 36px; }
.rg-key h2 { font-size: .76rem; text-transform: uppercase; letter-spacing: 1.6px; color: var(--muted); margin: 0 0 10px; font-weight: 700; }
.rg-key p { font-size: 1.04rem; color: var(--navy); line-height: 1.65; }
.rg-key p + p { margin-top: 10px; }

/* Lesetext */
.rg-prose { max-width: 740px; }
.rg-prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 800; color: var(--navy); letter-spacing: -.4px; line-height: 1.25; margin: 48px 0 14px; scroll-margin-top: 84px; }
.rg-prose h3 { font-size: 1.12rem; font-weight: 700; color: var(--navy); margin: 28px 0 8px; }
.rg-prose p { font-size: 1.02rem; line-height: 1.75; color: #28384a; margin-bottom: 16px; }
.rg-prose a, .rg-key a, .rg-sources a, .rg-hint a { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rg-prose a:hover, .rg-key a:hover, .rg-sources a:hover, .rg-hint a:hover { color: #0d7fb0; }
.rg-prose ul.rg-checks { list-style: none; margin: 4px 0 20px; }
.rg-prose ul.rg-checks li { position: relative; padding: 7px 0 7px 30px; font-size: 1rem; line-height: 1.6; color: #28384a; }
.rg-prose ul.rg-checks li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 14px; height: 8px; border-left: 2.5px solid var(--cyan); border-bottom: 2.5px solid var(--cyan); transform: rotate(-45deg); }
.rg-prose ol { margin: 4px 0 20px 22px; }
.rg-prose ol li { padding: 5px 0; font-size: 1rem; line-height: 1.65; color: #28384a; }
.rg-note { background: #fff; border: 1px solid var(--light); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; }
.rg-note p { margin: 0; font-size: .97rem; }
.rg-note strong { color: var(--navy); }

/* Tabellen */
.rg-table { overflow-x: auto; margin: 22px 0 28px; border: 1px solid var(--light); border-radius: var(--radius); }
.rg-table table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
.rg-table th { background: var(--navy); color: #fff; text-align: left; font-weight: 600; padding: 12px 16px; font-size: .84rem; letter-spacing: .2px; }
.rg-table td { padding: 12px 16px; border-top: 1px solid var(--light); vertical-align: top; line-height: 1.55; color: #28384a; }
.rg-table tbody tr:nth-child(even) td { background: var(--bg); }
.rg-table td:first-child { font-weight: 600; color: var(--navy); white-space: nowrap; }
.rg-table caption { caption-side: bottom; text-align: left; font-size: .8rem; color: var(--muted); padding: 10px 16px; border-top: 1px solid var(--light); }

/* Seitenleiste */
.rg-side { position: sticky; top: 88px; display: grid; gap: 18px; }
.rg-toc, .rg-sidecta { border: 1px solid var(--light); border-radius: var(--radius); padding: 20px 22px; background: #fff; }
.rg-toc h2, .rg-sidecta h2 { font-size: .76rem; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); margin-bottom: 12px; font-weight: 700; }
.rg-toc ol { list-style: none; counter-reset: toc; }
.rg-toc li { counter-increment: toc; margin-bottom: 9px; padding-left: 26px; position: relative; font-size: .89rem; line-height: 1.4; }
.rg-toc li::before { content: counter(toc); position: absolute; left: 0; top: 0; font-size: .78rem; font-weight: 700; color: var(--cyan); }
.rg-toc a { text-decoration: none; color: var(--navy); }
.rg-toc a:hover { color: #0d7fb0; }
.rg-sidecta { background: var(--navy); border-color: var(--navy); color: #fff; }
.rg-sidecta h2 { color: rgba(255,255,255,.55); }
.rg-sidecta p { font-size: .92rem; color: rgba(255,255,255,.82); line-height: 1.55; margin-bottom: 16px; }
.rg-sidecta .btn-cta { display: block; text-align: center; }

/* Autor und Quellen */
.rg-author { display: flex; gap: 16px; align-items: flex-start; border-top: 1px solid var(--light); margin-top: 44px; padding-top: 26px; max-width: 740px; }
.rg-author img { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--light); padding: 6px; background: #fff; flex-shrink: 0; }
.rg-author p { font-size: .92rem; color: var(--muted); line-height: 1.6; }
.rg-author strong { color: var(--navy); }
.rg-sources { max-width: 740px; margin-top: 28px; }
.rg-sources h2 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.rg-sources ol { margin-left: 20px; }
.rg-sources li { font-size: .88rem; color: var(--muted); line-height: 1.6; padding: 4px 0; }

/* Übersicht */
.rg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-top: 8px; }
.rg-card { display: flex; flex-direction: column; border: 1px solid var(--light); border-radius: var(--radius); overflow: hidden; background: #fff; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.rg-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(26,43,60,.1); border-color: var(--cyan); }
.rg-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.rg-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rg-card-meta { font-size: .78rem; color: var(--muted); }
.rg-card h2 { font-size: 1.12rem; font-weight: 800; color: var(--navy); line-height: 1.3; letter-spacing: -.2px; }
.rg-card p { font-size: .92rem; color: var(--muted); line-height: 1.55; }
.rg-card-more { margin-top: auto; padding-top: 8px; font-size: .88rem; font-weight: 700; color: var(--navy); }

/* Solange es nur einen Beitrag gibt, steht er als breite Karte */
.rg-card:only-child { grid-column: 1 / -1; flex-direction: row; }
.rg-card:only-child img { width: 46%; height: auto; aspect-ratio: 3 / 2; align-self: stretch; }
.rg-card:only-child .rg-card-body { padding: 34px 38px; justify-content: center; gap: 12px; }
.rg-card:only-child h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.rg-card:only-child .rg-card-more { margin-top: 6px; }
@media (max-width: 760px) {
  .rg-card:only-child { flex-direction: column; }
  .rg-card:only-child img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .rg-card:only-child .rg-card-body { padding: 20px 22px 22px; }
}

@media (max-width: 980px) {
  .rg-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rg-side { position: static; order: -1; margin-bottom: 32px; }
  .rg-sidecta { display: none; }
}
@media (max-width: 600px) {
  .rg-key { padding: 18px 20px; }
  .rg-prose h2 { margin-top: 38px; }
  .rg-table td:first-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .rg-card { transition: none; } }
