/*
 * Reinix – Designsystem „Die Kante“
 * Eine Linie als Markenzeichen, Archivo mit Breitenachse, Navy/Anthrazit/Silber/Weiß, echte Fotos.
 * Aufbau: Tokens · Grundlagen · Typografie · Buttons · Kopf · Abschnitte · Bausteine · Seiten · Formular · Fuß · Breakpoints · Bewegung
 */

/* ---------- Tokens ---------- */
:root {
	--nacht: #07121F;
	--navy: #0B1F36;
	--tiefblau: #143A63;
	--grau: #4A535E;
	--grau-hell: #6B7682;
	--silber: #A9B3BE;
	--linie: #D5DBE1;
	--nebel: #EEF1F4;
	--papier: #F7F8FA;
	--weiss: #FFFFFF;
	--kante: #1F6FD1;
	--kante-hell: #8FB8E6;
	--fehler: #B42318;
	--erfolg: #1E6B3A;

	--rand: clamp(20px, 4vw, 64px);
	--gap: clamp(16px, 2vw, 32px);
	--max: 1440px;
	--header-h: 72px;
	--sec: clamp(80px, 11vw, 160px);
	--ease: cubic-bezier(0.22, 1, 0.36, 1);

	--display: clamp(3rem, 0.9rem + 7vw, 7.5rem);
	--display-s: clamp(2.5rem, 1rem + 4.4vw, 5.5rem);
	--h2: clamp(2.25rem, 1.3rem + 3.2vw, 4.5rem);
	--h3: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
	--lead: clamp(1.125rem, 1rem + .45vw, 1.375rem);

	--i-pfeil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M220.24,132.24l-72,72a6,6,0,0,1-8.48-8.48L201.51,134H40a6,6,0,0,1,0-12H201.51L139.76,60.24a6,6,0,0,1,8.48-8.48l72,72A6,6,0,0,1,220.24,132.24Z'/%3E%3C/svg%3E");
	--i-extern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M198,64V168a6,6,0,0,1-12,0V78.48L68.24,196.24a6,6,0,0,1-8.48-8.48L177.52,70H88a6,6,0,0,1,0-12H192A6,6,0,0,1,198,64Z'/%3E%3C/svg%3E");
	--i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z'/%3E%3C/svg%3E");
}

/* ---------- Grundlagen (Spezifität 0,1,0: schlägt globale WP-Stile, Bausteine weiter unten schlagen diese) ---------- */
:root :where(*, *::before, *::after) { box-sizing: border-box; }
:root :where(body) { margin: 0; background: var(--papier); color: var(--nacht); font-family: Archivo, Arial, sans-serif; font-size: 1.125rem; line-height: 1.6; font-stretch: 100%; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:root :where(img) { max-width: 100%; height: auto; }
:root :where(h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul) { margin: 0; }
:root :where(h1, h2, h3, h4) { font-stretch: 108%; letter-spacing: -0.015em; text-wrap: balance; }
:root :where(p, li) { text-wrap: pretty; }
:root :where(a) { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:root :where(a:hover) { color: inherit; }
:root :where(.wp-site-blocks) { padding: 0; }
:root :where(.wp-site-blocks) > * { margin-block: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--kante); outline-offset: 3px; border-radius: 2px; }
.rx-icon { width: 1.125em; height: 1.125em; flex: none; }
.rx-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rx-skip { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 12px 16px; background: var(--nacht); color: var(--weiss); border-radius: 999px; transform: translateY(-200%); transition: transform .3s var(--ease); text-decoration: none; }
.rx-skip:focus { transform: none; color: var(--weiss); }

.rx-main { padding-top: var(--header-h); }
.rx-wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--rand); }
.rx-sec { padding-block: var(--sec); position: relative; }
.rx-sec--weiss { background: var(--weiss); }
.rx-sec--flush { padding-block: 0; }
.rx-sec--tight { padding-block: clamp(48px, 6vw, 80px); }
.rx-sec.is-style-nebel, .is-style-nebel { background: var(--nebel); }
.rx-sec.is-style-dunkel, .is-style-dunkel { background: var(--nacht); color: var(--weiss); }
.rx-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

/* ---------- Typografie ---------- */
.rx-display { font-size: var(--display); line-height: .92; font-weight: 600; font-stretch: 118%; letter-spacing: -0.035em; text-wrap: balance; }
.rx-sec :where(h2) { font-size: var(--h2); line-height: 1; font-weight: 600; font-stretch: 112%; letter-spacing: -0.03em; }
.rx-sec :where(h3) { font-size: 1.5rem; line-height: 1.25; font-weight: 600; font-stretch: 108%; letter-spacing: -0.01em; }
.rx-kicker { font-size: .875rem; line-height: 1.4; font-weight: 500; letter-spacing: .01em; color: var(--grau); }
.rx-kicker a { color: inherit; }
.rx-lead { font-size: var(--lead); line-height: 1.45; color: var(--grau); }
.rx-small { font-size: .875rem; line-height: 1.5; color: var(--grau); }
.rx-text { color: var(--grau); }
.rx-caption, .wp-block-image figcaption, .wp-element-caption { margin: 12px 0 0; font-size: .875rem; line-height: 1.4; color: var(--grau); text-align: left; }
.is-style-dunkel .rx-lead, .is-style-dunkel .rx-text, .is-style-dunkel .rx-small { color: rgba(255, 255, 255, .72); }

/* Zeilenweise Einblendung (Headlines mit <br>) */
.rx-line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.rx-line > span { display: inline-block; }
.js .rx-lines.is-split .rx-line > span { transform: translateY(105%); transition: transform 1s var(--ease); }
.js .rx-lines.is-split .rx-line + .rx-line > span { transition-delay: .1s; }
.js .rx-lines.is-split.is-in .rx-line > span { transform: none; }

/* Leitsatz: Wort für Wort */
.rx-w { transition: opacity .6s var(--ease); }
.js .is-style-leitsatz.is-split .rx-w { opacity: .2; }
.js .is-style-leitsatz.is-split .rx-w.is-lit { opacity: 1; }
.is-style-leitsatz { font-size: clamp(1.875rem, 1.1rem + 2.4vw, 3.5rem); line-height: 1.12; font-weight: 500; font-stretch: 108%; letter-spacing: -0.022em; text-wrap: balance; }

/* ---------- Buttons und Links ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.rx-btn, :root :where(.wp-block-button__link) { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; background: var(--nacht); color: var(--weiss); font-family: inherit; font-size: 1rem; line-height: 1.5; font-weight: 600; font-stretch: 104%; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease); }
.rx-btn:hover, :root :where(.wp-block-button__link:hover) { background: var(--tiefblau); color: var(--weiss); }
.rx-btn:active, .wp-block-button__link:active { transform: scale(.98); }
.wp-block-button__link::after { content: ""; width: 1.125em; height: 1.125em; background: currentColor; -webkit-mask: var(--i-pfeil) center / contain no-repeat; mask: var(--i-pfeil) center / contain no-repeat; transition: transform .5s var(--ease); }
.wp-block-button__link:hover::after { transform: translateX(3px); }
.wp-block-button__link[href^="tel:"]::after { display: none; }
.wp-block-button__link[target="_blank"]::after { -webkit-mask-image: var(--i-extern); mask-image: var(--i-extern); }
.wp-block-button__link[target="_blank"]:hover::after { transform: translate(2px, -2px); }
.rx-btn svg { transition: transform .5s var(--ease); }
.rx-btn:hover svg:last-child { transform: translateX(3px); }
.rx-btn--dark { background: var(--nacht); color: var(--weiss); }
.rx-btn--ghost, .is-style-linie .wp-block-button__link { background: transparent; border-color: rgba(7, 18, 31, .2); color: var(--nacht); }
.rx-btn--ghost:hover, .is-style-linie .wp-block-button__link:hover { background: transparent; border-color: var(--nacht); color: var(--nacht); }
.rx-btn--light, .is-style-hell .wp-block-button__link { background: var(--weiss); color: var(--nacht); }
.rx-btn--light:hover, .is-style-hell .wp-block-button__link:hover { background: var(--nebel); color: var(--nacht); }
.is-style-dunkel .is-style-linie .wp-block-button__link { border-color: rgba(255, 255, 255, .3); color: var(--weiss); }
.is-style-dunkel .is-style-linie .wp-block-button__link:hover { border-color: var(--weiss); }
.rx-btn--sm { min-height: 40px; padding: 0 18px; font-size: .875rem; }
.rx-btn--lg { min-height: 56px; padding: 0 28px; }
.rx-btn:disabled { opacity: .6; cursor: progress; }

.rx-link, .rx-sec p > a.rx-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-stretch: 104%; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 4px; transition: background-size .5s var(--ease); }
.rx-link:hover { background-size: 0 1px; background-position: 100% 100%; }
a.rx-link::after { content: ""; width: 1.125em; height: 1.125em; background: currentColor; -webkit-mask: var(--i-pfeil) center / contain no-repeat; mask: var(--i-pfeil) center / contain no-repeat; transition: transform .5s var(--ease); }
a.rx-link:has(svg)::after { display: none; }
.rx-link:hover::after, .rx-link:hover svg { transform: translateX(4px); }
.rx-link svg { transition: transform .5s var(--ease); }

/* ---------- Kopfbereich ---------- */
.rx-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: transform .5s var(--ease); }
.rx-header::before { content: ""; position: absolute; inset: 0; background: rgba(247, 248, 250, .86); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); box-shadow: 0 1px 0 var(--linie); opacity: 0; transition: opacity .3s var(--ease); }
.rx-header.is-scrolled::before, .rx-header.is-mega-open::before { opacity: 1; }
.rx-header.is-hidden { transform: translateY(-100%); }
.rx-header__bar { position: relative; display: flex; align-items: center; gap: clamp(16px, 2.5vw, 40px); height: var(--header-h); max-width: var(--max); margin-inline: auto; padding-inline: var(--rand); }
.rx-brand { display: block; flex: none; }
.rx-brand img { display: block; height: 44px; width: auto; }
.rx-nav { display: flex; gap: 4px; }
.rx-nav__link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; background: none; font: inherit; font-size: 1rem; line-height: 1.5; font-weight: 500; color: var(--nacht); text-decoration: none; cursor: pointer; }
.rx-nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--nacht); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.rx-nav__link:hover::after, .rx-nav__link[aria-expanded="true"]::after, .rx-nav__link[aria-current]::after { transform: scaleX(1); }
.rx-nav__caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .5s var(--ease); }
[aria-expanded="true"] > .rx-nav__caret { transform: translateY(1px) rotate(225deg); }
.rx-header__actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.rx-header__tel { display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 500; text-decoration: none; font-variant-numeric: tabular-nums; }
.rx-header__tel:hover span { text-decoration: underline; text-underline-offset: 4px; }
.rx-menu-toggle { display: none; align-items: center; gap: 12px; height: 44px; padding: 0 4px 0 16px; border: 1px solid rgba(7, 18, 31, .2); border-radius: 999px; background: none; font: inherit; font-size: .875rem; font-weight: 600; color: var(--nacht); cursor: pointer; }
.rx-menu-toggle__icon { position: relative; width: 36px; height: 36px; border-radius: 999px; background: var(--nacht); }
.rx-menu-toggle__icon i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--weiss); transition: transform .5s var(--ease); }
.rx-menu-toggle__icon i:first-child { top: 14px; }
.rx-menu-toggle__icon i:last-child { top: 20px; }
.rx-menu-toggle[aria-expanded="true"] i:first-child { transform: translateY(3px) rotate(45deg); }
.rx-menu-toggle[aria-expanded="true"] i:last-child { transform: translateY(-3px) rotate(-45deg); }

.rx-mega { position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--papier); box-shadow: 0 1px 0 var(--linie); animation: rx-drop .5s var(--ease); }
@keyframes rx-drop { from { opacity: 0; transform: translateY(-8px); } }
.rx-mega__inner { display: grid; grid-template-columns: 4fr 5fr 3fr; gap: var(--gap); max-width: var(--max); margin-inline: auto; padding: 32px var(--rand) 48px; }
.rx-mega__title { font-size: .875rem; font-weight: 500; color: var(--grau); padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--linie); }
.rx-mega ul { list-style: none; padding: 0; }
.rx-mega__col--gebaeude ul { columns: 2; column-gap: var(--gap); }
.rx-mega li { break-inside: avoid; }
.rx-mega li a { display: block; padding: 10px 0; text-decoration: none; }
.rx-mega li a span { display: block; font-size: 1.125rem; line-height: 1.4; font-weight: 600; font-stretch: 106%; transition: transform .5s var(--ease); }
.rx-mega li a small { display: block; font-size: .875rem; line-height: 1.4; color: var(--grau); }
.rx-mega li a:hover span { transform: translateX(4px); }
.rx-mega__aside { padding: 24px; background: var(--nebel); align-self: start; display: grid; gap: 12px; justify-items: start; font-size: 1rem; }
.rx-mega__lead { font-size: 1.25rem; line-height: 1.3; font-weight: 600; font-stretch: 108%; }

.rx-menu { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; gap: 32px; padding: calc(var(--header-h) + 24px) var(--rand) 32px; background: rgba(247, 248, 250, .97); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); overflow-y: auto; }
.rx-menu ul { list-style: none; padding: 0; }
.rx-menu__label { font-size: .875rem; font-weight: 500; color: var(--grau); padding-bottom: 8px; border-bottom: 1px solid var(--linie); }
.rx-menu__label a { text-decoration: none; }
.rx-menu__services { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; margin-bottom: 24px; }
.rx-menu__services a { display: block; padding: 10px 0; font-size: 1rem; line-height: 1.4; font-weight: 500; text-decoration: none; }
.rx-menu__main a { display: block; padding: 8px 0; font-size: 2.25rem; line-height: 1.1; font-weight: 600; font-stretch: 114%; letter-spacing: -0.025em; text-decoration: none; }
.rx-menu__foot { margin-top: auto; display: grid; gap: 12px; }
.rx-menu__tel { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font-weight: 600; text-decoration: none; }
.rx-menu li, .rx-menu__foot > * { animation: rx-in .5s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes rx-in { from { opacity: 0; transform: translateY(24px); } }
html.rx-menu-open, html.rx-menu-open body { overflow: hidden; }

/* ---------- Abschnittskopf ---------- */
.rx-sechead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 20px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.rx-sechead > :first-child { grid-column: 1 / span 7; }
.rx-sechead > :not(:first-child) { grid-column: 8 / -1; max-width: 46ch; color: var(--grau); }
.rx-sechead > .wp-block-buttons { justify-self: end; max-width: none; }
.is-style-dunkel .rx-sechead > :not(:first-child) { color: rgba(255, 255, 255, .72); }

/* ---------- Kopf: Startseite ---------- */
.rx-hero { padding-top: clamp(28px, 6vh, 72px); padding-bottom: 0; }
.rx-hero__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; padding-bottom: clamp(32px, 5vh, 56px); }
.rx-hero__kicker { grid-column: 1 / -1; font-size: .875rem; line-height: 1.4; font-weight: 500; font-stretch: 100%; letter-spacing: .01em; color: var(--grau); text-wrap: pretty; }
.rx-hero .rx-display { grid-column: 1 / -1; margin-top: -8px; }
.rx-hero__aside { grid-column: 1 / -1; display: grid; gap: 24px; max-width: 560px; }
.rx-proof { display: flex; align-items: center; gap: 8px; font-size: .875rem; line-height: 1.4; color: var(--grau); }
.rx-proof::before { content: ""; flex: none; width: 16px; height: 2px; background: var(--kante); }

/* ---------- Kopf: Unterseiten ---------- */
.rx-head { padding-top: clamp(40px, 8vh, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.rx-head > .rx-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px; }
.rx-head .rx-kicker { grid-column: 1 / -1; }
.rx-head__title, .rx-head h1 { grid-column: 1 / span 8; font-size: var(--display-s); line-height: .95; font-weight: 600; font-stretch: 116%; letter-spacing: -0.032em; text-wrap: balance; }
.rx-head__aside { grid-column: 9 / -1; align-self: end; display: grid; gap: 24px; justify-items: start; }
.rx-head--klein .rx-head__title { font-size: clamp(2.25rem, 1.3rem + 3vw, 4.5rem); grid-column: 1 / -1; }
.rx-crumb a { text-decoration: none; }
.rx-crumb a:hover { text-decoration: underline; }

/* ---------- Kantenbild (Foto mit nachgezeichneter echter Kante) ---------- */
.rx-kb { position: relative; margin: 0; }
.rx-kb__frame { position: relative; height: clamp(440px, 62vw, 86vh); overflow: hidden; container-type: size; transform-origin: 50% 0; background: var(--nebel); }
.rx-kb:not(.rx-kb--hero) .rx-kb__frame { height: auto; aspect-ratio: 16 / 9; }
.rx-cover { position: absolute; aspect-ratio: 16 / 9; width: max(100cqw, 177.78cqh); left: calc((100cqw - max(100cqw, 177.78cqh)) * var(--ax, .5)); top: calc((100cqh - max(100cqh, 56.25cqw)) * var(--ay, .5)); }
.rx-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rx-kb__edge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rx-kb__edge path { fill: none; stroke: #fff; stroke-width: var(--sw, 2.5); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 2px rgba(7, 18, 31, .55)); }
.rx-kb.is-in .rx-kb__path { animation: rx-draw 1.6s var(--ease) .3s forwards; }
.rx-kb.is-in .rx-kb__tick { animation: rx-draw .5s var(--ease) 1.7s forwards; }
.rx-kb--hero .rx-kb__path { animation: rx-draw 1.6s var(--ease) .6s forwards; }
.rx-kb--hero .rx-kb__tick { animation: rx-draw .5s var(--ease) 2s forwards; }
@keyframes rx-draw { to { stroke-dashoffset: 0; } }
.rx-tag { position: absolute; left: var(--x); top: var(--y); padding: 6px 12px; border-radius: 999px; background: rgba(7, 18, 31, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: .75rem; line-height: 1.33; font-weight: 600; letter-spacing: .04em; white-space: nowrap; opacity: 0; }
.rx-tag--l { transform: translate(-100%, -50%); }
.rx-tag--r { transform: translate(0, -50%); }
.rx-kb--hero .rx-tag, .rx-kb.is-in .rx-tag { animation: rx-tag-l .6s var(--ease) 2.1s forwards; }
.rx-kb--hero .rx-tag--r, .rx-kb.is-in .rx-tag--r { animation-name: rx-tag-r; }
.rx-kb.is-in:not(.rx-kb--hero) .rx-tag { animation-delay: 1.8s; }
@keyframes rx-tag-l { from { opacity: 0; transform: translate(calc(-100% + 8px), -50%); } to { opacity: 1; transform: translate(-100%, -50%); } }
@keyframes rx-tag-r { from { opacity: 0; transform: translate(-8px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }
.rx-kb > .rx-caption { padding-inline: var(--rand); max-width: var(--max); margin-inline: auto; }
.rx-kb:not(.rx-kb--hero) > .rx-caption { padding-inline: 0; }

/* ---------- Vorher/Nachher-Kapitel ---------- */
.rx-kante { background: var(--nacht); color: var(--weiss); padding: 0; }
.rx-kante__stage { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 100vh; min-height: 100svh; }
.rx-kante__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 16px; align-items: end; padding-top: clamp(48px, 9vh, 96px); padding-bottom: clamp(24px, 4vh, 40px); }
.rx-kante__head > h2 { grid-column: 1 / span 7; }
.rx-kante__head > p { grid-column: 8 / -1; font-size: 1.125rem; line-height: 1.55; color: rgba(255, 255, 255, .72); max-width: 44ch; }
.rx-kante__head > p small { display: block; margin-top: 8px; font-size: .875rem; color: var(--silber); }
.rx-kante__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px clamp(24px, 4vh, 40px); }
.rx-kante__hint { font-size: .875rem; color: rgba(255, 255, 255, .6); display: none; }
.rx-motion .rx-kante__hint { display: block; }
.rx-kante__foot a { color: var(--weiss); }
.rx-vn { position: relative; overflow: hidden; min-height: 52vh; isolation: isolate; }
.rx-vn__layer { position: absolute; inset: 0; overflow: hidden; }
.rx-vn__layer img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.rx-vn__layer--vorher { transform: translateX(calc(var(--p) * 1%)); will-change: transform; }
.rx-vn__layer--vorher img { transform: translateX(calc(var(--p) * -1%)); will-change: transform; }
.rx-vn__edge { position: absolute; inset: 0; transform: translateX(calc(var(--p) * 1%)); pointer-events: none; z-index: 2; }
.rx-vn__edge span { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--weiss); box-shadow: 0 0 0 1px rgba(7, 18, 31, .25); }
.rx-vn__edge span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 999px; background: var(--weiss); box-shadow: 0 8px 24px rgba(7, 18, 31, .3); }
.rx-vn__edge span::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: 1; width: 16px; height: 8px; margin: -4px 0 0 -8px; border-left: 2px solid var(--nacht); border-right: 2px solid var(--nacht); }
.rx-motion .rx-vn__edge span::after, .rx-motion .rx-vn__edge span::before { display: none; }
.rx-vn__label { position: absolute; bottom: 20px; z-index: 3; padding: 6px 12px; border-radius: 999px; background: rgba(7, 18, 31, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--weiss); font-size: .75rem; line-height: 1.33; font-weight: 600; letter-spacing: .04em; }
.rx-vn__label--nachher { left: var(--rand); opacity: clamp(0, calc(var(--p) / 14), 1); }
.rx-vn__label--vorher { right: var(--rand); opacity: clamp(0, calc((100 - var(--p)) / 14), 1); }
.rx-vn__range { position: absolute; inset: 0; z-index: 4; }
.rx-vn__range input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.rx-vn:has(input:focus-visible) .rx-vn__edge span::after { outline: 2px solid var(--kante-hell); outline-offset: 3px; }
.rx-motion .rx-vn__range { display: none; }

/* ---------- Haltung (Leitsatz, Foto, Fakten) ---------- */
.rx-statement__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(40px, 5vw, 72px); align-items: start; }
.rx-statement__grid > .is-style-leitsatz { grid-column: 1 / span 8; grid-row: 1; }
.rx-statement__media { grid-column: 10 / -1; grid-row: 1 / span 3; margin-top: clamp(32px, 8vw, 120px); }
.rx-statement__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.rx-facts { grid-column: 1 / span 8; grid-row: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.rx-facts > * { padding-top: 20px; border-top: 1px solid var(--nacht); }
.rx-facts h3 { font-size: 1.25rem; line-height: 1.3; margin-bottom: 8px; }
.rx-facts p { font-size: 1rem; line-height: 1.5; color: var(--grau); }
.rx-statement__more { grid-column: 1 / span 8; grid-row: 3; }

/* ---------- Leistungsindex ---------- */
.rx-ix { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.rx-ix__media { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; aspect-ratio: 4 / 5; max-height: calc(100vh - var(--header-h) - 48px); overflow: hidden; background: var(--nebel); }
.rx-ix__slide { position: absolute; inset: 0; clip-path: inset(0 100% 0 0); transition: clip-path .8s var(--ease); z-index: 0; }
.rx-ix__slide.is-prev { clip-path: inset(0); z-index: 1; transition: none; }
.rx-ix__slide.is-active { clip-path: inset(0); z-index: 2; }
.rx-ix__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rx-ix__slide.is-type { background: var(--nacht); color: var(--weiss); display: flex; align-items: flex-end; padding: clamp(24px, 3vw, 48px); }
.rx-ix__type { font-size: clamp(2rem, 1.2rem + 2vw, 3.5rem); line-height: 1.02; font-weight: 600; font-stretch: 116%; letter-spacing: -0.03em; hyphens: manual; }
.rx-ix__type span { display: block; margin-bottom: 16px; font-size: .875rem; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--kante-hell); font-variant-numeric: tabular-nums; }
.rx-ix__lists { grid-column: 7 / -1; display: grid; gap: clamp(48px, 6vw, 80px); }
.rx-ix__label { font-size: .875rem !important; line-height: 1.4 !important; font-weight: 500 !important; font-stretch: 100% !important; letter-spacing: .01em !important; color: var(--grau); padding-bottom: 12px; border-bottom: 1px solid var(--nacht); }
.rx-rows { list-style: none; padding: 0; margin: 0; }
.rx-rows--solo { border-top: 1px solid var(--nacht); }
.rx-row { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "num name arrow" ". text arrow"; column-gap: 12px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--linie); text-decoration: none; color: inherit; }
.rx-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--nacht); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.rx-row__num { grid-area: num; align-self: start; padding-top: .55em; font-size: .875rem; color: var(--grau-hell); font-variant-numeric: tabular-nums; }
.rx-row__name { grid-area: name; font-size: var(--h3); line-height: 1.12; font-weight: 600; font-stretch: 110%; letter-spacing: -0.02em; transition: transform .6s var(--ease); }
.rx-row__text { grid-area: text; margin-top: 6px; font-size: 1rem; line-height: 1.5; color: var(--grau); transition: transform .6s var(--ease); }
.rx-row__arrow { grid-area: arrow; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--linie); transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .5s var(--ease); }
.rx-row:hover::after, .rx-row:focus-visible::after, .rx-row.is-current::after { transform: scaleX(1); }
.rx-row:hover .rx-row__name, .rx-row:hover .rx-row__text, .rx-row.is-current .rx-row__name, .rx-row.is-current .rx-row__text { transform: translateX(8px); }
.rx-row:hover .rx-row__arrow, .rx-row.is-current .rx-row__arrow { background: var(--nacht); border-color: var(--nacht); color: var(--weiss); }
.rx-row:active .rx-row__arrow { transform: scale(.94); }

/* ---------- Bewertungen ---------- */
.rx-rv { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.rx-rv__tabs { grid-column: 1 / span 4; display: grid; border-top: 1px solid var(--nacht); }
.rx-rv__tabs button { position: relative; display: grid; gap: 2px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--linie); background: none; font: inherit; text-align: left; color: var(--grau-hell); cursor: pointer; transition: color .3s var(--ease), padding .5s var(--ease); }
.rx-rv__tabs button::before { content: ""; position: absolute; left: 0; top: 50%; width: 20px; height: 2px; background: var(--kante); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.rx-rv__tabs button:hover { color: var(--nacht); }
.rx-rv__tabs button[aria-selected="true"] { color: var(--nacht); padding-left: 32px; }
.rx-rv__tabs button[aria-selected="true"]::before { transform: scaleX(1); }
.rx-rv__name { font-size: 1.125rem; line-height: 1.4; font-weight: 600; font-stretch: 106%; }
.rx-rv__meta { font-size: .875rem; line-height: 1.4; }
.rx-rv__panels { grid-column: 6 / -1; }
.rx-quote { margin: 0; }
.rx-quote blockquote { margin: 0; padding: 0; border: 0; }
.rx-quote blockquote p { font-size: clamp(1.5rem, 1.05rem + 1.5vw, 2.5rem); line-height: 1.22; font-weight: 500; font-stretch: 104%; letter-spacing: -0.015em; }
.rx-quote figcaption { display: grid; gap: 2px; margin-top: 28px; font-size: 1rem; }
.rx-quote figcaption span { font-size: .875rem; color: var(--grau); }
.rx-rv .rx-quote:not([hidden]) { animation: rx-fade .6s var(--ease); }
@keyframes rx-fade { from { opacity: 0; transform: translateY(12px); } }
.rx-quotes--einzeln .rx-quote blockquote p { font-size: clamp(1.5rem, 1.05rem + 1.5vw, 2.5rem); }
.rx-quotes--einzeln:has(> :nth-child(2)) .rx-quote blockquote p { font-size: clamp(1.25rem, 1rem + .7vw, 1.75rem); line-height: 1.3; }
.rx-quotes--liste .rx-quote--gross { padding-bottom: clamp(48px, 6vw, 80px); max-width: 1100px; }
.rx-quotes--liste .rx-quote--gross blockquote p { font-size: clamp(1.875rem, 1.1rem + 2.4vw, 3.5rem); line-height: 1.12; }
.rx-quotes__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px) var(--gap); }
.rx-quotes__grid .rx-quote { padding-top: 24px; border-top: 1px solid var(--nacht); }
.rx-quotes__grid .rx-quote blockquote p { font-size: clamp(1.25rem, 1rem + .7vw, 1.75rem); line-height: 1.3; }
.rx-quotes__grid .rx-quote figcaption { margin-top: 20px; }

.rx-logos { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px; align-items: center; margin-top: clamp(72px, 9vw, 128px); padding-top: 32px; border-top: 1px solid var(--linie); }
.rx-logos__label { grid-column: 1 / span 3; font-size: .875rem; color: var(--grau); }
.rx-logos ul { grid-column: 4 / -1; list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 48px; }
.rx-logos img { display: block; height: 40px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .3s var(--ease), opacity .3s var(--ease); }
.rx-logos li:hover img { filter: none; opacity: 1; }
.rx-logos--oben { margin-top: 0; }

/* ---------- Ablauf ---------- */
.rx-ablauf__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(48px, 6vw, 88px); }
.rx-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); position: relative; z-index: 1; }
.rx-steps::before, .rx-steps::after { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px; background: var(--linie); z-index: -1; }
.rx-steps::after { background: var(--nacht); transform: scaleX(var(--s, 1)); transform-origin: left; }
.js .rx-steps:not(.is-in)::after { --s: 0; }
.js .rx-steps::after { transition: transform 1.4s var(--ease); }
.rx-step { position: relative; padding-top: 40px; }
.rx-step::before { content: ""; position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 999px; border: 2px solid var(--nacht); background: var(--weiss); transition: background-color .3s var(--ease); }
.rx-steps.is-in .rx-step::before, .rx-step.is-on::before { background: var(--nacht); }
.rx-motion .rx-steps::after { transition: none; }
.rx-motion .rx-steps.is-in .rx-step:not(.is-on)::before { background: var(--weiss); }
.rx-step__num { font-size: .875rem; color: var(--grau-hell); font-variant-numeric: tabular-nums; }
.rx-step h3 { margin: 8px 0 12px; }
.rx-step p:last-child { font-size: 1rem; line-height: 1.6; color: var(--grau); max-width: 36ch; }

/* ---------- Einsatzgebiet ---------- */
.rx-area { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: start; }
.rx-area__text { grid-column: 1 / span 5; display: grid; gap: 24px; }
.rx-area__text p { color: var(--grau); }
.rx-orte { grid-column: 7 / -1; list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); line-height: 1.3; font-weight: 600; font-stretch: 108%; letter-spacing: -0.015em; color: var(--grau-hell); }
.rx-orte li:not(:last-child)::after { content: "·"; margin: 0 .35em; color: var(--silber); }
.rx-orte li:nth-last-child(2)::after { content: ""; margin: 0 .2em; }
.rx-orte .is-base { color: var(--nacht); }
.rx-orte__more { flex-basis: 100%; margin-top: 12px; font-size: 1rem; font-weight: 400; font-stretch: 100%; letter-spacing: 0; color: var(--grau); }

/* ---------- Fragen ---------- */
.rx-faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: start; }
.rx-faq__head { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 20px; }
.rx-faq__head p { color: var(--grau); }
.rx-faq__list { grid-column: 6 / -1; border-top: 1px solid var(--nacht); }
.rx-faq__list details { border-bottom: 1px solid var(--linie); }
.rx-faq__list summary { position: relative; display: block; padding: 24px 56px 24px 0; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.35; font-weight: 600; font-stretch: 106%; cursor: pointer; list-style: none; }
.rx-faq__list summary::-webkit-details-marker { display: none; }
.rx-faq__list summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 20px; height: 20px; margin-top: -10px; background: currentColor; -webkit-mask: var(--i-plus) center / contain no-repeat; mask: var(--i-plus) center / contain no-repeat; transition: transform .5s var(--ease); }
.rx-faq__list details[open] summary::after { transform: rotate(45deg); }
.rx-faq__list summary:hover { color: var(--tiefblau); }
.rx-faq__list details > :not(summary) { padding: 0 56px 24px 0; color: var(--grau); max-width: 64ch; }
.rx-faq__list details[open] > :not(summary) { animation: rx-fade .5s var(--ease); }

/* ---------- Leistungsseite ---------- */
.rx-svc-visual { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--gap); }
.rx-svc-visual > .rx-kb, .rx-svc-visual > .wp-block-image { grid-column: 1 / span 8; margin: 0; }
.rx-svc-visual > .wp-block-image img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.rx-svc-visual > .rx-panel { grid-column: 9 / -1; }
.rx-svc-visual--typo > .rx-panel { grid-column: 1 / -1; }
.rx-panel { background: var(--nacht); color: var(--weiss); padding: clamp(28px, 3vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.rx-panel h2 { font-size: .875rem !important; line-height: 1.4 !important; font-weight: 500 !important; font-stretch: 100% !important; letter-spacing: .01em !important; color: var(--kante-hell); }
.rx-panel ul { list-style: none; padding: 0; margin: 0; display: grid; }
.rx-panel li { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .16); font-size: clamp(1.125rem, 1rem + .5vw, 1.5rem); line-height: 1.3; font-weight: 600; font-stretch: 108%; letter-spacing: -0.01em; }
.rx-svc-visual--typo .rx-panel { padding-block: clamp(40px, 5vw, 72px); }
.rx-svc-visual--typo .rx-panel ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
.rx-svc-visual--typo .rx-panel li { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem); line-height: 1.15; font-stretch: 112%; padding: 20px 0; }

.rx-scope { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 56px; align-items: start; }
.rx-scope__main { grid-column: 1 / span 7; }
.rx-scope__side { grid-column: 9 / -1; }
.rx-scope__main h2 { margin-bottom: clamp(32px, 4vw, 48px); }
.rx-scope__side h2 { font-size: 1.5rem !important; line-height: 1.25 !important; font-stretch: 108% !important; letter-spacing: -0.01em !important; margin-bottom: 20px; }
.is-style-nummern { list-style: none; padding: 0; margin: 0; counter-reset: rx; border-top: 1px solid var(--nacht); }
.is-style-nummern li { counter-increment: rx; display: grid; grid-template-columns: 44px 1fr; padding: 18px 0; border-bottom: 1px solid var(--linie); font-size: clamp(1.125rem, 1rem + .4vw, 1.375rem); line-height: 1.4; font-weight: 500; font-stretch: 104%; }
.is-style-nummern li::before { content: counter(rx, decimal-leading-zero); padding-top: .2em; font-size: .875rem; font-weight: 400; color: var(--grau-hell); font-variant-numeric: tabular-nums; }
.rx-schritte { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--linie); }
.rx-schritte li { padding: 16px 0; border-bottom: 1px solid var(--linie); font-size: 1rem; line-height: 1.5; color: var(--grau); }
.rx-schritte strong { display: block; font-size: 1.125rem; font-weight: 600; color: var(--nacht); }

.rx-detail { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; align-items: start; }
.rx-detail > h2 { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 32px); }
.rx-detail__text { grid-column: 7 / -1; display: grid; gap: 24px; font-size: clamp(1.125rem, 1rem + .3vw, 1.25rem); line-height: 1.6; color: var(--grau); }
.rx-detail__text .wp-block-image { margin-top: 16px; }
.rx-detail__text .wp-block-image img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.rx-review-sec > .rx-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; }
.rx-review-sec .rx-kicker { grid-column: 1 / span 3; grid-row: 1; padding-top: 12px; border-top: 1px solid var(--nacht); align-self: start; }
.rx-review-sec .rx-quotes { grid-column: 5 / -1; grid-row: 1 / span 2; }
.rx-review-sec .rx-wrap > p:last-child { grid-column: 1 / span 3; grid-row: 2; align-self: end; }

/* ---------- Über uns ---------- */
.rx-wide { margin: 0; }
.rx-wide img { display: block; width: 100%; height: clamp(320px, 52vw, 78vh); object-fit: cover; }
.rx-principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) var(--gap); counter-reset: rx; }
.rx-principle { counter-increment: rx; padding-top: 24px; border-top: 1px solid var(--nacht); display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; row-gap: 12px; }
.rx-principle::before { content: counter(rx, decimal-leading-zero); grid-row: 1 / span 2; padding-top: .4em; font-size: .875rem; color: var(--grau-hell); font-variant-numeric: tabular-nums; }
.rx-principle h3 { font-size: var(--h3) !important; line-height: 1.12 !important; font-stretch: 110% !important; letter-spacing: -0.02em !important; }
.rx-principle p { color: var(--grau); max-width: 48ch; }
.rx-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: center; }
.rx-split > .wp-block-image { grid-column: 1 / span 5; margin: 0; }
.rx-split > .wp-block-image img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.rx-split__text { grid-column: 7 / -1; display: grid; gap: 32px; }

/* ---------- Leistungsübersicht: Hinweis ---------- */
.rx-note { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px; align-items: end; padding-top: 40px; border-top: 1px solid var(--nacht); }
.rx-note > h2 { grid-column: 1 / span 6; font-size: var(--h3) !important; line-height: 1.12 !important; }
.rx-note > p { grid-column: 7 / span 4; color: var(--grau); }
.rx-note > .wp-block-buttons { grid-column: 11 / -1; justify-self: end; }

/* ---------- Kontaktseite ---------- */
.rx-contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 56px; align-items: start; }
.rx-contact__info { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 28px; }
.rx-contact__info h1 { font-size: var(--display-s); line-height: .95; font-weight: 600; font-stretch: 116%; letter-spacing: -0.032em; }
.rx-contact__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 24px; border-top: 1px solid var(--linie); font-size: 1rem; line-height: 1.5; color: var(--grau); }
.rx-contact__meta h2 { font-size: .875rem !important; line-height: 1.4 !important; font-weight: 500 !important; font-stretch: 100% !important; letter-spacing: .01em !important; color: var(--grau); margin-bottom: 6px; }
.rx-contact__meta p { color: var(--nacht); }
.rx-contact__form { grid-column: 7 / -1; background: var(--weiss); padding: clamp(24px, 3.5vw, 56px); }
.rx-wege { list-style: none; padding: 0; margin: 0; display: grid; }
.rx-wege a { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--linie); text-decoration: none; font-size: clamp(1.25rem, 1rem + .8vw, 1.75rem); line-height: 1.25; font-weight: 600; font-stretch: 106%; transition: border-color .3s var(--ease); }
.rx-wege a span { font-size: .875rem; font-weight: 500; font-stretch: 100%; color: var(--grau); }
.rx-wege a:hover { border-color: var(--nacht); }
.rx-wege li:last-child a { border-bottom: 1px solid var(--linie); }

/* ---------- Rechtstexte und Fließtext ---------- */
.rx-sec--prose { padding-top: 0; }
.rx-prose { max-width: calc(760px + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand); font-size: 1.0625rem; line-height: 1.7; color: var(--anthrazit, #22272E); }
.rx-prose > * + * { margin-top: 1em; }
.rx-prose :where(h2) { margin-top: 2em; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.2; font-weight: 600; font-stretch: 108%; }
.rx-prose :where(h3, h4) { margin-top: 1.6em; font-size: 1.25rem; line-height: 1.3; font-weight: 600; font-stretch: 106%; }
.rx-prose :where(ul, ol) { padding-left: 1.25em; }
.rx-prose :where(li + li) { margin-top: .35em; }
.rx-prose a { color: var(--kante); word-break: break-word; }
.rx-legal .rx-prose { font-size: 1rem; }

/* ---------- 404 ---------- */
.rx-404 > .rx-wrap { display: grid; gap: 32px; justify-items: start; padding-block: clamp(40px, 10vh, 120px); }
.rx-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Anfrage-Band ---------- */
.rx-cta { background: var(--nacht); color: var(--weiss); padding-block: clamp(96px, 13vw, 192px) clamp(72px, 9vw, 128px); }
.rx-cta__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.rx-sec .rx-cta__title { grid-column: 1 / -1; font-size: var(--display); line-height: .92; font-weight: 600; font-stretch: 118%; letter-spacing: -0.035em; }
.rx-cta__title .rx-line + .rx-line { margin-left: calc((100% - 11 * var(--gap)) / 12 * 2 + 2 * var(--gap)); }
.rx-cta__edge { grid-column: 1 / -1; height: 2px; margin-block: clamp(40px, 5vw, 72px); background: rgba(255, 255, 255, .14); }
.rx-cta__edge span { display: block; height: 100%; background: var(--kante-hell); transform: scaleX(var(--s, 1)); transform-origin: left; transition: transform 1.4s var(--ease); }
.js .rx-cta__edge:not(.is-in) span { --s: 0; }
.rx-cta__lead { grid-column: 1 / span 6; font-size: var(--lead); line-height: 1.5; color: rgba(255, 255, 255, .76); }
.rx-cta__actions { grid-column: 8 / -1; justify-content: flex-end; align-items: flex-start; }
.rx-cta .rx-wege { grid-column: 1 / -1; margin-top: clamp(56px, 7vw, 96px); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.rx-cta .rx-wege a { padding-top: 20px; border-top-color: rgba(255, 255, 255, .18); border-bottom: 0 !important; }
.rx-cta .rx-wege a span { color: var(--silber); }
.rx-cta .rx-wege a:hover { border-color: var(--weiss); }

/* ---------- Fußbereich ---------- */
.rx-footer { background: var(--papier); padding-top: clamp(64px, 8vw, 112px); }
.rx-footer__grid { display: grid; grid-template-columns: 4fr 3fr 3fr 3fr; gap: var(--gap); padding-bottom: 56px; }
.rx-footer__brand img { display: block; height: 48px; width: auto; margin-bottom: 24px; }
.rx-footer__brand p, .rx-footer__brand address { font-size: .875rem; line-height: 1.6; color: var(--grau); font-style: normal; max-width: 38ch; }
.rx-footer__brand address { margin-top: 12px; }
.rx-footer__title { font-size: .875rem; font-weight: 500; color: var(--grau); margin-bottom: 12px; }
.rx-footer__col ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.rx-footer__col a { font-size: 1rem; line-height: 1.6; text-decoration: none; }
.rx-footer__col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rx-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 24px 32px; border-top: 1px solid var(--linie); font-size: .875rem; color: var(--grau); }
.rx-footer__base ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.rx-footer__base a { text-decoration: none; }
.rx-footer__base a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rx-actionbar { display: none; }

/* ---------- Anfrageformular ---------- */
.rx-form { display: grid; gap: 28px; scroll-margin-top: calc(var(--header-h) + 24px); }
.rx-form__steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: none; }
.rx-form__steps li { display: grid; gap: 10px; font-size: .875rem; font-weight: 500; color: var(--grau-hell); }
.rx-form__steps li::before { content: ""; height: 2px; background: var(--linie); transition: background-color .5s var(--ease); }
.rx-form__steps li span { font-variant-numeric: tabular-nums; margin-right: 4px; }
.rx-form__steps li.is-active, .rx-form__steps li.is-done { color: var(--nacht); }
.rx-form__steps li.is-active::before, .rx-form__steps li.is-done::before { background: var(--nacht); }
.rx-form__hint { font-size: .875rem; color: var(--grau); }
.rx-form__panel { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 28px; animation: rx-fade .5s var(--ease); }
.rx-form__legend { padding: 0; margin-bottom: 4px; font-size: var(--h3); line-height: 1.12; font-weight: 600; font-stretch: 110%; letter-spacing: -0.02em; }
.rx-form__legend:focus { outline: none; }
.rx-field { display: grid; gap: 10px; min-width: 0; }
.rx-field--narrow { max-width: 280px; }
.rx-field__label { font-size: 1rem; font-weight: 600; font-stretch: 104%; }
.rx-field__note { font-weight: 400; font-stretch: 100%; color: var(--grau); font-size: .875rem; margin-left: 6px; }
.rx-field__help { font-size: .875rem; color: var(--grau); }
.rx-field__error { display: flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 500; color: var(--fehler); }
.rx-input { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid #B8C1CB; border-radius: 4px; background: var(--weiss); font: inherit; font-size: 1rem; color: var(--nacht); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.rx-input:hover { border-color: var(--grau); }
.rx-input:focus { outline: none; border-color: var(--nacht); box-shadow: 0 0 0 3px rgba(31, 111, 209, .25); }
.rx-input[aria-invalid="true"] { border-color: var(--fehler); }
.rx-input--area { min-height: 140px; resize: vertical; line-height: 1.5; }
select.rx-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--nacht) 50%), linear-gradient(135deg, var(--nacht) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.rx-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rx-segment { display: inline-flex; flex-wrap: wrap; padding: 4px; border-radius: 999px; background: var(--nebel); gap: 4px; justify-self: start; }
.rx-segment label { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: .9375rem; font-weight: 500; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease); }
.rx-segment input { position: absolute; opacity: 0; pointer-events: none; }
.rx-segment label:has(input:checked) { background: var(--nacht); color: var(--weiss); }
.rx-segment label:has(input:focus-visible) { outline: 2px solid var(--kante); outline-offset: 2px; }
.rx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rx-chip { position: relative; cursor: pointer; }
.rx-chip input { position: absolute; opacity: 0; pointer-events: none; }
.rx-chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid #B8C1CB; border-radius: 999px; font-size: .9375rem; font-weight: 500; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.rx-chip:hover span { border-color: var(--nacht); }
.rx-chip input:checked + span { background: var(--nacht); border-color: var(--nacht); color: var(--weiss); }
.rx-chip input:checked + span::before { content: ""; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(-45deg); }
.rx-chip input:focus-visible + span { outline: 2px solid var(--kante); outline-offset: 2px; }
.rx-drop { position: relative; display: grid; gap: 12px; }
.rx-drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rx-drop__zone { display: grid; justify-items: center; gap: 6px; padding: 32px 20px; border: 1.5px dashed #B8C1CB; border-radius: 4px; background: var(--papier); text-align: center; cursor: pointer; transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.rx-drop__zone:hover, .rx-drop.is-over .rx-drop__zone { border-color: var(--nacht); background: var(--nebel); }
.rx-drop__input:focus-visible + .rx-drop__zone { outline: 2px solid var(--kante); outline-offset: 3px; }
.rx-drop__icon { width: 28px; height: 28px; }
.rx-drop__title { font-weight: 600; font-stretch: 104%; }
.rx-drop__meta { font-size: .875rem; color: var(--grau); }
.rx-files { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rx-files__item { display: grid; grid-template-columns: 48px 1fr auto auto; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--linie); border-radius: 4px; background: var(--weiss); font-size: .875rem; animation: rx-fade .4s var(--ease); }
.rx-files__thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 2px; background: var(--nebel); display: grid; place-items: center; font-size: .75rem; font-weight: 600; color: var(--grau); }
.rx-files__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.rx-files__size { color: var(--grau); font-variant-numeric: tabular-nums; }
.rx-files__del { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 999px; background: none; color: var(--grau); cursor: pointer; }
.rx-files__del:hover { background: var(--nebel); color: var(--fehler); }
.rx-files__del svg { width: 14px; height: 14px; }
[data-firma].is-muted { opacity: .7; }
.rx-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rx-check { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; line-height: 1.5; cursor: pointer; }
.rx-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--nacht); }
.rx-check a { text-decoration: underline; }
.rx-form__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; }
.rx-form__fineprint { font-size: .875rem; color: var(--grau); }
.rx-form.is-sending .rx-btn[data-submit] { position: relative; }
.rx-form__status { padding: 24px; border-radius: 4px; font-size: 1rem; }
.rx-form__status:focus { outline: none; }
.rx-form__status.is-success { background: var(--nebel); border-top: 2px solid var(--nacht); }
.rx-form__status.is-success h3 { font-size: var(--h3); line-height: 1.12; font-weight: 600; font-stretch: 110%; margin-bottom: 12px; }
.rx-form__status.is-error { background: #FDF0EF; color: var(--fehler); }
.rx-form__status a { color: inherit; font-weight: 600; }

/* ---------- Kontakt-Shortcodes (Kompatibilität) ---------- */
.rx-contact-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }

/* ---------- Einblenden beim Scrollen (nur mit JS) ---------- */
.js .rx-reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rx-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Breakpoints ---------- */
@media (min-width: 1200px) {
	.rx-hero .rx-display { grid-column: 1 / span 8; grid-row: 2; }
	.rx-hero__aside { grid-column: 9 / -1; grid-row: 2; align-self: end; max-width: none; padding-bottom: .5rem; }
}
@media (max-width: 1199px) {
	.rx-header__tel { display: none; }
	.rx-head__title, .rx-head h1 { grid-column: 1 / -1; }
	.rx-head__aside { grid-column: 1 / span 8; }
	.rx-footer__grid { grid-template-columns: 1fr 1fr; }
	.rx-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 999px) {
	.rx-nav { display: none; }
	.rx-menu-toggle { display: inline-flex; }
	.rx-mega { display: none !important; }
	.rx-ix { display: block; }
	.rx-ix__media { display: none; }
	.rx-rv__tabs { grid-column: 1 / -1; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; border-top: 0; padding-bottom: 8px; margin-inline: calc(var(--rand) * -1); padding-inline: var(--rand); scrollbar-width: none; }
	.rx-rv__tabs::-webkit-scrollbar { display: none; }
	.rx-rv__tabs button { flex: none; scroll-snap-align: start; padding: 10px 16px; border: 1px solid var(--linie); border-radius: 999px; }
	.rx-rv__tabs button[aria-selected="true"] { padding-left: 16px; background: var(--nacht); border-color: var(--nacht); color: var(--weiss); }
	.rx-rv__tabs button::before, .rx-rv__meta { display: none; }
	.rx-rv__name { font-size: .875rem; }
	.rx-rv__panels { grid-column: 1 / -1; margin-top: 32px; }
	.rx-statement__grid > .is-style-leitsatz { grid-column: 1 / -1; grid-row: auto; }
	.rx-facts { grid-column: 1 / -1; grid-row: auto; }
	.rx-statement__media { grid-column: 5 / -1; grid-row: auto; margin-top: 0; }
	.rx-statement__more { grid-column: 1 / -1; grid-row: auto; }
	.rx-svc-visual > .rx-kb, .rx-svc-visual > .wp-block-image, .rx-svc-visual > .rx-panel { grid-column: 1 / -1; }
	.rx-scope__main, .rx-scope__side, .rx-detail > h2, .rx-detail__text, .rx-faq__head, .rx-faq__list, .rx-area__text, .rx-orte, .rx-contact__info, .rx-contact__form { grid-column: 1 / -1; position: static; }
	.rx-split > .wp-block-image { grid-column: 1 / span 6; }
	.rx-split__text { grid-column: 1 / -1; }
	.rx-note > h2, .rx-note > p { grid-column: 1 / -1; }
	.rx-review-sec .rx-kicker, .rx-review-sec .rx-quotes, .rx-review-sec .rx-wrap > p:last-child { grid-column: 1 / -1; grid-row: auto; }
	.rx-note > .wp-block-buttons { grid-column: 1 / -1; justify-self: start; }
	.rx-logos__label, .rx-logos ul { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
	.rx-header__actions .rx-btn { display: none; }
	.rx-brand img { height: 38px; }
	.rx-cta__title .rx-line + .rx-line { margin-left: 0; }
	.rx-sechead > :first-child, .rx-sechead > :not(:first-child), .rx-kante__head > h2, .rx-kante__head > p, .rx-cta__lead, .rx-cta__actions { grid-column: 1 / -1; }
	.rx-sechead > .wp-block-buttons { justify-self: start; }
	.rx-cta__actions { justify-content: flex-start; margin-top: 32px; }
	.rx-head__aside { grid-column: 1 / -1; }
	.rx-vn { min-height: 0; }
	.rx-vn__layer img { object-position: 46% 30%; }
	.rx-facts { grid-template-columns: 1fr; }
	.rx-statement__media { grid-column: 3 / -1; }
	.rx-row { grid-template-columns: 32px minmax(0, 1fr) auto; padding: 16px 0; }
	.rx-row__arrow { width: 36px; height: 36px; }
	.rx-steps { grid-template-columns: 1fr; gap: 40px; padding-left: 32px; }
	.rx-step { padding-top: 0; }
	.rx-step::before { left: -32px; top: 6px; }
	.rx-steps::before, .rx-steps::after { left: 5px; right: auto; top: 6px; bottom: 0; width: 2px; height: auto; }
	.rx-steps::after { transform: scaleY(var(--s, 1)); transform-origin: top; }
	.rx-cta .rx-wege { grid-template-columns: 1fr; gap: 0; }
	.rx-cta .rx-wege a { padding-block: 16px; }
	.rx-quotes__grid { grid-template-columns: 1fr; }
	.rx-principles { grid-template-columns: 1fr; }
	.rx-principle { grid-template-columns: 40px 1fr; }
	.rx-split > .wp-block-image { grid-column: 1 / -1; }
	.rx-svc-visual--typo .rx-panel ul { grid-template-columns: 1fr; }
	.rx-contact__meta { grid-template-columns: 1fr; }
	.rx-grid-2 { grid-template-columns: 1fr; }
	.rx-form__nav .rx-btn { flex: 1 1 auto; }
	.rx-files__item { grid-template-columns: 40px 1fr auto; }
	.rx-files__size { display: none; }
	.rx-logos ul { justify-content: flex-start; gap: 24px 32px; }
	.rx-logos img { height: 32px; }
	.rx-footer__grid { grid-template-columns: 1fr; }
	.rx-footer { padding-bottom: 88px; }
	.rx-actionbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: grid; grid-template-columns: 1fr 1fr 1.5fr; align-items: stretch; height: 56px; padding: 4px; border-radius: 999px; background: var(--nacht); box-shadow: 0 12px 32px rgba(7, 18, 31, .28); transition: transform .5s var(--ease), opacity .3s var(--ease); }
	.rx-actionbar a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; color: var(--weiss); font-size: .875rem; font-weight: 600; text-decoration: none; }
	.rx-actionbar a.is-primary { background: var(--weiss); color: var(--nacht); }
	.rx-actionbar.is-away, html.rx-menu-open .rx-actionbar { transform: translateY(140%); opacity: 0; pointer-events: none; }
}
@media (max-width: 420px) {
	.rx-display, .rx-sec .rx-cta__title { font-stretch: 108%; }
	.rx-head__title, .rx-head h1, .rx-contact__info h1 { font-stretch: 106%; }
	.rx-hero__aside .wp-block-button { flex: 1 1 auto; }
	.rx-hero__aside .wp-block-button__link { width: 100%; }
	.rx-segment { display: grid; grid-template-columns: 1fr; border-radius: 12px; justify-self: stretch; }
	.rx-segment label { border-radius: 8px; }
}

/* ---------- Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .rx-reveal, .js .rx-lines.is-split .rx-line > span { opacity: 1; transform: none; }
	.js .is-style-leitsatz.is-split .rx-w { opacity: 1; }
	.rx-kb__edge path { stroke-dashoffset: 0; }
	.rx-tag { opacity: 1; }
	.js .rx-steps:not(.is-in)::after, .js .rx-cta__edge:not(.is-in) span { --s: 1; }
}

/* ---------- Ergänzungen ---------- */
:root { --i-tel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M221.59,160.3l-47.24-21.17a14,14,0,0,0-13.28,1.22,4.81,4.81,0,0,0-.56.42l-24.69,21a1.88,1.88,0,0,1-1.68.06c-15.87-7.66-32.31-24-40-39.65a1.91,1.91,0,0,1,0-1.68l21.07-25a6.13,6.13,0,0,0,.42-.58,14,14,0,0,0,1.12-13.27L95.73,34.49a14,14,0,0,0-14.56-8.38A54.24,54.24,0,0,0,34,80c0,78.3,63.7,142,142,142a54.25,54.25,0,0,0,53.89-47.17A14,14,0,0,0,221.59,160.3ZM176,210C104.32,210,46,151.68,46,80A42.23,42.23,0,0,1,82.67,38h.23a2,2,0,0,1,1.84,1.31l21.1,47.11a2,2,0,0,1,0,1.67L84.73,113.15a4.73,4.73,0,0,0-.43.57,14,14,0,0,0-.91,13.73c8.87,18.16,27.17,36.32,45.53,45.19a14,14,0,0,0,13.77-1c.19-.13.38-.27.56-.42l24.68-21a1.92,1.92,0,0,1,1.6-.1l47.25,21.17a2,2,0,0,1,1.21,2A42.24,42.24,0,0,1,176,210Z'/%3E%3C/svg%3E"); }
.wp-block-button .wp-block-button__link { display: inline-flex; width: auto; }
.wp-block-button__link[href^="tel:"]::before { content: ""; width: 1.125em; height: 1.125em; background: currentColor; -webkit-mask: var(--i-tel) center / contain no-repeat; mask: var(--i-tel) center / contain no-repeat; }
.wp-block-button__link[href^="tel:"] { font-variant-numeric: tabular-nums; }
.rx-quotes--einzeln { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 4vw, 64px) var(--gap); }
.rx-sec--logos .rx-logos { margin-top: 0; }
.rx-quelle { margin-top: clamp(40px, 5vw, 64px); }
.rx-contact-sec { padding-top: clamp(40px, 7vh, 88px); }
.rx-sec > .rx-wrap > .is-style-leitsatz { max-width: 22em; }
.rx-head__aside .rx-lead { max-width: 44ch; }

/* Lange Komposita (z. B. „Treppenhausreinigung“) dürfen nie seitlich überlaufen */
.rx-wrap > *, .rx-wrap > * > * { min-width: 0; }
:root :where(h1, h2, h3) { overflow-wrap: break-word; hyphens: manual; }
.rx-panel li { min-width: 0; overflow-wrap: break-word; hyphens: auto; }

/* Angemeldet: Kopfzeile und Menü unter der WordPress-Adminleiste */
.admin-bar .rx-header, .admin-bar .rx-menu { top: 32px; }
.admin-bar .rx-menu { padding-top: calc(var(--header-h) + 24px); }
@media (max-width: 782px) { .admin-bar .rx-header, .admin-bar .rx-menu { top: 46px; } }
@media (max-width: 600px) { .admin-bar .rx-header { top: 0; } #wpadminbar { position: absolute; } }
/* Sprungziele (#leistungen, #referenzen, #kontakt …) nicht unter der festen Kopfzeile */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
/* Rechtstexte: Titel kommt aus dem (unveränderten) Text selbst */
.rx-sec--prose.rx-legal { padding-top: clamp(40px, 8vh, 96px); }
.rx-prose :where(h1) { margin: 0 0 .5em; font-size: clamp(2.25rem, 1.3rem + 3vw, 4.5rem); line-height: 1; font-weight: 600; font-stretch: 116%; letter-spacing: -0.03em; overflow-wrap: break-word; }
