/* CareerNab – Ratgeber im Magazin-Stil (03.12.2026). Gilt für frage.php (Artikel) und fragen.php (Ratgeber-Startseiten). */

/* ---------- Gemeinsam ---------- */
.rg { --rg-text: 18px; }
.rg-rubrik { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--akzent-dunkel); text-decoration: none; }
.rg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--leise); font-size: 14px; }
.rg-meta .punkt::before { content: "·"; margin-right: 14px; }
.rg-bild { position: relative; border-radius: 18px; overflow: hidden; background: var(--sanft); aspect-ratio: 16 / 9; }
.rg-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rg-bild.klein { border-radius: 14px; aspect-ratio: 16 / 10; }
.rg-schrift { display: flex; align-items: flex-end; padding: 22px 24px; background: var(--dunkel); color: #fff; }
.rg-schrift::before { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: var(--akzent); opacity: .9; }
.rg-schrift.firma::before { background: #3b82f6; }
.rg-schrift span { position: relative; font-family: Poppins, "Instrument Sans", sans-serif; font-weight: 700; font-size: clamp(22px, 3.2vw, 34px); line-height: 1.1; letter-spacing: -.02em; max-width: 80%; }
/* Farb-Varianten der Schrift-Kacheln, damit ein Raster nicht eintönig wirkt */
.rg-schrift.f2 { background: var(--akzent-hell); color: var(--tinte); }
.rg-schrift.f2::before { background: var(--akzent); opacity: .85; left: -40px; right: auto; top: auto; bottom: -50px; }
.rg-schrift.f3 { background: var(--gruen-hell); color: var(--tinte); }
.rg-schrift.f3::before { background: var(--gruen); opacity: .8; border-radius: 30px; transform: rotate(18deg); }
/* Großes Titelbild im Artikel: breiter, nicht so hoch */
.rg-kopf + .rg-bild { aspect-ratio: 21 / 9; max-height: 420px; }
.rg-kopf + .rg-schrift { aspect-ratio: auto; height: clamp(150px, 22vw, 240px); }
.rg-schrift.klein { padding: 16px 18px; }
.rg-schrift.klein::before { width: 120px; height: 120px; right: -30px; top: -30px; }
.rg-schrift.klein span { font-size: 20px; }

/* ---------- Artikel ---------- */
.rg-kopf { padding: 34px 0 10px; }
.rg-kopf .rg-pfad { font-size: 13px; color: var(--leise); margin: 0 0 14px; }
.rg-kopf .rg-pfad a { color: var(--leise); }
.rg-kopf h1 { font-size: clamp(32px, 5.2vw, 52px); font-weight: 600; line-height: 1.08; letter-spacing: -.03em; max-width: 860px; margin: 10px 0 18px; }
.rg-autor { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; }
.rg-autor .bild { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--akzent-hell); color: var(--akzent-dunkel); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.rg-autor small { display: block; color: var(--leise); font-size: 13px; }
.rg-autor b { font-weight: 600; color: var(--tinte); font-size: 16px; }
.rg-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; margin-top: 26px; }
@media (min-width: 1000px) { .rg-raster { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; } }
.rg-text { font-size: var(--rg-text); line-height: 1.72; color: var(--text); max-width: 720px; }
.rg-text h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; margin: 44px 0 14px; scroll-margin-top: 90px; }
.rg-text p { margin: 0 0 18px; }
.rg-text ul { margin: 0 0 18px; padding-left: 0; list-style: none; }
.rg-text li { position: relative; padding-left: 26px; margin: 0 0 10px; }
.rg-text li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--akzent); }
.rg-kurz { background: var(--sanft); border-radius: 18px; padding: 22px 24px; margin: 0 0 8px; font-size: 19px; line-height: 1.6; color: var(--tinte); }
.rg-kurz b { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--akzent-dunkel); margin-bottom: 8px; }
.rg-tabelle { overflow-x: auto; margin: 6px 0 22px; border: 1px solid var(--rand); border-radius: 14px; }
.rg-tabelle table { border-collapse: collapse; width: 100%; font-size: 16px; }
.rg-tabelle th, .rg-tabelle td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rand); }
.rg-tabelle th { background: var(--sanft); color: var(--tinte); font-weight: 600; }
.rg-tabelle tr:last-child td { border-bottom: 0; }
.rg-faq { margin: 44px 0 0; }
.rg-faq details { border-top: 1px solid var(--rand); padding: 16px 0; }
.rg-faq details:last-child { border-bottom: 1px solid var(--rand); }
.rg-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 14px; font-weight: 600; color: var(--tinte); font-size: 18px; }
.rg-faq summary::-webkit-details-marker { display: none; }
.rg-faq summary::after { content: "+"; flex: none; font-size: 22px; line-height: 1; color: var(--akzent); }
.rg-faq details[open] summary::after { content: "–"; }
.rg-faq details p { margin: 10px 0 0; }
.rg-quellen { margin: 44px 0 0; font-size: 14px; color: var(--leise); line-height: 1.55; }
.rg-quellen h2 { font-size: 18px; margin: 0 0 10px; }
.rg-quellen ol { margin: 0 0 12px; padding-left: 20px; }
.rg-quellen li { margin: 0 0 6px; overflow-wrap: anywhere; padding-left: 0; }
.rg-quellen li::before { display: none; }
.rg-quellen a { color: var(--leise); }
.rg-weiter { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; }

/* Seitenleiste: Inhalt + Knopf, am Computer mitlaufend */
.rg-seite { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 1000px) { .rg-seite { position: sticky; top: 84px; align-self: start; } }
.rg-inhalt { border: 1px solid var(--rand); border-radius: 18px; padding: 18px 20px; }
.rg-inhalt b { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--leise); margin-bottom: 10px; }
.rg-inhalt ol { margin: 0; padding: 0; list-style: none; counter-reset: rg; }
.rg-inhalt li { counter-increment: rg; margin: 0; }
.rg-inhalt a { display: flex; gap: 10px; padding: 7px 0; color: var(--tinte); text-decoration: none; font-size: 15px; line-height: 1.4; }
.rg-inhalt a::before { content: counter(rg); flex: none; width: 20px; color: var(--akzent-dunkel); font-weight: 700; }
.rg-inhalt a:hover { color: var(--akzent-dunkel); }
.rg-cta { border-radius: 18px; padding: 22px 20px; background: var(--dunkel); color: #fff; }
.rg-cta b { display: block; font-size: 19px; font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.rg-cta p { margin: 0 0 16px; color: var(--dunkel-text); font-size: 15px; line-height: 1.5; }
.rg-cta .btn { width: 100%; justify-content: center; }
@media (max-width: 999px) { .rg-seite .rg-inhalt { order: -1; } }

/* ---------- Karten (weitere Artikel, Startseite) ---------- */
.rg-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px 22px; }
.rg-karte { display: flex; flex-direction: column; gap: 12px; color: inherit; text-decoration: none; }
.rg-karte h3 { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; margin: 0; color: var(--tinte); }
.rg-karte .rg-bild { transition: transform .2s ease; }
.rg-karte:hover .rg-bild { transform: translateY(-3px); }
.rg-karte:hover h3 { color: var(--akzent-dunkel); }
.rg-karte .rg-meta { font-size: 13px; }

/* ---------- Ratgeber-Startseite ---------- */
.rg-start-kopf { padding: 40px 0 8px; }
.rg-start-kopf h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; margin: 8px 0 12px; }
.rg-start-kopf p { font-size: 19px; color: var(--leise); max-width: 640px; margin: 0; }
.rg-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 0; }
.rg-chips a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--rand); color: var(--tinte); text-decoration: none; font-size: 14px; font-weight: 600; background: #fff; }
.rg-chips a:hover { border-color: var(--akzent); color: var(--akzent-dunkel); }
.rg-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: center; margin: 34px 0 10px; color: inherit; text-decoration: none; }
@media (min-width: 860px) { .rg-top { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; } }
.rg-top h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; line-height: 1.12; letter-spacing: -.025em; margin: 10px 0 12px; }
.rg-top p { font-size: 17px; color: var(--text); margin: 0 0 14px; }
.rg-top:hover h2 { color: var(--akzent-dunkel); }
.rg-rubrik-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 56px 0 20px; padding-top: 22px; border-top: 1px solid var(--rand); scroll-margin-top: 80px; }
.rg-rubrik-kopf h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 600; margin: 0; }
.rg-gehalt { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.rg-gehalt a { font-size: 14px; padding: 7px 12px; border-radius: 10px; background: var(--sanft); color: var(--tinte); text-decoration: none; font-weight: 600; }
.rg-gehalt a:hover { color: var(--akzent-dunkel); }
.rg-band { margin: 64px 0 0; border-radius: 22px; background: var(--dunkel); color: #fff; padding: 32px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.rg-band b { display: block; font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.rg-band p { margin: 6px 0 0; color: var(--dunkel-text); }

/* ---------- Artikel-Aufbau wie ein Magazin (03.12.2026): Leiste links, Text mittig ---------- */
.rg-artikel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 30px; }
.rg-mitte { min-width: 0; }
.rg-links { min-width: 0; }
@media (min-width: 1000px) {
  .rg-artikel { grid-template-columns: 250px minmax(0, 720px); gap: 64px; justify-content: center; }
  .rg-links { grid-column: 1; grid-row: 1; }
  .rg-mitte { grid-column: 2; grid-row: 1; }
  .rg-links { display: flex; flex-direction: column; }
  .rg-mitlaufen { position: sticky; top: 84px; margin-top: 48px; }
}
.rg-pfad2 { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--leise); margin: 0 0 8px; }
.rg-pfad2 a { color: var(--leise); text-decoration: none; }
.rg-pfad2 a:hover { color: var(--akzent-dunkel); }
.rg-pfad2 .leise:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-datum { margin: 0 0 6px; font-size: 14px; color: var(--tinte); }
.rg-h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 600; line-height: 1.1; letter-spacing: -.028em; margin: 0 0 18px; }
.rg-mitte .rg-autor { margin-bottom: 20px; }
.rg-mitte .rg-autor small { display: block; }
.rg-mitte > .rg-bild { aspect-ratio: 16 / 9; }
.rg-mitte > .rg-schrift { aspect-ratio: auto; height: clamp(150px, 24vw, 230px); }
.rg-bildtext { margin: 8px 0 0; text-align: center; font-size: 13px; color: var(--leise); }
.rg-mitte .rg-text { margin-top: 26px; }
/* Inhaltsverzeichnis im Text als grüner Kasten */
.rg-text .rg-inhalt { background: var(--gruen-hell); border: 0; border-radius: 18px; padding: 22px 26px; margin: 22px 0 8px; }
.rg-text .rg-inhalt b { font-size: 19px; letter-spacing: -.01em; text-transform: none; color: var(--tinte); font-weight: 600; margin-bottom: 8px; }
.rg-text .rg-inhalt li { padding-left: 0; margin: 0; }
.rg-text .rg-inhalt li::before { display: none; }
.rg-text .rg-inhalt a { font-size: 16px; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.rg-text .rg-inhalt a::before { color: var(--tinte); font-weight: 600; }
/* Zwischen-Kasten mitten im Text */
.rg-zwischen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--sanft); border-radius: 18px; padding: 22px 24px; margin: 30px 0; }
.rg-zwischen b { display: block; font-size: 19px; font-weight: 600; color: var(--tinte); line-height: 1.3; }
.rg-zwischen p { margin: 4px 0 0; font-size: 16px; line-height: 1.5; }
/* Abschluss-Kasten zwischen zwei Linien */
.rg-abschluss { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center; border-top: 1px solid var(--rand); border-bottom: 1px solid var(--rand); padding: 28px 0; margin: 44px 0 0; }
@media (min-width: 640px) { .rg-abschluss { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; } }
.rg-abschluss b { display: block; font-size: 21px; font-weight: 600; color: var(--tinte); line-height: 1.3; }
.rg-abschluss p { margin: 6px 0 16px; font-size: 16px; line-height: 1.5; }
.rg-noch { margin: 18px 0 0; font-size: 16px; }
/* Leiste links */
.rg-links-cta { border-top: 2px solid var(--tinte); padding-top: 18px; }
.rg-links-cta .rg-bild { margin-bottom: 14px; }
.rg-links-cta b { display: block; font-size: 17px; font-weight: 600; color: var(--tinte); line-height: 1.3; }
.rg-links-cta p { margin: 6px 0 14px; font-size: 14px; line-height: 1.5; color: var(--text); }
.rg-links-cta .btn { font-size: 14px; padding: 9px 14px; }
.rg-links-liste { border-top: 2px solid var(--tinte); margin-top: 28px; padding-top: 16px; }
.rg-links-liste b { display: block; font-size: 16px; font-weight: 600; color: var(--tinte); margin-bottom: 6px; }
.rg-links-liste a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--rand); color: var(--tinte); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.4; }
.rg-links-liste a::after { content: "›"; color: var(--leise); }
.rg-links-liste a:hover { color: var(--akzent-dunkel); }
@media (max-width: 999px) { .rg-links-cta { display: none; } }
@media (min-width: 1000px) and (max-height: 520px) { .rg-mitlaufen { position: static; } }
