/*
 * Reformforum Neopolis – Design-Schicht über Bootstrap 5.3.8 (lokal gehostet, MIT-Lizenz).
 * Quelle: Design-Handoff "Reformforum Neopolis Relaunch" (Tokens, Komponenten, Breakpoints 992 px / ~1100 px).
 * Schrift: Archivo (Omnibus-Type, SIL OFL 1.1), lokal gehostet unter theme/public/fonts/archivo/ (Lizenzdatei OFL.txt liegt dort).
 * Prinzip: flächig, eckig, weißer Grund, ein Akzent pro Website, Schwarz nur im Footer, möglichst keine Linien.
 */

@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 100%;
    font-display: swap;
    src: url('../fonts/archivo/Archivo-latin-variable.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --rf-text: #201e1d;
    --rf-bg: #ffffff;
    --rf-fl: #f3f2f2;
    --rf-fl-2: #eae9e9;
    --rf-fl-3: #e4e2e2;
    --rf-fl-4: #d4d2d2;
    --rf-muted: #5f5b59;
    --rf-muted-light: #b5b1af;
    --rf-pad: clamp(16px, 4vw, 48px);
    --rf-font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --rf-shadow-md: 0 4px 14px rgba(32, 30, 29, .22);
    --rf-stufe-1: #200172;
    --rf-stufe-2: #3f2bba;
    --rf-stufe-3: #635eed;
    --rf-stufe-4: #9299fd;
    --rf-stufe-5: #c4c8fe;
    --rf-stufe-6: #e4e6ff;
}

/* Akzentfarbe je Website (Body-Klasse kommt aus dem Template 02 Hauptlayout) */
.site-reformforum { --accent: #4636c4; --accent-dark: #1f1760; --accent-text: #4636c4; }
.site-neopolis { --accent: #00849a; --accent-dark: #005a69; --accent-text: #00849a; }
.site-parteienstop { --accent: #dc5200; --accent-dark: #8f3400; --accent-text: #dc5200; }
.site-verfassung { --accent: #c08f00; --accent-dark: #5c4300; --accent-text: #8a6400; }

/* Rubrik-Abstufungen je Website (dunkel → hell). reformforum: Indigo aus dem Handoff (oben in :root);
   die anderen Sites leiten die Stufen aus ihrer Akzentfarbe ab. */
:root { --rf-on-1: #fff; --rf-on-2: #fff; --rf-on-3: #fff; --rf-on-4: #fff; --rf-on-5: #200172; --rf-on-6: #200172; }
.site-neopolis, .site-parteienstop, .site-verfassung {
    --rf-stufe-1: var(--accent-dark);
    --rf-stufe-2: var(--accent);
    --rf-stufe-3: color-mix(in srgb, var(--accent) 68%, #fff);
    --rf-stufe-4: color-mix(in srgb, var(--accent) 46%, #fff);
    --rf-stufe-5: color-mix(in srgb, var(--accent) 24%, #fff);
    --rf-stufe-6: color-mix(in srgb, var(--accent) 11%, #fff);
    --rf-on-3: #201e1d; --rf-on-4: #201e1d; --rf-on-5: var(--accent-dark); --rf-on-6: var(--accent-dark);
}
.site-neopolis { --rf-on-3: #fff; }

html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--rf-bg);
    color: var(--rf-text);
    font-family: var(--rf-font);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: clip;
}
a { color: var(--accent-text); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.rf-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; background: #fff; color: var(--rf-text); }

.rf-container {
    width: 100%;
    max-width: calc(1240px + 2 * var(--rf-pad));
    margin-inline: auto;
    padding-inline: var(--rf-pad);
}

/* ---------- Header ---------- */
.rf-header { position: relative; z-index: 20; background: #fff; }
.rf-stripe { height: 6px; background: var(--accent); }
.rf-bar {
    display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center;
    padding: 10px var(--rf-pad); background: var(--rf-fl); font-size: 13px;
}
.rf-bar__sites { position: relative; }
.rf-bar__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: flex-end; margin-left: auto; flex: 1 1 auto; }
.rf-bar__meta a { color: var(--rf-text); text-decoration: none; }
.rf-bar__meta a:hover { color: var(--accent-text); }

.rf-sites--wide { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rf-sites--narrow { display: none; }
.rf-sites__label { color: var(--rf-muted); font-size: 13px; margin-right: 8px; }
.rf-sites__item {
    display: flex; align-items: center; gap: 8px; padding: 5px 10px; color: #fff; text-decoration: none;
    font-weight: 800; font-size: 12px; line-height: 1.2;
}
a.rf-sites__item:hover { color: #fff; opacity: .88; }
span.rf-sites__item { cursor: default; }
.rf-sites__item--reformforum { background: #4636c4; }
.rf-sites__item--neopolis { background: #00849a; }
.rf-sites__item--parteienstop { background: #dc5200; }
.rf-sites__item--verfassung { background: #c08f00; }
.rf-sites--narrow summary {
    display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; background: #fff;
    font-weight: 800; font-size: 14px; cursor: pointer; list-style: none;
}
.rf-sites--narrow summary::-webkit-details-marker { display: none; }
.rf-sites--narrow[open] summary .rf-icon { transform: rotate(180deg); }
.rf-sites__menu {
    position: absolute; left: 0; top: calc(100% + 4px); z-index: 30; width: max(260px, 100%);
    display: flex; flex-direction: column; gap: 4px; padding: 4px; background: #fff; box-shadow: var(--rf-shadow-md);
}
.rf-sites__menu .rf-sites__item { min-height: 44px; padding: 10px 14px; font-size: 15px; }
@media (max-width: 1099.98px) {
    .rf-sites--wide { display: none; }
    .rf-sites--narrow { display: block; }
}

.rf-search { display: flex; align-items: stretch; }
.rf-search input { border: 0; background: transparent; font: inherit; color: inherit; outline: none; min-width: 0; }
.rf-search button { display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; color: #fff; }
.rf-search--bar { height: 32px; background: #fff; }
.rf-search--bar input { width: min(200px, 40vw); padding: 0 10px; font-size: 13px; }
.rf-search--bar input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.rf-search--bar button { width: 34px; background: var(--accent); }
.rf-search--bar button:hover { opacity: .88; }

.rf-brandrow { display: flex; gap: 16px 24px; align-items: center; justify-content: space-between; padding-block: clamp(20px, 3vw, 36px); }
.rf-brand { display: flex; gap: 16px 24px; align-items: center; min-width: 0; color: var(--rf-text); text-decoration: none; }
.rf-brand:hover { color: var(--rf-text); }
.rf-brand img { display: block; width: auto; height: 91px; flex: none; object-fit: contain; }
.rf-brand__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rf-brand__name { font-weight: 800; font-size: clamp(22px, 3.2vw, 34px); line-height: 1.05; letter-spacing: -.02em; }
.rf-brand__tagline { font-size: clamp(13px, 1.4vw, 15px); color: var(--rf-muted); text-wrap: pretty; }
.rf-menubtn {
    flex: none; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 18px; border: 0;
    background: #fff; color: var(--rf-text); font: 800 20px/1 var(--rf-font); cursor: pointer;
}
.rf-menubtn:hover { background: var(--rf-fl); }
.rf-menubtn:active { background: var(--rf-fl-3); }
/* Sehr kleine Bildschirme: Logo oben, Menü-Button darunter (statt nebeneinander) */
@media (max-width: 575.98px) {
    .rf-brandrow { flex-direction: column; align-items: flex-start; gap: 16px; }
    .rf-brand { width: 100%; }
    .rf-menubtn { align-self: flex-end; }
}

/* Navigation statt Menü-Button auf großen Bildschirmen (nur ergänzende Websites, Hauptsite behält das Off-Canvas-Menü) */
.rf-topnav { display: none; }
@media (min-width: 1100px) {
    .rf-topnav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 6px; margin-left: auto; }
    .rf-topnav a {
        padding: 10px 14px; border-bottom: 3px solid transparent; color: var(--rf-text); text-decoration: none;
        font-weight: 800; font-size: 17px; line-height: 1.2; letter-spacing: -.01em;
    }
    .rf-topnav a:hover { background: var(--rf-fl); color: var(--rf-text); }
    .rf-topnav a.is-active { border-bottom-color: var(--accent); }
    .rf-menubtn--narrow { display: none; }
}

/* ---------- Off-Canvas ---------- */
.rf-offcanvas { --bs-offcanvas-width: min(440px, 100%); background: var(--accent); color: #fff; padding: 20px clamp(20px, 3vw, 36px) 36px; gap: 32px; }
.rf-offcanvas__close { display: flex; justify-content: flex-end; }
.rf-offcanvas__close button { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.rf-offcanvas__close button:hover { background: rgba(255, 255, 255, .24); }
.rf-offcanvas__nav { display: flex; flex-direction: column; gap: 4px; }
.rf-offcanvas__link {
    display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 6px 12px; color: #fff; text-decoration: none;
    font-weight: 800; font-size: clamp(22px, 2.4vw, 26px); line-height: 1.1; letter-spacing: -.015em;
}
.rf-offcanvas__link:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.rf-offcanvas__link.is-active { background: rgba(255, 255, 255, .18); }
.rf-offcanvas__link .rf-icon { flex: none; }
/* Rubriken der Hauptsite: Pfeil in der Stufenfarbe der Startseiten-Kacheln, auf weißem Kästchen */
.rf-offcanvas__link[class*="rf-oc-stufe-"] .rf-icon { box-sizing: content-box; padding: 4px; margin: -4px; background: #fff; }
.rf-offcanvas__link.rf-oc-stufe-1 .rf-icon { color: var(--rf-stufe-1); }
.rf-offcanvas__link.rf-oc-stufe-2 .rf-icon { color: var(--rf-stufe-2); }
.rf-offcanvas__link.rf-oc-stufe-3 .rf-icon { color: var(--rf-stufe-3); }
.rf-offcanvas__link.rf-oc-stufe-4 .rf-icon { color: var(--rf-stufe-4); }
.rf-offcanvas__see { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 18px 12px 0; font-size: 15px; line-height: 1.3; }
.rf-offcanvas__see span { font-weight: 600; }
.rf-offcanvas__see a { color: #fff; font-weight: 800; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rf-offcanvas__see a:hover { text-decoration-thickness: 2px; }

/* ---------- Layout ---------- */
.rf-main { padding-block: clamp(28px, 4vw, 56px) clamp(48px, 6vw, 88px); }
.rf-content { font-size: 17px; line-height: 1.65; text-wrap: pretty; min-width: 0; }
.rf-content > * + * { margin-top: 20px; }
.rf-content--full { }

/* Seitenmenü links (4 von 12 Spalten) */
.rf-side { display: flex; flex-direction: column; gap: 4px; background: var(--accent); color: #fff; padding: 24px 16px 20px; hyphens: auto; font-weight: 800; letter-spacing: -.01em; }
.rf-side a { color: #fff; text-decoration: none; }
.rf-side__link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; font-size: 16px; line-height: 1.2; overflow-wrap: break-word; text-wrap: pretty; }
/* Pfeil als CSS-Form (kein Icon-Asset), 14 px wie im Handoff */
.rf-side__link::before { content: ''; flex: none; width: 7px; height: 7px; margin: 0 4px 0 -2px; border: solid currentColor; border-width: 3px 3px 0 0; transform: rotate(45deg); }
.rf-side__link:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.rf-side__link.is-active { background: rgba(255, 255, 255, .18); }
.rf-side__title { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 0 12px; font-size: clamp(24px, 2.4vw, 28px); line-height: 1.05; letter-spacing: -.02em; }
.rf-side__title:hover { opacity: .85; }
.rf-side__title.is-active { background: rgba(255, 255, 255, .18); padding: 8px 12px; }
.rf-side__toggle {
    display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 0;
    background: var(--accent); color: #fff; font: 800 18px/1.2 var(--rf-font); cursor: pointer;
}
.rf-backlink {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--accent); color: #fff;
    font-weight: 800; font-size: 13px; text-decoration: none;
}
.rf-backlink:hover { color: #fff; background: var(--accent-dark); }

/* ---------- Inhalt ---------- */
.rf-content h1 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; margin: 0; text-wrap: balance; }
.rf-content h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.18; font-weight: 800; letter-spacing: -.01em; margin-top: 36px; margin-bottom: 0; }
.rf-content h3 { font-size: clamp(19px, 1.9vw, 22px); line-height: 1.25; font-weight: 800; margin-top: 28px; margin-bottom: 0; }
.rf-content h4 { font-size: 18px; line-height: 1.3; font-weight: 800; margin-top: 24px; margin-bottom: 0; }
.rf-content p, .rf-content ul, .rf-content ol { margin-bottom: 0; }
.rf-content ul, .rf-content ol { padding-left: 1.4em; }
.rf-content li + li { margin-top: 6px; }
.rf-content a { text-decoration: underline; text-underline-offset: 3px; }
.rf-content img { max-width: 100%; height: auto; }
.rf-lead { font-size: clamp(19px, 1.9vw, 21px); line-height: 1.55; font-weight: 600; }
.rf-pagehead { display: flex; flex-direction: column; gap: 20px; }
.rf-pagehead > * { margin: 0; }
.rf-text > * + * { margin-top: 20px; }
.rf-text > h2:first-child, .rf-text > h3:first-child, .rf-text > h4:first-child { margin-top: 0; }
.rf-text blockquote, .rf-hinweis { padding: 20px 24px; background: var(--rf-fl); font-style: italic; margin-left: 0; margin-right: 0; }
.rf-text blockquote a { font-style: normal; }
.rf-text table { width: 100%; border-collapse: collapse; }
.rf-text th, .rf-text td { padding: 10px 14px; background: var(--rf-fl); vertical-align: top; }
.rf-text th { background: var(--rf-fl-3); text-align: left; }
.rf-text ul.rf-liste, .rf-text ul.rf-pfeil { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rf-text ul.rf-pfeil li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding: 16px 18px; background: var(--rf-fl); margin: 0; }
.rf-text ul.rf-pfeil li::before { content: ''; width: 9px; height: 9px; margin-top: 9px; border-top: 3px solid var(--accent); border-right: 3px solid var(--accent); transform: rotate(45deg); }

/* PDF-Link */
.rf-pdfs { display: flex; flex-direction: column; gap: 4px; }
.rf-pdfs--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.rf-pdf {
    display: grid; grid-template-columns: auto 1fr auto; align-items: stretch; background: var(--rf-fl); min-height: 52px;
    color: var(--rf-text); text-decoration: none !important; font-size: 16px; line-height: 1.35;
}
.rf-pdf:hover { background: var(--rf-fl-3); color: var(--rf-text); }
.rf-pdf__icon { display: flex; align-items: center; justify-content: center; width: 52px; background: var(--accent); color: #fff; }
.site-verfassung .rf-pdf__icon { background: var(--accent-text); } /* Handoff: Icon-Kasten in der dunkleren Textfarbe (Kontrast zu Weiß) */
.rf-pdf__title { padding: 14px 16px; font-weight: 600; align-self: center; }
.rf-pdf:hover .rf-pdf__title { color: var(--accent-text); }
.rf-pdf__meta { display: flex; align-items: center; gap: 6px; padding: 0 16px; font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--accent-text); }

/* Einklapp-Elemente */
.rf-klapps { display: flex; flex-direction: column; gap: 4px; }
.rf-klapp { background: var(--rf-fl); }
.rf-klapp > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; cursor: pointer; list-style: none;
    font-weight: 800; font-size: clamp(18px, 1.9vw, 21px); line-height: 1.25;
}
.rf-klapp > summary::-webkit-details-marker { display: none; }
.rf-klapp > summary .rf-icon { flex: none; color: var(--accent-text); transition: transform .2s; }
.rf-klapp[open] > summary .rf-icon { transform: rotate(180deg); }
.rf-klapp > summary:hover { background: var(--rf-fl-2); }
.rf-klapp__body { padding: 0 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.rf-klapp__body > * { margin: 0 !important; }
.rf-klapps--kompakt .rf-klapp > summary { padding: 14px 18px; font-size: 18px; }
.rf-klapps--kompakt .rf-klapp__body { padding: 0 18px 18px; font-size: 16px; line-height: 1.6; display: block; }

/* Ausklapptext mit Auslauf */
.rf-fade { position: relative; }
.rf-fade__inner { position: relative; max-height: 11em; overflow: hidden; }
.rf-fade__inner::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(rgba(255, 255, 255, 0), #fff 85%); pointer-events: none; }
.rf-fade.is-open .rf-fade__inner { max-height: none; }
.rf-fade.is-open .rf-fade__inner::after { display: none; }
.rf-fade__btn {
    display: flex; align-items: center; justify-content: center; width: 56px; height: 44px; margin: -6px 0 0 auto; padding: 0; border: 0;
    background: var(--rf-fl); color: var(--accent-text); cursor: pointer; position: relative; z-index: 1;
}
.rf-fade__btn:hover { background: var(--rf-fl-2); }
.rf-fade.is-open .rf-fade__btn .rf-icon { transform: rotate(180deg); }

/* Karten (Bücher) */
.rf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; }
.rf-card { background: var(--rf-fl); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.rf-card h4 { margin: 0 !important; font-size: 17px; line-height: 1.25; }
.rf-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--rf-muted); }

/* Hinweisfläche (Reformjournal) */
.rf-hinweis--accent { background: var(--accent); color: #fff; font-style: normal; font-weight: 600; }
.rf-hinweis--accent a { color: #fff; }
.rf-hinweis--accent:has(> p > a:only-child) { padding: 0; max-width: 460px; }
.rf-hinweis--accent p { margin: 0; }
.rf-hinweis--accent a:only-child { display: block; padding: 20px; text-decoration: none; font-size: 16px; line-height: 1.5; }
.rf-hinweis--accent a:only-child:hover { background: var(--accent-dark); color: #fff; }
.rf-hinweis--accent a:only-child strong { display: block; margin-bottom: 8px; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.15; font-weight: 800; }

/* Start: Hero, Manifest, Rubriken-Teaser */
.rf-bleed { margin-inline: calc(50% - 50vw); padding-inline: max(var(--rf-pad), calc((100vw - 1240px) / 2)); }
/* 100vw schließt die Scrollleiste ein: überstehende Farbbalken nicht als horizontales Scrollen zeigen */
html { overflow-x: clip; }
.rf-hero { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: flex-end; padding-block: clamp(32px, 5vw, 72px); background: var(--accent); margin-top: calc(-1 * clamp(28px, 4vw, 56px)); }
.rf-hero__quote { flex: 1 1 420px; margin: 0; color: #fff; font-weight: 800; font-size: clamp(28px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
.rf-hero__fig { flex: 0 1 max(240px, calc(33.3333% - 32px)); margin: 0; background: #fff; padding: 12px 12px 10px; }
.rf-hero__img { position: relative; aspect-ratio: 4 / 5; width: 100%; background: var(--rf-fl-2); overflow: hidden; }
.rf-hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.rf-hero__cred { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: flex; align-items: center; height: 36px; background: #fff; border-radius: 999px; cursor: pointer; overflow: hidden; border: 0; padding: 0; color: var(--rf-text); font: inherit; }
.rf-hero__cred span:first-child { max-width: 0; overflow: hidden; white-space: nowrap; font-size: 16px; font-weight: 600; padding-left: 0; transition: max-width .25s ease, padding .25s ease; }
.rf-hero__cred.is-open span:first-child { max-width: 220px; padding-left: 14px; }
.rf-hero__cred span:last-child { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; font-weight: 900; font-size: 22px; line-height: 1; }
.rf-hero figcaption { margin-top: 10px; font-size: 16px; line-height: 1.3; }
.rf-startrow { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.rf-startrow__main { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.rf-startrow__main h1 { font-size: clamp(28px, 3.6vw, 44px); max-width: 20ch; line-height: 1.06; letter-spacing: -.02em; }
.rf-manifest { flex: 999 1 280px; max-width: max(calc(33.3333% - 32px), 280px); display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--rf-fl); }
.rf-manifest h3 { margin: 0 !important; font-size: 18px; }
.rf-manifest__btn { display: grid; grid-template-columns: auto 1fr; background: var(--accent); color: #fff; text-decoration: none !important; }
.rf-manifest__btn:hover { background: var(--accent-dark); color: #fff; }
.rf-manifest__btn > span:first-child { display: flex; align-items: center; justify-content: center; width: 64px; background: rgba(255, 255, 255, .16); }
.rf-manifest__btn > span:last-child { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; }
.rf-manifest__btn strong { font-weight: 800; font-size: 20px; line-height: 1.2; }
.rf-manifest__btn small { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; letter-spacing: .08em; }

.rf-label, .rf-content h2.rf-label { font-size: 13px; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; margin-bottom: 0 !important; }
.rf-teasers { display: grid; gap: 8px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 640px) { .rf-teasers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1360px) { .rf-teasers { grid-template-columns: repeat(4, 1fr); } }
.rf-teaser { display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 20px; background: #fff; font-size: 15px; line-height: 1.6; }
.rf-teaser__head { display: flex; align-items: center; gap: 12px; padding: 22px 22px 20px; margin: -22px -22px 6px; color: #fff; text-decoration: none !important; }
.rf-teaser__head .rf-icon { flex: none; stroke-width: 5; }
.rf-teaser__head h3 { margin: 0 !important; color: inherit; font-size: 24px; line-height: 1.05; letter-spacing: -.02em; }
.rf-teaser__head:hover { color: #fff; filter: brightness(1.1); }
.rf-teaser .rf-fade__inner { max-height: 13em; }
.rf-teaser .rf-fade__inner::after { background: linear-gradient(rgba(255, 255, 255, 0), #fff 85%); }
.rf-teaser .rf-fade__btn { width: 44px; height: 36px; margin: -28px 0 0 auto; background: var(--rf-fl); }
.rf-teaser .rf-fade__btn:hover { background: var(--rf-fl-3); }
.rf-teaser .rf-fade__btn .rf-icon { width: 22px; height: 22px; stroke-width: 4; }
.rf-teaser--1 .rf-fade__btn { color: var(--rf-stufe-1); } .rf-teaser--2 .rf-fade__btn { color: var(--rf-stufe-2); } .rf-teaser--3 .rf-fade__btn { color: var(--rf-stufe-3); } .rf-teaser--4 .rf-fade__btn { color: #5d63d6; }
.rf-teaser .rf-fade p { margin: 0 0 10px; }
.rf-teaser__more .rf-icon { flex: none; stroke-width: 5; }
.rf-teaser__more { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 14px 0 4px; letter-spacing: -.01em; font-weight: 800; font-size: clamp(19px, 1.9vw, 22px); line-height: 1.15; text-decoration: none !important; }
.rf-teaser--1 .rf-teaser__head { background: var(--rf-stufe-1); } .rf-teaser--1 .rf-teaser__more { color: var(--rf-stufe-1); }
.rf-teaser--2 .rf-teaser__head { background: var(--rf-stufe-2); } .rf-teaser--2 .rf-teaser__more { color: var(--rf-stufe-2); }
.rf-teaser--3 .rf-teaser__head { background: var(--rf-stufe-3); } .rf-teaser--3 .rf-teaser__more { color: var(--rf-stufe-3); }
.rf-teaser--4 .rf-teaser__head { background: var(--rf-stufe-4); } .rf-teaser--4 .rf-teaser__more { color: #5d63d6; }

/* Gesamtkatalog: Stufenflächen */
.rf-stufe { padding: 16px 20px; font-weight: 800; }
.rf-stufe-1 { background: var(--rf-stufe-1); color: var(--rf-on-1); }
.rf-stufe-2 { background: var(--rf-stufe-2); color: var(--rf-on-2); }
.rf-stufe-3 { background: var(--rf-stufe-3); color: var(--rf-on-3); }
.rf-stufe-4 { background: var(--rf-stufe-4); color: var(--rf-on-4); }
.rf-stufe-5 { background: var(--rf-stufe-5); color: var(--rf-on-5); }
.rf-stufe-6 { background: var(--rf-stufe-6); color: var(--rf-on-6); }

/* Bild */
.rf-figure { margin: 0; }
.rf-figure img { display: block; max-width: 100%; height: auto; }
.rf-figure figcaption { margin-top: 8px; font-size: 15px; color: var(--rf-muted); }

/* Formular */
.rf-form { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.rf-form label, .rf-form .control-label { font-weight: 800; font-size: 16px; color: var(--accent-dark); margin-bottom: 6px; }
.rf-form .form-control { min-height: 52px; font-size: 18px; border: 2px solid var(--accent); border-radius: 0; background: #fff; }
.rf-form textarea.form-control { min-height: 180px; }
.rf-form .form-control:focus { box-shadow: none; outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.rf-form .form-check-input { width: 1.4em; height: 1.4em; border: 2px solid var(--accent); border-radius: 0; margin-top: .15em; }
.rf-form .form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.rf-form .form-check-label { font-weight: 600; color: var(--rf-text); }
.rf-form .btn-primary, .rf-form button[type='submit'] {
    min-height: 56px; padding: 0 28px; border: 0; border-radius: 0; background: var(--accent); color: #fff; font: 800 18px var(--rf-font);
    display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
}
.rf-form .btn-primary:hover, .rf-form button[type='submit']:hover { background: var(--accent-dark); }
.rf-form .alert { border-radius: 0; }
.rf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Glossar */
.rf-glossar-gruppe { margin-top: 36px; }

/* ---------- Footer ---------- */
.rf-footer { position: relative; background: var(--rf-text); color: #fff; padding: clamp(28px, 4vw, 48px) 0 calc(56px + 40px); }
.rf-footer a { color: #fff; text-decoration: none; }
.rf-footer a:hover { color: #fff; text-decoration: underline; }
.rf-footer__cols { display: flex; flex-wrap: wrap; gap: 28px 32px; }
.rf-footer__col { min-width: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.rf-footer__col--brand { flex: 1.4 1 300px; gap: 6px; }
.rf-footer__col--sites { flex: 1.6 1 240px; }
.rf-footer__col--infos { flex: .7 1 140px; }
.rf-footer__col--service { flex: 1 1 180px; }
.rf-footer__name { font-weight: 800; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.1; overflow-wrap: anywhere; }
.rf-footer__tagline { font-size: 16px; color: var(--rf-muted-light); text-wrap: pretty; }
.rf-footer__head, .rf-footer__search label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--rf-muted-light); }
.rf-footer__search { display: flex; flex-direction: column; gap: 10px; max-width: 280px; margin-top: 14px; }
.rf-search--footer { height: 40px; background: rgba(255, 255, 255, .14); }
.rf-search--footer input { flex: 1; padding: 0 12px; font-size: 16px; color: #fff; }
.rf-search--footer input::placeholder { color: rgba(255, 255, 255, .7); }
.rf-search--footer input:focus { background: rgba(255, 255, 255, .22); }
.rf-search--footer button { width: 40px; background: transparent; }
.rf-footer__col--sites a { display: flex; align-items: center; gap: 10px; }
.rf-footer__dot { display: inline-block; width: 10px; height: 10px; flex: none; padding: 0; }
.rf-fab {
    display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 0; cursor: pointer; color: #fff;
}
.rf-fab[hidden] { display: none; }
.rf-fab--print { position: absolute; right: calc(clamp(16px, 3vw, 32px) + 64px); bottom: clamp(16px, 3vw, 32px); background: #e4e2e2; color: var(--rf-text); }
.rf-fab--print:hover { background: #d4d2d2; }
.rf-fab--top { position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 40; background: var(--accent); box-shadow: var(--rf-shadow-md); }
.rf-fab--top:hover { opacity: .88; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* Feinschliff */
.rf-content .rf-backlink { text-decoration: none; }
.rf-form .form-check { display: flex; align-items: flex-start; gap: 12px; padding-left: 0; }
.rf-form .form-check .form-check-input { float: none; margin-left: 0; flex: none; }
.rf-lead > p { margin: 0; }
.rf-lead > p + p { margin-top: 12px; }

/* Suche */
.rf-searchpage { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.rf-searchpage label { font-weight: 800; color: var(--accent-dark); }
.rf-searchpage__row { display: flex; }
.rf-searchpage input { flex: 1; min-width: 0; min-height: 52px; padding: 0 14px; font: inherit; font-size: 18px; border: 2px solid var(--accent); border-radius: 0; }
.rf-searchpage button { display: inline-flex; align-items: center; gap: 10px; padding: 0 24px; border: 0; background: var(--accent); color: #fff; font: 800 18px var(--rf-font); cursor: pointer; }
.rf-searchpage button:hover { background: var(--accent-dark); }
.rf-results { list-style: none; padding: 0 !important; display: flex; flex-direction: column; gap: 6px; }
.rf-results li { background: var(--rf-fl); padding: 16px 20px; margin: 0 !important; }
.rf-results__title { font-weight: 800; font-size: 19px; }
.rf-results p { margin: 6px 0 0; font-size: 16px; }
mark { background: #fff2a8; padding: 0 2px; }

/* Link-Flächen (Gesamtkatalog-Übersicht) */
.rf-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 8px; }
.rf-content a.rf-tile { display: flex; flex-direction: column-reverse; justify-content: space-between; align-items: flex-start; gap: 40px; min-height: 168px; padding: 20px; text-decoration: none; font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.1; }
.rf-content a.rf-tile.rf-stufe-1 { color: var(--rf-on-1); } .rf-content a.rf-tile.rf-stufe-2 { color: var(--rf-on-2); }
.rf-content a.rf-tile.rf-stufe-3 { color: var(--rf-on-3); } .rf-content a.rf-tile.rf-stufe-4 { color: var(--rf-on-4); }
.rf-content a.rf-tile.rf-stufe-5 { color: var(--rf-on-5); } .rf-content a.rf-tile.rf-stufe-6 { color: var(--rf-on-6); }
.rf-content a.rf-tile:hover { filter: brightness(1.08); }

/* Artikel-Zeilen (Verweis auf einen Artikel): graue Zeile mit Pfeil, passend zu den PDF-Zeilen.
   Pfeil als CSS-Form (kein Icon-Asset). Direkt aufeinanderfolgende PDF-/Artikel-Zeilen rücken eng zusammen. */
.rf-text--zeilen ul, .rf-text--zeilen ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.rf-text--zeilen li { margin: 0; }
.rf-text--zeilen li + li { margin-top: 0; }
.rf-text--zeilen p + p { margin-top: 6px; }
.rf-content .rf-text--zeilen a {
    display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; padding: 12px 14px; background: var(--rf-fl);
    color: var(--rf-text); text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.4;
}
.rf-content .rf-text--zeilen a::before {
    content: ''; width: 8px; height: 8px; margin: 7px 0 0 3px; border: solid var(--accent); border-width: 3px 3px 0 0; transform: rotate(45deg);
}
.rf-content .rf-text--zeilen a:hover { background: var(--rf-fl-3); color: var(--accent-text); }
.rf-content > .rf-pdfs + .rf-text--zeilen, .rf-content > .rf-text--zeilen + .rf-pdfs, .rf-content > .rf-text--zeilen + .rf-text--zeilen { margin-top: 4px; }

/* ---------- Startseite: Abstände und Haupttext nach Handoff ---------- */
.rf-hero + * { margin-top: clamp(32px, 4vw, 56px); }
.rf-content--full > * + * { margin-top: clamp(40px, 5vw, 72px); }
.rf-content--full > .rf-hero + * { margin-top: clamp(32px, 4vw, 56px); }
.rf-startrow .rf-text { max-width: 68ch; }
.rf-startrow .rf-text > * + * { margin-top: 18px; }
/* erster Absatz = Einleitung, Absatz mit fettem Anfang = Kasten, letzter Absatz = Nachsatz (PS) */
.rf-startrow .rf-text > p:first-child { font-weight: 600; font-size: clamp(19px, 2vw, 22px); line-height: 1.4; }
.rf-startrow .rf-text > p:has(> strong:first-child) { padding: 22px 24px; background: var(--rf-fl); }
.rf-startrow .rf-text > p:has(> strong:first-child) > strong:first-child { font-weight: 800; }
.rf-startrow .rf-text > p:last-child:not(:first-child) { font-size: 15px; color: var(--rf-muted); }
.rf-content--full > h2.rf-label { margin-top: clamp(40px, 5vw, 72px); }
.rf-content--full > .rf-label + .rf-teasers { margin-top: 20px; }

/* Reformjournal (Handoff): Überschrift und Einleitung links (2/3), Akzent-Karte rechts (1/3), unten bündig; unter 992 px untereinander */
@media (min-width: 992px) {
    .rf-content:has(> .rf-text--akzent) { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: 48px; row-gap: 16px; align-items: end; }
    .rf-content:has(> .rf-text--akzent) > * { grid-column: 1 / -1; margin-top: 0; }
    .rf-content:has(> .rf-text--akzent) > .rf-pagehead { grid-column: 1; grid-row: 1; align-self: start; }
    .rf-content:has(> .rf-text--akzent) > .rf-pagehead + .rf-text { grid-column: 1; grid-row: 2; }
    .rf-content:has(> .rf-text--akzent) > .rf-text--akzent { grid-column: 2; grid-row: 1 / span 2; }
    .rf-content:has(> .rf-text--akzent) > .rf-text--akzent .rf-hinweis--accent { max-width: none; }
    .rf-content:has(> .rf-text--akzent) > .rf-text--akzent + * { margin-top: 12px; }
}

/* Text-Darstellungen „Einleitung“ und „Kasten“ (Handoff: 19–21 px / 600 bzw. Hauptfarbe, 800, 19–23 px) */
.rf-text .rf-lead p { margin: 0; }
.rf-kasten { padding: 22px 24px; background: var(--accent); color: #fff; font-weight: 800; font-size: clamp(19px, 2vw, 23px); line-height: 1.35; }
.rf-kasten p { margin: 0; }
.rf-kasten p + p { margin-top: 12px; }
.rf-kasten a { color: #fff; }

/* Link-Liste (Handoff „Links“): graue Zeile mit Pfeil, Titel 19 px / 800, darunter die Adresse 15 px / 700 in der Hauptfarbe */
.rf-text--links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rf-text--links li { margin: 0; }
.rf-content .rf-text--links a { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center; padding: 18px 20px; background: var(--rf-fl); color: var(--rf-text); text-decoration: none; }
.rf-content .rf-text--links a:hover { background: var(--rf-fl-3); color: var(--rf-text); }
.rf-text--links a::before { content: ''; grid-row: span 2; width: 10px; height: 10px; margin: 0 6px 0 2px; border-top: 4px solid var(--accent); border-right: 4px solid var(--accent); transform: rotate(45deg); }
.rf-text--links a strong:first-of-type { font-weight: 800; font-size: 19px; line-height: 1.25; }
.rf-text--links a strong:last-of-type:not(:first-of-type) { color: var(--accent-text); font-weight: 700; font-size: 15px; }
.rf-text--links h2 + ul { margin-top: 20px; }

/* Thesen-Liste und Link-Zeilen (Handoff „Rubrik Demokratie“ / „Rubrik Sozialstaat“) */
.rf-text--thesen ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; counter-reset: rf-these; }
.rf-text--thesen ol > li { counter-increment: rf-these; display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 16px 0; margin: 0; }
.rf-text--thesen ol > li::before { content: counter(rf-these) "."; font-weight: 800; font-size: 28px; line-height: 1; color: var(--accent); }
.rf-text--rows { display: flex; flex-direction: column; }
.rf-text--rows > * { margin: 0; }
.rf-content .rf-text--rows a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-weight: 800; font-size: 19px; color: var(--rf-text); text-decoration: none; }
.rf-content .rf-text--rows a:hover { color: var(--rf-muted); }
.rf-text--rows a::after { content: ''; flex: none; width: 10px; height: 10px; margin-right: 4px; border-top: 3px solid currentColor; border-right: 3px solid currentColor; transform: rotate(45deg); }
