/* Ratgeber (ratgeber.php) – geladen über $seo['stylesheets'] */

.rg-wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.rg-hero { background: linear-gradient(135deg, #eaf3fe 0%, #f6f9fc 65%, #fff8e1 100%); border-bottom: 1px solid var(--line); padding: 28px 0 32px; margin-bottom: 28px; }
.rg-hero h1 { margin: 10px 0 10px; font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
.rg-lead { font-size: 1.08rem; line-height: 1.65; color: var(--muted); margin: 0; }

.rg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.rg-grid--small { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.rg-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 18px; transition: box-shadow .18s, border-color .18s, transform .18s;
}
.rg-card:hover { box-shadow: var(--shadow-card); border-color: rgba(3,103,211,.35); transform: translateY(-1px); }
.rg-card__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #eaf3fe; font-size: 1.4rem; }
.rg-card__title { font-size: 1.05rem; line-height: 1.35; margin: 12px 0 6px; }
.rg-card__link { color: var(--text); text-decoration: none; }
.rg-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rg-card:focus-within { outline: 3px solid rgba(3,103,211,.35); outline-offset: 2px; }
.rg-card p { margin: 0 0 10px; color: var(--muted); font-size: .93rem; line-height: 1.55; }
.rg-card__more { font-size: .88rem; font-weight: 700; color: var(--logo-blue); }

.rg-article { padding-top: 24px; padding-bottom: 40px; }
.rg-article__head { margin: 14px 0 22px; }
.rg-article__head h1 { margin: 12px 0 8px; font-size: clamp(1.6rem, 4.2vw, 2.3rem); line-height: 1.2; }
.rg-meta { font-size: .86rem; color: var(--muted); margin: 0 0 14px; }

.rg-toc { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--logo-blue); border-radius: var(--r-sm); padding: 14px 18px; margin-bottom: 26px; }
.rg-toc ul { margin: 8px 0 0; padding-left: 18px; }
.rg-toc li { margin: 4px 0; }
.rg-live { background: #e7f4e1; border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 24px; line-height: 1.55; }

.rg-section { margin-bottom: 28px; }
.rg-section h2 { font-size: clamp(1.2rem, 3vw, 1.45rem); margin: 0 0 10px; scroll-margin-top: 100px; }
.rg-section p { line-height: 1.75; margin: 0 0 12px; }
.rg-list { margin: 6px 0 12px; padding-left: 0; list-style: none; }
.rg-list li { position: relative; padding-left: 28px; margin: 8px 0; line-height: 1.6; }
.rg-list li::before { content: "✓"; position: absolute; left: 4px; top: 0; color: var(--success); font-weight: 800; }

.rg-inline-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 16px; margin: 0 0 28px; border-radius: var(--r-sm); background: #fff8e1; border: 1px solid rgba(252,192,0,.5);
}
.rg-faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 10px; }
.rg-faq summary { font-weight: 700; cursor: pointer; }
.rg-faq details p { margin: 10px 0 0; }

.rg-cta {
  display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  margin: 32px 0; padding: 22px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, #eaf3fe, #fff); border: 1px solid rgba(3,103,211,.2);
}
.rg-cta h2 { margin: 0 0 6px; font-size: 1.2rem; }
.rg-cta p { margin: 0; color: var(--muted); max-width: 520px; line-height: 1.55; }
.rg-cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Bereich „Für Verleiher“ in der Übersicht (Artikel mit audience = anbieter) */
.rg-providers { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.rg-providers > h2 { margin: 0 0 6px; font-size: clamp(1.3rem, 3.5vw, 1.7rem); }
.rg-providers > .rg-lead { margin: 0 0 18px; }

/* Checkliste zum Abhaken & Drucken (Artikel mit 'checklist' => true, Punkte aus checklist_default_templates()) */
.rg-checklist { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm, 12px); padding: 18px 20px; }
.rg-checklist__bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }
.rg-checklist__select { display: grid; gap: 4px; flex: 1 1 260px; font-weight: 600; }
.rg-checklist__note { margin: 10px 0 4px; }
.rg-checklist__cat { margin: 16px 0 4px; font-size: 1.1rem; }
.rg-checklist h4 { margin: 14px 0 6px; font-size: .95rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.rg-checklist__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rg-checklist__list label { line-height: 1.45; }
@media screen { .rg-print-root { display: none; } }
/* Gebrandete Druckvorlage (#rg-print-tpl): Farbstreifen, Logo, Ausfüllfelder, zwei Spalten, Wasserzeichen */
@media print {
  @page { size: A4; margin: 12mm 14mm; }
  body.rg-print-checklist { background: #fff !important; }
  body.rg-print-checklist > *:not(.rg-print-root) { display: none !important; }
  body.rg-print-checklist .rg-print-root { display: block; }
  .rg-pr { position: relative; color: #1f2937; font: 9.5pt/1.35 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rg-pr__watermark { position: fixed; top: 50%; left: 50%; width: 150mm; transform: translate(-50%, -50%) rotate(-28deg); opacity: .06; filter: grayscale(1); z-index: 0; pointer-events: none; }
  .rg-pr > *:not(.rg-pr__watermark) { position: relative; z-index: 1; }
  .rg-pr__stripe { display: flex; height: 2mm; border-radius: 1mm; overflow: hidden; margin-bottom: 4mm; }
  .rg-pr__stripe i { flex: 1; }
  .rg-pr__stripe i:nth-child(1) { background: #e51f23; }
  .rg-pr__stripe i:nth-child(2) { background: #fcc000; }
  .rg-pr__stripe i:nth-child(3) { background: #409d1a; }
  .rg-pr__stripe i:nth-child(4) { background: #0367d3; }
  .rg-pr__head { display: flex; align-items: center; justify-content: space-between; gap: 6mm; }
  .rg-pr__logo { height: 9mm; width: auto; }
  .rg-pr__kicker { font-size: 8pt; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #0367d3; }
  .rg-pr__title { margin: 4mm 0 1mm; font-size: 16pt; line-height: 1.2; color: #0f172a; }
  .rg-pr__sub { margin: 0 0 4mm; color: #475569; }
  .rg-pr__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 3mm 8mm; margin: 0 0 5mm; padding: 3mm 5mm; border: .3mm solid #dbe3ee; border-radius: 2.5mm; background: #f7faff; }
  .rg-pr__meta div { display: flex; align-items: flex-end; gap: 3mm; }
  .rg-pr__meta dt { flex: 0 0 auto; font-size: 8pt; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #64748b; }
  .rg-pr__meta dd { flex: 1; margin: 0; height: 6mm; border-bottom: .3mm solid #94a3b8; }
  .rg-pr__groups { columns: 2; column-gap: 9mm; }
  .rg-pr__group { break-inside: avoid; page-break-inside: avoid; margin: 0 0 3.5mm; }
  .rg-pr__group h2 { margin: 0 0 1.5mm; padding-left: 2.5mm; border-left: 1mm solid #0367d3; font-size: 8.5pt; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #0f172a; }
  .rg-pr__group ul { list-style: none; margin: 0; padding: 0; }
  .rg-pr__group li { position: relative; padding: .65mm 0 .65mm 6.5mm; border-bottom: .2mm dotted #cbd5e1; }
  .rg-pr__group li::before { content: ""; position: absolute; left: 0; top: 1.2mm; width: 3.6mm; height: 3.6mm; border: .35mm solid #475569; border-radius: .8mm; background: #fff; box-sizing: border-box; }
  .rg-pr__group li.is-done::before { background: #0367d3; border-color: #0367d3; }
  .rg-pr__group li.is-done::after { content: ""; position: absolute; left: 1.25mm; top: 1.6mm; width: 1mm; height: 2mm; border: solid #fff; border-width: 0 .45mm .45mm 0; transform: rotate(45deg); }
  .rg-pr__notes { break-inside: avoid; page-break-inside: avoid; margin-top: 2mm; }
  .rg-pr__notes h2 { margin: 0 0 1mm; font-size: 8.5pt; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  .rg-pr__notes i { display: block; height: 6mm; border-bottom: .3mm solid #cbd5e1; }
  .rg-pr__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1mm 6mm; margin-top: 4mm; padding-top: 2.5mm; border-top: .3mm solid #e2e8f0; font-size: 7.5pt; color: #64748b; break-inside: avoid; }
  .rg-pr__foot span:last-child { text-align: right; }
}
.rg-checklist__other { margin: 0 0 6px; font-size: .92rem; }

/* Betriebshaftpflicht-Check (Artikel mit 'liability_check' => true, inc/partials/guide-liability-check.php):
   vier Schritte mit Auswahl-Kacheln, am Ende Summe und Hinweise */
.rg-liability { background: #f6f9fc; border: 1px solid var(--line); border-radius: var(--r-sm, 12px); padding: 22px; }
.rg-liability__head h2 { margin: 0 0 6px; }
.rg-liability__note { margin: 0 0 18px; color: var(--muted); font-size: .95rem; }
.rg-lc-steps { display: grid; gap: 14px; }
.rg-lc-step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm, 12px); padding: 16px 18px; }
.rg-lc-step__title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1.05rem; }
.rg-lc-step__num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--logo-blue); color: #fff; font-size: .9rem; font-weight: 800; flex: 0 0 auto; }
.rg-lc-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.rg-lc-q + .rg-lc-q { margin-top: 14px; }
.rg-lc-q legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: .95rem; }
.rg-lc-q__hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.rg-lc-options { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-lc-options--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.rg-lc-opt { position: relative; display: flex; margin: 0; cursor: pointer; }
.rg-lc-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.rg-lc-opt__box { display: grid; gap: 2px; width: 100%; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; line-height: 1.3; transition: border-color .15s, background .15s; }
.rg-lc-options--cards .rg-lc-opt__box { border-radius: 10px; padding: 10px 14px; }
.rg-lc-opt__label { font-weight: 600; font-size: .93rem; }
.rg-lc-opt__hint { font-size: .82rem; color: var(--muted); }
.rg-lc-opt:hover .rg-lc-opt__box { border-color: rgba(3,103,211,.45); }
.rg-lc-opt input:checked + .rg-lc-opt__box { border-color: var(--logo-blue); background: #eaf3fe; box-shadow: inset 0 0 0 1px var(--logo-blue); }
.rg-lc-opt input[type=checkbox]:checked + .rg-lc-opt__box .rg-lc-opt__label::before { content: "✓ "; color: var(--logo-blue); }
.rg-lc-opt input:focus-visible + .rg-lc-opt__box { outline: 3px solid rgba(3,103,211,.35); outline-offset: 2px; }

/* Ergebnis am Ende */
.rg-lc-result { margin-top: 22px; }
.rg-lc-total { display: grid; gap: 6px; padding: 20px 22px; border-radius: var(--r-sm, 12px); background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--logo-blue); text-align: center; }
.rg-lc-total--low { border-top-color: var(--logo-green); }
.rg-lc-total--mid { border-top-color: var(--logo-yellow); }
.rg-lc-total--high { border-top-color: var(--logo-red); }
.rg-lc-total--empty { border-top-color: var(--line); }
.rg-lc-total__kicker { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.rg-lc-total__label { font-size: .95rem; color: var(--text); }
.rg-lc-total__sum { font-size: clamp(2rem, 7vw, 2.8rem); line-height: 1.1; color: var(--text); }
.rg-lc-total__sum small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.rg-lc-total__size, .rg-lc-total__incomplete { font-size: .9rem; color: var(--muted); }
.rg-lc-total__incomplete { color: var(--text); font-weight: 600; }
.rg-lc-scale { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-width: 420px; width: 100%; margin: 6px auto 2px; }
.rg-lc-scale__seg { padding: 5px 4px; border-radius: 6px; background: #eef2f7; color: var(--muted); font-size: .8rem; font-weight: 700; }
.rg-lc-scale__seg.is-active[data-lc-seg="low"] { background: var(--logo-green); color: #fff; }
.rg-lc-scale__seg.is-active[data-lc-seg="mid"] { background: var(--logo-yellow); color: #1f2937; }
.rg-lc-scale__seg.is-active[data-lc-seg="high"] { background: var(--logo-red); color: #fff; }
.rg-lc-advice { display: grid; gap: 10px; margin-top: 14px; }
.rg-lc-group { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm, 12px); padding: 0; }
.rg-lc-group summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; font-weight: 700; cursor: pointer; }
.rg-lc-group__count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: #eaf3fe; color: var(--logo-blue); font-size: .85rem; }
.rg-lc-list { list-style: none; margin: 0; padding: 0 16px 12px; display: grid; gap: 0; }
.rg-lc-list li { padding: 10px 0; border-top: 1px solid var(--line); line-height: 1.45; font-size: .93rem; }
.rg-lc-list li strong { display: block; }
.rg-lc-list li span { color: var(--muted); }
.rg-lc-actions { display: flex; justify-content: center; margin: 18px 0 4px; }
.rg-liability__disclaimer { margin-top: 14px; color: var(--muted); }
.rg-liability__disclaimer p { margin: 0 0 8px; line-height: 1.55; }
@media (max-width: 600px) {
  .rg-liability { padding: 14px; }
  .rg-lc-step { padding: 14px; }
}

/* Rechner „Ab wann trägt sich dein Gerät?“ (inc/partials/guide-starter-calc.php, 2026-10-08) */
.rg-starter { background: #f6f9fc; border: 1px solid var(--line); border-radius: var(--r-sm, 12px); padding: 22px; }
.rg-starter__head h2 { margin: 0 0 6px; }
.rg-starter__note { margin: 0 0 18px; color: var(--muted); font-size: .95rem; }
.rg-sc-steps { display: grid; gap: 14px; }
.rg-sc-step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm, 12px); padding: 16px 18px; }
.rg-sc-step__title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1.05rem; }
.rg-sc-step__num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand2); color: #fff; font-size: .9rem; flex: 0 0 auto; }
.rg-sc-variants { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 10px; margin-bottom: 14px; }
.rg-sc-variant { position: relative; cursor: pointer; }
.rg-sc-variant input { position: absolute; opacity: 0; pointer-events: none; }
.rg-sc-variant__box { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.rg-sc-variant__box span { color: var(--muted); font-size: .88rem; }
.rg-sc-variant input:checked + .rg-sc-variant__box { border-color: var(--brand2); background: #eef5fd; }
.rg-sc-variant input:focus-visible + .rg-sc-variant__box { outline: 3px solid var(--brand); outline-offset: 2px; }
.rg-sc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.rg-sc-grid [hidden] { display: none; }
.rg-sc-field { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.rg-sc-field__hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.rg-sc-result-wrap { margin-top: 16px; }
.rg-sc-hint { margin: 0; color: var(--muted); }
.rg-sc-result { background: #fff; border: 2px solid var(--brand2); border-radius: var(--r-sm, 12px); padding: 16px 18px; }
.rg-sc-result[data-sc-status="negative"] { border-color: var(--logo-red); }
.rg-sc-figures { display: grid; gap: 6px; margin: 0; }
.rg-sc-figures > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.rg-sc-figures dt { color: var(--muted); }
.rg-sc-figures dd { margin: 0; font-weight: 700; white-space: nowrap; }
.rg-sc-figures__total { border-bottom: 0 !important; font-size: 1.1rem; }
.rg-sc-figures__total dt { color: inherit; font-weight: 700; }
.rg-sc-summary { margin: 12px 0 0; font-weight: 600; }
.rg-sc-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.rg-starter__disclaimer { margin: 14px 0 0; color: var(--muted); }
