/* =========================================================
   Royal 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; } /* 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(../icons/arrow.svg) center / contain no-repeat;
	mask: url(../icons/arrow.svg) center / contain no-repeat;
	transition: transform .25s var(--rb-ease);
}
.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;
}
.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;
}
.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(../icons/3d-drehen.svg) 50% 50% / 1.45rem no-repeat;
	transition: background-color .25s var(--rb-ease), transform .25s var(--rb-ease);
}
.is-style-rb-video .wp-block-button__link:hover {
	background: transparent;
	color: var(--wp--preset--color--bronze);
}
.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; }
.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(../icons/arrow.svg) center / contain no-repeat;
	mask: url(../icons/arrow.svg) 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;
}
.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 „Royal 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__img { display: block; width: auto; height: 58px; 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: 44px; }
.rb-footer .rb-logo__img { height: 66px; }

/* ---------- 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: background-color .35s var(--rb-ease), box-shadow .35s var(--rb-ease), padding .35s var(--rb-ease), backdrop-filter .35s var(--rb-ease);
}
.rb-header.is-scrolled {
	padding-top: .55rem;
	padding-bottom: .55rem;
	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);
}
.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);
}
.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);
}
.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 */
	filter:
		drop-shadow(0 4px 3px rgba(30, 18, 8, .55))
		drop-shadow(0 18px 18px rgba(30, 18, 8, .45))
		drop-shadow(0 48px 56px rgba(30, 18, 8, .38));
}
.rb-hero__media img,
.rb-hero__media::after {
	-webkit-mask-image: url(../img/mask-hero-full.svg);
	-webkit-mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-image: url(../img/mask-hero-full.svg);
	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);
}
.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.9rem, 2.7vw, 2.9rem);
	line-height: 1.05;
	color: #F4DDB8;
	transform: rotate(-11deg);
	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));
}

/* 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); }
.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);
}
.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, 0) 42%, rgba(20, 14, 8, .82) 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(../icons/arrow-white.svg) center / 1rem no-repeat;
	transition: transform .3s var(--rb-ease), background-color .3s var(--rb-ease);
	pointer-events: none;
}
.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);
}
.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); }
.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);
	--rb-contact-bg:
		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%),
		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); }
.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(../img/mask-contact-top.svg) center top / 100% var(--rb-wave-h) no-repeat,
		linear-gradient(#000, #000) 0 var(--rb-wave-h) / 100% calc(100% - var(--rb-wave-h) + 1px) no-repeat;
	mask:
		url(../img/mask-contact-top.svg) center top / 100% var(--rb-wave-h) no-repeat,
		linear-gradient(#000, #000) 0 var(--rb-wave-h) / 100% calc(100% - var(--rb-wave-h) + 1px) 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(../img/shadow-contact-top-blur.svg) 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:
			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)),
			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);
}
.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(../icons/arrow.svg) center / contain no-repeat;
	mask: url(../icons/arrow.svg) center / contain no-repeat;
}
.rb-slider-nav button[data-dir="prev"]::before { transform: rotate(180deg); }
.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; }
.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;
}
.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;
}
.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: 46px; }
	.rb-header.is-scrolled .rb-logo__img { height: 38px; }
	.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) {
	.rb-header__cta { display: none !important; }
	/* WP-Adminleiste scrollt auf Smartphones mit – Header dann bis ganz oben */
	.admin-bar .rb-header.is-scrolled { top: 0; }
	.rb-floating-cta {
		left: 1rem;
		right: 1rem;
		bottom: 1rem;
		justify-content: center;
		padding: 1.05rem 1.5rem;
		font-size: 1rem;
	}
	.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;
}
.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);
	pointer-events: none;
	white-space: nowrap;
	transition: opacity .4s ease;
}
.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) 0 1.6rem !important;
	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) 45%, rgba(20, 14, 8, .72) 100%); }
.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;
}
.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 {
	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;
}
.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;
}
