/*
 * Tauf-Ratgeber (/ratgeber/<slug>/): Textseiten ohne Bilder.
 * Herkunft: Kopien vorhandener Regeln aus css/arbeitsweise.css (Praefix aw- auf rg-
 * umbenannt, Werte unveraendert). Ausnahmen mit Quelle im Kommentar an der Regel.
 * Ladereihenfolge: base.css, ratgeber.css, regions.css. Gilt fuer alle Tauf-Ratgeber.
 * Kopfzeile: anders als aw-header immer dunkel (siehe Regel .rg-header).
 * Fortschrittsbalken: Element traegt aw-progress (fuer js/arbeitsweise.js) und rg-progress
 * (Gestaltung hier).
 */
:root {
    --rg-ink: #171612;
    --rg-charcoal: #0b0b0a;
    --rg-paper: #f1ede4;
    --rg-gold: #b7955c;
    --rg-gold-light: #d5bd8b;
    --rg-gold-on-paper: #806335;
    --rg-line-dark: rgba(23, 22, 18, 0.18);
    --rg-line-light: rgba(255, 255, 255, 0.16);
    --rg-muted-light: rgba(255, 255, 255, 0.68);
    --rg-gutter: clamp(1.25rem, 4vw, 4rem);
    --rg-space: clamp(7rem, 12vw, 12rem);
}

html {
    scroll-padding-top: 76px;
}

body.rg-page {
    color: var(--rg-paper);
    background: var(--rg-charcoal);
    font-family: var(--font-body);
    overflow-x: clip;
}

.rg-page h1,
.rg-page h2,
.rg-page h3 {
    font-weight: 400;
}

/* Kopfbereich: aw-progress, aw-header, aw-nav-region */
.rg-progress {
    position: fixed;
    z-index: 110;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--rg-gold);
}

/* Kopfzeile auf allen Breiten von Anfang an dunkel, Werte der Desktop-Kopfzeile von aw-header:
   die Seite hat kein Titelbild, ohne festen Grund laege die Kopfzeile hell auf der Papierflaeche
   (Entscheidung Euro 03.11.2026) */
.rg-header,
.rg-header.scrolled {
    position: fixed;
    inset: 0 0 auto;
    border-bottom: 1px solid var(--rg-line-light);
    background: rgba(9, 9, 8, 0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.rg-nav-region {
    display: none;
    color: var(--rg-gold-light);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.rg-page .nav__link {
    font-size: 0.69rem;
    letter-spacing: 0.08em;
}

.rg-page .nav__link--cta {
    border-color: var(--rg-gold);
    background: var(--rg-gold);
    color: var(--rg-charcoal);
}

@media (min-width: 1024px) {
    .rg-page .nav__menu {
        gap: clamp(1rem, 2vw, 1.8rem);
    }

    .rg-page .nav__link {
        white-space: nowrap;
    }
}

/* Flaechen: aw-paper, aw-dark */
.rg-paper {
    color: var(--rg-ink);
    background: var(--rg-paper);
}

.rg-paper .rg-kicker {
    color: var(--rg-gold-on-paper);
}

.rg-dark {
    color: var(--rg-paper);
    background: var(--rg-charcoal);
}

/* Lesespalte: Breite wie aw-ahead__copy und aw-traditions */
.rg-head__inner,
.rg-body__inner,
.rg-cta__inner {
    max-width: 1050px;
    margin: 0 auto;
}

/* H1-Flaeche ohne Bild: Abstaende von aw-hero__title-wrap, Typografie von aw-hero h1.
   Schriftgroessen von H1, H2 und H3 rund ein Viertel kleiner als auf der Arbeitsweise
   (Vorschlag CC 03.11.2026 auf Rueckfrage Euro, Abnahme offen). */
.rg-head {
    position: relative;
    padding: 7rem var(--rg-gutter) 5rem;
}

.rg-head h1 {
    max-width: 930px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(3.6rem, 5.6vw, 6.4rem);
    line-height: 0.92;
    letter-spacing: -0.058em;
    text-wrap: balance;
}

/* Autorenzeile: aw-kicker; Abstand wie aw-hero h1 margin-top */
.rg-kicker {
    color: var(--rg-gold);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.rg-head .rg-kicker {
    margin-top: 1.3rem;
}

/* Textflaeche: aw-prepare (Abstaende), Abschnittsabstand von aw-story__copy */
.rg-body {
    display: flow-root; /* Abstand des ersten Elements bleibt auf der hellen Flaeche */
    padding: 0 var(--rg-gutter) var(--rg-space);
}

.rg-intro {
    margin-top: 3rem;
}

.rg-section {
    margin-top: clamp(5rem, 9vw, 9rem);
}

/* H2: aw-section-head; Abstand darunter von aw-adapt__copy .aw-section-head */
.rg-section-head {
    width: min(100%, 760px);
    margin-bottom: 4rem;
}

.rg-section-head h2 {
    margin-top: 1.25rem;
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.2vw, 4.4rem);
    line-height: 1;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

/* Fliesstext: aw-prose, aw-prose--narrow, aw-prose h3 */
.rg-prose {
    max-width: 42rem;
    color: inherit;
    font-size: clamp(1rem, 1.15vw, 1.15rem);
    line-height: 1.82;
}

.rg-prose p + p,
.rg-prose p + ul,
.rg-prose ul + p {
    margin-top: 1.15rem;
}

.rg-prose h3 {
    margin-bottom: 1.6rem;
    font-family: var(--font-heading);
    font-size: clamp(1.55rem, 2.3vw, 2.4rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

/* Abstand vor H3 nach Text: Wert von aw-prose--accent (max-width 900px) */
.rg-prose p + h3,
.rg-prose ul + h3 {
    margin-top: 3rem;
}

.rg-prose--narrow {
    max-width: 35rem;
}

.rg-dark .rg-prose {
    color: var(--rg-muted-light);
}

/* Fette Satzanfaenge: wie .album-prose strong (css/taufalbum.css) */
.rg-prose strong {
    color: inherit;
    font-weight: 600;
}

/* Aufzaehlung: Werte von .legal-page ul (css/base.css) */
.rg-prose ul {
    padding-left: 1.5rem;
    list-style: disc;
}

/* Textlinks auf heller Flaeche: Farbe wie .aw-paper em, Hover wie .aw-text-link:hover,
   Unterstreichung wie .zer-seo a (css/zeremonie.css) */
.rg-paper .rg-prose a {
    color: var(--rg-gold-on-paper);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.rg-paper .rg-prose a:hover {
    color: #795f36;
}

/* Kasten "Kurz gesagt" (Kurzfassung): Vorbild .zer-fact (css/zeremonie.css), Linie links und
   getoenter Grund, fuer die helle Flaeche in Gold auf Papier; Kennzeile wie .zer-fact__tag in
   der Groesse von aw-kicker (Entscheidung Euro 03.11.2026: optisch hervorheben) */
.rg-summary {
    max-width: 42rem;
    margin-top: clamp(4rem, 7vw, 6rem);
    padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3.5vw, 2.75rem);
    border-left: 2px solid var(--rg-gold-on-paper);
    background: rgba(183, 149, 92, 0.12);
}

.rg-summary .rg-summary__tag {
    display: block;
    margin-bottom: 0.9rem;
    color: var(--rg-gold-on-paper);
    font-size: 0.66rem;
    letter-spacing: 0.24em;
    line-height: 1.4;
    text-transform: uppercase;
}

.rg-summary .rg-summary__tag strong {
    font-weight: 600;
}

.rg-summary p + p {
    margin-top: 0;
}

.rg-summary p:last-child {
    font-size: clamp(1.05rem, 1.35vw, 1.25rem);
    line-height: 1.7;
}

/* CTA: dunkle Flaeche, Abstaende wie aw-story; Trennlinie wie .shared-regions__head */
.rg-cta {
    padding: var(--rg-space) var(--rg-gutter);
}

.rg-cta__lead {
    padding-bottom: clamp(3rem, 7vw, 6rem);
    border-bottom: 1px solid var(--rg-line-light);
}

.rg-cta__more {
    margin-top: 3rem;
}

@media (min-width: 768px) and (max-width: 1439px) {
    :root {
        --rg-space: clamp(7rem, 10vw, 9rem);
    }

    .rg-head {
        padding-top: 8rem;
    }

    .rg-head h1 {
        font-size: clamp(3.4rem, 6vw, 5.2rem);
    }
}

@media (max-width: 767px) {
    :root {
        --rg-gutter: 1.25rem;
        --rg-space: 5.25rem;
    }

    .rg-nav-region {
        display: inline-flex;
        margin-left: auto;
        margin-right: 0.85rem;
    }

    .rg-page .nav__menu {
        background: rgba(9, 9, 8, 0.98);
    }

    .rg-page .nav__link {
        font-size: 1rem;
    }

    .rg-head {
        padding: 8.25rem var(--rg-gutter) 3.25rem;
    }

    .rg-head h1 {
        max-width: 7.8em;
        font-size: clamp(2.6rem, 12.3vw, 3.4rem);
        line-height: 0.94;
    }

    .rg-head .rg-kicker {
        margin-top: 0.9rem;
    }

    .rg-prose {
        max-width: 35rem;
        font-size: 1rem;
        line-height: 1.72;
    }

    .rg-prose p + p,
    .rg-prose p + ul,
    .rg-prose ul + p {
        margin-top: 1rem;
    }

    .rg-prose p + h3,
    .rg-prose ul + h3 {
        margin-top: 2.5rem;
    }

    .rg-intro {
        margin-top: 2.5rem;
    }

    .rg-section {
        margin-top: 3.5rem;
    }

    .rg-section-head {
        width: 100%;
        margin-bottom: 2.25rem;
        padding-top: 1rem;
        border-top: 1px solid var(--rg-line-dark);
    }

    .rg-section-head h2 {
        max-width: 11em;
        margin-top: 1rem;
        font-size: clamp(2rem, 9vw, 2.8rem);
        line-height: 1.02;
    }

    .rg-summary {
        margin-top: 2.5rem;
        padding: 1.4rem 1.25rem;
    }
}

@media (max-width: 420px) {
    .rg-head {
        padding-top: 7.75rem;
    }

    .rg-head h1 {
        font-size: 2.6rem;
    }
}
