/* ==========================================================================
   RSG Oberwald – Gestaltung
   Farben, Schriften und Grundabstände stehen in theme.json.
   Hier stehen die Bausteine, die sich dort nicht ausdrücken lassen.
   ========================================================================== */

:root {
	--rsg-gruen: var(--wp--preset--color--tannengruen, #1E3A2F);
	--rsg-nacht: var(--wp--preset--color--nachtgruen, #14201A);
	--rsg-salbei: var(--wp--preset--color--salbei, #EEF1EC);
	--rsg-messing: var(--wp--preset--color--messing, #B98A3E);
	--rsg-messing-hell: var(--wp--preset--color--messing-hell, #E2C38A);
	--rsg-messing-dunkel: var(--wp--preset--color--messing-dunkel, #8A6420);
	--rsg-gedaempft: var(--wp--preset--color--gedaempft, #4A5A51);
	--rsg-linie: var(--wp--preset--color--linie, #D5DBD6);
	--rsg-radius: 18px;
	--rsg-schatten: 0 14px 30px rgba(20, 32, 26, .12);
	--rsg-uebergang: .25s ease;
}

/* ---------- Grundlagen ---------- */

h1, h2, h3, h4,
.wp-block-post-title,
.rsg-marke__name,
.rsg-fuss__name {
	font-stretch: 112%;
	text-wrap: balance;
}

p { text-wrap: pretty; }

img { height: auto; max-width: 100%; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}

:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 3px solid var(--rsg-messing);
	outline-offset: 3px;
	border-radius: 4px;
}

.rsg-main { margin-block: 0; }
.rsg-inhalt > .alignfull { margin-block: 0 !important; }
.rsg-inhalt > :first-child:not(.alignfull) { margin-top: var(--wp--preset--spacing--50); }
.rsg-inhalt > :last-child:not(.alignfull) { margin-bottom: var(--wp--preset--spacing--60); }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Kleine Überzeile in Versalien */
.is-style-kicker,
.rsg-kicker {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--rsg-messing-dunkel);
	margin-bottom: 0;
}
.rsg-dunkel .is-style-kicker,
.rsg-dunkel .rsg-kicker,
.has-tannengruen-background-color .is-style-kicker { color: var(--rsg-messing-hell); }

.rsg-gedaempft,
.has-gedaempft-color { color: var(--rsg-gedaempft); }

.is-style-ohne-punkte { list-style: none; padding-left: 0; }
.is-style-ohne-punkte li + li { margin-top: 6px; }

/* ---------- Buttons ---------- */

.wp-element-button,
.wp-block-button__link {
	transition: background-color var(--rsg-uebergang), color var(--rsg-uebergang), border-color var(--rsg-uebergang);
	min-height: 48px; /* gut mit dem Finger zu treffen */
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--rsg-gruen);
	border: 2px solid var(--rsg-gruen);
	padding: 13px 26px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
	background: var(--rsg-messing);
	border-color: var(--rsg-messing);
	color: var(--rsg-nacht);
}

/* Auf dunkelgrünen Flächen: Hauptbutton weiß, zweiter Button weiß umrandet */
.rsg-dunkel .wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	background: #fff;
	color: var(--rsg-nacht);
}
.rsg-dunkel .wp-block-button.is-style-outline > .wp-block-button__link {
	color: #fff;
	border-color: rgba(255, 255, 255, .6);
}
.rsg-dunkel .wp-block-button > .wp-block-button__link:hover,
.rsg-dunkel .wp-block-button > .wp-block-button__link:focus-visible {
	background: var(--rsg-messing);
	border-color: var(--rsg-messing);
	color: var(--rsg-nacht);
}
.rsg-dunkel a:not(.wp-element-button) { color: var(--rsg-messing-hell); }
.rsg-dunkel a:not(.wp-element-button):hover { color: #fff; }

/* Textlink mit Pfeil */
.rsg-pfeil a,
a.rsg-pfeil {
	font-weight: 700;
	text-decoration: none;
}
.rsg-pfeil a::after,
a.rsg-pfeil::after { content: " →"; }
.rsg-pfeil a:hover,
a.rsg-pfeil:hover { text-decoration: underline; }

/* ---------- Obere Leiste ---------- */

.rsg-topbar {
	color: #D8DED9;
	font-size: 14px;
	padding-block: 8px;
}
.rsg-topbar p { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.rsg-topbar a { color: #D8DED9; text-decoration: none; }
.rsg-topbar a:hover { color: var(--rsg-messing-hell); text-decoration: underline; }
.rsg-topbar__innen { gap: 4px 28px; }

@media (max-width: 599px) {
	.rsg-topbar { font-size: 13px; }
	.rsg-topbar__innen > p:last-child { display: none; } /* Social Media mobil nur im Fußbereich */
}

/* ---------- Kopfbereich ---------- */

.rsg-kopf {
	border-bottom: 1px solid var(--rsg-linie);
	padding-block: 14px;
	position: relative;
	z-index: 20;
}
.rsg-kopf__innen { gap: 16px 32px; }

.rsg-marke {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: var(--rsg-nacht);
	flex-shrink: 0;
}
.rsg-marke:hover { color: var(--rsg-nacht); }
.rsg-marke__logo {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--rsg-linie);
	background: #fff;
}
.rsg-marke__text { display: flex; flex-direction: column; line-height: 1.15; }
.rsg-marke__name {
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 800;
	font-stretch: 115%;
	font-size: 20px;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.rsg-marke__zusatz { font-size: 14px; color: var(--rsg-gedaempft); }

@media (max-width: 599px) {
	.rsg-marke__logo { width: 44px; height: 44px; }
	.rsg-marke__name { font-size: 17px; }
	.rsg-marke__zusatz { font-size: 12px; }
}

/* Menü */
.rsg-menue { gap: 6px 28px; }
.rsg-menue .wp-block-navigation-item__content { text-decoration: none; color: var(--rsg-nacht); }
.rsg-menue .wp-block-navigation-item__content:hover,
.rsg-menue .current-menu-item > .wp-block-navigation-item__content,
.rsg-menue [aria-current="page"] { color: var(--rsg-messing-dunkel); }

/* „Startseite“ nur im aufgeklappten Handy-Menü zeigen – auf großen Bildschirmen führt das Logo dorthin */
.rsg-menue .wp-block-navigation__responsive-container:not(.is-menu-open) .rsg-menue__start { display: none; }

/* Untermenüs */
.rsg-menue .wp-block-navigation__submenu-container {
	border: 1px solid var(--rsg-linie) !important;
	border-radius: 14px;
	box-shadow: var(--rsg-schatten);
	padding: 8px !important;
	min-width: 230px !important;
	background: #fff !important;
}
.rsg-menue .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 10px 14px !important;
	border-radius: 8px;
}
.rsg-menue .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--rsg-salbei); }

/* Kontakt als runder Button */
.rsg-menue .rsg-menue__kontakt > .wp-block-navigation-item__content {
	background: var(--rsg-gruen);
	color: #fff;
	padding: 12px 22px;
	border-radius: 999px;
	transition: background-color var(--rsg-uebergang), color var(--rsg-uebergang);
}
.rsg-menue .rsg-menue__kontakt > .wp-block-navigation-item__content:hover,
.rsg-menue .rsg-menue__kontakt > .wp-block-navigation-item__content:focus-visible {
	background: var(--rsg-messing);
	color: var(--rsg-nacht);
}

/* Handy: Menü-Knopf (drei Striche) und aufgeklapptes Menü */
@media (max-width: 599px) {
	.rsg-menue .wp-block-navigation__responsive-container-open {
		width: 48px;
		height: 48px;
		border: 1px solid var(--rsg-linie);
		border-radius: 12px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
}
.rsg-menue .wp-block-navigation__responsive-container.is-menu-open {
	padding: 24px clamp(16px, 5vw, 32px);
}
.rsg-menue .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 56px !important;
	gap: 6px !important;
}
/* Aufgeklapptes Handy-Menü: linksbündig, Hauptpunkte groß, Unterpunkte etwas kleiner und eingerückt */
.rsg-menue .is-menu-open .wp-block-navigation__responsive-container-content,
.rsg-menue .is-menu-open .wp-block-navigation__container,
.rsg-menue .is-menu-open .wp-block-navigation-item {
	align-items: flex-start !important;
	text-align: left;
}
.rsg-menue .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 800;
	font-size: 22px;
	padding-block: 6px;
}
.rsg-menue .is-menu-open .wp-block-navigation__submenu-container {
	border: 0 !important;
	box-shadow: none;
	padding: 0 0 8px 16px !important;
	min-width: 0 !important;
	gap: 0 !important;
}
.rsg-menue .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: 18px;
	font-weight: 600;
	padding: 6px 0 !important;
}
.rsg-menue .is-menu-open .rsg-menue__kontakt > .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--source-sans);
	font-size: 18px;
	font-weight: 700;
	padding: 12px 26px;
}
.rsg-menue .is-menu-open .rsg-menue__kontakt { margin-top: 12px; }
.rsg-menue .wp-block-navigation__responsive-container-close { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }

/* ---------- Grüner Seitenkopf der Unterseiten ---------- */

.rsg-seitenkopf {
	padding-block: clamp(56px, 8vw, 88px) clamp(48px, 7vw, 76px);
}
.rsg-seitenkopf a { color: #fff; }
.rsg-seitenkopf__titel {
	margin: 18px 0 0;
	font-size: var(--wp--preset--font-size--seitentitel);
	color: #fff;
	hyphens: auto;
	-webkit-hyphens: auto;
	overflow-wrap: break-word;
}
.rsg-seitenkopf__einleitung {
	margin: 18px 0 0;
	font-size: var(--wp--preset--font-size--einleitung);
	max-width: 720px;
	color: #E4EAE6;
}

.rsg-brotkrumen { font-size: 14px; color: #C9D3CC; }
.rsg-brotkrumen ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; }
.rsg-brotkrumen li + li::before { content: "/"; margin: 0 8px; color: #8FA197; }
.rsg-brotkrumen a { color: #C9D3CC; text-decoration: none; }
.rsg-brotkrumen a:hover { color: #fff; text-decoration: underline; }
.rsg-brotkrumen [aria-current] { color: #fff; }

/* ---------- Abschnitte ---------- */

.rsg-abschnitt { padding-block: var(--wp--preset--spacing--50); }
.rsg-abschnitt--eng { padding-block: var(--wp--preset--spacing--40); }

/* Längere Texte (Berichte): angenehme Zeilenlänge, aber linksbündig an der Kante der übrigen Inhalte */
.rsg-lesetext { max-width: 820px; margin-left: 0 !important; margin-right: auto !important; }
.rsg-abschnitt:not(.has-background) + .rsg-abschnitt:not(.has-background) { padding-top: 0; }

/* Dunkelgrüner Aufruf-Block („Sie suchen einen Platz für Ihr Pferd?“) */
.rsg-aufruf {
	border-radius: 22px;
	padding: clamp(28px, 5vw, 48px);
	gap: 24px;
	justify-content: space-between;
	align-items: center;
}
.rsg-aufruf__text { max-width: 640px; }
.rsg-aufruf__text > * { margin: 0 0 8px; }
.rsg-aufruf h2 { font-size: clamp(26px, 3.2vw, 34px); }

/* Termin mit Downloadliste darunter (Turnierseite, Lehrgänge) */
.rsg-terminblock > * + * { margin-top: 16px; }
.rsg-terminblock .rsg-ausstattung li { flex-wrap: wrap; justify-content: flex-start; }

.rsg-namensliste { columns: 2 220px; column-gap: 32px; padding-left: 20px; }
.rsg-namensliste li { break-inside: avoid; margin-bottom: 4px; }

.rsg-vorstand li { margin-bottom: 14px !important; }
.rsg-abschnitt.has-weiss-background-color { border-block: 1px solid var(--rsg-linie); }

.rsg-kopfzeile {
	gap: 16px 48px;
	align-items: flex-end;
	margin-bottom: var(--wp--preset--spacing--40) !important;
}
.rsg-kopfzeile > * { margin: 0 !important; }
.rsg-kopfzeile p { max-width: 460px; color: var(--rsg-gedaempft); }

.rsg-dunkel { color: #fff; }
.rsg-dunkel p:not(.is-style-kicker) { color: #DCE4DF; }
.rsg-dunkel h1, .rsg-dunkel h2, .rsg-dunkel h3 { color: #fff; }

/* ---------- Karten ---------- */

.is-style-karte,
.rsg-karte {
	background: #fff;
	border-radius: var(--rsg-radius);
	padding: clamp(24px, 3vw, 36px);
}
/* Karten auf weißen Abschnitten: hellgrüner Grund, damit sie sichtbar bleiben */
.has-weiss-background-color .is-style-karte:not(.has-background),
.has-weiss-background-color .rsg-zahl { background: var(--rsg-salbei); }
.is-style-karte > :first-child,
.rsg-karte > :first-child { margin-top: 0; }

/* Karte mit Bild oben (Startseite „Was wir bieten“, Übersichtsseiten, News) */
.rsg-bildkarte {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 0 !important;
	overflow: hidden;
	gap: 0;
	height: 100%;
}
.rsg-bildkarte > .wp-block-image { margin: 0 !important; }
.rsg-bildkarte > .wp-block-image img { width: 100%; display: block; border-radius: 0; }
.rsg-bildkarte__text {
	padding: 26px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex-grow: 1;
}
.rsg-bildkarte__text > * { margin: 0 !important; }
.rsg-bildkarte__text p:not(.rsg-pfeil):not(.is-style-kicker) { color: var(--rsg-gedaempft); font-size: 17px; flex-grow: 1; }
.rsg-bildkarte__text h2,
.rsg-bildkarte__text h3 { font-size: 24px; line-height: 1.15; }
.rsg-bildkarte__text h2 a,
.rsg-bildkarte__text h3 a { color: inherit; text-decoration: none; }

/* Ganze Karte anklickbar, wenn sie einen „Mehr“-Link hat */
.rsg-bildkarte .rsg-pfeil a::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.rsg-bildkarte:has(.rsg-pfeil a) {
	transition: transform var(--rsg-uebergang), box-shadow var(--rsg-uebergang);
}
.rsg-bildkarte:has(.rsg-pfeil a):hover,
.rsg-bildkarte:has(.rsg-pfeil a:focus-visible) {
	transform: translateY(-4px);
	box-shadow: var(--rsg-schatten);
}
.rsg-bildkarte:has(.rsg-pfeil a:focus-visible) { outline: 3px solid var(--rsg-messing); outline-offset: 3px; }
.rsg-bildkarte .rsg-pfeil a:focus-visible { outline: none; }
/* Weitere Links im Kartentext (z. B. E-Mail-Adresse) bleiben anklickbar */
.rsg-bildkarte__text p:not(.rsg-pfeil) a { position: relative; z-index: 2; }

/* Raster für Karten */
.rsg-raster {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 24px;
}
.rsg-raster > * { margin: 0 !important; }
.rsg-raster--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.rsg-raster--klein { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; }

/* ---------- Termine (Turnier) ---------- */

.rsg-termin {
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: var(--rsg-radius);
	padding: clamp(18px, 3vw, 28px);
	display: flex !important;
	gap: clamp(16px, 3vw, 24px);
	align-items: center;
}
.rsg-termin > * { margin: 0 !important; }
.rsg-termin__datum {
	flex: 0 0 auto;
	min-width: clamp(104px, 18vw, 150px);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding-right: clamp(16px, 3vw, 24px);
	border-right: 1px solid rgba(255, 255, 255, .2);
	text-align: center;
}
.rsg-termin__datum p { margin: 0; }
.rsg-termin__tag {
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 800;
	font-stretch: 105%;
	font-size: clamp(26px, 3.2vw, 34px);
	line-height: 1;
	color: var(--rsg-messing-hell) !important;
	white-space: nowrap;
}
.rsg-termin__monat {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	white-space: nowrap;
}
.rsg-termin__info p { margin: 0; }
.rsg-termin__info strong { color: #fff; font-size: 20px; display: block; line-height: 1.3; }

/* Termin-Variante auf hellem Grund (Turnierseite) */
.rsg-termin--hell {
	background: #fff;
	border-color: var(--rsg-linie);
}
.rsg-termin--hell .rsg-termin__datum { border-color: var(--rsg-linie); }
.rsg-termin--hell .rsg-termin__tag { color: var(--rsg-messing-dunkel) !important; }
.rsg-termin--hell .rsg-termin__info strong { color: var(--rsg-nacht); }

/* ---------- Zahlenkarten (Boxen) ---------- */

.rsg-zahl {
	background: #fff;
	border-radius: 16px;
	padding: 26px;
}
.rsg-zahl p { margin: 0; }
.rsg-zahl__wert {
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 800;
	font-size: 48px;
	line-height: 1;
	color: var(--rsg-gruen);
	margin-bottom: 6px !important;
}

/* ---------- Ausstattungsliste mit Maßen ---------- */

.rsg-ausstattung {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	column-gap: 40px;
}
.rsg-ausstattung li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--rsg-linie);
	margin: 0;
}
.rsg-ausstattung li strong { white-space: nowrap; }

/* ---------- Platzierungen (Turnierberichte) ---------- */

.rsg-platzierungen h3 { font-size: 20px; margin-bottom: 8px; }
.rsg-platzierungen ul { list-style: none; padding: 0; margin: 0; }
.rsg-platzierungen li { padding: 6px 0; border-bottom: 1px solid var(--rsg-linie); font-size: 17px; }
.rsg-platzierungen li:last-child { border-bottom: 0; }

/* ---------- Bildergalerien ---------- */

/* Festes Raster statt WordPress-Standard (dort wird das letzte Bild einer Reihe auf volle Breite gezogen) */
.rsg-galerie.wp-block-gallery {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 14px !important;
}
.rsg-galerie.wp-block-gallery.columns-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.rsg-galerie.wp-block-gallery.columns-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
@media (max-width: 599px) {
	.rsg-galerie.wp-block-gallery,
	.rsg-galerie.wp-block-gallery.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px !important; }
}
.rsg-galerie.wp-block-gallery > .wp-block-image {
	width: auto !important;
	margin: 0 !important;
	border-radius: 14px;
	overflow: hidden;
}
.rsg-galerie.wp-block-gallery .wp-block-image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	height: 100%;
	transition: transform .35s ease;
}
.rsg-galerie.wp-block-gallery .wp-block-image:hover img { transform: scale(1.03); }

/* Einzelbilder mit runden Ecken */
.rsg-bild img,
.wp-block-image.rsg-bild img { border-radius: var(--rsg-radius); }

/* ---------- Logos (Sponsoren) ---------- */

.rsg-logoraster {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
	gap: 16px;
}
.rsg-logoraster > * { margin: 0 !important; }
.rsg-logoraster .rsg-logo {
	background: #fff;
	border: 1px solid var(--rsg-linie);
	border-radius: 12px;
	height: 110px;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 12px;
	box-sizing: border-box;
}
.rsg-logoraster .rsg-logo a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.rsg-logoraster .rsg-logo img {
	max-height: 84px;
	max-width: 100%;
	width: auto;
	object-fit: contain;
}
.rsg-logoraster .rsg-logo:has(a) { transition: transform var(--rsg-uebergang), box-shadow var(--rsg-uebergang); }
.rsg-logoraster .rsg-logo:has(a):hover { transform: translateY(-3px); box-shadow: var(--rsg-schatten); }
.rsg-logoraster--leiste { grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.rsg-logoraster--leiste .rsg-logo { border: 0; background: var(--rsg-salbei); height: 84px; }
.rsg-logoraster--leiste .rsg-logo img { max-height: 60px; mix-blend-mode: multiply; }

/* ---------- Startseite: großer Kopfbereich mit Video ---------- */

.rsg-hero.wp-block-cover {
	min-height: clamp(540px, 82vh, 780px) !important;
	padding-block: clamp(96px, 14vw, 140px) clamp(72px, 10vw, 120px);
	align-items: flex-end;
}
/* Alles im Kopfbereich an einer gemeinsamen linken Kante (bündig zur Überschrift) */
.rsg-hero .wp-block-cover__inner-container {
	width: 100%;
	max-width: 1240px;
	margin-inline: auto;
}
.rsg-hero .wp-block-cover__inner-container > * {
	max-width: 900px;
	margin-left: 0 !important;
	margin-right: auto !important;
}
.rsg-hero h1 {
	font-size: var(--wp--preset--font-size--starttitel);
	line-height: 1.02;
	margin: 0;
}
.rsg-hero .rsg-hero__text { font-size: var(--wp--preset--font-size--einleitung); max-width: 620px; color: #E4EAE6; }
.rsg-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
	opacity: 0;
	transition: opacity .8s ease;
}
.rsg-hero__video.is-bereit { opacity: 1; }
.rsg-hero .wp-block-cover__background { z-index: 1; }
.rsg-hero .wp-block-cover__inner-container { z-index: 2; position: relative; }

/* ---------- Hinweise und Platzhalter ---------- */

.rsg-platzhalter {
	border: 2px dashed #9AA79F;
	border-radius: 12px;
	padding: 20px;
	color: var(--rsg-gedaempft);
	font-size: 17px;
}

.rsg-hinweis {
	border-left: 4px solid var(--rsg-messing);
	background: #fff;
	border-radius: 0 12px 12px 0;
	padding: 18px 22px;
}

/* Bankverbindungen u. Ä. */
.rsg-daten p { margin: 0; }
.rsg-daten strong { display: block; font-size: 19px; margin-bottom: 4px; }

/* ---------- Kontaktformular ---------- */

.rsg-formular form { display: grid; gap: 18px; }
.rsg-formular__feld { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.rsg-formular label { font-weight: 600; }
.rsg-formular input[type="text"],
.rsg-formular input[type="email"],
.rsg-formular textarea {
	font: inherit;
	color: var(--rsg-nacht);
	background: #fff;
	border: 1px solid #9AA79F;
	border-radius: 12px;
	padding: 12px 14px;
	min-height: 48px;
	width: 100%;
	box-sizing: border-box;
}
.rsg-formular textarea { resize: vertical; min-height: 160px; }
.rsg-formular input:focus,
.rsg-formular textarea:focus { border-color: var(--rsg-gruen); outline: 3px solid var(--rsg-messing); outline-offset: 1px; }
.rsg-formular__feld--check { flex-direction: row; align-items: flex-start; gap: 12px; }
.rsg-formular__feld--check input { width: 22px; height: 22px; margin-top: 3px; flex-shrink: 0; accent-color: var(--rsg-gruen); }
.rsg-formular__feld--check label { font-weight: 400; font-size: 16px; }
.rsg-formular__hinweis { font-size: 15px; color: var(--rsg-gedaempft); margin: 0; }
.rsg-formular button { border: 0; cursor: pointer; font-family: inherit; }
.rsg-formular__falle { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rsg-formular__meldung { border-radius: 12px; padding: 18px 20px; margin-bottom: 18px; }
.rsg-formular__meldung ul { margin: 8px 0 0; padding-left: 20px; }
.rsg-formular__meldung--ok { background: #E3EFE6; border: 1px solid #9CC3A6; }
.rsg-formular__meldung--fehler { background: #FBEDEA; border: 1px solid #E3A99C; }

/* ---------- Fußbereich ---------- */

.rsg-fuss {
	color: #C9D3CC;
	font-size: 16px;
	padding-block: 72px 32px;
}
.rsg-fuss a { color: #C9D3CC; text-decoration: none; }
.rsg-fuss a:hover { color: var(--rsg-messing-hell); text-decoration: underline; }
.rsg-fuss p { margin: 0; }
.rsg-fuss__name {
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 800;
	font-stretch: 115%;
	font-size: 20px;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 10px !important;
}
.rsg-fuss p a[href^="mailto"] { color: var(--rsg-messing-hell); }
.rsg-fuss__titel {
	font-family: var(--wp--preset--font-family--source-sans);
	font-stretch: 100%;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 10px;
}
.rsg-fuss__spalten { gap: 40px !important; }
.rsg-fuss__unten {
	border-top: 1px solid #2C3B33;
	margin-top: 48px !important;
	padding-top: 20px;
	font-size: 14px;
	gap: 12px 28px;
}
.rsg-fuss__unten p:last-child { display: flex; gap: 24px; }

/* ---------- Bewegung reduzieren (Bedienungshilfe) ---------- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
	.rsg-hero__video { display: none; }
}

/* ---------- Druck ---------- */

@media print {
	.rsg-topbar, .rsg-menue, .rsg-fuss__spalten, .rsg-hero__video { display: none !important; }
	.rsg-seitenkopf { background: none !important; color: #000 !important; padding: 0; }
	.rsg-seitenkopf * { color: #000 !important; }
}
