/* eigen: farben umgestellt */
/* Ratgeber von hh-kontur.de (seit 07.10.2026): Übersicht /ratgeber und Artikel. Baut auf site.css auf (Farben, Schriften,
   Blatt wie bei Impressum und Datenschutz). Vorlage: hh-kontur/werkstatt/ratgeber/ratgeber.css, eingesetzt von ratgeber.py. */

.ratgeber { padding: 92px 0 clamp(3rem, 6vw, 5rem); }
.rg-blatt {
  margin: 0 clamp(6px, 1.1vw, 16px); padding-block: clamp(2.5rem, 6vw, 5rem); border-radius: var(--r-blatt);
  background: var(--grund); color: var(--kohle);
}
/* Gleiche linke Kante wie die anderen Seiten, Zeilen bleiben zum Lesen angenehm kurz */
.rg-blatt .rahmen > * { max-width: 46rem; }

/* ---------- Brotkrumen und Kopf */
.rg-pfad ol { display: flex; flex-wrap: wrap; gap: .25rem .55rem; margin: 0 0 2.25rem; padding: 0; list-style: none; font-size: .875rem; line-height: 1.4; color: var(--begleit-tief); }
.rg-pfad li + li::before { content: '/'; margin-right: .55rem; color: var(--stein); }
.rg-pfad a { color: inherit; text-underline-offset: .2em; }
.rg-pfad [aria-current] { color: var(--kohle); }
.rg-kopf h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.1rem); line-height: 1.08; letter-spacing: -.028em; }
.rg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.15rem; margin-top: 1.4rem; font-size: .9375rem; line-height: 1.4; color: var(--begleit-tief); }
.rg-meta img { width: 40px; height: 40px; margin-right: -.45rem; border-radius: 50%; object-fit: cover; background: var(--flaeche); }
.rg-meta span:first-of-type { color: var(--kohle); font-weight: 600; }
.rg-meta span:first-of-type a, .rg-autor-name a { color: inherit; text-decoration-color: var(--akzent-linie); text-decoration-thickness: 2px; text-underline-offset: .2em; }

/* ---------- Kurz gesagt, Bild, Inhalt */
.rg-kurz { margin-top: 2rem; padding: 1.15rem 1.3rem; border-radius: var(--r-fenster); background: rgba(37, 87, 214, .38); font-size: var(--lead); line-height: 1.55; }
.rg-kurz strong { font-weight: 700; }
.rg-bild { margin: 2rem 0 0; }
.rg-bild img { display: block; width: 100%; height: auto; border-radius: var(--r-fenster); background: var(--flaeche); }
.rg-bild figcaption { margin-top: .55rem; font-size: .8125rem; line-height: 1.4; color: var(--begleit-tief); }
.rg-inhalt { margin-top: 2rem; padding: 1.1rem 1.3rem; border-radius: var(--r-fenster); box-shadow: inset 0 0 0 1px var(--linie); }
.rg-inhalt-titel { font: 600 .875rem / 1.3 var(--text); color: var(--begleit-tief); }
.rg-inhalt ol { margin: .55rem 0 0; padding-left: 1.3rem; }
.rg-inhalt li + li { margin-top: .3rem; }
.rg-inhalt li::marker { color: var(--begleit-tief); }
.rg-inhalt a { color: var(--kohle); text-underline-offset: .2em; }

/* ---------- Text aus der Verwaltung (Markdown) */
.rg-text { margin-top: 2.25rem; font-size: var(--lauf); line-height: 1.7; }
.rg-text > * + * { margin-top: 1.15rem; }
.rg-text h2 { margin-top: 2.75rem; font-size: var(--h3); line-height: 1.2; letter-spacing: -.012em; scroll-margin-top: 110px; }
.rg-text h3 { margin-top: 2.1rem; font-size: 1.125rem; line-height: 1.3; letter-spacing: -.008em; }
.rg-text h4 { margin-top: 1.6rem; font-size: 1rem; }
.rg-text h2 + *, .rg-text h3 + *, .rg-text h4 + * { margin-top: .7rem; }
.rg-text ul, .rg-text ol { padding-left: 1.35rem; }
.rg-text li + li { margin-top: .45rem; }
.rg-text li > ul, .rg-text li > ol { margin-top: .45rem; }
.rg-text li::marker { color: var(--akzent-linie); font-weight: 600; }
.rg-text a, .rg-praxis a { color: var(--kohle); text-decoration-color: var(--akzent-linie); text-decoration-thickness: 2px; text-underline-offset: .2em; overflow-wrap: anywhere; }
.rg-text blockquote { margin-inline: 0; padding: .2rem 0 .2rem 1.15rem; border-left: 3px solid var(--akzent); border-radius: 0; color: var(--begleit-tief); }
.rg-text blockquote > * + * { margin-top: .7rem; }
.rg-text code { padding: .1em .35em; border-radius: 4px; background: var(--flaeche); font-family: var(--mono); font-size: .875em; }
.rg-text pre { overflow-x: auto; padding: 1rem 1.15rem; border-radius: var(--r-fenster); background: var(--kohle); color: var(--grund); }
.rg-text pre code { padding: 0; background: none; color: inherit; }
.rg-tabelle { overflow-x: auto; border-radius: var(--r-fenster); box-shadow: inset 0 0 0 1px var(--linie); }
.rg-tabelle table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.rg-tabelle th { padding: .75rem 1rem; background: var(--flaeche); font: 600 .875rem / 1.3 var(--text); text-align: left; vertical-align: bottom; }
.rg-tabelle td { padding: .7rem 1rem; border-top: 1px solid var(--linie); vertical-align: top; }
.rg-tabelle .rg-right { text-align: right; white-space: nowrap; }
.rg-tabelle .rg-center { text-align: center; }

/* ---------- Aus meiner Praxis, PDF, Quellen */
.rg-praxis { display: flex; gap: 1.1rem; align-items: flex-start; margin-top: 2.75rem; padding: 1.3rem; border-radius: var(--r-fenster); background: var(--flaeche); }
.rg-praxis img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--grund); }
.rg-praxis > div { min-width: 0; }
.rg-praxis-titel { font: 600 .875rem / 1.3 var(--text); color: var(--begleit-tief); }
.rg-praxis p { line-height: 1.65; }
.rg-praxis p + p, .rg-praxis-titel + p { margin-top: .45rem; }
.rg-autor { display: flex; gap: 1.1rem; align-items: flex-start; margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--linie); }
.rg-autor img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--flaeche); }
.rg-autor > div { min-width: 0; }
.rg-autor-name { font: 600 1rem / 1.3 var(--text); color: var(--kohle); }
.rg-autor-name + p { margin-top: .3rem; line-height: 1.6; color: var(--begleit-tief); }
.rg-pdf { margin-top: 2rem; }
.rg-pdf a {
  display: inline-flex; align-items: center; gap: .9rem; max-width: 100%; padding: .9rem 1.15rem; border-radius: var(--r-fenster);
  background: var(--weiss); box-shadow: inset 0 0 0 1px var(--linie); color: var(--kohle); text-decoration: none;
  transition: box-shadow .25s var(--weich);
}
.rg-pdf a:hover { box-shadow: inset 0 0 0 1px var(--akzent-linie); }
.rg-pdf svg { flex: none; width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rg-pdf strong { display: block; font-weight: 600; overflow-wrap: anywhere; }
.rg-pdf span span { display: block; font-size: .875rem; color: var(--begleit-tief); }
.rg-quellen { margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--linie); }
.rg-quellen h2 { font-size: 1rem; letter-spacing: 0; }
.rg-quellen ol { margin: .75rem 0 0; padding-left: 1.3rem; font-size: .9375rem; line-height: 1.5; }
.rg-quellen li + li { margin-top: .45rem; }
.rg-quellen a { color: var(--kohle); text-underline-offset: .2em; overflow-wrap: anywhere; }
.rg-quelle-ort { color: var(--begleit-tief); font-size: .8125rem; }

/* ---------- Angebot und weitere Fragen */
.rg-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; margin-top: 3.25rem;
  padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: var(--r-fenster); background: var(--kohle); color: var(--grund);
}
.rg-cta > div { flex: 1 1 18rem; min-width: 0; }
.rg-cta-titel { font: 600 1.3rem / 1.25 var(--kopf); letter-spacing: -.012em; color: var(--weiss); }
.rg-cta-titel + p { margin-top: .4rem; color: rgba(255, 255, 255, .82); line-height: 1.55; }
.rg-startseite { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1.25rem; margin-top: 1.1rem; font-size: .9375rem; }
.rg-startseite p { color: var(--begleit-tief); }
.rg-startseite ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.rg-startseite a { display: inline-block; padding: .35rem 0; color: var(--kohle); text-decoration-color: var(--akzent-linie); text-underline-offset: .2em; }
@media (pointer: coarse) { .rg-startseite a { min-height: 44px; display: inline-flex; align-items: center; } }
.rg-weitere { margin-top: 3.25rem; }
.rg-weitere h2 { font-size: var(--h3); line-height: 1.2; letter-spacing: -.012em; }
.rg-weitere ul { margin: 1.1rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--linie); }
.rg-weitere li a {
  display: block; padding: 1rem 0; border-bottom: 1px solid var(--linie); color: var(--kohle);
  font: 600 1.0625rem / 1.35 var(--kopf); text-decoration: none;
}
.rg-weitere li a:hover { text-decoration: underline; text-decoration-color: var(--akzent-linie); text-underline-offset: .2em; }
.rg-weitere p { margin-top: 1.1rem; }
.rg-alle { color: var(--kohle); text-decoration-color: var(--akzent-linie); text-underline-offset: .2em; }

/* ---------- Übersicht */
.rg-einleitung { margin-top: 1.25rem; max-width: 36em; font-size: var(--lead); line-height: 1.6; color: var(--begleit-tief); }
.rg-liste { margin: 2.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--linie); }
.rg-eintrag { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding: 1.6rem 0; border-bottom: 1px solid var(--linie); }
.rg-eintrag.mit-bild { grid-template-columns: minmax(0, 1fr) 168px; align-items: start; }
.rg-eintrag h2 { font-size: var(--h3); line-height: 1.2; letter-spacing: -.012em; }
.rg-eintrag h2 a { color: var(--kohle); text-decoration: none; }
.rg-eintrag h2 a:hover { text-decoration: underline; text-decoration-color: var(--akzent-linie); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.rg-eintrag-text > p { margin-top: .55rem; line-height: 1.6; color: var(--begleit-tief); }
.rg-eintrag-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .875rem; }
.rg-eintrag img { display: block; width: 168px; height: 105px; border-radius: 8px; object-fit: cover; background: var(--flaeche); }
@media (max-width: 559px) {
  .rg-eintrag.mit-bild { grid-template-columns: minmax(0, 1fr); }
  .rg-eintrag img { order: -1; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  /* Die Frage steht gleich darunter als Überschrift: in den Brotkrumen am Handy nur der Weg dorthin */
  .rg-pfad [aria-current] { display: none; }
  .rg-praxis { gap: .85rem; padding: 1.1rem; }
  .rg-praxis img { width: 48px; height: 48px; }
}

/* ---------- Breite nutzen (07.10.2026, vorher stand alles in der linken Hälfte)
   Artikel: Text links in Lesebreite, rechts mitlaufend Inhalt und Website-Check. Übersicht: Karten im Raster. */
.rg-blatt .rahmen > .rg-artikel {
  display: grid; grid-template-columns: minmax(0, 46rem) minmax(15rem, 19rem); justify-content: space-between;
  column-gap: clamp(3rem, 6vw, 6rem); align-items: start; max-width: none;
}
.rg-artikel > * { grid-column: 1; }
.rg-artikel > .rg-leiste { grid-column: 2; grid-row: 1 / span 40; position: sticky; top: 112px; display: grid; gap: 1rem; margin-top: .4rem; }
.rg-leiste .rg-inhalt, .rg-leiste-check {
  margin: 0; padding: 1.15rem 1.25rem 1.25rem; border-radius: var(--r-fenster); background: var(--weiss);
  box-shadow: 0 0 0 1px rgba(16, 24, 40, .07), 0 14px 28px -24px rgba(16, 24, 40, .35);
}
.rg-leiste .rg-inhalt ol { padding-left: 1.15rem; font-size: .9375rem; line-height: 1.4; }
.rg-leiste-check p:not(.rg-inhalt-titel) { margin-top: .45rem; font-size: .9375rem; line-height: 1.5; color: var(--begleit-tief); }
.rg-leiste-check .knopf { margin-top: 1rem; }
.rg-blatt .rahmen > .rg-cta, .rg-blatt .rahmen > .rg-weitere { max-width: 46rem; }
@media (max-width: 1023px) {
  .rg-blatt .rahmen > .rg-artikel { display: block; }
  .rg-artikel > .rg-leiste { position: static; display: block; margin-top: 2rem; }
  .rg-leiste .rg-inhalt { background: none; box-shadow: inset 0 0 0 1px var(--linie); }
  .rg-leiste-check { display: none; }
}
/* Übersicht: drei Karten nebeneinander, Bild oben, die ganze Karte ist klickbar */
.rg-blatt .rahmen > .rg-liste {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: clamp(1rem, 2vw, 1.5rem);
  max-width: none; border-top: 0;
}
.rg-liste .rg-eintrag, .rg-liste .rg-eintrag.mit-bild {
  position: relative; display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; border: 0; border-radius: var(--r-fenster);
  background: var(--weiss); box-shadow: 0 0 0 1px rgba(16, 24, 40, .07), 0 14px 28px -24px rgba(16, 24, 40, .35);
  transition: box-shadow .25s var(--aus), translate .25s var(--aus);
}
@media (hover: hover) and (pointer: fine) { .rg-liste .rg-eintrag:hover { translate: 0 -4px; box-shadow: 0 0 0 1px rgba(16, 24, 40, .1), 0 22px 36px -26px rgba(16, 24, 40, .45); } }
.rg-liste .rg-eintrag img { order: -1; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 0; }
.rg-eintrag-text { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.3rem 1.3rem; }
.rg-eintrag h2 { font-size: 1.25rem; line-height: 1.3; }
.rg-eintrag h2 a::after { content: ''; position: absolute; inset: 0; }
.rg-eintrag-text > p { font-size: .9375rem; }
.rg-eintrag-meta { margin-top: auto; padding-top: .9rem; }
.rg-blatt .rahmen > .rg-liste + .rg-cta { max-width: none; }
@media (prefers-reduced-motion: reduce) { .rg-liste .rg-eintrag:hover { translate: none; } }
/* Nur ein Artikel: eine breite Karte (Bild links, Text rechts) statt einer schmalen Karte mit zwei leeren Spalten daneben */
@media (min-width: 760px) {
  .rg-blatt .rahmen > .rg-liste:has(> .rg-eintrag:only-child) { grid-template-columns: minmax(0, 1fr); }
  .rg-liste .rg-eintrag.mit-bild:only-child { flex-direction: row; }
  .rg-liste .rg-eintrag:only-child img { flex: 0 0 46%; width: 46%; aspect-ratio: 16 / 10; }
  .rg-liste .rg-eintrag:only-child .rg-eintrag-text { justify-content: center; padding: clamp(1.5rem, 3vw, 2.5rem); }
  .rg-liste .rg-eintrag:only-child h2 { font-size: var(--h3); }
  .rg-liste .rg-eintrag:only-child .rg-eintrag-meta { margin-top: 0; }
}

/* ---------- Vorschau aus der Verwaltung */
.rg-vorschau-band {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-bottom: 1.75rem; padding: .8rem 1.1rem;
  border-radius: var(--r-fenster); background: var(--kohle); color: var(--weiss); font-size: .9375rem; line-height: 1.45;
}
.rg-vorschau-band a { color: var(--akzent); text-underline-offset: .2em; }

/* SEO-Runde 5 (#7): Tippflächen am Handy, Brotkrumen wie .pfad in site.css auf 44 px, übrige Links mindestens 24 px */
@media (pointer: coarse) {
  .rg-pfad a { display: inline-flex; align-items: center; min-height: 44px; }
  .rg-meta a, .rg-quellen a { display: inline-block; padding-block: .3rem; }
}
