/* =========================================================
   FS-Treppen – Theme-Styles
   Farben, Schriften und Abstände kommen aus theme.json.
   ========================================================= */

:root {
	--rb-container: 1320px;
	--rb-gutter: var(--wp--style--root--padding-left, clamp(1.25rem, 4vw, 2.75rem));
	--rb-ease: cubic-bezier(.22, .61, .36, 1);
	--rb-shadow: 0 22px 45px -28px rgba(55, 35, 15, .55);
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

html { scrollbar-gutter: stable; }
/* Telefon: Tippen reagiert sofort (keine Doppeltipp-Verzögerung) */
a, button, [role="button"], .wp-block-button__link { touch-action: manipulation; } /* Popups sperren das Scrollen – ohne Reserve springt die Seite seitlich */
.wp-site-blocks > * + * { margin-block-start: 0; }
/* Stopka immer am unteren Rand – auch bei kurzen Seiten */
.wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.wp-site-blocks > main,
.wp-site-blocks > .rb-main { flex: 1 0 auto; }
.rb-main > * { margin-block-start: 0; }

h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

mark.has-inline-color { padding: 0; }

:where(a, button):focus-visible {
	outline: 2px solid var(--wp--preset--color--bronze);
	outline-offset: 3px;
}

/* ---------- Überzeile ---------- */
.is-style-rb-eyebrow {
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--wp--preset--color--bronze);
	margin-bottom: 1.1rem !important;
}
.is-style-rb-eyebrow + .wp-block-heading { margin-top: 0; }

/* ---------- Buttons ---------- */
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: .8em;
	transition: background-color .25s var(--rb-ease), color .25s var(--rb-ease), border-color .25s var(--rb-ease);
}
.is-style-rb-arrow .wp-block-button__link::after,
.is-style-rb-pill .wp-block-button__link::after,
.is-style-rb-outline .wp-block-button__link::after,
.is-style-rb-link .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 1.05em;
	height: 1.05em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 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='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .25s var(--rb-ease);
}
@media (hover: hover) { /* hover-only */ .wp-block-button__link:hover::after { transform: translateX(4px); } }

.is-style-rb-pill .wp-block-button__link {
	border-radius: 999px;
	padding: .85rem 1.7rem;
	font-size: .9rem;
}

.is-style-rb-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--bronze);
	border-radius: 4px;
	padding: .95rem 1.7rem;
	font-size: .9rem;
	font-weight: 500;
}
@media (hover: hover) { /* hover-only */ .is-style-rb-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--bronze);
	color: var(--wp--preset--color--white);
} }

.is-style-rb-link .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	padding: 0 0 .55rem;
	border-radius: 0;
	border-bottom: 1px solid var(--wp--preset--color--bronze);
	font-size: .875rem;
	font-weight: 500;
}
@media (hover: hover) { /* hover-only */ .is-style-rb-link .wp-block-button__link:hover {
	background: transparent;
	color: var(--wp--preset--color--bronze);
} }

.is-style-rb-video .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	padding: 0;
	gap: 1.1rem;
	font-size: .8rem;
	line-height: 1.35;
	text-align: left;
}
.is-style-rb-video .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 3.1rem;
	height: 3.1rem;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--bronze);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C2A2E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4.2l5.6 3.1v6.4L12 16.8l-5.6-3.1V7.3z'/%3E%3Cpath d='M6.4 7.3L12 10.4l5.6-3.1M12 10.4v6.4'/%3E%3Cpath d='M20.6 12.6c.9.7 1.4 1.5 1.4 2.3 0 2.6-4.5 4.7-10 4.7S2 17.5 2 14.9c0-.8.5-1.6 1.4-2.3'/%3E%3Cpath d='M14.2 17.8l-2.2 1.8 2.2 1.8'/%3E%3C/svg%3E") 50% 50% / 1.45rem no-repeat;
	transition: background-color .25s var(--rb-ease), transform .25s var(--rb-ease);
}
@media (hover: hover) { /* hover-only */ .is-style-rb-video .wp-block-button__link:hover {
	background: transparent;
	color: var(--wp--preset--color--bronze);
} }
@media (hover: hover) { /* hover-only */ .is-style-rb-video .wp-block-button__link:hover::before {
	background-color: var(--wp--preset--color--sand);
	transform: scale(1.06);
} }

/* ---------- Haupt-CTA „Anfrage senden“ (wichtigster Button der Seite) ---------- */
.rb-header__cta .wp-block-button__link,
.rb-floating-cta {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	/* Neumorphismus in Gold: Innenschatten dunkel oben links, hell unten rechts */
	background-color: #B98647;
	color: var(--wp--preset--color--white);
	font-weight: 500;
	letter-spacing: .02em;
	border: 2px solid #C99A5C;
	box-shadow:
		inset 4px 4px 10px #8F6331,
		inset -4px -4px 10px #E2B577;
	transition: box-shadow .2s ease-in-out, background-color .2s ease-in-out;
}
.rb-header__cta .wp-block-button__link { padding: 1rem 2.1rem; font-size: .95rem; }
@media (hover: hover) { /* hover-only */ .rb-header__cta .wp-block-button__link:hover,
.rb-header__cta .wp-block-button__link:focus-visible,
.rb-floating-cta:hover,
.rb-floating-cta:focus-visible {
	color: var(--wp--preset--color--white);
	background-color: #B98647;
	outline: none;
	box-shadow:
		inset 2px 2px 5px #8F6331,
		inset -2px -2px 5px #E2B577,
		2px 2px 5px #8F6331,
		-2px -2px 5px #E2B577;
} }
/* Lichtreflex, der regelmäßig über den Button streicht */
.rb-header__cta .wp-block-button__link::before,
.rb-floating-cta::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -60%;
	width: 45%;
	z-index: -1;
	background: linear-gradient(100deg, transparent 0%, rgba(255, 248, 225, .55) 50%, transparent 100%);
	transform: skewX(-20deg);
	animation: rb-cta-shine 4.5s ease-in-out infinite;
	pointer-events: none;
}
@keyframes rb-cta-shine {
	0%, 55% { left: -60%; }
	85%, 100% { left: 130%; }
}

/* Schwebender CTA – erscheint, sobald der Header aus dem Bild gescrollt ist */
.rb-floating-cta {
	position: fixed;
	right: clamp(1rem, 2.5vw, 2rem);
	bottom: clamp(1rem, 2.5vw, 2rem);
	z-index: 90;
	display: inline-flex;
	align-items: center;
	gap: .8em;
	padding: 1rem 1.7rem;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: .95rem;
	text-decoration: none;
	opacity: 0;
	translate: 0 1.5rem;
	pointer-events: none;
	transition: opacity .35s var(--rb-ease), translate .35s var(--rb-ease), transform .25s var(--rb-ease), box-shadow .25s var(--rb-ease);
}
.rb-floating-cta.is-visible {
	opacity: 1;
	translate: 0 0;
	pointer-events: auto;
}
.rb-floating-cta::after {
	content: "";
	width: 1.05em;
	height: 1.05em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 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='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (prefers-reduced-motion: reduce) {
	.rb-header__cta .wp-block-button__link::before,
	.rb-floating-cta::before { animation: none; display: none; }
}

/* Einheitlicher Abstand zwischen Text und Buttons in allen Sektionen */
:where(p, ul, ol, h1, h2, h3) + .wp-block-buttons { margin-top: clamp(1.9rem, 3vw, 2.5rem) !important; }
.rb-section-head__aside p { margin-bottom: 1.8rem !important; }

/* ---------- Logo ---------- */
.rb-logo {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	line-height: 1;
}
@media (hover: hover) { /* hover-only */ .rb-logo:hover { color: var(--wp--preset--color--ink); } }
.rb-logo__mark {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 3.1rem;
	letter-spacing: -.17em;
	margin-right: .17em;
	line-height: .9;
}
.rb-logo__mark span { color: var(--wp--preset--color--bronze); }
.rb-logo__word {
	font-family: var(--wp--preset--font-family--sans);
	font-size: .8rem;
	font-weight: 400;
	letter-spacing: .42em;
	margin-right: -.42em;
	text-transform: uppercase;
	margin-top: .3rem;
	color: var(--wp--preset--color--bronze);
}

/* Bildlogo „FS-Treppen“: dunkle Variante auf hellem Grund, helle Variante auf Bildern/dunklen Flächen */
.rb-logo { display: inline-flex; align-items: center; line-height: 0; }
.rb-logo picture { display: contents; }
.rb-logo__img { display: block; width: auto; height: 27px; transition: height .35s var(--rb-ease), opacity .35s var(--rb-ease); }
.rb-logo__img--light { display: none; }
.home .rb-header:not(.is-scrolled) .rb-logo__img--dark,
.rb-footer .rb-logo__img--dark { display: none; }
.home .rb-header:not(.is-scrolled) .rb-logo__img--light,
.rb-footer .rb-logo__img--light { display: block; }
.home .rb-header:not(.is-scrolled) .rb-logo__img--light { filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .45)); }
.rb-header.is-scrolled .rb-logo__img { height: 22px; }
.rb-footer .rb-logo__img { height: 30px; } /* FS-Logo ist sehr breit (ca. 10:1) */

/* ---------- Header ---------- */
/* Schwebender Header: fixiert oben; nach dem Scrollen helle, unscharfe Fläche mit Schatten */
.rb-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	padding-top: 1.1rem;
	padding-bottom: 1rem;
	transition: padding .35s var(--rb-ease);
}
.rb-header.is-scrolled {
	padding-top: .55rem;
	padding-bottom: .55rem;
}
/* Hintergrund + Blur auf eigener Ebene: backdrop-filter direkt am Header würde das mobile Vollbild-Menü
   (position: fixed) in den kleinen Header-Kasten einsperren */
.rb-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0;
	background-color: rgba(246, 239, 230, .9);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
	backdrop-filter: blur(14px) saturate(1.2);
	box-shadow: 0 1px 0 rgba(166, 118, 63, .15), 0 14px 34px -18px rgba(40, 25, 10, .45);
	transition: opacity .35s var(--rb-ease);
	pointer-events: none;
}
.rb-header.is-scrolled::before { opacity: 1; }
.rb-header .rb-logo__mark,
.rb-header .rb-logo__word { transition: font-size .35s var(--rb-ease), color .35s var(--rb-ease); }
.rb-header.is-scrolled .rb-logo__mark { font-size: 2.3rem; }
.rb-header.is-scrolled .rb-logo__word { font-size: .62rem; margin-top: .15rem; }
.rb-header.is-scrolled .rb-header__cta .wp-block-button__link { padding: .8rem 1.7rem; }
.admin-bar .rb-header { top: var(--wp-admin--admin-bar--height, 32px); }

.rb-header__bar { gap: 2rem; }
.rb-header__bar > .wp-block-html { line-height: 0; }

.rb-nav {
	flex: 1;
	font-size: 1rem;
	font-weight: 500;
	gap: 0 2.6rem;
}
.rb-nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	position: relative;
	padding: .4rem 0;
	transition: color .2s var(--rb-ease);
}
@media (hover: hover) { /* hover-only */ .rb-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--bronze); } }
.rb-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--bronze); }
.rb-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -.35rem;
	width: 1.6rem;
	height: 2px;
	background: var(--wp--preset--color--bronze);
	transform: translateX(-50%) scaleX(0);
	transition: transform .25s var(--rb-ease);
}
@media (hover: hover) { /* hover-only */ .rb-nav .current-menu-item > .wp-block-navigation-item__content::after,
.rb-nav .wp-block-navigation-item__content:hover::after { transform: translateX(-50%) scaleX(1) !important; } }

/* Mobiles Menü */
.rb-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--cream) !important;
	padding: 2rem var(--rb-gutter);
}
.rb-nav .is-menu-open .wp-block-navigation__container { gap: 1.1rem; }
.rb-nav .is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.9rem;
}
.rb-nav .is-menu-open .wp-block-navigation-item__content::after { display: none; }
.rb-nav .wp-block-navigation__responsive-container-open svg,
.rb-nav .wp-block-navigation__responsive-container-close svg { width: 30px; height: 30px; }

/* ---------- Hero ---------- */
/* Vollflächiges Bild hinter Header und Text, unten mit Welle abgeschnitten und Schatten darunter. */
.rb-hero {
	position: relative;
	isolation: isolate;
	min-height: clamp(660px, 54vw, 900px);
	padding-top: clamp(9rem, 12vw, 12rem);
	padding-bottom: clamp(7rem, 11vw, 10rem);
	margin-bottom: clamp(-2.25rem, -2vw, -1.25rem) !important;
	/* kein overflow-Clipping: der Schatten unter der Welle soll frei auf die nächste Sektion fallen */
	overflow: visible;
	color: var(--wp--preset--color--paper);
}
.rb-hero > * { margin-block-start: 0; }

.rb-hero__media.wp-block-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0 !important;
	max-width: none !important;
	z-index: -1;
}
/* Schatten unter der Welle – das Hero wirkt, als läge es über der Seite. Fertig geblurrtes SVG als Maske
   (statt drop-shadow auf dem großen Bild: wurde verzögert gerendert und an Kachelgrenzen abgeschnitten).
   Element = Hero + 140px; Maske = 1,2 × Hero-Höhe (viewBox 100×120, obere 100 = Hero). */
.rb-hero::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: calc(100% + 140px);
	z-index: -2;
	pointer-events: none;
	background: rgb(30, 18, 8);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120' preserveAspectRatio='none'%3E %3Cdefs%3E %3Cfilter id='s1' x='-5%25' y='-10%25' width='110%25' height='130%25'%3E%3CfeGaussianBlur stdDeviation='0.12 0.35'/%3E%3C/filter%3E %3Cfilter id='s2' x='-5%25' y='-10%25' width='110%25' height='130%25'%3E%3CfeGaussianBlur stdDeviation='0.5 1.6'/%3E%3C/filter%3E %3Cfilter id='s3' x='-5%25' y='-10%25' width='110%25' height='130%25'%3E%3CfeGaussianBlur stdDeviation='1.4 4.2'/%3E%3C/filter%3E %3Cpath id='w' d='M-10 0H110V84L100 86C92 93 82 98 68 97C54 96 44 88 30 87C18 86 8 90 0 94L-10 97Z'/%3E %3C/defs%3E %3Cuse href='%23w' transform='translate(0 4.5)' fill-opacity='0.38' filter='url(%23s3)'/%3E %3Cuse href='%23w' transform='translate(0 1.8)' fill-opacity='0.45' filter='url(%23s2)'/%3E %3Cuse href='%23w' transform='translate(0 0.4)' fill-opacity='0.55' filter='url(%23s1)'/%3E %3C/svg%3E") 0 0 / 100% calc((100% - 140px) * 1.2) no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120' preserveAspectRatio='none'%3E %3Cdefs%3E %3Cfilter id='s1' x='-5%25' y='-10%25' width='110%25' height='130%25'%3E%3CfeGaussianBlur stdDeviation='0.12 0.35'/%3E%3C/filter%3E %3Cfilter id='s2' x='-5%25' y='-10%25' width='110%25' height='130%25'%3E%3CfeGaussianBlur stdDeviation='0.5 1.6'/%3E%3C/filter%3E %3Cfilter id='s3' x='-5%25' y='-10%25' width='110%25' height='130%25'%3E%3CfeGaussianBlur stdDeviation='1.4 4.2'/%3E%3C/filter%3E %3Cpath id='w' d='M-10 0H110V84L100 86C92 93 82 98 68 97C54 96 44 88 30 87C18 86 8 90 0 94L-10 97Z'/%3E %3C/defs%3E %3Cuse href='%23w' transform='translate(0 4.5)' fill-opacity='0.38' filter='url(%23s3)'/%3E %3Cuse href='%23w' transform='translate(0 1.8)' fill-opacity='0.45' filter='url(%23s2)'/%3E %3Cuse href='%23w' transform='translate(0 0.4)' fill-opacity='0.55' filter='url(%23s1)'/%3E %3C/svg%3E") 0 0 / 100% calc((100% - 140px) * 1.2) no-repeat;
}
.rb-hero__media img,
.rb-hero__media::after {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H100V86C92 93 82 98 68 97C54 96 44 88 30 87C18 86 8 90 0 94Z'/%3E%3C/svg%3E");
	-webkit-mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H100V86C92 93 82 98 68 97C54 96 44 88 30 87C18 86 8 90 0 94Z'/%3E%3C/svg%3E");
	mask-size: 100% 100%;
	mask-repeat: no-repeat;
}
.rb-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% 55%;
}
/* Abdunklung links, damit der Text gut lesbar ist */
.rb-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(22, 15, 9, .78) 0%, rgba(22, 15, 9, .55) 32%, rgba(22, 15, 9, .12) 58%, rgba(22, 15, 9, 0) 75%),
		linear-gradient(180deg, rgba(22, 15, 9, .45) 0%, rgba(22, 15, 9, 0) 22%);
	pointer-events: none;
}

.rb-hero > .rb-hero__content {
	position: relative;
	z-index: 1;
	max-width: min(36rem, 46vw);
	margin-left: max(0px, calc((100% - var(--rb-container)) / 2)) !important;
	margin-right: auto !important;
}
.rb-hero h1 {
	margin: 0 0 1.8rem;
	line-height: 1;
	color: var(--wp--preset--color--white);
	text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.rb-hero h1 mark.has-bronze-color { color: #D9A86A !important; }
.rb-hero .is-style-rb-eyebrow { color: #D9A86A; }
.rb-lead {
	max-width: 28rem;
	font-size: 1.02rem;
	color: rgba(255, 250, 243, .88);
}
.rb-hero__actions {
	margin-top: 2.3rem !important;
	gap: 1.4rem 1.8rem;
}
.rb-hero .is-style-rb-video .wp-block-button__link { color: var(--wp--preset--color--paper); }
.rb-hero .is-style-rb-video .wp-block-button__link::before {
	background-color: rgba(255, 250, 243, .92);
	border-color: rgba(255, 250, 243, .92);
}
@media (hover: hover) { /* hover-only */ .rb-hero .is-style-rb-video .wp-block-button__link:hover { color: #D9A86A; } }
.rb-features {
	margin-top: 3.4rem !important;
	gap: 1.4rem 2.2rem;
}
.rb-feature { gap: .75rem; }
.rb-feature > * { margin: 0 !important; }
.rb-feature p {
	font-size: .78rem;
	line-height: 1.35;
	color: rgba(255, 250, 243, .9);
}
.rb-hero .rb-feature img { filter: brightness(1.45) saturate(.9); }

.rb-hero__script {
	position: absolute;
	right: max(var(--rb-gutter), 4vw);
	bottom: clamp(6rem, 10vw, 9rem);
	margin: 0;
	z-index: 2;
	font-family: var(--wp--preset--font-family--script);
	font-size: clamp(1.8rem, 2.5vw, 2.7rem);
	font-weight: 500;
	line-height: 1.15;
	color: #F4DDB8;
	transform: rotate(-7deg);
	text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
	pointer-events: none;
}

/* Goldenes Licht, das über die untere Welle streicht (SVG wird per theme.js eingefügt) */
.rb-hero__shine {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none !important;
	margin: 0 !important;
	z-index: 0;
	overflow: visible;
	pointer-events: none;
}
.rb-hero__shine path {
	fill: none;
	stroke-linecap: round;
}
/* dauerhafte, zarte Goldkante */
.rb-hero__shine-base {
	stroke: #D9A86A;
	stroke-width: 1.2px;
	opacity: .35;
}
/* dünne, leuchtende Kante, über die das Licht läuft */
.rb-hero__shine-line {
	stroke-width: 2px;
	filter: drop-shadow(0 0 2px rgba(255, 228, 170, .9));
}

@media (hover: hover) { /* hover-only */ /* Header auf der Startseite: hell auf dem Bild */
.home .rb-header:not(.is-scrolled) .rb-logo,
.home .rb-header:not(.is-scrolled) .rb-logo:hover { color: var(--wp--preset--color--white); } }
.home .rb-header:not(.is-scrolled) .rb-logo__mark span,
.home .rb-header:not(.is-scrolled) .rb-logo__word { color: #D9A86A; }
.home .rb-header:not(.is-scrolled) .rb-nav .wp-block-navigation-item__content { color: rgba(255, 250, 243, .92); }
@media (hover: hover) { /* hover-only */ .home .rb-header:not(.is-scrolled) .rb-nav .wp-block-navigation-item__content:hover { color: #D9A86A; } }
.home .rb-header:not(.is-scrolled) .rb-nav .wp-block-navigation__responsive-container-open { color: var(--wp--preset--color--white); }
.home .rb-nav .is-menu-open .wp-block-navigation-item__content { color: var(--wp--preset--color--ink) !important; }

/* ---------- Sektionen ---------- */
.rb-section {
	padding-top: clamp(4rem, 7vw, 6rem);
	padding-bottom: clamp(4rem, 7vw, 6rem);
}
.rb-section > *,
.rb-section .wp-block-columns { margin-block-start: 0; }
.rb-section h2 { margin: 0; }

.rb-worlds { padding-top: 0; position: relative; }

.rb-section-head {
	gap: 2rem 4rem;
	margin-bottom: clamp(2rem, 4vw, 3rem) !important;
}
.rb-section-head__aside p {
	max-width: 23rem;
	font-size: .875rem;
	margin: 0 0 1.4rem;
}
.rb-section-head__aside { padding-bottom: .5rem; }

/* ---------- Treppen-Karten ---------- */
.rb-cards { gap: 1rem; }

.wp-block-cover.is-style-rb-card {
	border-radius: 6px;
	overflow: hidden;
	padding: 1.4rem 1.5rem 1.5rem;
	box-shadow: var(--rb-shadow);
	align-items: flex-end;
}
.is-style-rb-card .wp-block-cover__image-background {
	transition: transform .9s var(--rb-ease);
}
@media (hover: hover) { /* hover-only */ .is-style-rb-card:hover .wp-block-cover__image-background { transform: scale(1.06); } }
.is-style-rb-card .wp-block-cover__background {
	opacity: 1 !important;
	background: linear-gradient(180deg, rgba(20, 14, 8, .12) 0%, rgba(20, 14, 8, .38) 30%, rgba(20, 14, 8, .78) 62%, rgba(20, 14, 8, .9) 100%) !important;
}
.is-style-rb-card .wp-block-cover__inner-container {
	padding-right: 3rem;
	z-index: 2;
}
.is-style-rb-card .wp-block-cover__inner-container > * { margin: 0; }
.is-style-rb-card.is-linked { cursor: pointer; }
.is-style-rb-card h3 {
	font-size: 1.45rem;
	line-height: 1.1;
	color: var(--wp--preset--color--white);
}
.is-style-rb-card h3 a {
	color: inherit;
	text-decoration: none;
}
.is-style-rb-card p {
	font-size: .8rem;
	color: rgba(255, 255, 255, .82);
	margin-top: .3rem !important;
}
.wp-block-cover.is-style-rb-card::after {
	content: "";
	position: absolute;
	right: 1.4rem;
	bottom: 1.6rem;
	z-index: 2;
	width: 2.2rem;
	height: 2.2rem;
	border-radius: 50%;
	background: var(--wp--preset--color--bronze) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 1rem no-repeat;
	transition: transform .3s var(--rb-ease), background-color .3s var(--rb-ease);
	pointer-events: none;
}
@media (hover: hover) { /* hover-only */ .wp-block-cover.is-style-rb-card:hover::after {
	transform: translateX(3px);
	background-color: var(--wp--preset--color--bronze-dark);
} }

/* Bento-Raster: 1 große Karte links (2 Reihen hoch) + 4 Karten im 2×2-Raster */
.rb-bento {
	display: grid;
	grid-template-columns: 1.18fr 1fr 1fr;
	grid-template-rows: repeat(2, clamp(260px, 23vw, 340px));
	gap: 1.1rem;
}
.rb-bento > * { margin: 0 !important; }
.rb-bento > .wp-block-cover:first-child { grid-row: span 2; }
.rb-bento .wp-block-cover.is-style-rb-card {
	min-height: 0 !important;
	height: 100%;
	padding: 1.4rem 1.6rem 1.6rem;
}
.rb-bento .is-style-rb-card .wp-block-cover__inner-container { padding-right: 3.6rem; }
.rb-bento .wp-block-cover.is-style-rb-card::after {
	width: 2.9rem;
	height: 2.9rem;
	right: 1.4rem;
	bottom: 1.6rem;
	background-size: 1.2rem;
}
.rb-bento .is-style-rb-card h3 { font-size: clamp(1.35rem, 1.9vw, 1.75rem); }
.rb-bento .is-style-rb-card p:not(.rb-card__num) { font-size: .85rem; }

/* „Anfrage stellen“ in den Karten */
.is-style-rb-card .rb-card__actions { margin-top: 1.4rem !important; position: relative; z-index: 3; }
.is-style-rb-card .rb-card__actions .wp-block-button__link { padding: .65rem 1.15rem; font-size: .7rem; }

/* Nummer mit feiner Goldlinie */
.is-style-rb-card .rb-card__num {
	display: flex;
	align-items: center;
	gap: .9rem;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(2.1rem, 3vw, 2.8rem);
	line-height: 1;
	color: #D9A86A !important;
	margin: 0 0 .4rem !important;
}
.is-style-rb-card .rb-card__num::after {
	content: "";
	flex: 1;
	max-width: 70%;
	height: 1px;
	background: linear-gradient(90deg, rgba(217, 168, 106, .8), rgba(217, 168, 106, 0));
}

/* große Karte */
.rb-bento > .wp-block-cover:first-child { padding: 2rem 2.2rem 2.2rem; }
.rb-bento > .wp-block-cover.is-style-rb-card:first-child .rb-card__num { font-size: clamp(2.6rem, 3.8vw, 3.6rem); }
.rb-bento > .wp-block-cover:first-child h3 { font-size: clamp(1.9rem, 3vw, 2.7rem); }
.rb-bento > .wp-block-cover:first-child p:not(.rb-card__num) { font-size: .95rem; }
.rb-bento > .wp-block-cover:first-child::after { width: 3.4rem; height: 3.4rem; right: 2rem; bottom: 2.2rem; }

/* ---------- Unsere Stärken (neumorphe Karten) ---------- */
.rb-strengths { padding-top: clamp(.5rem, 1.5vw, 1.25rem); }
.rb-strengths > * { margin-block-start: 0; }
.rb-strengths__head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 3.5rem) !important; }
.rb-strengths__head > * { margin-block-start: 0; }
.rb-strengths__head h2 { margin: 0; }
.rb-strengths__head::after {
	content: "";
	display: block;
	width: 3.5rem;
	height: 2px;
	margin: 1.4rem auto 0;
	border-radius: 2px;
	background: var(--rb-gold-text);
}

.rb-strengths__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: clamp(1.25rem, 2.2vw, 1.75rem);
}
.rb-strengths__grid > * { margin: 0 !important; }

.rb-strength {
	grid-column: span 2;
	position: relative;
	padding: clamp(1.6rem, 2.6vw, 2.2rem);
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, .6);
	background: var(--wp--preset--color--cream);
	box-shadow: 9px 9px 22px #DDCFBD, -9px -9px 22px #FFFFFF;
	transition: transform .35s var(--rb-ease), box-shadow .35s var(--rb-ease);
}
@media (hover: hover) { /* hover-only */ .rb-strength:hover {
	transform: translateY(-4px);
	box-shadow: 14px 16px 30px #D6C6B1, -10px -10px 24px #FFFFFF;
} }
.rb-strength > * { margin-block-start: 0; }
.rb-strength--wide {
	grid-column: span 3;
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 1.4rem;
}

/* Icon im eingedrückten Kreis */
.rb-strength__icon.wp-block-image {
	width: 4.4rem;
	height: 4.4rem;
	margin: 0 0 1.4rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--wp--preset--color--cream);
	box-shadow: inset 4px 4px 9px #D9CAB6, inset -4px -4px 9px #FFFFFF;
}
.rb-strength--wide .rb-strength__icon.wp-block-image { margin: 0; }
.rb-strength__icon img { width: 30px !important; height: 30px; transition: transform .35s var(--rb-ease); }
@media (hover: hover) { /* hover-only */ .rb-strength:hover .rb-strength__icon img { transform: scale(1.1); } }

.rb-strength__text > * { margin: 0; }
.rb-strength h3 {
	font-size: clamp(1.2rem, 1.6vw, 1.4rem);
	line-height: 1.2;
	margin-bottom: .55rem;
}
.rb-strength p { font-size: .88rem; line-height: 1.6; color: var(--wp--preset--color--text); }

@media (max-width: 900px) {
	.rb-strengths__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rb-strength { grid-column: span 1; }
	.rb-strength--wide { grid-column: span 1; }
	.rb-strength:nth-child(3) { grid-column: span 2; }
}
@media (max-width: 600px) {
	.rb-strengths__grid { grid-template-columns: 1fr; }
	.rb-strength,
	.rb-strength:nth-child(3),
	.rb-strength--wide {
		grid-column: auto;
		display: grid;
		grid-template-columns: auto 1fr;
		align-items: center;
		gap: 1.1rem;
		padding: 1.3rem;
	}
	.rb-strength__icon.wp-block-image { margin: 0; width: 3.8rem; height: 3.8rem; }
}

/* ---------- Über uns ---------- */
.rb-about { padding-top: clamp(4rem, 8vw, 7rem); }
.rb-about > * { margin-block-start: 0; }
.rb-about__cols { gap: clamp(2.5rem, 6vw, 5.5rem) !important; }
.rb-about__text > * { margin-block-start: 0; }
.rb-about__text h2 { margin: 0 0 1.5rem; }
.rb-about__lead {
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.2rem, 1.6vw, 1.4rem);
	line-height: 1.45;
	color: var(--wp--preset--color--ink);
	margin: 0 0 1.2rem !important;
}
.rb-about__text p:not([class*="is-style-"]):not([class*="__"]) { font-size: .93rem; max-width: 30rem; margin: 0 0 2rem; }

/* Bildkomposition: großes Werkstattfoto + überlappendes CNC-Foto + Goldsiegel */
.rb-about__media {
	position: relative;
	padding: 0 0 clamp(4rem, 8vw, 6rem) clamp(2rem, 6vw, 5rem);
}
.rb-about__media > * { margin: 0 !important; }
.rb-about__img img { width: 100%; object-fit: cover; }
.rb-about__img--main img { aspect-ratio: 16 / 11; object-position: 55% 60%; }
.rb-about__img--side {
	position: absolute !important;
	left: 0;
	bottom: 0;
	width: 46%;
	z-index: 2;
}
.rb-about__img--side img { aspect-ratio: 4 / 3; object-position: 40% 50%; }
.rb-about__badge {
	position: absolute;
	top: -2.4rem;
	right: 2rem;
	z-index: 3;
	width: 6.6rem;
	height: 6.6rem;
	display: grid;
	place-content: center;
	text-align: center;
	border-radius: 50%;
	border: 2px solid #C99A5C;
	background: #B98647;
	box-shadow: inset 4px 4px 10px #8F6331, inset -4px -4px 10px #E2B577, 8px 10px 22px rgba(90, 60, 25, .35);
	color: #fff;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.75rem;
	line-height: 1;
}
.rb-about__badge span {
	display: block;
	font-family: var(--wp--preset--font-family--sans);
	font-size: .62rem;
	letter-spacing: .25em;
	text-transform: uppercase;
	margin-bottom: .3rem;
}

.rb-about__badge span + span { margin: .3rem 0 0; }

/* Zahlenleiste (neumorph) */
.rb-about__stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: clamp(3rem, 6vw, 4.5rem) !important;
	padding: 1.6rem .5rem;
	border: 2px solid var(--rb-neu-edge);
	border-radius: 24px;
	background: var(--wp--preset--color--cream);
	box-shadow: 10px 10px 24px var(--rb-neu-dark), -10px -10px 24px var(--rb-neu-light);
}
.rb-about__stats > * { margin: 0 !important; }
.rb-about__stat {
	display: grid;
	justify-items: center;
	gap: .35rem;
	padding: .4rem 1rem;
	text-align: center;
	font-size: .72rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text);
}
.rb-about__stat + .rb-about__stat { border-left: 1px solid var(--rb-neu-edge); }
.rb-about__stat strong {
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 400;
	font-size: clamp(2rem, 3vw, 2.6rem);
	letter-spacing: 0;
	line-height: 1;
	background-image: var(--rb-gold-text);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Universeller neumorpher Bildrahmen (wie die Galerie-Karten) */
.wp-block-image.rb-neu-frame {
	position: relative;
	overflow: hidden;
	border: 3px solid var(--rb-neu-edge);
	border-radius: 20px;
	box-shadow: 12px 12px 26px var(--rb-neu-dark), -12px -12px 26px var(--rb-neu-light);
}
.wp-block-image.rb-neu-frame img { display: block; border-radius: 17px; }
.wp-block-image.rb-neu-frame::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: 17px;
	box-shadow: inset 6px 6px 14px rgba(45, 28, 10, .5), inset -6px -6px 14px rgba(255, 238, 205, .35);
	pointer-events: none;
}


@media (max-width: 900px) {
	.rb-about__media { padding-left: 1.5rem; margin-top: 1rem; }
	.rb-about__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.2rem; }
	.rb-about__stat:nth-child(3) { border-left: 0; }
}
@media (max-width: 600px) {
	.rb-about__media { padding: 0 0 3.5rem 1rem; }
	.rb-about__img--side { width: 52%; }
	.rb-about__badge { width: 5.2rem; height: 5.2rem; font-size: 1.35rem; top: -1.8rem; right: 1rem; }
}

/* ---------- Aufmaßtermin / Kontaktformular ---------- */
.rb-contact {
	--rb-wave-h: clamp(90px, 9.5vw, 140px);
	/* unten: Welle mit goldener Linie (statt gerader Kante) in den dunklen Footer */
	--rb-contact-bg:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E %3Cdefs%3E %3ClinearGradient id='g' x1='0' x2='1' y1='0' y2='0'%3E %3Cstop offset='0' stop-color='%23C08A48' stop-opacity='.25'/%3E %3Cstop offset='.35' stop-color='%23E6BC76'/%3E %3Cstop offset='.6' stop-color='%23FFF1CC'/%3E %3Cstop offset='.8' stop-color='%23E3B068'/%3E %3Cstop offset='1' stop-color='%23BE8746' stop-opacity='.3'/%3E %3C/linearGradient%3E %3ClinearGradient id='s' x1='0' x2='0' y1='0' y2='1'%3E %3Cstop offset='0' stop-color='%231C2A2E' stop-opacity='0'/%3E %3Cstop offset='1' stop-color='%231C2A2E' stop-opacity='.55'/%3E %3C/linearGradient%3E %3C/defs%3E %3Cpath d='M0 0H100V45C88 22 76 30 64 52C52 74 38 88 22 74C14 67 7 58 0 62Z' fill='url(%23s)'/%3E %3Cpath d='M0 62C7 58 14 67 22 74C38 88 52 74 64 52C76 30 88 22 100 45V100H0Z' fill='%231C2A2E'/%3E %3Cpath d='M0 62C7 58 14 67 22 74C38 88 52 74 64 52C76 30 88 22 100 45' fill='none' stroke='url(%23g)' stroke-width='1.6' vector-effect='non-scaling-stroke'/%3E %3C/svg%3E") left 0 bottom calc(11rem - 1px) / 100% clamp(70px, 8vw, 120px) no-repeat,
		linear-gradient(180deg, transparent 0, transparent calc(100% - 11rem), var(--wp--preset--color--ink) calc(100% - 11rem)),
		linear-gradient(100deg, rgba(22, 15, 9, .9) 0%, rgba(22, 15, 9, .78) 45%, rgba(22, 15, 9, .55) 100%),
		var(--rb-contact-foto, url(../img/holmtreppe.webp)) center 40% / cover no-repeat;
	position: relative;
	isolation: isolate;
	margin-top: clamp(2rem, 4vw, 3.5rem);
	padding-top: calc(var(--rb-wave-h) + clamp(1.5rem, 3vw, 2.5rem));
	padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
	color: rgba(255, 250, 243, .88);
}
.rb-contact > * { margin-block-start: 0; }
.rb-contact__cols { gap: clamp(2.5rem, 6vw, 5.5rem) !important; align-items: flex-start !important; }
.rb-contact__text { padding-bottom: 12rem; }
.rb-contact__text > * { margin-block-start: 0; }
.rb-contact h2 { color: var(--wp--preset--color--white); margin: 0 0 1.4rem; }
.rb-contact .is-style-rb-eyebrow,
.rb-contact h2 mark.has-bronze-color {
	background-image: var(--rb-gold-text-light);
}
.rb-contact__lead {
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.2rem, 1.6vw, 1.4rem);
	color: var(--wp--preset--color--white);
	margin: 0 0 1rem !important;
}
.rb-contact__text p:not([class*="is-style-"]):not([class*="__"]) { font-size: .95rem; max-width: 30rem; }
.rb-contact__list {
	list-style: none;
	padding: 0;
	margin: 1.6rem 0 1.8rem !important;
	display: grid;
	gap: .7rem;
	font-size: .92rem;
}
.rb-contact__list li { display: flex; gap: .8rem; align-items: center; }
.rb-contact__list li::before {
	content: "";
	flex: none;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: #B98647 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / .75rem no-repeat;
	box-shadow: inset 2px 2px 4px #8F6331, inset -2px -2px 4px #E2B577;
}
.rb-contact__note { font-size: .85rem; color: rgba(255, 250, 243, .7); }
.rb-contact__note a { color: #E6BC76; text-decoration: none; border-bottom: 1px solid rgba(230, 188, 118, .45); }
@media (hover: hover) { /* hover-only */ .rb-contact__note a:hover { color: #fff; } }

/* Die Sektion liegt „oben auf“: Foto mit Wellenkante oben, Schatten fällt nach oben auf die helle Sektion
   (Gegenstück zur Welle unter dem Hero) */
.rb-contact::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--rb-contact-bg);
	-webkit-mask:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 37.5C8 62.5 18 87.5 30 81.25C44 75.0 54 25.0 68 18.75C82 12.5 92 43.75 100 87.5V100H0Z'/%3E%3C/svg%3E") center top / 100% var(--rb-wave-h) no-repeat,
		linear-gradient(#000, #000) 0 calc(var(--rb-wave-h) - 2px) / 100% calc(100% - var(--rb-wave-h) + 2px) no-repeat;
	mask:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 37.5C8 62.5 18 87.5 30 81.25C44 75.0 54 25.0 68 18.75C82 12.5 92 43.75 100 87.5V100H0Z'/%3E%3C/svg%3E") center top / 100% var(--rb-wave-h) no-repeat,
		linear-gradient(#000, #000) 0 calc(var(--rb-wave-h) - 2px) / 100% calc(100% - var(--rb-wave-h) + 2px) no-repeat;
}
.rb-contact::after {
	content: "";
	position: absolute;
	/* Schatten der Wellenkante nach oben (Gegenstück zum Hero): fertig gerendertes SVG statt CSS-Filter –
	   CSS-drop-shadow auf großen Flächen wurde v. a. in Safari beim Nachladen der Galerie abgeschnitten */
	top: calc(-1 * var(--rb-wave-h));
	left: 0;
	right: 0;
	height: calc(2 * var(--rb-wave-h));
	z-index: -2;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 200' preserveAspectRatio='none'%3E %3Cdefs%3E %3Cfilter id='s1' x='-5%25' y='-50%25' width='110%25' height='200%25'%3E%3CfeGaussianBlur stdDeviation='0.08 1.3'/%3E%3C/filter%3E %3Cfilter id='s2' x='-5%25' y='-50%25' width='110%25' height='200%25'%3E%3CfeGaussianBlur stdDeviation='0.5 7'/%3E%3C/filter%3E %3Cfilter id='s3' x='-5%25' y='-50%25' width='110%25' height='200%25'%3E%3CfeGaussianBlur stdDeviation='1.6 20'/%3E%3C/filter%3E %3Cpath id='w' d='M-10 130L0 137.5C8 162.5 18 187.5 30 181.25C44 175 54 125 68 118.75C82 112.5 92 143.75 100 187.5L110 200V210H-10Z'/%3E %3C/defs%3E %3Cuse href='%23w' transform='translate(0 -38)' fill='%231E1208' fill-opacity='0.38' filter='url(%23s3)'/%3E %3Cuse href='%23w' transform='translate(0 -14)' fill='%231E1208' fill-opacity='0.45' filter='url(%23s2)'/%3E %3Cuse href='%23w' transform='translate(0 -3)' fill='%231E1208' fill-opacity='0.55' filter='url(%23s1)'/%3E %3C/svg%3E") 0 0 / 100% 100% no-repeat;
	pointer-events: none;
}
.rb-contact__shine {
	top: -1px !important;
	bottom: auto !important;
	height: var(--rb-wave-h) !important;
	z-index: 1 !important;
}
.rb-contact__cols { position: relative; z-index: 2; }

/* Formularkarte */
.rb-contact__card {
	position: relative;
	z-index: 2;
	padding: clamp(1.8rem, 3.5vw, 2.8rem);
	border-radius: 24px;
	border: 1px solid rgba(255, 255, 255, .6);
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--text);
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), 0 10px 24px -12px rgba(0, 0, 0, .35);
}
.rb-contact__card > * { margin-block-start: 0; }
.rb-contact__card-title {
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.6rem, 2.4vw, 2rem);
	line-height: 1.1;
	color: var(--wp--preset--color--ink);
	margin: 0 0 1.6rem !important;
}

/* Startseite: Footer schließt nahtlos an, CTA-Leiste im Footer entfällt (Formular steht direkt darüber) */
/* … gleiches auf allen Seiten mit Kontaktbereich (Template „Seite mit Kontaktbereich“) */
.home .rb-footer,
body:has(.rb-main > .rb-contact) .rb-footer { margin-top: 0; padding-top: clamp(2rem, 4vw, 3rem); }
.home .rb-footer__cta,
body:has(.rb-main > .rb-contact) .rb-footer__cta { display: none !important; }
.home .rb-footer__main,
body:has(.rb-main > .rb-contact) .rb-footer__main { padding-top: 1rem; }

@media (max-width: 781px) {
	.rb-contact {
		--rb-wave-h: 70px;
		--rb-contact-bg:
			url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E %3Cdefs%3E %3ClinearGradient id='g' x1='0' x2='1' y1='0' y2='0'%3E %3Cstop offset='0' stop-color='%23C08A48' stop-opacity='.25'/%3E %3Cstop offset='.35' stop-color='%23E6BC76'/%3E %3Cstop offset='.6' stop-color='%23FFF1CC'/%3E %3Cstop offset='.8' stop-color='%23E3B068'/%3E %3Cstop offset='1' stop-color='%23BE8746' stop-opacity='.3'/%3E %3C/linearGradient%3E %3ClinearGradient id='s' x1='0' x2='0' y1='0' y2='1'%3E %3Cstop offset='0' stop-color='%231C2A2E' stop-opacity='0'/%3E %3Cstop offset='1' stop-color='%231C2A2E' stop-opacity='.55'/%3E %3C/linearGradient%3E %3C/defs%3E %3Cpath d='M0 0H100V45C88 22 76 30 64 52C52 74 38 88 22 74C14 67 7 58 0 62Z' fill='url(%23s)'/%3E %3Cpath d='M0 62C7 58 14 67 22 74C38 88 52 74 64 52C76 30 88 22 100 45V100H0Z' fill='%231C2A2E'/%3E %3Cpath d='M0 62C7 58 14 67 22 74C38 88 52 74 64 52C76 30 88 22 100 45' fill='none' stroke='url(%23g)' stroke-width='1.6' vector-effect='non-scaling-stroke'/%3E %3C/svg%3E") left 0 bottom calc(8rem - 1px) / 100% 56px no-repeat,
			linear-gradient(180deg, transparent 0, transparent calc(100% - 8rem), var(--wp--preset--color--ink) calc(100% - 8rem)),
			linear-gradient(180deg, rgba(22, 15, 9, .88), rgba(22, 15, 9, .72)),
			var(--rb-contact-foto, url(../img/holmtreppe.webp)) center / cover no-repeat;
	}
	.rb-contact__text { padding-bottom: 0; }
}

/* ---------- Galerie-Slider ---------- */
.rb-gallery-teaser { padding-top: clamp(2rem, 4vw, 3rem); }
.rb-gallery-teaser .wp-block-columns { gap: 2rem clamp(2rem, 5vw, 5rem); }
.rb-gallery-teaser h2 { margin-bottom: 1.4rem; }
.rb-gallery-teaser p:not([class*="is-style-"]):not([class*="__"]) { font-size: .9rem; max-width: 26rem; }
.rb-gallery-teaser .wp-block-buttons { margin-top: 1.8rem; }

.rb-gallery-teaser__slider { position: relative; min-width: 0; }

.wp-block-gallery.is-style-rb-slider {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 1rem !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	margin: 0;
}
.wp-block-gallery.is-style-rb-slider::-webkit-scrollbar { display: none; }
.wp-block-gallery.has-nested-images.is-style-rb-slider figure.wp-block-image:not(#individual-image) {
	flex: 0 0 calc((100% - 2rem) / 3) !important;
	width: auto !important;
	aspect-ratio: 9 / 10;
	margin: 0 !important;
	scroll-snap-align: start;
	border-radius: 4px;
	overflow: hidden;
}
.wp-block-gallery.is-style-rb-slider figure.wp-block-image img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform .8s var(--rb-ease);
}
@media (hover: hover) { /* hover-only */ .wp-block-gallery.is-style-rb-slider figure.wp-block-image:hover img { transform: scale(1.05); } }

.rb-slider-nav {
	position: absolute;
	right: 1.2rem;
	bottom: -1.4rem;
	display: flex;
	gap: .6rem;
	z-index: 2;
}
.rb-slider-nav button {
	width: 2.9rem;
	height: 2.9rem;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	display: grid;
	place-items: center;
	box-shadow: 0 8px 20px -12px rgba(55, 35, 15, .5);
	transition: background-color .2s var(--rb-ease), color .2s var(--rb-ease), opacity .2s;
}
.rb-slider-nav button::before {
	content: "";
	width: 1.05rem;
	height: 1.05rem;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 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='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rb-slider-nav button[data-dir="prev"]::before { transform: rotate(180deg); }
@media (hover: hover) { /* hover-only */ .rb-slider-nav button:hover {
	background: var(--wp--preset--color--bronze);
	color: var(--wp--preset--color--white);
} }
.rb-slider-nav button:disabled { opacity: .45; cursor: default; }

/* ---------- Unterseiten ---------- */
.rb-page-hero {
	padding-top: clamp(9rem, 14vw, 12rem);
	padding-bottom: clamp(2rem, 4vw, 3rem);
	background: linear-gradient(180deg, var(--wp--preset--color--sand), var(--wp--preset--color--cream));
}
.rb-page-hero > * { margin-block-start: 0; }
.rb-page-hero h1 { font-size: var(--wp--preset--font-size--xx-large); margin: 0; }
.rb-page-content { padding-bottom: clamp(4rem, 8vw, 6rem); padding-top: 2rem; }
.rb-404 { min-height: 70vh; }
.rb-404 p:not([class*="is-style-"]):not([class*="__"]) { max-width: 30rem; }

/* ---------- Galerie-Kategorie (Unterseiten von „Galerie“) ---------- */
.rb-cat {
	padding-top: clamp(7.5rem, 11vw, 9.5rem);
	padding-bottom: clamp(3rem, 6vw, 5rem);
}
.rb-cat > * { margin-block-start: 0; }
.rb-cat-intro {
	gap: 0 !important;
	border-radius: 8px;
	overflow: hidden;
	background: var(--wp--preset--color--paper);
	box-shadow: 0 30px 60px -30px rgba(55, 35, 15, .45), 0 2px 6px rgba(55, 35, 15, .06);
	margin-bottom: clamp(3rem, 6vw, 5rem) !important;
}
.rb-cat-intro__media { align-self: stretch !important; }
.rb-cat-intro__media .wp-block-image { margin: 0; height: 100%; }
.rb-cat-intro__media img {
	width: 100%;
	height: 100%;
	min-height: clamp(320px, 38vw, 520px);
	object-fit: cover;
	display: block;
}
.rb-cat-intro__content { padding: clamp(2rem, 5vw, 4.5rem); }
.rb-cat-intro__content h1 {
	font-size: var(--wp--preset--font-size--xx-large);
	margin: 0 0 1.3rem;
}
.rb-cat-intro__content p:not([class*="is-style-"]):not([class*="__"]) { max-width: 32rem; font-size: .98rem; }
.rb-cat-intro__content .wp-block-buttons { margin-top: 2rem; }
.rb-cat-intro__content .is-style-rb-anfrage .wp-block-button__link { padding: 1rem 1.8rem; font-size: .82rem; }
.rb-cat__gallery-title { margin: 0 0 .8rem; }
.rb-cat__placeholder { color: #8C8175; font-style: italic; }

@media (max-width: 781px) {
	.rb-cat-intro__media img { min-height: 280px; max-height: 360px; }
}

/* ---------- Angebotsanfrage (Konfigurator-Seite) ---------- */
.rb-angebot { padding-top: clamp(8rem, 11vw, 10rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.rb-angebot > * { margin-block-start: 0; }
.rb-angebot__intro { max-width: 1180px !important; margin-left: auto !important; margin-right: auto !important; margin-bottom: clamp(2.5rem, 5vw, 3.5rem) !important; }
.rb-angebot__intro > * { margin-block-start: 0; }
.rb-angebot__intro h1 { font-size: var(--wp--preset--font-size--xx-large); margin: 0 0 1.4rem; }
.rb-angebot__lead {
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.2rem, 1.6vw, 1.4rem);
	line-height: 1.45;
	color: var(--wp--preset--color--ink);
	margin: 0 0 1rem !important;
}
.rb-angebot__intro p:not([class*="is-style-"]):not([class*="__"]) { font-size: .93rem; }

/* ---------- Kontakt-Seite ---------- */
.rb-kontakt > .wp-block-shortcode,
.rb-kontakt > .rb-map { margin-block-start: 0; }
.rb-kontakt__form {
	max-width: 1180px !important;
	margin: clamp(3rem, 6vw, 4.5rem) auto 0 !important;
	padding: clamp(1.6rem, 4vw, 3rem);
	border: 2px solid #E8DBC8;
	border-radius: 26px;
	background: var(--wp--preset--color--cream);
	box-shadow: 10px 10px 24px #D3C3AE, -10px -10px 24px #FFFFFF;
}
.rb-kontakt__form > * { margin-block-start: 0; }
.rb-kontakt__form h2 { margin: 0 0 1rem; font-size: clamp(2rem, 3vw, 2.6rem); }
.rb-kontakt__form > p:not([class*="is-style-"]):not([class*="__"]) { margin: 0 0 2rem; font-size: .95rem; }

/* ---------- Footer ---------- */
.rb-footer {
	background: var(--wp--preset--color--ink);
	color: #CFC5B8;
	font-size: .9rem;
	padding-top: clamp(3.5rem, 6vw, 5rem);
	margin-top: clamp(2rem, 5vw, 4rem);
}
.rb-footer > * { margin-block-start: 0; }
.rb-footer h2 { color: var(--wp--preset--color--cream); margin: 0; font-size: clamp(2rem, 3.4vw, 2.9rem); }
.rb-footer h4 {
	font-family: var(--wp--preset--font-family--sans);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: #C9995F;
	margin: 0 0 1.2rem;
}
.rb-footer a { color: #EFE5D8; text-decoration: none; }
@media (hover: hover) { /* hover-only */ .rb-footer a:hover { color: #C9995F; } }
.rb-footer .is-style-rb-eyebrow { color: #C9995F; }

.rb-footer__cta {
	gap: 2rem 4rem;
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.rb-footer__cta p:not([class*="is-style-"]):not([class*="__"]) { max-width: 28rem; }
.rb-footer__cta .wp-block-buttons { margin-top: 1.5rem; }
.rb-footer__cta .wp-block-button__link { color: var(--wp--preset--color--white); }

.rb-footer__main {
	padding-top: clamp(2.5rem, 5vw, 3.5rem);
	padding-bottom: 2.5rem;
	gap: 2rem 3rem;
}
.rb-footer .rb-logo { color: var(--wp--preset--color--cream); }
.rb-footer .rb-logo__mark span,
.rb-footer .rb-logo__word { color: #C9995F; }
.rb-footer__claim { max-width: 20rem; margin-top: 1.5rem !important; font-size: .85rem; }
.rb-footer__links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: .55rem;
}
.rb-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .12);
	padding: 1.4rem 0;
	font-size: .78rem;
	color: #9C958C;
}
.rb-footer__bottom p { margin: 0; }

/* ---------- Einblend-Animation ---------- */
@media (prefers-reduced-motion: no-preference) {
	.rb-reveal {
		opacity: 0;
		transform: translateY(28px);
		transition: opacity .9s var(--rb-ease), transform .9s var(--rb-ease);
	}
	.rb-reveal.is-visible {
		opacity: 1;
		transform: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; }
}

/* =========================================================
   Bilderrahmen im Neumorphismus-Stil (wie Buttons & Formularfelder):
   dünner Rahmen, deutlicher Hell/Dunkel-Schatten, Bildkante eingedrückt
   ========================================================= */
:root {
	--rb-neu-dark: #CDBBA3;
	--rb-neu-light: #FFFFFF;
	--rb-neu-edge: #E8DBC8;
}
.rb-bento .wp-block-cover.is-style-rb-card,
.wp-block-gallery.has-nested-images.is-style-rb-slider figure.wp-block-image:not(#individual-image) {
	border: 3px solid var(--rb-neu-edge);
	border-radius: 20px;
	outline: 0;
	box-shadow: 12px 12px 26px var(--rb-neu-dark), -12px -12px 26px var(--rb-neu-light);
	transition: box-shadow .25s ease-in-out;
}
@media (hover: hover) { /* hover-only */ .rb-bento .wp-block-cover.is-style-rb-card:hover,
.wp-block-gallery.has-nested-images.is-style-rb-slider figure.wp-block-image:not(#individual-image):hover {
	transform: none;
	box-shadow: 4px 4px 9px var(--rb-neu-dark), -4px -4px 9px var(--rb-neu-light);
} }
.rb-bento .is-style-rb-card .wp-block-cover__image-background,
.rb-bento .is-style-rb-card .wp-block-cover__background,
.wp-block-gallery.is-style-rb-slider figure.wp-block-image img { border-radius: 17px; }
/* Bildkante „eingedrückt“ – wie die Innenschatten im Button */
.rb-bento .wp-block-cover.is-style-rb-card::before,
.wp-block-gallery.has-nested-images.is-style-rb-slider figure.wp-block-image:not(#individual-image)::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: 17px;
	box-shadow:
		inset 6px 6px 14px rgba(45, 28, 10, .55),
		inset -6px -6px 14px rgba(255, 238, 205, .38);
	pointer-events: none;
	transition: box-shadow .25s ease-in-out;
}
@media (hover: hover) { /* hover-only */ .rb-bento .wp-block-cover.is-style-rb-card:hover::before,
.wp-block-gallery.has-nested-images.is-style-rb-slider figure.wp-block-image:not(#individual-image):hover::before {
	box-shadow:
		inset 3px 3px 8px rgba(45, 28, 10, .5),
		inset -3px -3px 8px rgba(255, 238, 205, .32);
} }
.wp-block-gallery.has-nested-images.is-style-rb-slider figure.wp-block-image:not(#individual-image) { position: relative; }
.rb-bento .is-style-rb-card .wp-block-cover__inner-container { z-index: 2; }

/* Galerie-Slider: Platz für die Schatten innerhalb des Scroll-Containers */
.wp-block-gallery.is-style-rb-slider {
	padding: 1.4rem 1.6rem 2.2rem !important;
	margin: -1.4rem -1.6rem -2.2rem !important;
	scroll-padding-inline: 1.6rem;
}

/* =========================================================
   Goldene Schrift mit metallischem Verlauf
   ========================================================= */
:root {
	/* auf hellem Grund: tiefes, gut lesbares Gold */
	--rb-gold-text: linear-gradient(100deg, #7E5221 0%, #A6763F 22%, #D4A45E 44%, #B07C3E 60%, #8C5F2C 80%, #B98647 100%);
	/* auf Bildern / dunklem Grund: helles, glänzendes Gold */
	--rb-gold-text-light: linear-gradient(100deg, #C08A48 0%, #E6BC76 24%, #FFF1CC 44%, #E3B068 62%, #BE8746 82%, #EDCB8C 100%);
}

mark.has-bronze-color,
.is-style-rb-eyebrow,
.rb-stat__value,
.rb-logo__mark span,
.rb-logo__word,
.rb-modal__eyebrow {
	background-image: var(--rb-gold-text);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
mark.has-bronze-color { background-color: transparent !important; }
/* Verlaufsschrift: Platz für Unterlängen der Caslon-Ziffern (sonst wird der Verlauf unten abgeschnitten) */
.rb-about__stat strong,
.is-style-rb-card .rb-card__num {
	line-height: 1.15 !important;
	padding-bottom: .12em;
}
/* B im Logo ragt durch die negative Laufweite über seine Box hinaus – Platz für den Verlauf schaffen */
.rb-logo__mark span { padding-right: .22em; margin-right: -.22em; }
/* kursive/ausladende Glyphen am Ende nicht abschneiden */
mark.has-bronze-color { padding-right: .06em; }

/* helle Variante auf dunklen Flächen */
.rb-hero mark.has-bronze-color,
.rb-hero .is-style-rb-eyebrow,
.is-style-rb-card .rb-card__num,
.rb-footer .is-style-rb-eyebrow,
.rb-footer h4,
.rb-footer .rb-logo__mark span,
.rb-footer .rb-logo__word,
.home .rb-header:not(.is-scrolled) .rb-logo__mark span,
.home .rb-header:not(.is-scrolled) .rb-logo__word {
	background-image: var(--rb-gold-text-light);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
/* Kartennummer: Linie daneben bleibt sichtbar (eigener Hintergrund im ::after) */
.is-style-rb-card .rb-card__num::after { -webkit-text-fill-color: initial; }


/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
	.rb-nav { gap: 0 1.4rem; font-size: .8rem; }
	/* Bento: große Karte oben über die volle Breite, darunter 2×2 */
	.rb-bento {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: clamp(320px, 48vw, 440px) repeat(2, clamp(240px, 32vw, 300px));
	}
	.rb-bento > .wp-block-cover:first-child { grid-row: auto; grid-column: span 2; }
}

@media (max-width: 900px) {
	.rb-header { padding-top: .8rem; }
	.rb-logo__img { height: 22px; }
	.rb-header.is-scrolled .rb-logo__img { height: 19px; }
	.rb-nav { flex: 0 0 auto; order: 3; }
	.rb-header__bar { gap: 1rem; }
	.rb-header__cta { margin-left: auto !important; }

	.rb-hero {
		min-height: 0;
		padding-top: 8.5rem;
		padding-bottom: 9rem;
	}
	.rb-hero > .rb-hero__content { max-width: 36rem; margin-left: 0 !important; }
	.rb-hero__media img { object-position: 78% 50%; }
	.rb-hero__media::after {
		background: linear-gradient(180deg, rgba(22, 15, 9, .6) 0%, rgba(22, 15, 9, .62) 55%, rgba(22, 15, 9, .4) 100%);
	}
	.rb-hero__script { display: none; }


	.wp-block-gallery.has-nested-images.is-style-rb-slider figure.wp-block-image:not(#individual-image) {
		flex-basis: calc((100% - 1rem) / 2) !important;
	}
}

@media (max-width: 600px) {
	/* Smartphone: „Anfrage senden“ bleibt kompakt in der Menüleiste (zwischen Logo und Menü-Icon) –
	   statt eines schwebenden Buttons unten */
	.rb-header__bar { gap: .7rem; }
	.rb-logo__img { height: 26px; } /* Handy: kurzes FS-Zeichen (picture/source) */
	.rb-header.is-scrolled .rb-logo__img { height: 22px; }
	.rb-footer .rb-logo__img { height: 26px; }
	.rb-header__cta { margin-left: auto !important; }
	.rb-header__cta .wp-block-button__link,
	.rb-header.is-scrolled .rb-header__cta .wp-block-button__link {
		padding: .55rem 1rem;
		font-size: .78rem;
		letter-spacing: .01em;
		white-space: nowrap;
	}
	.rb-header__cta .wp-block-button__link::after { width: .85em; height: .85em; }
	.rb-floating-cta { display: none !important; }
	/* WP-Adminleiste scrollt auf Smartphones mit – Header dann bis ganz oben */
	.admin-bar .rb-header.is-scrolled { top: 0; }
	.rb-features { display: grid !important; grid-template-columns: 1fr 1fr; }
	/* Smartphone: alle Karten gleich – gleiche Höhe, Abstände, Schrift- und Pfeilgrößen */
	.rb-bento {
		grid-template-columns: 1fr;
		grid-template-rows: none;
		grid-auto-rows: 300px;
		gap: 1rem;
	}
	.rb-bento > .wp-block-cover:first-child { grid-column: auto; }
	.rb-bento > .wp-block-cover.is-style-rb-card,
	.rb-bento > .wp-block-cover.is-style-rb-card:first-child { padding: 1.4rem 1.5rem 1.5rem; }
	.rb-bento .is-style-rb-card .wp-block-cover__inner-container { padding-right: 3.4rem; }
	.rb-bento > .wp-block-cover.is-style-rb-card .rb-card__num,
	.rb-bento > .wp-block-cover.is-style-rb-card:first-child .rb-card__num { font-size: 2.3rem; }
	.rb-bento > .wp-block-cover.is-style-rb-card h3,
	.rb-bento > .wp-block-cover.is-style-rb-card:first-child h3 { font-size: 1.55rem; }
	.rb-bento > .wp-block-cover.is-style-rb-card p:not(.rb-card__num),
	.rb-bento > .wp-block-cover.is-style-rb-card:first-child p:not(.rb-card__num) { font-size: .85rem; }
	.rb-bento > .wp-block-cover.is-style-rb-card::after,
	.rb-bento > .wp-block-cover.is-style-rb-card:first-child::after {
		width: 2.8rem;
		height: 2.8rem;
		right: 1.4rem;
		bottom: 1.5rem;
	}
	.rb-section-head__aside .wp-block-buttons { justify-content: flex-start !important; }
	.wp-block-gallery.has-nested-images.is-style-rb-slider figure.wp-block-image:not(#individual-image) {
		flex-basis: 78% !important;
	}
	.rb-slider-nav { right: .5rem; }
}

/* ---------- Produktion ---------- */
.rb-prod > * + * { margin-block-start: clamp(3.5rem, 7vw, 5.5rem) !important; }
.rb-prod .rb-cat-intro { margin-bottom: 0 !important; }
.rb-prod .rb-cat-intro__content .rb-angebot__lead { margin-bottom: 1.2rem !important; }

/* Kennzahlen: neumorphe Kacheln */
.rb-prod-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.6rem);
}
.rb-prod-stats > * { margin: 0 !important; }
.rb-prod-stat {
	padding: clamp(1.4rem, 2.5vw, 2rem);
	border: 2px solid #E8DBC8;
	border-radius: 22px;
	background: var(--wp--preset--color--cream);
	box-shadow: 10px 10px 22px #D3C3AE, -10px -10px 22px #FFFFFF;
	text-align: center;
}
.rb-prod-stat > * { margin: 0; }
.rb-prod-stat__value {
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(2.3rem, 3.6vw, 3.1rem);
	line-height: 1.15;
	padding-bottom: .1em;
	background: var(--rb-gold-text);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.rb-prod-stat h3 { margin: .5rem 0 .45rem; font-size: 1.05rem; font-family: var(--wp--preset--font-family--sans); font-weight: 500; letter-spacing: .02em; }
.rb-prod-stat p:not([class*="is-style-"]):not([class*="__"]) { font-size: .86rem; line-height: 1.55; color: var(--wp--preset--color--text); }

/* Textblöcke */
.rb-prod-block { max-width: 880px; margin-left: auto !important; margin-right: auto !important; text-align: center; }
.rb-prod-block > * { margin-block-start: 0; }
.rb-prod-block h2,
.rb-prod-plan h2 { margin: 0 0 1.3rem; font-size: clamp(2rem, 3.2vw, 2.8rem); }
.rb-prod-block > p:not([class*="is-style-"]):not([class*="__"]) { font-size: .98rem; margin: 0 auto !important; max-width: 46rem; }
.rb-prod-block > p:not([class*="is-style-"]):not([class*="__"]) + p:not([class*="is-style-"]):not([class*="__"]),
.rb-prod-plan__text > p:not([class*="is-style-"]):not([class*="__"]) + p:not([class*="is-style-"]):not([class*="__"]) { margin-top: 1.1rem !important; }

/* Marken / Software als neumorphe Chips */
.rb-prod-chips {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .9rem;
	margin: 2rem 0 0;
	padding: 0;
}
.rb-prod-chips li {
	display: flex;
	flex-direction: column;
	gap: .15rem;
	padding: .8rem 1.3rem;
	border: 2px solid #E8DBC8;
	border-radius: 16px;
	background: var(--wp--preset--color--cream);
	box-shadow: inset 4px 4px 9px #D9CAB6, inset -4px -4px 9px #FFFFFF;
	text-align: center;
}
.rb-prod-chips strong { font-family: var(--wp--preset--font-family--serif); font-size: 1.08rem; font-weight: 400; color: var(--wp--preset--color--ink); }
.rb-prod-chips span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--bronze); }
.rb-prod-plan .rb-prod-chips { justify-content: flex-start; }
/* Marken-Reihe: gleich breite Kacheln in einer Reihe (symmetrisch) */
.rb-prod-block .rb-prod-chips {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	width: min(1080px, 92vw);
	margin-left: 50%;
	translate: -50% 0;
	margin-top: 2.4rem;
}
.rb-prod-plan .rb-prod-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 40rem; margin-top: 2rem; }
.rb-prod-plan .rb-prod-chips span { letter-spacing: .06em; font-size: .64rem; }

/* Planung: Text + Bild */
.rb-prod-plan { gap: clamp(2rem, 5vw, 4.5rem) !important; }
.rb-prod-plan__text > * { margin-block-start: 0; }
.rb-prod-plan__text > p:not([class*="is-style-"]):not([class*="__"]) { font-size: .98rem; margin: 0 !important; }
.rb-prod-plan__media .wp-block-image { margin: 0; }
.rb-prod-plan__media img {
	display: block;
	width: 100%;
	height: auto;
	border: 3px solid #E8DBC8;
	border-radius: 20px;
	box-shadow: 12px 12px 26px #D3C3AE, -12px -12px 26px #FFFFFF;
}

/* Ablauf in 4 Schritten */
.rb-prod-process { max-width: 1320px; }
.rb-prod-steps {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.6rem);
	margin: 2.2rem 0 2.6rem;
	padding: 0;
	counter-reset: none;
}
.rb-prod-steps li {
	position: relative;
	padding: 2.6rem 1.4rem 1.6rem;
	border: 2px solid #E8DBC8;
	border-radius: 22px;
	background: var(--wp--preset--color--cream);
	box-shadow: 10px 10px 22px #D3C3AE, -10px -10px 22px #FFFFFF;
	text-align: center; /* Nummer sitzt mittig oben – Text ebenfalls zentriert */
}
.rb-prod-steps__nr {
	position: absolute;
	top: -1.4rem;
	left: 50%;
	translate: -50% 0;
	width: 2.8rem;
	height: 2.8rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 2px solid #C99A5C;
	background: #B98647;
	color: #fff;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1;
	box-shadow: inset 3px 3px 7px #8F6331, inset -3px -3px 7px #E2B577;
}
.rb-prod-steps h3 { margin: 0 0 .5rem; font-size: 1.3rem; }
.rb-prod-steps p { margin: 0; font-size: .88rem; line-height: 1.6; color: var(--wp--preset--color--text); }

@media (max-width: 1000px) {
	.rb-prod-stats,
	.rb-prod-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rb-prod-steps { row-gap: 2.4rem; }
}
@media (max-width: 560px) {
	.rb-prod-stats { gap: .8rem; }
	.rb-prod-stat { padding: 1.1rem .8rem; }
	.rb-prod-steps { grid-template-columns: minmax(0, 1fr); }
	.rb-prod-plan .rb-prod-chips { margin-left: auto; margin-right: auto; }
	.rb-prod-chips li { padding: .7rem .35rem; }
	.rb-prod-plan .rb-prod-chips span { letter-spacing: .03em; font-size: .6rem; }
}
@media (max-width: 760px) {
	.rb-prod-block .rb-prod-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin-left: 0; translate: none; }
	.rb-prod-block .rb-prod-chips li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- Drehbares 3D-Modell ([rb_treppe_3d]) ---------- */
.rb-3d {
	position: relative;
	aspect-ratio: 4 / 3.4;
	border: 3px solid #E8DBC8;
	border-radius: 24px;
	background: radial-gradient(120% 90% at 50% 30%, #FFFDF9 0%, var(--wp--preset--color--cream) 60%, #EFE4D4 100%);
	box-shadow: inset 6px 6px 14px #DCCDB9, inset -6px -6px 14px #FFFFFF, 12px 12px 26px #D3C3AE, -12px -12px 26px #FFFFFF;
	overflow: hidden;
}
.rb-3d canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	cursor: grab;
	touch-action: pan-y;
	opacity: 0;
	transition: opacity .6s ease;
}
.rb-3d.is-ready canvas { opacity: 1; }
.rb-3d.is-drag canvas { cursor: grabbing; }
.rb-3d__load {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: .78rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--bronze);
	transition: opacity .4s ease;
	pointer-events: none;
}
.rb-3d.is-ready .rb-3d__load { opacity: 0; }
.rb-3d.is-unsupported .rb-3d__load { opacity: 1; }
.rb-3d__hint {
	position: absolute;
	left: 50%;
	bottom: 1rem;
	translate: -50% 0;
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .45rem 1rem;
	border-radius: 999px;
	background: rgba(255, 250, 243, .85);
	box-shadow: 0 6px 16px rgba(80, 55, 25, .12);
	font-size: .7rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--bronze);
	border: 0;
	font-family: inherit;
	cursor: pointer;
	touch-action: manipulation;
	white-space: nowrap;
	transition: opacity .4s ease, box-shadow .25s ease, transform .25s ease;
}
@media (hover: hover) { /* hover-only */ .rb-3d__hint:hover { box-shadow: 0 8px 20px rgba(80, 55, 25, .2); transform: translateY(-1px); } }
.rb-3d__hint:active { transform: scale(.97); }
.rb-3d__hint svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rb-3d.is-drag .rb-3d__hint { opacity: 0; }

/* ---------- Über uns (Firma) – nutzt die Bausteine der Produktion-Seite ---------- */
.rb-firma-quote {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: clamp(1.6rem, 4vw, 3.5rem);
	max-width: 1080px;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: clamp(1.8rem, 4vw, 3.2rem) clamp(1.6rem, 4vw, 3.6rem);
	border: 2px solid #E8DBC8;
	border-radius: 26px;
	background: var(--wp--preset--color--cream);
	box-shadow: 10px 10px 24px #D3C3AE, -10px -10px 24px #FFFFFF;
}
.rb-firma-quote > * { margin: 0 !important; }
.rb-firma-seal {
	width: clamp(8rem, 14vw, 10.5rem);
	aspect-ratio: 1;
	display: grid;
	place-content: center;
	text-align: center;
	border-radius: 50%;
	border: 3px solid #C99A5C;
	background: #B98647;
	color: #fff;
	box-shadow: inset 6px 6px 14px #8F6331, inset -6px -6px 14px #E2B577, 10px 10px 22px #D3C3AE, -10px -10px 22px #FFFFFF;
}
.rb-firma-seal strong { font-family: var(--wp--preset--font-family--serif); font-size: clamp(3rem, 5vw, 4rem); font-weight: 400; line-height: 1; }
.rb-firma-seal span { margin-top: .3rem; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; line-height: 1.4; }
.rb-firma-quote__text > * { margin-block-start: 0; }
.rb-firma-quote__lead {
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.15rem, 1.7vw, 1.45rem);
	line-height: 1.5;
	color: var(--wp--preset--color--ink);
	margin: 0 0 1rem !important;
}
.rb-firma-quote__text > p:not([class*="is-style-"]):not([class*="__"]) { margin: 0; font-size: .95rem; }

.rb-firma-werte { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1080px; margin-left: auto; margin-right: auto; }
.rb-firma .rb-prod-process { max-width: 1080px; }

.rb-firma-angebot { max-width: 1080px; }
.rb-prod-block .rb-prod-chips.rb-firma-arten {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	width: auto;
	max-width: 860px;
	margin: 2rem auto 0;
	translate: none;
}
.rb-firma-arten li { justify-content: center; min-height: 3.6rem; }
.rb-firma-arten strong { font-size: 1rem; }
.rb-firma-bilder {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1rem, 2.5vw, 2rem);
	margin-top: clamp(2.5rem, 5vw, 3.5rem) !important;
}
.rb-firma-bilder > * { margin: 0 !important; }
.rb-firma-bilder img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border: 3px solid #E8DBC8;
	border-radius: 20px;
	box-shadow: 12px 12px 26px #D3C3AE, -12px -12px 26px #FFFFFF;
}
.rb-prod-block.rb-firma-angebot > p.rb-firma-willkommen {
	margin: clamp(2.5rem, 5vw, 3.5rem) auto 1.6rem !important;
	text-align: center;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	line-height: 1.3;
	color: var(--wp--preset--color--ink);
}
.rb-firma-angebot .wp-block-buttons { gap: 1rem; }

@media (max-width: 1000px) {
	.rb-firma-werte { grid-template-columns: minmax(0, 1fr); max-width: 560px; row-gap: 2.4rem; }
}
@media (max-width: 700px) {
	.rb-firma-quote { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
	.rb-prod-block .rb-prod-chips.rb-firma-arten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rb-prod-block .rb-prod-chips.rb-firma-arten li:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.rb-firma-bilder { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Treppengalerie: Kategorien (2 große + 3 kleine, symmetrisch) ---------- */
.rb-galerie-kats {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: clamp(1rem, 2.2vw, 1.8rem);
	max-width: 1320px;
	margin: 0 auto;
}
.rb-galerie-kat {
	position: relative;
	grid-column: span 2;
	aspect-ratio: 4 / 3;
	display: block;
	overflow: hidden;
	border: 3px solid #E8DBC8;
	border-radius: 22px;
	background: var(--wp--preset--color--cream);
	box-shadow: 10px 10px 22px #D3C3AE, -10px -10px 22px #FFFFFF;
	color: #fff;
	text-decoration: none;
}
.rb-galerie-kat:nth-child(-n+2) { grid-column: span 3; aspect-ratio: 16 / 10; }
.rb-galerie-kat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22, .61, .36, 1); }
.rb-galerie-kat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 14, 8, 0) 25%, rgba(20, 14, 8, .55) 55%, rgba(20, 14, 8, .88) 100%); }
@media (hover: hover) { /* hover-only */ .rb-galerie-kat:hover img { transform: scale(1.05); } }
.rb-galerie-kat__text { position: absolute; left: 1.4rem; right: 4.5rem; bottom: 1.2rem; z-index: 1; display: flex; flex-direction: column; gap: .2rem; }
.rb-galerie-kat__text strong { font-family: var(--wp--preset--font-family--serif); font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.15; }
.rb-galerie-kat__text span { font-size: .78rem; letter-spacing: .08em; opacity: .9; }
.rb-galerie-kat__pfeil {
	position: absolute; right: 1.1rem; bottom: 1.1rem; z-index: 1;
	width: 2.8rem; height: 2.8rem; display: grid; place-items: center;
	border-radius: 50%; border: 2px solid #C99A5C; background: #B98647; font-size: 1.1rem;
	box-shadow: inset 3px 3px 7px #8F6331, inset -3px -3px 7px #E2B577;
	transition: transform .3s ease;
}
@media (hover: hover) { /* hover-only */ .rb-galerie-kat:hover .rb-galerie-kat__pfeil { transform: translateX(4px); } }
@media (max-width: 900px) {
	.rb-galerie-kats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rb-galerie-kat, .rb-galerie-kat:nth-child(-n+2) { grid-column: span 1; aspect-ratio: 4 / 3; }
	.rb-galerie-kat:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
	.rb-galerie-kats { grid-template-columns: minmax(0, 1fr); }
	.rb-galerie-kat, .rb-galerie-kat:first-child { grid-column: auto; aspect-ratio: 16 / 10; }
}

/* ---------- Projektansicht (Treppenprojekt) ---------- */
.rb-projekt { max-width: 1180px; margin: 0 auto; }
.rb-projekt__tabs {
	display: flex;
	justify-content: center;
	gap: .6rem;
	width: fit-content;
	margin: 0 auto 1.6rem;
	padding: .45rem;
	border: 2px solid #E8DBC8;
	border-radius: 999px;
	background: var(--wp--preset--color--cream);
	box-shadow: inset 4px 4px 9px #D9CAB6, inset -4px -4px 9px #FFFFFF;
}
.rb-projekt__tabs button {
	padding: .7rem 1.4rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--ink);
	font: 500 .8rem var(--wp--preset--font-family--sans);
	letter-spacing: .1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .2s, color .2s, box-shadow .2s;
}
.rb-projekt__tabs button[aria-selected="true"] {
	background: #B98647;
	color: #fff;
	box-shadow: inset 3px 3px 7px #8F6331, inset -3px -3px 7px #E2B577, 0 6px 14px rgba(120, 80, 30, .25);
}
.rb-projekt .rb-3d { aspect-ratio: 16 / 9; }
.rb-projekt__zeichnung {
	/* gleiches feste Fenster wie das 3D-Modell – Zeichnung wird vollständig hineinskaliert */
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border: 3px solid #E8DBC8;
	border-radius: 24px;
	background: #fff;
	box-shadow: 12px 12px 26px #D3C3AE, -12px -12px 26px #FFFFFF;
	cursor: zoom-in;
	overflow: hidden;
}
.rb-projekt__zeichnung img {
	position: absolute;
	inset: clamp(.8rem, 2.5vw, 1.8rem) clamp(.8rem, 2.5vw, 1.8rem) clamp(2.8rem, 4vw, 3.4rem);
	width: calc(100% - 2 * clamp(.8rem, 2.5vw, 1.8rem));
	height: calc(100% - clamp(.8rem, 2.5vw, 1.8rem) - clamp(2.8rem, 4vw, 3.4rem));
	object-fit: contain;
	object-position: center;
}
.rb-projekt__lupe {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	padding: .45rem 1rem;
	border-radius: 999px;
	background: rgba(255, 250, 243, .92);
	box-shadow: 0 6px 16px rgba(80, 55, 25, .15);
	font-size: .7rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--bronze);
}
.rb-projekt-daten {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(.8rem, 2vw, 1.4rem);
	max-width: 1180px;
	margin: 0 auto;
	padding: 0;
}
.rb-projekt-daten li {
	padding: 1.1rem 1.3rem;
	border: 2px solid #E8DBC8;
	border-radius: 18px;
	background: var(--wp--preset--color--cream);
	box-shadow: inset 4px 4px 9px #D9CAB6, inset -4px -4px 9px #FFFFFF;
}
.rb-projekt-daten span { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--bronze); }
.rb-projekt-daten strong { display: block; margin-top: .2rem; font-family: var(--wp--preset--font-family--serif); font-weight: 400; font-size: 1.25rem; color: var(--wp--preset--color--ink); }
@media (max-width: 700px) {
	.rb-projekt .rb-3d,
	.rb-projekt__zeichnung { aspect-ratio: 4 / 3.4; }
	.rb-projekt__tabs button { padding: .6rem .9rem; font-size: .7rem; letter-spacing: .06em; }
	.rb-projekt-daten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.rb-projektseite > .rb-projekt-daten,
.rb-projektseite > .wp-block-shortcode + * { margin-top: clamp(2.2rem, 4vw, 3rem) !important; }
.rb-projektseite > .rb-projektseite__cta { margin-top: clamp(2rem, 4vw, 2.8rem) !important; }
.rb-projektseite .rb-angebot__intro { margin-bottom: clamp(1.8rem, 4vw, 2.6rem) !important; }

/* Popup für technische Zeichnungen */
.rb-zoom {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	width: 100vw;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: hidden;
}
.rb-zoom::backdrop { background: rgba(16, 11, 6, .93); }
.rb-zoom[open] { display: block; animation: rb-zoom-in .25s ease; }
@keyframes rb-zoom-in { from { opacity: 0; } }
html:has(.rb-zoom[open]) { overflow: hidden; }
.rb-zoom__bild {
	position: absolute;
	inset: 4.5rem clamp(1rem, 4vw, 3rem) 3.5rem;
	display: grid;
	place-items: center;
	overflow: hidden;
}
.rb-zoom__bild img {
	/* absolut im festen Rahmen → max-height: 100 % greift, Zeichnung passt immer ganz hinein */
	position: absolute;
	inset: 0;
	margin: auto;
	box-sizing: border-box;
	max-width: 100%;
	max-height: 100%;
	padding: clamp(.6rem, 1.5vw, 1.2rem);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
	cursor: zoom-in;
}
.rb-zoom.is-zoomed .rb-zoom__bild { display: block; overflow: auto; overscroll-behavior: contain; cursor: grab; }
.rb-zoom.is-zoomed .rb-zoom__bild img { position: static; margin: 0 auto; max-width: none; max-height: none; cursor: zoom-out; }
.rb-zoom__close {
	position: absolute;
	top: 1rem;
	right: clamp(.8rem, 2vw, 2rem);
	width: 3rem;
	height: 3rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 2px solid rgba(255, 250, 243, .35);
	background: rgba(255, 250, 243, .12);
	color: #fff;
	cursor: pointer;
}
@media (hover: hover) { /* hover-only */ .rb-zoom__close:hover, .rb-zoom__close:focus-visible { outline: none; background: #B98647; border-color: #C99A5C; } }
.rb-zoom__close svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.rb-zoom__hint {
	position: absolute;
	left: 50%;
	bottom: 1rem;
	translate: -50% 0;
	margin: 0;
	font-size: .72rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(255, 250, 243, .75);
	white-space: nowrap;
	pointer-events: none;
}


/* ---------- „Galerie ansehen“ statt Pfeil (Treppenwelten-Karten + Treppengalerie) ---------- */
.wp-block-cover.is-style-rb-card::after { display: none !important; }
.is-style-rb-card .rb-card__actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.is-style-rb-galerie .wp-block-button__link,
.rb-galerie-kat__btn {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	border: 2px solid rgba(255, 250, 243, .75);
	border-radius: 999px;
	background: rgba(255, 250, 243, .12);
	color: #fff;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .25s var(--rb-ease), color .25s var(--rb-ease), border-color .25s var(--rb-ease);
}
.is-style-rb-galerie .wp-block-button__link::after {
	content: "";
	display: block;
	flex: none;
	width: 1em;
	height: 1em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 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='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .25s var(--rb-ease);
}
@media (hover: hover) { /* hover-only */ .is-style-rb-galerie .wp-block-button__link:hover::after { transform: translateX(3px); } }
@media (hover: hover) {
	.is-style-rb-galerie .wp-block-button__link:hover,
	.rb-galerie-kat:hover .rb-galerie-kat__btn { background: var(--wp--preset--color--cream); border-color: var(--wp--preset--color--cream); color: var(--wp--preset--color--ink); }
}
.rb-galerie-kat__pfeil { display: none; }
.rb-galerie-kat__text { right: 1.4rem; bottom: 4.4rem; }
.rb-galerie-kat__btn {
	position: absolute;
	left: 1.4rem;
	bottom: 1.2rem;
	z-index: 1;
	padding: .6rem 1.1rem;
	font-size: .7rem;
}
/* beide Karten-Buttons gleich breit untereinander */
.is-style-rb-card .rb-card__actions { display: inline-grid !important; grid-template-columns: 1fr; gap: .5rem; width: max-content; max-width: 100%; }
.is-style-rb-card .rb-card__actions .wp-block-button,
.is-style-rb-card .rb-card__actions .wp-block-button__link { width: 100%; justify-content: center; }

/* Lesbarkeit: Schrift auf Fotos immer mit weichem Schatten */
.is-style-rb-card h3, .is-style-rb-card h3 a, .is-style-rb-card p,
.rb-galerie-kat__text strong, .rb-galerie-kat__text span {
	text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 2px 14px rgba(0, 0, 0, .45);
}
/* Verlaufsschrift (transparente Füllung): text-shadow würde durchscheinen → Schatten per filter */
.is-style-rb-card .rb-card__num { text-shadow: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55)) drop-shadow(0 2px 10px rgba(0, 0, 0, .35)); }

/* ---------- Plakietka „Neu“ (z. B. Kragarmtreppen – neue Kategorie, noch wenige Projekte) ---------- */
.rb-badge-neu {
	position: absolute; top: 1rem; right: 1rem; z-index: 3;
	display: inline-flex; align-items: center; gap: .35rem;
	margin: 0 !important; padding: .42rem .85rem .4rem;
	border: 1.5px solid #E2B577; border-radius: 999px;
	background: linear-gradient(135deg, #D4A45E 0%, #B98647 55%, #9C6B33 100%);
	box-shadow: 0 6px 16px rgba(20, 14, 8, .35), inset 1px 1px 2px rgba(255, 241, 204, .55), inset -2px -2px 4px rgba(126, 82, 33, .45);
	color: #fff !important; font-family: inherit; font-size: .68rem !important; font-weight: 700; line-height: 1;
	letter-spacing: .16em; text-transform: uppercase; text-shadow: 0 1px 2px rgba(80, 50, 15, .55);
	white-space: nowrap; pointer-events: none;
}
.rb-badge-neu::before { content: "✦"; font-size: .8em; letter-spacing: 0; }
/* Bento-Karte: Badge an der Kartenecke statt im Textblock */
.is-style-rb-card:has(.rb-badge-neu) .wp-block-cover__inner-container { position: static; }
.is-style-rb-card:has(.rb-badge-neu) .wp-block-cover__inner-container > *:not(.rb-badge-neu) { position: relative; z-index: 2; }
.is-style-rb-card .rb-badge-neu { top: 1.1rem; right: 1.1rem; }
/* Hinweis auf der Galerieseite */
.rb-neu-hinweis { display: flex; align-items: center; flex-wrap: nowrap; gap: .7rem; margin-top: 1.2rem !important; font-size: .9rem !important; color: var(--wp--preset--color--bronze, #8C5F2C); }
.rb-neu-hinweis .rb-badge-neu { position: static; }
@media (max-width: 600px) {
	.rb-badge-neu { top: .75rem; right: .75rem; font-size: .6rem !important; padding: .36rem .7rem .34rem; }
}

/* ---------- Rechtstexte (Datenschutz, Impressum) ---------- */
.rb-legal { padding-top: clamp(7.5rem, 11vw, 9.5rem); padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.rb-legal h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-top: .4rem !important; }
.rb-legal h2 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin-top: 2.6rem !important; margin-bottom: .8rem !important; padding-top: 1.6rem; border-top: 1px solid #E3D5C1; }
.rb-legal p, .rb-legal li { font-size: .96rem; line-height: 1.75; }
.rb-legal ul { padding-left: 1.2rem; }
.rb-legal li + li { margin-top: .3rem; }
.rb-legal a { color: var(--wp--preset--color--bronze, #8C5F2C); text-underline-offset: 3px; }
.rb-legal .rb-legal__lead { font-size: 1.05rem; }
.rb-legal .rb-legal__box { padding: 1.3rem 1.5rem; border: 2px solid #E8DBC8; border-radius: 18px; background: var(--wp--preset--color--cream); box-shadow: 8px 8px 18px #D9CAB6, -8px -8px 18px #FFFFFF; }
.rb-legal .rb-legal__stand { margin-top: 2.4rem !important; font-size: .82rem; opacity: .7; }

/* ---------- „Warum FS-Treppen?“: dezentes Stufen-Muster im Hintergrund ---------- */
.rb-strengths { position: relative; isolation: isolate; }
.rb-strengths::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: url("../img/muster-stufen.svg") center / 160px 160px repeat;
	opacity: .4;
	-webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 12%, #000 65%), linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 12%, #000 65%), linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
	mask-composite: intersect;
}
@media (max-width: 781px) { .rb-hero::before { opacity: .7; } }

/* Tablet / schmales Fenster (601–1000 px): Menü als Hamburger wie auf dem Handy – sonst quetschen die
   Menüpunkte den Button „Anfrage senden“ zu einem senkrechten Streifen zusammen */
.rb-header__cta .wp-block-button__link { white-space: nowrap; }
@media (min-width: 600px) and (max-width: 1000px) {
	.rb-nav { flex: 0 0 auto; order: 3; } /* Menü-Button ganz rechts, nicht zwischen Logo und „Anfrage senden“ */
	.rb-header__cta { margin-left: auto !important; }
	.rb-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.rb-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
}

/* ---------- Cookie-Hinweis (Information, unten links – rechts sitzt „Anfrage senden“) ---------- */
.rb-cookie {
	position: fixed;
	left: clamp(1rem, 2.5vw, 2rem);
	bottom: clamp(1rem, 2.5vw, 2rem);
	z-index: 95;
	display: flex;
	align-items: center;
	gap: 1rem;
	max-width: min(31rem, calc(100vw - 2rem));
	padding: 1rem 1rem 1rem 1.3rem;
	border: 2px solid #E8DBC8;
	border-radius: 20px;
	background: rgba(246, 240, 231, .97);
	box-shadow: 0 14px 34px rgba(60, 40, 15, .18), 6px 6px 14px #D9CAB6, -6px -6px 14px rgba(255, 255, 255, .8);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .35s ease, transform .35s ease;
}
.rb-cookie.is-visible { opacity: 1; transform: none; }
.rb-cookie[hidden] { display: none; }
.rb-cookie__text { margin: 0; font-size: .8rem; line-height: 1.5; color: var(--wp--preset--color--text); }
.rb-cookie__text strong { color: var(--wp--preset--color--ink); }
.rb-cookie__text a { color: var(--wp--preset--color--bronze, #8C5F2C); text-underline-offset: 2px; white-space: nowrap; }
.rb-cookie__ok {
	flex: none;
	padding: .65rem 1.1rem;
	border: 1.5px solid #C99A5C;
	border-radius: 999px;
	background: #B98647;
	color: #fff;
	font: 600 .74rem/1 var(--wp--preset--font-family--sans);
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: inset 2px 2px 5px #8F6331, inset -2px -2px 5px #E2B577;
	touch-action: manipulation;
}
@media (hover: hover) { /* hover-only */ .rb-cookie__ok:hover { background: #A6763F; } }
@media (max-width: 600px) {
	.rb-cookie { left: .75rem; right: .75rem; bottom: .75rem; max-width: none; flex-direction: column; align-items: stretch; gap: .7rem; padding: 1rem; }
	.rb-cookie__ok { padding: .75rem; }
}

/* Einwilligungs-Banner (Google Ads) – gleiche Optik wie der Cookie-Hinweis, zwei gleichwertige Buttons */
.rb-consent { flex-direction: column; align-items: stretch; max-width: min(34rem, calc(100vw - 2rem)); }
.rb-consent__title { margin: 0 0 .35rem; font-family: var(--wp--preset--font-family--serif); font-size: 1.15rem; color: var(--wp--preset--color--ink); }
.rb-consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.rb-consent__btn {
	padding: .75rem 1rem;
	border: 1.5px solid #C99A5C;
	border-radius: 999px;
	background: #B98647;
	color: #fff;
	font: 600 .76rem/1 var(--wp--preset--font-family--sans);
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: inset 2px 2px 5px #8F6331, inset -2px -2px 5px #E2B577;
	touch-action: manipulation;
}
@media (hover: hover) { /* hover-only */ .rb-consent__btn:hover { background: #A6763F; } }

/* Hero: <picture> mit Handy-Ausschnitt – das Bild-Styling (absolut, cover, Maske) bleibt am <img> */
.rb-hero__picture { display: contents; }
@media (max-width: 781px) {
	.rb-hero__media img { object-position: 50% 50%; } /* Handy-Ausschnitt ist schon auf die Treppe zentriert */
}

/* ---------- Menü-Button (Handy/Tablet): runder Neumorphismus-Button mit drei goldenen Linien ---------- */
.rb-nav .wp-block-navigation__responsive-container-open,
.rb-nav .wp-block-navigation__responsive-container-close {
	width: 2.9rem;
	height: 2.9rem;
	align-items: center;
	justify-content: center;
	border: 1.5px solid rgba(201, 154, 92, .5);
	border-radius: 50%;
	background: rgba(246, 240, 231, .92);
	color: var(--wp--preset--color--bronze, #8C5F2C);
	box-shadow: 4px 4px 10px rgba(180, 155, 125, .45), -4px -4px 10px rgba(255, 255, 255, .85);
	transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .2s ease;
	touch-action: manipulation;
}
.rb-nav .wp-block-navigation__responsive-container-open:active { transform: scale(.95); }
.rb-nav .wp-block-navigation__responsive-container-open svg { display: none; }
/* nur im Hamburger-Bereich (bis 1000 px) – auf dem Computer bleibt das normale Menü ohne Button */
@media (max-width: 1000px) {
	.rb-nav .wp-block-navigation__responsive-container-open,
	.rb-nav .wp-block-navigation__responsive-container-close { display: flex !important; padding: 0 !important; }
}
@media (min-width: 1001px) {
	.rb-nav .wp-block-navigation__responsive-container-open { display: none !important; }
}
/* Linien als SVG-Maske (scharf, exakt gleiche Abstände auf jedem Display) */
.rb-nav .wp-block-navigation__responsive-container-open::before {
	content: "";
	width: 22px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 16'%3E%3Cg stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 2h20M1 8h20M1 14h20'/%3E%3C/g%3E%3C/svg%3E") center / 22px 16px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 16'%3E%3Cg stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 2h20M1 8h20M1 14h20'/%3E%3C/g%3E%3C/svg%3E") center / 22px 16px no-repeat;
}
.rb-nav .wp-block-navigation__responsive-container-close svg { display: block; width: 20px; height: 20px; margin: 0; }
/* ✕ genau an der Stelle des Menü-Buttons */
.rb-nav .wp-block-navigation__responsive-container-close { position: fixed !important; top: .8rem !important; right: .9rem !important; z-index: 2; }
/* auf dem dunklen Hero der Startseite: dezentes Glas, weiße Linien */
.home .rb-header:not(.is-scrolled) .rb-nav .wp-block-navigation__responsive-container-open {
	background: rgba(255, 250, 243, .12);
	border-color: rgba(255, 250, 243, .38);
	color: #fff;
	box-shadow: none;
}

/* Hero: „Treppenprojekt in 3D“ als zweiter Button neben „Zu unseren Treppen“ –
   gleiche Höhe/Form, aber transparent mit heller Kontur (Ghost-Button), goldenes 3D-Icon + Pfeil */
.rb-hero .is-style-rb-video .wp-block-button__link {
	gap: .65rem;
	padding: calc(.95rem - 2.5px) 1.6rem calc(.95rem - 2.5px) 1.25rem;
	border: 1.5px solid rgba(255, 250, 243, .55);
	border-radius: 6px;
	background: rgba(255, 250, 243, .06);
	color: #fff;
	font-size: .9267rem;
	line-height: 1.2;
	white-space: nowrap;
	transition: border-color .25s ease, background-color .25s ease, color .25s ease;
}
.rb-hero .is-style-rb-video .wp-block-button__link::before {
	width: 1.35rem;
	height: 1.35rem;
	border: 0;
	border-radius: 0;
	background: #D9A86A;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C2A2E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4.2l5.6 3.1v6.4L12 16.8l-5.6-3.1V7.3z'/%3E%3Cpath d='M6.4 7.3L12 10.4l5.6-3.1M12 10.4v6.4'/%3E%3Cpath d='M20.6 12.6c.9.7 1.4 1.5 1.4 2.3 0 2.6-4.5 4.7-10 4.7S2 17.5 2 14.9c0-.8.5-1.6 1.4-2.3'/%3E%3Cpath d='M14.2 17.8l-2.2 1.8 2.2 1.8'/%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='%231C2A2E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4.2l5.6 3.1v6.4L12 16.8l-5.6-3.1V7.3z'/%3E%3Cpath d='M6.4 7.3L12 10.4l5.6-3.1M12 10.4v6.4'/%3E%3Cpath d='M20.6 12.6c.9.7 1.4 1.5 1.4 2.3 0 2.6-4.5 4.7-10 4.7S2 17.5 2 14.9c0-.8.5-1.6 1.4-2.3'/%3E%3Cpath d='M14.2 17.8l-2.2 1.8 2.2 1.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rb-hero .is-style-rb-video .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 1.05em;
	height: 1.05em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 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='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .25s var(--rb-ease);
}
@media (hover: hover) { /* hover-only */
	.rb-hero .is-style-rb-video .wp-block-button__link:hover { border-color: #D9A86A; background: rgba(217, 168, 106, .14); color: #fff; }
	.rb-hero .is-style-rb-video .wp-block-button__link:hover::before { transform: none; background-color: #E6BC76; }
	.rb-hero .is-style-rb-video .wp-block-button__link:hover::after { transform: translateX(4px); }
}

/* Footer: E-Mail-Adresse hervorgehoben (goldene Pill mit Briefumschlag) */
.rb-footer__mail { margin-top: .9rem !important; }
.rb-footer__mail a {
	display: inline-flex !important;
	align-items: center;
	gap: .55rem;
	padding: 0;
	white-space: nowrap;
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: .01em;
	color: #E6BC76 !important;
	text-decoration: none !important;
	border-bottom: 1px solid rgba(230, 188, 118, .35);
	padding-bottom: .2rem;
	transition: color .25s ease, border-color .25s ease;
}
.rb-footer__mail a::before {
	content: "";
	flex: none;
	width: 1.05rem;
	height: 1.05rem;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3.5 6.5 12 13l8.5-6.5'/%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='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3.5 6.5 12 13l8.5-6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rb-footer__mail a::after { display: none !important; }
@media (hover: hover) { /* hover-only */ .rb-footer__mail a:hover { color: #FFF1CC !important; border-color: #FFF1CC; } }
/* Kontakt-Spalte im Footer breit genug für die hervorgehobene E-Mail (sonst ragt sie bei ~1000 px heraus) */
@media (min-width: 782px) {
	.rb-footer__main > .wp-block-column:last-child { flex: 0 0 auto !important; min-width: 13.5rem; }
}
@media (min-width: 782px) and (max-width: 1150px) {
	.rb-footer__main > .wp-block-column:first-child { flex-basis: 27% !important; }
}

/* „Anfrage senden“ als erster Punkt im ausgeklappten Handy-Menü (sonst ausgeblendet) */
.rb-nav .rb-nav__cta { display: none !important; }
.rb-nav .is-menu-open .rb-nav__cta { display: flex !important; margin-bottom: .8rem; }
.rb-nav .is-menu-open .rb-nav__cta > .wp-block-navigation-item__content {
	display: inline-flex !important;
	align-items: center;
	gap: .7rem;
	padding: .95rem 1.9rem !important;
	border: 2px solid #C99A5C;
	border-radius: 999px;
	background: #B98647;
	color: #fff !important;
	font-family: var(--wp--preset--font-family--sans) !important;
	font-size: .85rem !important;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	box-shadow: inset 3px 3px 8px #8F6331, inset -3px -3px 8px #E2B577, 0 10px 24px rgba(120, 80, 30, .25);
}
.rb-nav .is-menu-open .rb-nav__cta > .wp-block-navigation-item__content::after {
	content: "";
	display: block !important;
	position: static !important;
	width: 1em;
	height: 1em;
	transform: none !important;
	background: currentColor !important;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 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='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Treppengalerie-Kacheln: zwei Buttons wie auf der Startseite ---------- */
.rb-galerie-kat__link { position: absolute; inset: 0; color: inherit; text-decoration: none; }
.rb-galerie-kat::after { pointer-events: none; }
.rb-galerie-kat .rb-galerie-kat__text { bottom: 7.4rem; }
.rb-galerie-kat__actions {
	position: absolute;
	left: 1.4rem;
	bottom: 1.2rem;
	z-index: 2;
	display: inline-grid;
	grid-template-columns: 1fr;
	gap: .5rem;
	width: max-content;
}
.rb-galerie-kat__actions .rb-galerie-kat__btn { position: static; justify-content: center; }
.rb-galerie-kat__btn::after {
	content: "";
	flex: none;
	width: 1em;
	height: 1em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 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='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .25s var(--rb-ease);
}
.rb-galerie-kat__btn--anfrage {
	border-color: #C99A5C;
	background: #B98647;
	color: #fff;
	box-shadow: inset 3px 3px 8px #8F6331, inset -3px -3px 8px #E2B577;
}
@media (hover: hover) { /* hover-only */
	/* Hover nur am jeweiligen Button, nicht an der ganzen Kachel */
	.rb-galerie-kat:hover .rb-galerie-kat__btn { background: rgba(255, 250, 243, .12); border-color: rgba(255, 250, 243, .75); color: #fff; }
	.rb-galerie-kat:hover .rb-galerie-kat__btn--anfrage { background: #B98647; border-color: #C99A5C; }
	.rb-galerie-kat .rb-galerie-kat__btn:hover { background: var(--wp--preset--color--cream); border-color: var(--wp--preset--color--cream); color: var(--wp--preset--color--ink); }
	.rb-galerie-kat .rb-galerie-kat__btn--anfrage:hover { background: #A6763F; border-color: #C99A5C; color: #fff; box-shadow: inset 2px 2px 5px #8F6331, inset -2px -2px 5px #E2B577, 0 0 0 3px rgba(230, 188, 118, .35); }
	.rb-galerie-kat__btn:hover::after { transform: translateX(3px); }
}
/* Handy: Kacheln etwas höher – Platz für Titel + zwei Buttons */
@media (max-width: 600px) {
	.rb-galerie-kat, .rb-galerie-kat:first-child { aspect-ratio: 4 / 3.6; }
}

/* Hero: „Kostenloses Aufmaß“ im Stil von „Anfrage senden“ (Gold-Neumorphismus + Lichtreflex), beide Hero-Buttons als Pill */
.rb-hero .is-style-rb-arrow .wp-block-button__link {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	border-radius: 999px;
	padding: calc(.95rem - 2px) 1.9rem;
	border: 2px solid #C99A5C;
	background-color: #B98647;
	color: #fff;
	font-weight: 500;
	letter-spacing: .02em;
	box-shadow: inset 4px 4px 10px #8F6331, inset -4px -4px 10px #E2B577;
	transition: box-shadow .2s ease-in-out;
}
.rb-hero .is-style-rb-arrow .wp-block-button__link::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -60%;
	width: 45%;
	z-index: -1;
	background: linear-gradient(100deg, transparent 0%, rgba(255, 248, 225, .55) 50%, transparent 100%);
	transform: skewX(-20deg);
	animation: rb-cta-shine 4.5s ease-in-out infinite;
	pointer-events: none;
}
@media (hover: hover) { /* hover-only */
	.rb-hero .is-style-rb-arrow .wp-block-button__link:hover {
		color: #fff;
		background-color: #B98647;
		box-shadow: inset 2px 2px 5px #8F6331, inset -2px -2px 5px #E2B577, 2px 2px 5px #8F6331, -2px -2px 5px #E2B577;
	}
}
.rb-hero .is-style-rb-video .wp-block-button__link { border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .rb-hero .is-style-rb-arrow .wp-block-button__link::before { animation: none; display: none; } }

/* Produktion: zwei Hallenfotos unter „Technik, die man spürt.“ */
.rb-prod-hallen { gap: clamp(1rem, 2.5vw, 2rem) !important; margin-top: clamp(1.8rem, 3vw, 2.6rem) !important; }
.rb-prod-hallen .wp-block-image { margin: 0; }
.rb-prod-hallen img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border: 3px solid #E8DBC8;
	border-radius: 20px;
	box-shadow: 12px 12px 26px #D3C3AE, -12px -12px 26px #FFFFFF;
}
.rb-prod-hallen figcaption {
	margin-top: .9rem;
	font-size: .78rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-align: center;
	color: var(--wp--preset--color--bronze);
}

/* Cookie-Hinweis / Einwilligungs-Banner: unten mittig statt links */
@media (min-width: 601px) {
	.rb-cookie {
		left: 50%;
		right: auto;
		transform: translate(-50%, 12px);
	}
	.rb-cookie.is-visible { transform: translate(-50%, 0); }
}

/* ---------- Button-Text optisch exakt mittig ----------
   Jost-Versalien sitzen im Zeilenkasten etwas über der Mitte. Der Text (nicht die Pfeile/Icons) wird um einen
   kleinen, zur Schriftgröße proportionalen Betrag nach unten gesetzt. Werte per Messung abgeglichen. */
.rb-btn-t,
.rb-form__submit > span { position: relative; top: var(--rb-t, .07em); }
.is-style-rb-link .rb-btn-t { top: 0; }                 /* Textlink mit Unterstrich – bewusst ohne Ausgleich */
/* Buttons ohne Innen-Span: Ausgleich über Innenabstand */
.rb-form .rb-upload__btn { padding: calc(.6rem + .07em) 1.1rem calc(.6rem - .07em); }
.rb-config .rb-upload__btn { padding: calc(.65rem + .07em) 1.2rem calc(.65rem - .07em); }
.rb-cookie__ok { padding-top: calc(.65rem + .07em); padding-bottom: calc(.65rem - .07em); }
.rb-consent__btn { padding-top: calc(.75rem + .07em); padding-bottom: calc(.75rem - .07em); }
/* Feinabgleich je Button-Typ (gemessen: Abstand Versal-Oberkante ↔ Grundlinie zum Rand gleich) */
.rb-header__cta .rb-btn-t { --rb-t: .035em; }
@media (max-width: 600px) { .rb-header__cta .rb-btn-t { --rb-t: .075em; } }
.is-style-rb-arrow .rb-btn-t { --rb-t: .032em; }
.is-style-rb-video .rb-btn-t { --rb-t: .08em; }
.is-style-rb-outline .rb-btn-t { --rb-t: .054em; }
.rb-cat-intro__content .is-style-rb-anfrage .rb-btn-t { --rb-t: .043em; }
.rb-galerie-kat__btn .rb-btn-t { --rb-t: .046em; }
.rb-form__submit > span,
.rb-floating-cta .rb-btn-t { --rb-t: .089em; }
@media (max-width: 600px) { .rb-badge-neu { padding-top: calc(.36rem + 1px); padding-bottom: calc(.34rem - 1px); } }

/* WhatsApp-Chat-Widget (unten rechts; weicht dem schwebenden „Anfrage senden“ aus) */
.rb-wa {
	--wa-green: #25D366;
	position: fixed;
	right: clamp(1rem, 2.5vw, 2rem);
	bottom: clamp(1rem, 2.5vw, 2rem);
	z-index: 89;
	font-family: var(--wp--preset--font-family--sans);
	transition: bottom .35s var(--rb-ease);
}
body:has(.rb-floating-cta.is-visible) .rb-wa { bottom: calc(clamp(1rem, 2.5vw, 2rem) + 4.6rem); }
.rb-wa__btn {
	position: relative;
	display: grid;
	place-items: center;
	width: 62px;
	height: 62px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: #fff;
	background: radial-gradient(circle at 30% 25%, #4AE17F, var(--wa-green) 45%, #1AA851);
	box-shadow: 0 14px 30px -10px rgba(18, 140, 68, .75), 0 0 0 4px rgba(255, 255, 255, .9);
	cursor: pointer;
	transition: transform .25s var(--rb-ease), box-shadow .25s var(--rb-ease);
}
/* grüner „Puls“-Ring, der sich vom Button ausbreitet */
.rb-wa__btn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: 50%;
	background: var(--wa-green);
	animation: rb-wa-pulse 2.6s var(--rb-ease) infinite;
}
.rb-wa.is-open .rb-wa__btn::before { animation: none; opacity: 0; }
@keyframes rb-wa-pulse { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
@media (hover: hover) { .rb-wa__btn:hover { transform: scale(1.06); } }
.rb-wa__btn:focus-visible { outline: 3px solid #128C7E; outline-offset: 4px; }
.rb-wa__ico { grid-area: 1 / 1; display: grid; place-items: center; transition: opacity .25s var(--rb-ease), transform .3s var(--rb-ease); }
.rb-wa__ico svg { width: 32px; height: 32px; fill: currentColor; }
.rb-wa__ico--close { opacity: 0; transform: rotate(-90deg); }
/* X als SVG statt „×“-Zeichen – Schriftzeichen sitzen je nach Font nicht mittig */
.rb-x { display: block; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.rb-wa__ico .rb-x { width: 24px; height: 24px; fill: none; }
.rb-wa__close .rb-x { width: 16px; height: 16px; margin: auto; }
.rb-wa__teaser-x .rb-x { width: 10px; height: 10px; margin: auto; stroke-width: 3; }
.rb-wa.is-open .rb-wa__ico--logo { opacity: 0; transform: rotate(90deg); }
.rb-wa.is-open .rb-wa__ico--close { opacity: 1; transform: none; }
.rb-wa__dot {
	position: absolute;
	top: -2px;
	right: -2px;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #E5484D;
	color: #fff;
	font-size: .72rem;
	font-weight: 600;
	box-shadow: 0 0 0 2px #fff;
	opacity: 0;
	transform: scale(.4);
	transition: opacity .25s var(--rb-ease), transform .3s var(--rb-ease);
}
/* rote „1“ erscheint zusammen mit der Hinweis-Blase */
.rb-wa.has-dot .rb-wa__dot { opacity: 1; transform: none; animation: rb-wa-dot 2.4s ease-in-out .4s 3; }
@keyframes rb-wa-dot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* Chatfenster */
.rb-wa__card {
	position: absolute;
	right: 0;
	bottom: calc(100% + 14px);
	width: min(340px, calc(100vw - 2rem));
	overflow: hidden;
	border-radius: 22px;
	background: #fff;
	color: #17110A;
	box-shadow: 0 30px 60px -20px rgba(20, 14, 6, .45), 0 0 0 1px rgba(0, 0, 0, .05);
	transform-origin: bottom right;
	animation: rb-wa-in .22s var(--rb-ease);
}
.rb-wa__card[hidden], .rb-wa__teaser[hidden] { display: none; }
@keyframes rb-wa-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.rb-wa__head {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: 14px 14px 14px 16px;
	background: linear-gradient(#2B2A2E, #141316);
	color: #fff;
}
.rb-wa__avatar {
	flex: none;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #0B0806;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .12);
}
.rb-wa__avatar img { width: 34px; height: auto; display: block; }
.rb-wa__who { display: grid; line-height: 1.25; min-width: 0; }
.rb-wa__who strong { font-size: 1rem; font-weight: 600; }
.rb-wa__who small { font-size: .78rem; opacity: .75; }
.rb-wa__close {
	margin-left: auto;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
@media (hover: hover) { .rb-wa__close:hover { background: rgba(255, 255, 255, .2); } }
.rb-wa__body {
	padding: 18px 16px 8px;
	background-color: #EFE7DC;
	background-image: radial-gradient(rgba(150, 120, 80, .08) 1px, transparent 1px);
	background-size: 14px 14px;
}
.rb-wa__bubble {
	position: relative;
	margin: 0;
	padding: 12px 14px;
	border-radius: 4px 16px 16px;
	background: #fff;
	color: #1C1610;
	font-size: .92rem;
	line-height: 1.5;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.rb-wa__hint { margin: .6rem 0 .2rem; font-size: .74rem; color: #7A6A58; text-align: center; }
.rb-wa__start {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	margin: 12px 16px 16px;
	padding: .8rem 1rem;
	border-radius: 999px;
	background: var(--wa-green);
	color: #fff;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	transition: background .2s, transform .2s;
}
.rb-wa__start svg { width: 22px; height: 22px; fill: currentColor; }
@media (hover: hover) { .rb-wa__start:hover { background: #1EBE5A; transform: translateY(-1px); } }

/* Hinweis-Blase */
.rb-wa__teaser {
	position: absolute;
	right: 0;
	bottom: calc(100% + 14px);
	display: flex;
	align-items: flex-start;
	gap: .3rem;
	width: max-content;
	max-width: min(280px, calc(100vw - 2rem));
	padding: 12px 10px 12px 14px;
	border-radius: 16px 16px 4px 16px;
	background: #fff;
	color: #1C1610;
	box-shadow: 0 18px 40px -16px rgba(20, 14, 6, .45), 0 0 0 1px rgba(0, 0, 0, .05);
	animation: rb-wa-in .3s var(--rb-ease);
}
.rb-wa__teaser-text { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: .88rem; line-height: 1.45; text-align: left; cursor: pointer; }
.rb-wa__teaser-text strong { display: block; font-size: .95rem; }
.rb-wa__teaser-x { flex: none; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: #F1ECE4; color: #5A4A3A; font-size: 16px; line-height: 1; cursor: pointer; }

@media (max-width: 600px) {
	.rb-wa, body:has(.rb-floating-cta.is-visible) .rb-wa { right: 1rem; bottom: 1rem; }
	.rb-wa__btn { width: 56px; height: 56px; }
	.rb-wa__ico svg { width: 29px; height: 29px; }
}
/* nicht über offenem Handy-Menü oder Popups */
.has-modal-open .rb-wa, html:has(dialog[open]) .rb-wa { display: none; }
@media (prefers-reduced-motion: reduce) { .rb-wa__card, .rb-wa__teaser, .rb-wa__dot, .rb-wa__btn::before { animation: none !important; } }

/* 404 – duża cyfra, kafelki z najważniejszymi miejscami */
.rb-404 { position: relative; overflow: hidden; }
.rb-404__num { position: absolute; right: clamp(-2rem, 2vw, 4rem); top: 50%; transform: translateY(-50%); margin: 0; font-family: var(--wp--preset--font-family--serif); font-size: clamp(9rem, 28vw, 24rem); line-height: 1; letter-spacing: -.04em; background: var(--rb-gold-text, linear-gradient(100deg,#7E5221,#D4A45E,#8C5F2C)); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .16; pointer-events: none; user-select: none; }
.rb-404 > *:not(.rb-404__num) { position: relative; }
.rb-404 .wp-block-buttons { gap: .8rem; }
.rb-404__links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2rem, 4vw, 3.2rem); max-width: 1100px; }
.rb-404__link { display: flex; flex-direction: column; gap: .3rem; padding: 1.15rem 1.25rem; border-radius: 14px; background: var(--wp--preset--color--paper, #FBF7F1); box-shadow: 6px 6px 16px rgba(176,150,118,.28), -6px -6px 16px rgba(255,255,255,.85); text-decoration: none; color: var(--wp--preset--color--text); transition: transform .25s ease, box-shadow .25s ease; }
.rb-404__link strong { font-family: var(--wp--preset--font-family--serif); font-weight: 400; font-size: 1.15rem; color: var(--wp--preset--color--ink); }
.rb-404__link strong::after { content: " →"; color: var(--wp--preset--color--bronze); }
.rb-404__link span { font-size: .9rem; color: #7d7268; }
@media (hover: hover) { .rb-404__link:hover { transform: translateY(-3px); box-shadow: 8px 10px 22px rgba(176,150,118,.34), -6px -6px 16px rgba(255,255,255,.9); } }
.rb-404__hint { margin-top: 1.6rem !important; font-size: .92rem; color: #7d7268; }
@media (max-width: 900px) { .rb-404__links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .rb-404__links { grid-template-columns: 1fr; } .rb-404__num { opacity: .1; } }

/* Sechs Kategorien: Startseite – 6 gleiche Karten (3 × 2, ohne große Karte); Galerie – 2 Reihen à 3 */
.rb-bento:has(> :nth-child(6)) { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(260px, 23vw, 340px)); }
.rb-bento:has(> :nth-child(6)) > .wp-block-cover:first-child { grid-row: auto; padding: 1.4rem 1.6rem 1.6rem; }
.rb-bento:has(> :nth-child(6)) > .wp-block-cover.is-style-rb-card:first-child .rb-card__num { font-size: clamp(2.1rem, 3vw, 2.8rem); }
.rb-bento:has(> :nth-child(6)) > .wp-block-cover:first-child h3 { font-size: clamp(1.35rem, 1.9vw, 1.75rem); }
.rb-bento:has(> :nth-child(6)) > .wp-block-cover:first-child p:not(.rb-card__num) { font-size: .85rem; }
.rb-bento:has(> :nth-child(6)) > .wp-block-cover:first-child::after { width: 2.9rem; height: 2.9rem; right: 1.4rem; bottom: 1.6rem; }
.rb-galerie-kats:has(> :nth-child(6)) > .rb-galerie-kat { grid-column: span 2; aspect-ratio: 4 / 3; }
@media (max-width: 1100px) {
	.rb-bento:has(> :nth-child(6)) { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, clamp(240px, 32vw, 300px)); }
	.rb-bento:has(> :nth-child(6)) > .wp-block-cover:first-child { grid-column: auto; }
}
@media (max-width: 900px) {
	.rb-bento:has(> :nth-child(6)) { grid-template-columns: 1fr; grid-template-rows: none; }
	.rb-galerie-kats:has(> :nth-child(6)) > .rb-galerie-kat { grid-column: span 1; aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
	.rb-galerie-kats:has(> :nth-child(6)) > .rb-galerie-kat { grid-column: auto; aspect-ratio: 16 / 10; }
}
