/* ============================================================================
   /ratgeber/ HUB — guide index (.rg-*)
   Built on the shared .oc-* hero/toc/trust/rg/faq (casino.css). Only the grouped
   guide-card grid + the Quellen strip are new here. Warm-Gold system, light/dark
   via tokens. GRUNDLAGEN icons = violet (--accent); SICHERHEIT icons = green (--primary).
   ========================================================================== */

/* first guide group sits right under the nav band → less top padding; centered heads */
.rg-group--first { padding-top: var(--s-48); }
.rg-group .section-head { justify-content: center; text-align: center; }

/* ---- grouped guide-card grid ---- */
.rg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-24);
  margin-top: var(--s-32);
}
.rg-card { min-width: 0; }

.rg-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--s-32);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: box-shadow .25s ease, transform .25s ease;
}
.rg-card__link:hover {
  box-shadow: var(--shadow);
  transform: translateY(-0.25rem);
}
.rg-card__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .rg-card__link { transition: none; }
  .rg-card__link:hover { transform: none; }
}

.rg-card__icon {
  display: grid;
  place-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: var(--s-20);
  border-radius: var(--radius-m);
  background: var(--hero);
  border: 1px solid var(--line);
  color: var(--accent);
}
#sicherheit .rg-card__icon { color: var(--primary); }
#sicherheit .rg-card__cta { color: var(--primary); }

.rg-card__title {
  margin: 0 0 var(--s-12);
  font-size: var(--fs-20);
}
.rg-card__teaser {
  margin: 0 0 var(--s-16);
  font-size: var(--fs-16);
  color: var(--sub);
  line-height: var(--lh-lead);
}

.rg-card__subs {
  list-style: none;
  margin: 0 0 var(--s-20);
  padding: 0;
  display: grid;
  gap: var(--s-8);
}
.rg-card__subs li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-8);
  font-size: var(--fs-14);
  color: var(--ink);
}

.rg-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-14);
  color: var(--accent);
}
.rg-card__cta .oc-arrow { transition: transform .2s ease; }
.rg-card__link:hover .rg-card__cta .oc-arrow { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .rg-card__cta .oc-arrow { transition: none; } }

/* ---- Wie wir arbeiten (redaktioneller Anspruch) ---- */
.rg-method { background: var(--hero); }
.rg-method__grid {
  list-style: none;
  margin: var(--s-32) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-24);
}
.rg-method__grid li {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--s-24);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow .25s ease, transform .25s ease;
}
.rg-method__grid li:hover {
  box-shadow: var(--shadow);
  transform: translateY(-0.25rem);
}
@media (prefers-reduced-motion: reduce) {
  .rg-method__grid li { transition: none; }
  .rg-method__grid li:hover { transform: none; }
}
.rg-method__icon {
  display: grid;
  place-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--s-16);
  border-radius: var(--radius-m);
  background: var(--hero);
  border: 1px solid var(--line);
  color: var(--primary);
}
.rg-method__grid li:nth-child(even) .rg-method__icon { color: var(--accent); }
.rg-method__grid h3 {
  margin: 0 0 var(--s-12);
  font-size: var(--fs-16);
  line-height: 1.25;
}
.rg-method__grid p {
  margin: 0;
  font-size: var(--fs-14);
  color: var(--sub);
  line-height: var(--lh-lead);
}

@media (max-width: 63.9375rem) {
  .rg-method__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-16); }
}
@media (max-width: 47.9375rem) {
  .rg-method__grid { grid-template-columns: 1fr; }
}

/* ---- Quellen & Stand strip ---- */
.rg-sources { padding-bottom: var(--s-32); }
/* ratgeber-only: tighten the RG (Spielerschutz) block that follows Quellen */
.rg-sources + .oc-rg { padding-top: var(--s-32); }
.rg-sources__band {
  background: var(--panel);
  color: var(--panel-ink);
  border-radius: var(--radius);
  padding: var(--s-32);
  border: 1px solid var(--line);
}
.rg-sources__head { max-width: 46rem; }
.rg-sources__head .eyebrow { color: var(--nav-gold); }
.rg-sources__head h2 { margin: var(--s-8) 0 var(--s-12); color: var(--panel-ink); }
.rg-sources__lead { margin: 0; color: var(--panel-ink); opacity: .8; line-height: var(--lh-lead); }

.rg-sources__list {
  list-style: none;
  margin: var(--s-24) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-16);
}
.rg-sources__list li {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-20);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-m);
}
.rg-sources__name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-16); }
.rg-sources__desc { font-size: var(--fs-14); color: var(--panel-ink); opacity: .7; }
/* arrow + animated gold underline — mirrors .section-head__link */
.rg-sources__link {
  position: relative;
  display: inline-block;
  max-width: fit-content;
  margin-top: var(--s-8);
  padding-right: 2rem;
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--nav-gold);
  text-decoration: none;
  white-space: nowrap;
  transition: all .3s ease;
}
.rg-sources__link::after {
  content: '\2192';
  position: absolute;
  top: 0;
  right: 0;
  width: 1.5rem;
  height: auto;
  font: inherit;
}
.rg-sources__link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 2rem;
  left: 0;
  height: 2px;
  background-color: var(--nav-gold);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .3s ease;
}
.rg-sources__link:hover::before {
  transform-origin: left center;
  transform: scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
  .rg-sources__link::before { transition: none; }
}

/* ---- responsive ---- */
@media (max-width: 63.9375rem) {
  .rg-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-16); }
  .rg-sources__list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .rg-grid { grid-template-columns: 1fr; }
  .rg-sources__band { padding: var(--s-28) var(--s-20); }
}

/* Responsive fix 2026-07-16 — laptop↓ (≤1359px) */
@media (max-width: 84.9375rem) {
  .rg-sources__link { margin-top: auto; }
}