/*
Theme Name: RR Fischer
Text Domain: rr-fischer
Description: Modernes Classic-Theme für RR Fischer mit Gutenberg-Inhalten (nah am Original-Design).
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

/* ── Schriften (lokal im Theme) ───────────────────────────────────────── */
@font-face { font-family: "Manrope"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/manrope-regular.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/manrope-bold.woff2) format("woff2"); }

/* ── Design-Tokens (aus dem Original) ─────────────────────────────────── */
:root {
	--rrf-blue: #1e4b69;
	--rrf-blue-dark: #001e31;
	--rrf-orange: #ef8c31;
	--rrf-orange-dark: #d9741a;
	--rrf-gray-light: #ededed;
	--rrf-gray: #c7c7c7;
	--rrf-gray-dark: #4a4a49;
	--rrf-gray-darkest: #262626;
	--rrf-text: #2b2f33;
	--rrf-muted: #5c6670;
	--rrf-white: #fff;
	--rrf-radius: 6px;
	--rrf-shadow: 0 10px 30px rgba(0, 30, 49, .10);
	--rrf-shadow-hover: 0 16px 40px rgba(0, 30, 49, .18);
	--rrf-container: 1200px;
	--rrf-gap: clamp(16px, 3vw, 32px);
	--rrf-section: clamp(48px, 7vw, 96px);
	--rrf-header-h: 84px;
}

/* ── Basis ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--rrf-header-h) + 16px); }
body { margin: 0; font-family: "Manrope", system-ui, sans-serif; font-size: 17px; line-height: 1.65; color: var(--rrf-text); background: var(--rrf-white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--rrf-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rrf-orange); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--rrf-blue); margin: 1.6em 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p, ul, ol, table { margin: 0 0 1.1em; }
.rrf-container { width: 100%; max-width: var(--rrf-container); margin: 0 auto; padding: 0 20px; }
.rrf-icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em; }
.rrf-skip { position: absolute; left: -999px; top: 8px; background: var(--rrf-orange); color: #fff; padding: 8px 14px; z-index: 1000; }
.rrf-skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--rrf-orange); outline-offset: 2px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.rrf-btn, .wp-block-button__link { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.4em; border-radius: var(--rrf-radius); background: var(--rrf-orange); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--rrf-orange); transition: background .2s, border-color .2s, transform .2s; line-height: 1.2; }
.rrf-btn:hover, .wp-block-button__link:hover { background: var(--rrf-orange-dark); border-color: var(--rrf-orange-dark); color: #fff; transform: translateY(-1px); }
.rrf-btn--ghost { background: transparent; border-color: rgba(255,255,255,.8); }
.rrf-btn--ghost:hover { background: #fff; border-color: #fff; color: var(--rrf-blue); }
.rrf-btn--light { background: #fff; border-color: #fff; color: var(--rrf-blue); }
.rrf-btn--light:hover { background: var(--rrf-orange); border-color: var(--rrf-orange); color: #fff; }

/* ── Header ───────────────────────────────────────────────────────────── */
.rrf-header { position: sticky; top: 0; z-index: 100; background: var(--rrf-blue); color: #fff; box-shadow: 0 2px 0 var(--rrf-orange); transition: box-shadow .2s; }
.admin-bar .rrf-header { top: var(--wp-admin--admin-bar--height, 32px); }
/* Unter 601 px scrollt die WordPress-Admin-Leiste mit – dann den Header ganz oben fixieren. */
@media (max-width: 600px) { .admin-bar .rrf-header { top: 0; } }
.rrf-header.is-scrolled { box-shadow: 0 2px 0 var(--rrf-orange), 0 8px 24px rgba(0,0,0,.2); }
.rrf-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--rrf-header-h); gap: 24px; }
.rrf-logo { display: block; width: 104px; color: #fff; line-height: 0; }
.rrf-logo svg { width: 100%; height: auto; }
.rrf-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.rrf-nav__item { position: relative; display: flex; align-items: center; }
.rrf-nav__item > a { display: block; padding: 10px 14px; color: #fff; text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; border-radius: var(--rrf-radius); }
.rrf-nav__item > a:hover, .rrf-nav__item.is-current > a { color: var(--rrf-orange); }
.rrf-nav__item--cta { margin-left: 12px; }
.rrf-nav__item--cta > a.rrf-btn { color: #fff; text-transform: none; letter-spacing: 0; font-size: .95rem; padding: .7em 1.2em; }
.rrf-nav__item--cta > a.rrf-btn:hover { color: #fff; }
.rrf-nav__toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.rrf-burger { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.rrf-burger .rrf-icon { width: 28px; height: 28px; }
.rrf-burger .rrf-icon + .rrf-icon, .rrf-burger[aria-expanded="true"] .rrf-icon:first-child { display: none; }
.rrf-burger[aria-expanded="true"] .rrf-icon + .rrf-icon { display: block; }

/* Mega-Menü */
.rrf-mega { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px); display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: 28px; padding: 28px 32px; background: #fff; color: var(--rrf-text); border-radius: var(--rrf-radius); border-top: 3px solid var(--rrf-orange); box-shadow: var(--rrf-shadow-hover); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
.has-mega:hover .rrf-mega, .has-mega:focus-within .rrf-mega, .has-mega.is-open .rrf-mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.rrf-mega__cat { display: block; font-weight: 700; color: var(--rrf-blue); text-decoration: none; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--rrf-gray-light); }
.rrf-mega ul { list-style: none; margin: 0; padding: 0; }
.rrf-mega li a { display: block; padding: 5px 0; color: var(--rrf-muted); text-decoration: none; font-size: .95rem; }
.rrf-mega a:hover { color: var(--rrf-orange); }

/* ── Seitenkopf ───────────────────────────────────────────────────────── */
.rrf-pagehead { position: relative; color: #fff; background: var(--rrf-blue-dark); padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.rrf-pagehead.has-image { background: linear-gradient(100deg, rgba(0,30,49,.92) 0%, rgba(30,75,105,.78) 55%, rgba(30,75,105,.35) 100%), var(--rrf-hero) center / cover no-repeat; }
.rrf-pagehead__title { color: #fff; margin: .3em 0 .2em; text-transform: uppercase; letter-spacing: .02em; }
.rrf-pagehead__lead { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 720px; margin: 0; color: rgba(255,255,255,.9); }
.rrf-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .88rem; color: rgba(255,255,255,.75); }
.rrf-breadcrumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.rrf-breadcrumbs a:hover { color: var(--rrf-orange); }
.rrf-breadcrumbs .rrf-icon { width: .9em; height: .9em; opacity: .6; }

/* ── Startseiten-Hero ─────────────────────────────────────────────────── */
.rrf-hero { color: #fff; background: linear-gradient(100deg, rgba(0,30,49,.94) 0%, rgba(30,75,105,.8) 50%, rgba(30,75,105,.3) 100%), var(--rrf-hero, none) center / cover no-repeat, var(--rrf-blue-dark); padding: clamp(80px, 12vw, 160px) 0; }
.rrf-hero__kicker { margin: 0 0 12px; color: var(--rrf-orange); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; }
.rrf-hero__title { color: #fff; margin: 0 0 .4em; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.05; }
.rrf-hero__title span { color: var(--rrf-orange); }
.rrf-hero__lead { max-width: 640px; font-size: clamp(1.1rem, 2vw, 1.3rem); color: rgba(255,255,255,.9); }
.rrf-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ── Inhalt (Gutenberg-Blöcke) ────────────────────────────────────────── */
.rrf-content { padding-top: var(--rrf-section); padding-bottom: var(--rrf-section); }
.rrf-content > :first-child, .rrf-content .rrf-section > :first-child, .rrf-content .rrf-section .wp-block-group__inner-container > :first-child { margin-top: 0; }
.rrf-content .rrf-section { margin: 0 0 var(--rrf-section); }
.rrf-content .rrf-section:last-child { margin-bottom: 0; }
.rrf-content .rrf-section.is-style-panel { background: var(--rrf-gray-light); border-radius: var(--rrf-radius); padding: clamp(24px, 4vw, 48px); }
.rrf-content h2 { position: relative; padding-left: 18px; }
.rrf-content h2::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 5px; border-radius: 3px; background: var(--rrf-orange); }
.rrf-content ul:not(.wp-block-gallery):not(.blocks-gallery-grid) { padding-left: 0; list-style: none; }
.rrf-content ul:not(.wp-block-gallery):not(.blocks-gallery-grid) > li { position: relative; padding-left: 28px; margin-bottom: .35em; }
.rrf-content ul:not(.wp-block-gallery):not(.blocks-gallery-grid) > li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--rrf-orange); border-bottom: 2.5px solid var(--rrf-orange); transform: rotate(-45deg); }
.rrf-content .wp-block-columns { gap: var(--rrf-gap); margin-bottom: 1.6em; }
.rrf-content .wp-block-column > :first-child { margin-top: 0; }
.rrf-content .wp-block-image img { border-radius: var(--rrf-radius); }
.rrf-content .wp-block-image:not(.alignwide):not(.alignfull) { max-width: 760px; }
.rrf-content .wp-block-columns .wp-block-image { max-width: none; }
.rrf-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.rrf-content th, .rrf-content td { padding: 10px 12px; border-bottom: 1px solid var(--rrf-gray); text-align: left; vertical-align: top; }
.rrf-content th { background: var(--rrf-blue); color: #fff; }
.rrf-content .wp-block-table { overflow-x: auto; }

/* Spalten als Karten (Produktübersichten, Teaser) */
.rrf-content .is-style-cards > .wp-block-column { background: #fff; border-radius: var(--rrf-radius); box-shadow: var(--rrf-shadow); overflow: hidden; padding: 0 0 22px; transition: box-shadow .2s, transform .2s; }
.rrf-content .is-style-cards > .wp-block-column:hover { box-shadow: var(--rrf-shadow-hover); transform: translateY(-3px); }
.rrf-content .is-style-cards > .wp-block-column > * { margin-left: 22px; margin-right: 22px; }
.rrf-content .is-style-cards > .wp-block-column > .wp-block-image:first-child { margin: 0 0 18px; }
.rrf-content .is-style-cards > .wp-block-column > .wp-block-image:first-child img { border-radius: 0; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.rrf-content .is-style-cards h2, .rrf-content .is-style-cards h3 { font-size: 1.2rem; padding-left: 0; margin: 0 22px .5em; }
.rrf-content .is-style-cards h2::before { display: none; }

/* Zubehör & Co.: Bild/Text */
.rrf-content .wp-block-media-text { background: #fff; border-radius: var(--rrf-radius); box-shadow: var(--rrf-shadow); overflow: hidden; margin-bottom: 20px; grid-template-columns: 30% 1fr; }
.rrf-content .wp-block-media-text__media img { border-radius: 0; height: 100%; object-fit: cover; }
.rrf-content .wp-block-media-text__content { padding: 22px 28px; }
.rrf-content .wp-block-media-text__content h3 { margin-top: 0; }

/* Galerien: feste Breite, keine gestreckte letzte Reihe */
.rrf-content .wp-block-gallery.has-nested-images { gap: 14px; }
.rrf-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { flex-grow: 0; width: calc((100% - 28px) / 3); }
.rrf-content .wp-block-gallery figure.wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rrf-radius); }
.rrf-content .wp-block-gallery figcaption { font-size: .85rem; }

/* Startseite: Produktportfolio mit Piktogrammen statt Fotos */
.rrf-content--home .wp-block-media-text__media { display: flex; align-items: center; justify-content: center; background: var(--rrf-gray-light); padding: 24px; }
.rrf-content--home .wp-block-media-text__media img { width: auto; max-width: 140px; height: auto; object-fit: contain; }
.rrf-content--home .wp-block-media-text__content p { margin: 0 0 .3em; }

/* Dunkler Abschnitt (z. B. Herstellerlogos in Weiß) */
.rrf-content .rrf-section.is-style-dark { background: var(--rrf-blue); color: rgba(255,255,255,.9); border-radius: var(--rrf-radius); padding: clamp(24px, 4vw, 48px); }
.rrf-content .is-style-dark h2, .rrf-content .is-style-dark h3, .rrf-content .is-style-dark a { color: #fff; }
.rrf-content .is-style-dark .wp-block-image img { border-radius: 0; max-height: 90px; width: auto; }

/* Vertriebsteam: Kontaktliste zweispaltig */
.rrf-content ul.rrf-contact-list { columns: 2 280px; column-gap: var(--rrf-gap); }
.rrf-content ul.rrf-contact-list > li { break-inside: avoid; }

/* ── Startseite: Farbbänder in voller Breite ─────────────────────────── */
.rrf-main { overflow-x: clip; }
.rrf-content--home { padding-top: 0; padding-bottom: 0; }
.rrf-content .rrf-band { margin: 0 calc(50% - 50vw); padding: var(--rrf-section) max(20px, calc(50vw - 580px)); }
.rrf-content .rrf-band > .wp-block-group__inner-container > :first-child { margin-top: 0; }
.rrf-content .rrf-band > .wp-block-group__inner-container > :last-child { margin-bottom: 0; }
.rrf-band.is-band-white { background: #fff; }
.rrf-band.is-band-light { background: var(--rrf-gray-light); }
.rrf-band.is-band-dark { background: linear-gradient(135deg, var(--rrf-blue-dark) 0%, var(--rrf-blue) 100%); color: rgba(255,255,255,.88); border-top: 4px solid var(--rrf-orange); }
.rrf-band.is-band-dark h2, .rrf-band.is-band-dark h3, .rrf-band.is-band-dark strong { color: #fff; }
.rrf-content h2.rrf-center { text-align: center; padding-left: 0; margin-bottom: 1.6em; }
.rrf-content h2.rrf-center::before { left: 50%; top: auto; bottom: -16px; width: 64px; height: 4px; transform: translateX(-50%); }

/* Über uns + Teaser */
.rrf-content .rrf-intro { gap: clamp(32px, 5vw, 72px); margin: 0; }
.rrf-content .rrf-lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.5; color: var(--rrf-blue); }
.rrf-content .rrf-teaser { position: relative; isolation: isolate; margin: 24px 24px 24px 0; }
.rrf-content .rrf-teaser::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; background: var(--rrf-orange); border-radius: 12px; z-index: -1; }
.rrf-content .wp-block-image.rrf-teaser { max-width: none; }
.rrf-content .rrf-teaser img { width: 100%; display: block; border-radius: 12px; box-shadow: var(--rrf-shadow-hover); transition: transform .25s; }
.rrf-content .rrf-teaser a:hover img { transform: translateY(-4px); }

/* Produktportfolio-Karten */
.rrf-content .is-style-portfolio { gap: var(--rrf-gap); margin: 0; }
.rrf-content .is-style-portfolio > .wp-block-column { background: #fff; border-radius: 12px; border-top: 5px solid var(--rrf-orange); box-shadow: var(--rrf-shadow); padding: 36px 32px 28px; transition: transform .2s, box-shadow .2s; }
.rrf-content .is-style-portfolio > .wp-block-column:hover { transform: translateY(-6px); box-shadow: var(--rrf-shadow-hover); }
.rrf-content .rrf-pictogram { margin: 0 0 22px; }
.rrf-content .rrf-pictogram img { width: 150px; height: 150px; object-fit: contain; border-radius: 0; }
.rrf-content .rrf-intro { align-items: flex-start; margin-bottom: clamp(32px, 4vw, 56px); }
.rrf-content .rrf-intro h2 { margin-top: 0; }
.rrf-content .is-style-portfolio h3 { margin: 0 0 .7em; font-size: 1.3rem; }
.rrf-content .is-style-portfolio h3 a { color: var(--rrf-blue); text-decoration: none; }
.rrf-content .is-style-portfolio h3 a:hover { color: var(--rrf-orange); }
.rrf-content ul.rrf-linklist { margin: 0; }
.rrf-content ul.rrf-linklist > li { margin: 0; padding: 10px 0 10px 22px; border-top: 1px solid var(--rrf-gray-light); }
.rrf-content ul.rrf-linklist > li::before { left: 2px; top: 1.15em; width: 8px; height: 8px; border: 0; border-top: 2.5px solid var(--rrf-orange); border-right: 2.5px solid var(--rrf-orange); transform: rotate(45deg); }
.rrf-content ul.rrf-linklist a { color: var(--rrf-text); text-decoration: none; font-weight: 700; }
.rrf-content ul.rrf-linklist a:hover { color: var(--rrf-orange); }

/* Hersteller */
.rrf-content .is-style-brands { gap: var(--rrf-gap); margin: 0; }
.rrf-content .is-style-brands > .wp-block-column { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 32px 28px; font-size: .97rem; }
.rrf-content .rrf-brandlogo { display: flex; align-items: center; height: 72px; margin: 0 0 24px; max-width: none; }
.rrf-content .rrf-brandlogo img { height: 100%; width: auto !important; max-width: 100%; object-fit: contain; object-position: left center; border-radius: 0; }

/* Vertriebsteam als Kacheln */
.rrf-content ul.rrf-contact-list { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 0; }
.rrf-content ul.rrf-contact-list > li { margin: 0; padding: 16px 18px; background: var(--rrf-gray-light); border-left: 4px solid var(--rrf-orange); border-radius: 8px; transition: background .2s; }
.rrf-content ul.rrf-contact-list > li::before { display: none; }
.rrf-content ul.rrf-contact-list > li:hover { background: #e3e7ea; }
.rrf-content ul.rrf-contact-list strong { color: var(--rrf-blue); }
.rrf-content ul.rrf-contact-list a { word-break: break-all; }
/* Portfolio: Pfeil als SVG, Piktogramm und Titel zentriert */
.rrf-content .rrf-band ul.rrf-linklist.rrf-linklist > li::before { left: 0; top: 50%; width: 14px; height: 14px; border: 0; transform: translateY(-50%); background: var(--rrf-orange); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
.rrf-content ul.rrf-linklist > li:hover::before { transform: translate(3px, -50%); }
.rrf-content .is-style-portfolio .rrf-pictogram { display: flex; justify-content: center; }
.rrf-content .is-style-portfolio h3 { text-align: center; }
.rrf-content .rrf-brandlogo { justify-content: center; }
.rrf-content .rrf-brandlogo img { object-position: center; }

/* Vertriebsteam: interaktive Europakarte */
.rrf-content .rrf-map-cols { align-items: center; gap: clamp(24px, 4vw, 56px); margin: 0; }
.rrf-map { --fill-dach: #1e4b69; --fill-fr: #2c7299; --fill-it: #16394c; --fill-northeast: #65a6c9; --fill-iberia: #116899; --fill-benelux: #263363; --fill-scandinavia: #398b99; --fill-uk: #267284; --fill-suedost: #4d7991; --fill-hover: #ef8c31; }
.rrf-map svg { display: block; width: 100%; height: auto; }
.rrf-map .st-dach { --_fill: var(--fill-dach); }
.rrf-map .st-suedost { --_fill: var(--fill-suedost); }
.rrf-map .st-uk { --_fill: var(--fill-uk); }
.rrf-map .st-scandinavia { --_fill: var(--fill-scandinavia); }
.rrf-map .st-benelux { --_fill: var(--fill-benelux); }
.rrf-map .st-iberia { --_fill: var(--fill-iberia); }
.rrf-map .st-northeast { --_fill: var(--fill-northeast); }
.rrf-map .st-it { --_fill: var(--fill-it); }
.rrf-map .st-fr { --_fill: var(--fill-fr); }
#MapRegions [class*="st-"] { fill: var(--_fill); stroke: #fff; stroke-miterlimit: 10; transition: fill .2s ease; }
#MapRegions [data-region] { cursor: pointer; }
#MapRegions .active [class*="st-"] { --_fill: var(--fill-hover); }
/* Kontaktliste neben der Karte: schlichte Zeilen mit Trennlinien */
.rrf-map-cols ul.rrf-contact-list { display: block; border-top: 1px solid var(--rrf-gray); }
.rrf-map-cols ul.rrf-contact-list > li, .rrf-map-cols ul.rrf-contact-list > li:hover { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0; padding: 11px 4px 11px 24px; background: none; border: 0; border-bottom: 1px solid var(--rrf-gray); border-radius: 0; font-size: .95rem; line-height: 1.4; }
.rrf-map-cols ul.rrf-contact-list > li br { display: none; }
.rrf-map-cols ul.rrf-contact-list strong { color: var(--rrf-blue); transition: color .2s; }
.rrf-map-cols ul.rrf-contact-list a { color: var(--rrf-muted); text-decoration: none; transition: color .2s; }
.rrf-map-cols ul.rrf-contact-list > li.is-active strong, .rrf-map-cols ul.rrf-contact-list > li.is-active a { color: var(--rrf-orange); }
.rrf-map-cols ul.rrf-contact-list > li.is-active::before { display: block; content: ""; left: 4px; top: 50%; width: 12px; height: 12px; border: 0; transform: translateY(-50%); background: var(--rrf-orange); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M8 4l12 8-12 8z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M8 4l12 8-12 8z'/%3E%3C/svg%3E") center / contain no-repeat; }

@media (max-width: 781px) {
	.rrf-content .rrf-teaser { margin: 16px 16px 32px 0; }
	.rrf-content .rrf-teaser::before { inset: 16px -16px -16px 16px; }
}

/* ── Unterseiten: Abschnitte als Farbbänder ───────────────────────────── */
.rrf-content:has(> .rrf-band:first-child) { padding-top: 0; }
.rrf-content:has(> .rrf-band:last-child) { padding-bottom: 0; }
.rrf-band.is-band-dark a:not(.wp-block-button__link) { color: #fff; }
.rrf-band.is-band-dark .wp-block-gallery figcaption { color: #fff; }
.rrf-content .rrf-band.is-band-light .wp-block-columns:not(.is-style-cards):not(.is-style-portfolio):not(.rrf-intro):not(.rrf-map-cols) > .wp-block-column { background: #fff; border-radius: 12px; padding: clamp(22px, 3vw, 32px); box-shadow: var(--rrf-shadow); }
.rrf-content .rrf-band.is-band-light .wp-block-media-text, .rrf-content .rrf-band.is-band-white .wp-block-media-text { border-left: 4px solid var(--rrf-orange); }
.rrf-content .rrf-band.is-band-dark .wp-block-media-text { color: var(--rrf-text); }
.rrf-content .rrf-band.is-band-dark .wp-block-media-text h3 { color: var(--rrf-blue); }

/* ── Karten (automatisch) ─────────────────────────────────────────────── */
.rrf-cards-section { background: var(--rrf-gray-light); padding: var(--rrf-section) 0; }
.rrf-section-title { margin-top: 0; text-align: center; }
.rrf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--rrf-gap); }
.rrf-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--rrf-radius); box-shadow: var(--rrf-shadow); overflow: hidden; color: var(--rrf-text); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.rrf-card:hover { box-shadow: var(--rrf-shadow-hover); transform: translateY(-3px); color: var(--rrf-text); }
.rrf-card__img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.rrf-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.rrf-card__title { font-weight: 700; font-size: 1.15rem; color: var(--rrf-blue); }
.rrf-card__text { color: var(--rrf-muted); font-size: .95rem; }
.rrf-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--rrf-orange); font-weight: 700; font-size: .95rem; }

/* ── CTA-Band ─────────────────────────────────────────────────────────── */
.rrf-cta { background: linear-gradient(110deg, var(--rrf-blue-dark), var(--rrf-blue)); color: #fff; padding: clamp(40px, 6vw, 72px) 0; border-top: 4px solid var(--rrf-orange); }
.rrf-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.rrf-cta h2 { color: #fff; margin: 0 0 .3em; }
.rrf-cta p { margin: 0; max-width: 680px; color: rgba(255,255,255,.88); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.rrf-footer { background: var(--rrf-gray-dark); color: rgba(255,255,255,.85); font-size: .95rem; }
.rrf-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: var(--rrf-gap); padding-top: 56px; padding-bottom: 40px; }
.rrf-logo--footer { width: 96px; }
.rrf-footer__claim { color: var(--rrf-orange); font-weight: 700; margin: 12px 0 0; }
.rrf-footer__title { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.rrf-footer__address { display: flex; gap: 10px; font-style: normal; }
.rrf-footer__address .rrf-icon { color: var(--rrf-orange); margin-top: 4px; }
.rrf-footer__links { list-style: none; margin: 0; padding: 0; }
.rrf-footer__links li { margin-bottom: 6px; }
.rrf-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.rrf-footer a:hover { color: var(--rrf-orange); }
.rrf-footer__bar { background: var(--rrf-gray-darkest); font-size: .85rem; }
.rrf-footer__bar-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.rrf-footer__legal { display: flex; gap: 20px; }

/* ── Mobil ────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
	:root { --rrf-header-h: 68px; }
	.rrf-logo { width: 84px; }
	.rrf-burger { display: block; }
	.rrf-nav { position: fixed; inset: var(--rrf-header-h) 0 0 0; background: var(--rrf-blue-dark); overflow-y: auto; padding: 16px 20px 32px; transform: translateX(100%); transition: transform .25s ease; }
	.admin-bar .rrf-nav { top: calc(var(--rrf-header-h) + 46px); }
	.rrf-nav.is-open { transform: none; }
	.rrf-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.rrf-nav__item { flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.1); }
	.rrf-nav__item > a { flex: 1; padding: 14px 4px; font-size: 1rem; }
	.rrf-nav__toggle { display: block; }
	.rrf-nav__toggle[aria-expanded="true"] .rrf-icon { transform: rotate(180deg); }
	.rrf-mega { position: static; transform: none; display: none; width: 100%; grid-template-columns: 1fr; gap: 16px; padding: 4px 4px 16px 12px; background: transparent; box-shadow: none; border: 0; opacity: 1; visibility: visible; }
	.has-mega.is-open .rrf-mega { display: grid; transform: none; }
	.has-mega:hover .rrf-mega { transform: none; }
	.rrf-mega__cat { color: #fff; border-color: rgba(255,255,255,.15); }
	.rrf-mega li a { color: rgba(255,255,255,.75); }
	.rrf-nav__item--cta { margin: 20px 0 0; border: 0; }
	.rrf-nav__item--cta > a.rrf-btn { justify-content: center; width: 100%; }
	.rrf-footer__grid { grid-template-columns: 1fr 1fr; }
	.rrf-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: calc((100% - 14px) / 2); }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.rrf-footer__grid { grid-template-columns: 1fr; }
	.rrf-content .wp-block-media-text { grid-template-columns: 1fr; }
	.rrf-cta__inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
