/* ============================================================
   Ratgeber „Die sieben teuersten Fehler beim Immobilienverkauf"
   (/de/informationen/immobilienverkauf, phpwebed/contents/cms31.html)
   Portiert aus _legacy/rp/assets/css/_ratgeber.css — Wrapper
   html[location="website"] entfernt, Legacy-Variablen → Pro-Tier-Tokens.
   Aufgeräumt 25.09.2026: Cover, eigene Buttons/Listen/Trennstriche entfernt —
   Überschrift + Einleitung nutzen das globale Muster (h1, p.subline, .btn),
   Listen .list.check. Hier nur noch die Ratgeber-Bausteine.
   ============================================================ */

/* H1 steht am Anfang von cms31.html (vor .rg) → der Kernel setzt keine eigene H1,
   genau eine sichtbare H1 pro Seite (ADSWERK Punkt 3). */

.rg {
  --rg-ink: hsl(55, 28%, 6%);
  --rg-gold: var(--color-accent);
  --rg-muted: hsl(0, 0%, 42%);
  --rg-cream: hsl(44, 54%, 97%);
  --rg-line: hsl(44, 18%, 88%);
  /* Globaler Textfluss: volle Breite des CMS-Artikels (--width-narrow),
     bündig mit Breadcrumb und den übrigen Seiten. Legacy war eine eigene,
     zentrierte 880px-Spalte mit eigenem Seitenrand. */
  /* Schrift, Größe, Gewicht, Farbe und Zeilenhöhe kommen aus dem globalen
     Textfluss (Kernel + variables.css) — wie auf allen anderen CMS-Seiten. */
  padding-block: var(--space-6) var(--space-12, 4rem);
}

.rg > section {
  margin-top: 3.75rem;
  scroll-margin-top: 8rem;
}

.rg a {
  color: var(--rg-gold);
  text-decoration: none;
}

.rg a:hover {
  text-decoration: underline;
}

/* --- Kicker / Überzeile --- */
/* Kapitel-Label: identisch zu den Section-Labels der übrigen Seiten
   (Kernel sections/00-base.css: text-xs, 500, tracking-wide, Primary-Gold). */
.rg-kicker {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 var(--space-3);
}

/* --- Überschriften --- */
/* h2/h3: globale Überschriften-Typografie (keine eigenen Größen/Gewichte) */

/* --- Button-Zeile im Abschluss-CTA (.btn + Telefon) --- */
.rg-btnrow {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}


/* --- Wegweiser / Übersicht --- */
.rg-toc {
  list-style: none;
  counter-reset: toc;
  padding: 0;
  margin: 1.5rem 0;
}

.rg-toc li {
  counter-increment: toc;
  position: relative;
  padding: .95rem 0 .95rem 3rem;
  border-bottom: 1px solid var(--rg-line);
}

.rg-toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .95rem;
  color: var(--rg-gold);
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.rg-toc a {
  font-weight: 500;
  color: var(--rg-ink);
}

.rg-toc span {
  display: block;
  font-size: .92rem;
  color: var(--rg-muted);
}

/* --- Callout / Hinweisbox --- */
.rg-note {
  background: var(--rg-cream);
  border-left: 3px solid var(--rg-gold);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.rg-note-title {
  display: block;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--rg-gold);
  margin-bottom: .6rem;
}

.rg-note p:last-child {
  margin-bottom: 0;
}

/* --- Faustregel / Pull-Quote --- */
.rg-rule {
  border-top: 1px solid var(--rg-line);
  margin: 2.5rem 0;
  padding-top: 1.4rem;
}

.rg-rule-label {
  display: block;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rg-gold);
  font-weight: 600;
  margin-bottom: .5rem;
}

.rg-rule blockquote {
  font-style: italic;
  font-size: 1.28rem;
  line-height: 1.5;
  color: var(--rg-ink);
  font-weight: 300;
  margin: 0;
}

/* --- Aufzählungen (So vermeiden Sie ihn / Auf einen Blick) --- */

/* --- Checkliste (mit Haken) --- */
.rg-check {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.rg-check li {
  position: relative;
  padding: .6rem 0 .6rem 2rem;
  border-bottom: 1px solid var(--rg-line);
  font-size: 1.02rem;
}

.rg-check li:last-child {
  border-bottom: none;
}

.rg-check li::before {
  content: "\2713";
  position: absolute;
  left: .1rem;
  top: .55rem;
  color: var(--rg-gold);
  font-weight: 700;
}

/* --- Fehler-Karten mit großer Wasserzeichen-Zahl --- */
.rg-fehler {
  position: relative;
  margin-top: 3.25rem;
  padding-top: 2rem;
  border-top: 2px solid var(--rg-line);
}

.rg-fehler-num {
  position: absolute;
  top: .75rem;
  right: 0;
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  color: hsla(44, 52%, 53%, .13);
  font-family: var(--font-heading);
  pointer-events: none;
  z-index: 0;
}

.rg-fehler > * {
  position: relative;
  z-index: 1;
}

/* --- Zahlen-Tabelle (Die Rechnung / Beispiel) --- */
.rg-tablewrap {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
}

.rg-figures {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.02rem;
}

.rg-figures td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--rg-line);
  vertical-align: top;
}

.rg-figures td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--rg-ink);
}

.rg-figures tr.rg-figures-head td {
  font-weight: 600;
  color: var(--rg-ink);
  background: var(--rg-cream);
}

.rg-figures tr.rg-figures-total td {
  border-top: 2px solid var(--rg-gold);
  border-bottom: none;
  font-weight: 600;
  color: var(--rg-ink);
  font-size: 1.12rem;
}

/* --- Gestapelte Definitionsliste (Titel über Fließtext) --- */
.rg-deflist {
  margin: 1.5rem 0 2rem;
}

.rg-deflist > div {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rg-line);
}

.rg-deflist > div:last-child {
  border-bottom: none;
}

.rg-deflist strong {
  display: block;
  color: var(--rg-ink);
  font-weight: 600;
  margin-bottom: .35rem;
}

.rg-deflist p {
  margin: 0;
}

/* --- Testimonials --- */
.rg-quote {
  background: var(--rg-cream);
  border-left: 3px solid var(--rg-gold);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
}

.rg-quote p {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--rg-ink);
  margin: 0 0 .75rem;
}

.rg-quote cite {
  display: block;
  font-style: normal;
  font-size: .82rem;
  letter-spacing: .03em;
  color: var(--rg-muted);
}

.rg-stars {
  color: var(--rg-gold);
  letter-spacing: .12em;
  margin-right: .4rem;
}

/* --- Selbsttest --- */
.rg-quiz {
  list-style: none;
  counter-reset: quiz;
  padding: 0;
  margin: 1.5rem 0;
}

.rg-quiz li {
  counter-increment: quiz;
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rg-line);
}

.rg-quiz li::before {
  content: counter(quiz, decimal-leading-zero);
  color: var(--rg-gold);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.7;
}

.rg-quiz-ans {
  font-size: .72rem;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--rg-muted);
  white-space: nowrap;
  line-height: 2.3;
}

/* --- Ablauf / Schritte --- */
.rg-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.5rem 0;
}

.rg-steps li {
  counter-increment: step;
  position: relative;
  padding: 1.15rem 0 1.15rem 3.5rem;
  border-bottom: 1px solid var(--rg-line);
}

.rg-steps li:last-child {
  border-bottom: none;
}

.rg-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rg-gold);
  color: var(--rg-gold);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.rg-steps b {
  display: block;
  color: var(--rg-ink);
  font-weight: 600;
  margin-bottom: .25rem;
}

/* --- Über mich / Autor --- */
.rg-author {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.75rem;
  align-items: start;
  margin: 1.5rem 0;
}

.rg-author img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  /* Rahmen: grau wie die Team-Avatare, siehe avatar.css */
}

.rg-usp {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem 1.5rem;
}

.rg-usp li {
  position: relative;
  padding-left: 1.85rem;
  font-size: 1rem;
}

.rg-usp li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--rg-gold);
  font-weight: 700;
}

/* --- Abschluss-CTA --- */
.rg-cta {
  background: linear-gradient(160deg, hsl(55, 28%, 11%), hsl(55, 28%, 5%));
  color: hsl(0, 0%, 88%);
  border-radius: 12px;
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  margin-top: 3.75rem;
}

.rg-cta h2 {
  color: hsl(44, 55%, 88%);
  margin-bottom: 1rem;
}

.rg-cta p {
  color: hsl(0, 0%, 78%);
  max-width: 34rem;
  margin-inline: auto;
}

.rg-fineprint {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rg-line);
  font-size: .82rem;
  line-height: 1.6;
  color: var(--rg-muted);
}

/* --- Responsive --- */
@media (max-width: 560px) {
  .rg-author {
    grid-template-columns: 1fr;
  }

  .rg-author img {
    width: 120px;
    height: 120px;
  }

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

  .rg-fehler-num {
    font-size: 4.5rem;
  }
}

/* Links im Fließtext: Primary-Gold (AA-Kontrast) statt Logo-Gold */
.rg p a,
.rg li a {
  color: var(--color-primary);
}
