/* ============================================================
   Ratgeber-Seiten (Longform-Inhalt). Nur auf /kreuzwortraetsel-ratgeber
   geladen. Nutzt die Tokens aus frontend.css. Präfix .rg-
   ============================================================ */

.rg { max-width: 760px; margin: 0 auto; padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 24px) 80px; color: var(--ink); }
.rg p, .rg li, .rg dd { font-size: 1.03rem; line-height: 1.72; }
.rg a { color: var(--coral-deep); text-decoration: underline; text-underline-offset: 2px; }
.rg a:hover { color: var(--coral); }

/* ---------------- Kopf ---------------- */
.rg-head { border-bottom: 1px solid var(--line); padding-bottom: 26px; margin-bottom: 30px; }
.rg-eyebrow { font-family: var(--font-serif); font-style: italic; color: var(--coral); margin: 0 0 8px; }
.rg-head h1 { font-family: var(--font-sans); font-weight: 800; font-size: clamp(1.85rem, 4.2vw, 2.7rem);
  line-height: 1.15; margin: 0 0 16px; }
.rg-head h1 em { font-family: var(--font-script); font-style: normal; font-weight: 700; color: var(--coral);
  font-size: 1.2em; }
.rg-lead { font-size: 1.16rem !important; line-height: 1.65 !important; color: var(--muted); margin: 0 0 24px; }

/* Autoren + Datum: sichtbare E-E-A-T-Signale, nicht nur im Schema. */
.rg-byline { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--line); }
.rg-byline-who { display: flex; align-items: center; gap: 12px; }
.rg-avatar { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--coral)); color: #fff; font-weight: 800; font-size: .82rem; }
.rg-authors { margin: 0; font-size: .95rem !important; font-weight: 700; }
.rg-authors-sub { margin: 1px 0 0; font-size: .8rem !important; color: var(--muted); }
.rg-dates { margin: 0; font-size: .78rem !important; color: var(--muted); }

.rg-disclosure { margin: 18px 0 0; padding: 11px 14px; border-radius: 11px; font-size: .85rem !important;
  line-height: 1.6 !important; color: var(--muted); background: #fffaf0; border: 1px solid var(--gold); }

/* ---------------- Inhaltsverzeichnis ---------------- */
.rg-toc { margin: 0 0 36px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.rg-toc-t { margin: 0 0 10px !important; font-size: .74rem !important; font-weight: 800; text-transform: uppercase;
  letter-spacing: .14em; color: var(--coral); }
.rg-toc ol { margin: 0; padding-left: 20px; }
.rg-toc li { font-size: .95rem !important; padding: 3px 0; }
.rg-toc a { text-decoration: none; color: var(--ink); }
.rg-toc a:hover { color: var(--coral); text-decoration: underline; }

/* ---------------- Abschnitte ---------------- */
.rg-sec { margin-bottom: 44px; scroll-margin-top: 96px; }
.rg-sec h2 { font-family: var(--font-sans); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  margin: 0 0 16px; line-height: 1.25; }
.rg-sec h3 { font-size: 1.02rem; font-weight: 800; margin: 0 0 7px; }
.rg-sec p { margin: 0 0 15px; }

/* Der Praxis-Abschnitt trägt die Erstehand-Erfahrung — optisch hervorgehoben. */
.rg-sec-hl { background: linear-gradient(180deg, var(--paper-2), var(--card)); border: 1px solid var(--line);
  border-left: 4px solid var(--coral); border-radius: 16px; padding: clamp(20px, 3vw, 30px); }

/* ---------------- Demo-Gitter ---------------- */
.rg-grid-demo { margin: 26px 0; text-align: center; }
.rg-grid { display: inline-grid; grid-template-columns: repeat(8, 1fr); gap: 3px; margin: 0 auto; }
.rg-cell { width: clamp(30px, 7vw, 42px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 5px;
  background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: clamp(.8rem, 2vw, 1rem);
  color: var(--ink); }
.rg-cell-off { background: transparent; border-color: transparent; }
.rg-cell-cross { background: linear-gradient(135deg, var(--pink), var(--coral)); border-color: var(--coral);
  color: #fff; }
.rg-grid-demo figcaption { margin-top: 14px; font-size: .87rem; color: var(--muted); line-height: 1.6;
  max-width: 520px; margin-inline: auto; }

/* ---------------- Karten / Listen ---------------- */
.rg-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 620px) { .rg-cards { grid-template-columns: 1fr; } }
.rg-card { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.rg-card p { margin: 0 !important; font-size: .92rem !important; color: var(--muted); }

.rg-steps { margin: 0 0 16px; padding-left: 22px; }
.rg-steps li { padding: 6px 0; }
.rg-steps-warn { list-style: none; padding-left: 0; counter-reset: w; }
.rg-steps-warn li { counter-increment: w; position: relative; padding: 9px 0 9px 40px; border-bottom: 1px solid var(--line); }
.rg-steps-warn li:last-child { border-bottom: none; }
.rg-steps-warn li::before { content: counter(w); position: absolute; left: 0; top: 9px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--pink-soft); color: var(--coral-deep); font-weight: 800; font-size: .8rem;
  display: grid; place-items: center; }

.rg-list { margin: 0 0 16px; padding-left: 22px; }
.rg-list li { padding: 5px 0; }

/* Praxis-Regeln als Definitionsliste. */
.rg-facts { margin: 20px 0 0; }
.rg-facts dt { font-weight: 800; font-size: 1rem; color: var(--ink); margin-top: 18px; padding-left: 26px;
  position: relative; }
.rg-facts dt::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 9px;
  border-left: 2.5px solid var(--coral); border-bottom: 2.5px solid var(--coral); transform: rotate(-45deg); }
.rg-facts dd { margin: 5px 0 0 26px; color: var(--muted); }

.rg-note { margin: 22px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--pink-soft);
  border: 1px solid var(--pink); }
.rg-note p { margin: 0 !important; font-size: .92rem !important; }

/* ---------------- FAQ ---------------- */
.rg-faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 8px;
  overflow: hidden; }
.rg-faq summary { cursor: pointer; padding: 13px 16px; font-weight: 700; font-size: .98rem; list-style: none;
  display: flex; align-items: center; gap: 10px; }
.rg-faq summary::-webkit-details-marker { display: none; }
.rg-faq summary::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-right: 2px solid var(--coral);
  border-bottom: 2px solid var(--coral); transform: rotate(-45deg); transition: transform .2s; }
.rg-faq details[open] summary::before { transform: rotate(45deg); }
.rg-faq summary:hover { color: var(--coral-deep); }
.rg-faq details p { margin: 0 !important; padding: 0 16px 15px 33px; font-size: .95rem !important; color: var(--muted); }

/* ---------------- Quellen / Autoren ---------------- */
.rg-sec-sources { padding-top: 26px; border-top: 1px solid var(--line); }
.rg-sources { margin: 0 0 14px; padding-left: 20px; }
.rg-sources li { padding: 5px 0; font-size: .93rem !important; }
.rg-sources-note { font-size: .85rem !important; color: var(--muted); font-style: italic; }

.rg-authorbox { padding: 22px 24px; border-radius: 16px; background: var(--paper-2); border: 1px solid var(--line);
  margin-bottom: 34px; }
.rg-authorbox h2 { font-size: 1.1rem !important; margin: 0 0 12px !important; }
.rg-authorbox p { font-size: .95rem !important; }
.rg-authorbox-links { margin: 12px 0 0 !important; font-size: .88rem !important; }

/* ---------------- Abschluss-CTA ---------------- */
.rg-cta { text-align: center; padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 32px); border-radius: 20px;
  background: linear-gradient(135deg, var(--pink-soft), var(--paper-2)); border: 1px solid var(--pink); }
.rg-cta-eyebrow { font-family: var(--font-serif); font-style: italic; color: var(--coral); margin: 0 0 6px !important; }
.rg-cta h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem) !important; margin: 0 0 10px !important; }
.rg-cta p { color: var(--muted); margin: 0 auto 20px !important; max-width: 460px; }
