/* ==========================================================================
   Dimax – Hauptstyles
   ========================================================================== */

:root {
	--ink: #0e1014;
	--graphite: #171a20;
	--steel: #262b33;
	--mist: #f2f3f5;
	--line: #e2e4e8;
	--text: #1c1f25;
	--muted: #5b6270;
	--accent: #e3263f;
	--accent-hover: #c71d33;
	--accent-bright: #ff3851;
	--white: #fff;
	--radius: 20px;
	--radius-sm: 12px;
	--shadow: 0 24px 60px -28px rgba(14, 16, 20, .45);
	--shadow-sm: 0 10px 30px -18px rgba(14, 16, 20, .35);
	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 84px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--display: "Oswald", "Arial Narrow", "Inter", sans-serif;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

body.dx-menu-open { overflow: hidden; }

img,
svg,
video,
iframe { max-width: 100%; }

img { height: auto; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
	margin: 0 0 .5em;
	font-family: var(--display);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: .005em;
	color: inherit;
	overflow-wrap: break-word;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); text-transform: uppercase; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); text-transform: uppercase; }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.55rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.dx-skip {
	position: fixed; top: 8px; left: 8px; z-index: 1000;
	padding: 10px 16px; border-radius: 10px;
	background: var(--ink); color: #fff; font-weight: 600;
	transform: translateY(-160%);
	transition: transform .2s;
}
.dx-skip:focus { transform: none; color: #fff; }

.dx-wrap {
	width: 100%;
	max-width: calc(var(--wrap) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */

.dx-btn,
.wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	min-height: 52px;
	padding: .8em 1.5em;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--font);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .01em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.dx-btn svg,
.wp-block-button__link svg { width: 1.15em; height: 1.15em; flex: none; }
.dx-btn:hover,
.wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); }

.dx-btn--accent,
.wp-block-button .wp-block-button__link,
.wp-block-button.dx-b-accent .wp-block-button__link {
	background: var(--accent);
	color: #fff;
	box-shadow: 0 12px 28px -14px rgba(227, 38, 63, .8);
}
.dx-btn--accent:hover,
.wp-block-button .wp-block-button__link:hover { background: var(--accent-hover); color: #fff; }

.dx-btn--ghost,
.wp-block-button.dx-b-ghost .wp-block-button__link {
	background: transparent;
	color: var(--text);
	border-color: var(--line);
	box-shadow: none;
}
.dx-btn--ghost:hover,
.wp-block-button.dx-b-ghost .wp-block-button__link:hover { border-color: var(--text); color: var(--text); background: transparent; }

.wp-block-button.dx-b-light .wp-block-button__link,
.dx-btn--light { background: #fff; color: var(--ink); box-shadow: none; }
.wp-block-button.dx-b-light .wp-block-button__link:hover,
.dx-btn--light:hover { background: var(--mist); color: var(--ink); }

.wp-block-button.dx-b-outline-light .wp-block-button__link,
.dx-btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); box-shadow: none; }
.wp-block-button.dx-b-outline-light .wp-block-button__link:hover,
.dx-btn--outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }

.dx-btn--sm { min-height: 44px; padding: .55em 1.1em; font-size: .95rem; }

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-buttons.dx-center { justify-content: center; }

.dx-link { font-weight: 600; text-decoration: none; }

/* ---------- Header ---------- */

.dx-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid transparent;
	transition: box-shadow .3s, border-color .3s;
}
.admin-bar .dx-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .dx-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .dx-header { top: 0; } }

.dx-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(14, 16, 20, .5); }

.dx-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	height: var(--header-h);
	transition: height .3s var(--ease);
}
.dx-header.is-scrolled .dx-header__inner { height: 70px; }

.dx-logo { display: block; flex: none; line-height: 0; }
.dx-logo img { width: auto; height: 46px; transition: height .3s var(--ease); }
.dx-header.is-scrolled .dx-logo img { height: 40px; }

.dx-nav { margin-left: auto; }
.dx-nav__list { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.dx-nav__list a {
	position: relative;
	display: block;
	padding: 10px 12px;
	color: var(--text);
	font-family: var(--display);
	font-size: 1.02rem;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}
.dx-nav__list a::after {
	content: "";
	position: absolute;
	left: 12px; right: 12px; bottom: 4px;
	height: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s var(--ease);
}
.dx-nav__list a:hover { color: var(--ink); }
.dx-nav__list a:hover::after,
.dx-nav__list .current-menu-item > a::after,
.dx-nav__list .current_page_item > a::after { transform: scaleX(1); }
.dx-nav__list .current-menu-item > a { color: var(--accent); }

.dx-header__tools { display: flex; align-items: center; gap: 14px; }

.dx-lang {
	display: inline-flex;
	gap: 2px;
	margin: 0;
	padding: 3px;
	border: 1px solid var(--line);
	border-radius: 999px;
	list-style: none;
	background: #fff;
}
.dx-lang a,
.dx-lang span {
	display: block;
	min-width: 38px;
	padding: 6px 10px;
	border-radius: 999px;
	color: var(--muted);
	font-size: .82rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .06em;
	text-align: center;
	text-decoration: none;
}
.dx-lang a:hover { color: var(--ink); background: var(--mist); }
.dx-lang .is-active { background: var(--ink); color: #fff; }

.dx-burger {
	display: none;
	width: 48px; height: 48px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
}
.dx-burger__lines { position: relative; display: block; width: 20px; height: 14px; margin: auto; }
.dx-burger__lines i {
	position: absolute; left: 0;
	width: 100%; height: 2px;
	border-radius: 2px;
	background: var(--ink);
	transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}
.dx-burger__lines i:nth-child(1) { top: 0; }
.dx-burger__lines i:nth-child(2) { top: 6px; }
.dx-burger__lines i:nth-child(3) { top: 12px; }
.dx-burger[aria-expanded="true"] i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.dx-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.dx-burger[aria-expanded="true"] i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Mobile Navigation */
.dx-drawer {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: flex;
	flex-direction: column;
	padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
	background: var(--ink);
	color: #fff;
	overflow-y: auto;
	opacity: 0;
	transform: translateY(-12px);
	transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.admin-bar .dx-drawer { padding-top: calc(var(--header-h) + 24px + 46px); }
.dx-drawer[hidden] { display: none; }
.dx-drawer.is-open { opacity: 1; transform: none; }
.dx-drawer__list { margin: 0; padding: 0; list-style: none; counter-reset: dxnav; }
.dx-drawer__list li { counter-increment: dxnav; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.dx-drawer__list a {
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 16px 0;
	color: #fff;
	font-family: var(--display);
	font-size: clamp(1.6rem, 7vw, 2.2rem);
	font-weight: 500;
	text-transform: uppercase;
	text-decoration: none;
}
.dx-drawer__list a::before { content: "0" counter(dxnav); color: var(--accent-bright); font-size: .9rem; letter-spacing: .1em; }
.dx-drawer__list .current-menu-item > a { color: var(--accent-bright); }
.dx-drawer__foot { display: grid; gap: 12px; margin-top: auto; padding-top: 32px; }
.dx-drawer__foot .dx-lang { justify-self: start; background: transparent; border-color: rgba(255, 255, 255, .2); }
.dx-drawer__foot .dx-lang a { color: rgba(255, 255, 255, .7); }
.dx-drawer__foot .dx-lang .is-active { background: #fff; color: var(--ink); }
.dx-drawer__foot .dx-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }

@media (max-width: 1180px) {
	.dx-nav { display: none; }
	.dx-burger { display: block; }
	.dx-header__tools { margin-left: auto; }
}
@media (max-width: 640px) {
	:root { --header-h: 72px; }
	.dx-logo img { height: 38px; }
	.dx-header.is-scrolled .dx-logo img { height: 34px; }
	.dx-header.is-scrolled .dx-header__inner { height: 64px; }
	.dx-header__call span { display: none; }
	.dx-header__call { width: 46px; padding: 0; }
	.dx-header__tools { gap: 8px; }
	.dx-header__tools > .dx-lang a,
	.dx-header__tools > .dx-lang span { min-width: 32px; padding: 6px 7px; }
}
@media (max-width: 359px) {
	.dx-header__tools > .dx-lang { display: none; }
}

/* ---------- Allgemeine Abschnitte ---------- */

/* Klassische Themes: WordPress legt in Gruppen einen inneren Container an – für das Layout ignorieren */
.wp-block-group__inner-container { display: contents; }

.dx-content > *:first-child { margin-top: 0; }

.dx-section {
	position: relative;
	margin: 0;
	padding: clamp(64px, 9vw, 120px) var(--gutter);
}
.dx-section > *,
.dx-section > .wp-block-group__inner-container > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.dx-section.dx-narrow > *,
.dx-section.dx-narrow > .wp-block-group__inner-container > * { max-width: 860px; }
.dx-section--mist { background: var(--mist); }
.dx-section--dark { background: var(--ink); color: #fff; }
.dx-section--dark p { color: rgba(255, 255, 255, .72); }
.dx-section--tight { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.dx-section:not(.dx-section--mist):not(.dx-section--dark) + .dx-section:not(.dx-section--mist):not(.dx-section--dark) { padding-top: 0; }
.dx-section--mist + .dx-section--mist { padding-top: 0; }

.dx-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	color: var(--accent);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.dx-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.dx-eyebrow--light { color: var(--accent-bright); }

.dx-head { margin-bottom: clamp(36px, 5vw, 56px); }
.dx-head > *,
.dx-head > .wp-block-group__inner-container > * { max-width: 760px; }
.dx-head.dx-center { text-align: center; }
.dx-head.dx-center > *,
.dx-head.dx-center > .wp-block-group__inner-container > * { margin-left: auto; margin-right: auto; }
.dx-head.dx-center .dx-eyebrow { justify-content: center; }
.dx-head h2 { margin-bottom: .35em; }
.dx-head p { color: var(--muted); font-size: 1.1rem; }
.dx-section--dark .dx-head p { color: rgba(255, 255, 255, .7); }

.dx-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--muted); }

/* Listen */
.wp-block-list { padding-left: 1.2em; }
ul.dx-checks { margin: 0 0 1.2em; padding: 0; list-style: none; display: grid; gap: 10px; }
ul.dx-checks li { position: relative; padding-left: 36px; }
ul.dx-checks li::before {
	content: "";
	position: absolute; left: 0; top: .18em;
	width: 24px; height: 24px;
	border-radius: 50%;
	background: rgba(227, 38, 63, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3263f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.dx-section--dark ul.dx-checks li::before,
.dx-hero ul li::before { background-color: rgba(255, 56, 81, .16); }

ol.dx-numbered { margin: 0 0 1.2em; padding: 0; list-style: none; counter-reset: dxnum; display: grid; gap: 10px; }
ol.dx-numbered li { position: relative; padding-left: 44px; counter-increment: dxnum; min-height: 30px; padding-top: 2px; }
ol.dx-numbered li::before {
	content: counter(dxnum);
	position: absolute; left: 0; top: 0;
	display: grid; place-items: center;
	width: 30px; height: 30px;
	border-radius: 50%;
	background: var(--ink); color: #fff;
	font-family: var(--display); font-size: .9rem; font-weight: 600;
}

/* Bilder */
.wp-block-image { margin: 0; }
.wp-block-image img { display: block; }

/* ---------- Hero (Startseite) ---------- */

.dx-hero {
	position: relative;
	margin: 0;
	padding: clamp(48px, 7vw, 96px) var(--gutter) 0;
	background:
		radial-gradient(900px 500px at 85% 10%, rgba(227, 38, 63, .22), transparent 60%),
		radial-gradient(700px 500px at 0% 100%, rgba(255, 255, 255, .06), transparent 60%),
		var(--ink);
	color: #fff;
	overflow: hidden;
}
.dx-hero::before {
	content: "";
	position: absolute; inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: linear-gradient(180deg, #000, transparent 85%);
	-webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
	pointer-events: none;
}
.dx-hero > *,
.dx-hero > .wp-block-group__inner-container > * { position: relative; max-width: var(--wrap); margin-left: auto; margin-right: auto; }

.dx-hero__grid.wp-block-columns {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
	margin-bottom: 0;
}
.dx-hero__grid > .wp-block-column { min-width: 0; align-self: center; }

.dx-hero h1 { margin-bottom: .4em; }
.dx-hero h1 em { font-style: normal; color: var(--accent-bright); }
.dx-hero .dx-lead { color: rgba(255, 255, 255, .75); max-width: 36em; }
.dx-hero .wp-block-buttons { margin: 32px 0 36px; }

.dx-hero ul.dx-hero__points {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 24px;
	margin: 0;
	padding: 28px 0 0;
	border-top: 1px solid rgba(255, 255, 255, .12);
	list-style: none;
	font-size: .95rem;
	color: rgba(255, 255, 255, .85);
}
.dx-hero ul.dx-hero__points li { position: relative; padding-left: 34px; }
.dx-hero ul.dx-hero__points li::before {
	content: "";
	position: absolute; left: 0; top: .05em;
	width: 24px; height: 24px; border-radius: 50%;
	background: rgba(255, 56, 81, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff3851' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.dx-hero__media { position: relative; padding: 0 0 56px 56px; }
.dx-hero__main img {
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	border-radius: 28px;
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.dx-hero__sub {
	position: absolute !important;
	left: 0; bottom: 0;
	width: 46%;
}
.dx-hero__sub img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border: 6px solid var(--ink);
	border-radius: 22px;
}
p.dx-hero__badge {
	position: absolute;
	top: 28px; right: -12px;
	max-width: 230px;
	margin: 0;
	padding: 16px 20px 16px 22px;
	border-radius: 16px;
	background: #fff;
	color: var(--muted);
	font-size: .86rem;
	line-height: 1.4;
	box-shadow: var(--shadow);
	border-left: 4px solid var(--accent);
	animation: dx-float 6s ease-in-out infinite;
}
p.dx-hero__badge strong { display: block; color: var(--ink); font-family: var(--display); font-size: 1.15rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }

@keyframes dx-float { 50% { transform: translateY(-8px); } }

/* Laufband */
p.dx-ticker {
	max-width: none !important;
	margin: clamp(48px, 6vw, 80px) calc(-1 * var(--gutter)) 0 !important;
	padding: 18px 0;
	border-top: 1px solid rgba(255, 255, 255, .1);
	background: rgba(255, 255, 255, .03);
	color: rgba(255, 255, 255, .55);
	font-family: var(--display);
	font-size: 1.05rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-align: center;
}
.dx-ticker__track { display: inline-flex; gap: 0; animation: dx-marquee 40s linear infinite; }

.dx-ticker__track b { color: var(--accent-bright); font-weight: 500; padding: 0 1.1em; }
@keyframes dx-marquee { to { transform: translateX(-50%); } }

@media (max-width: 960px) {
	.dx-hero__grid.wp-block-columns { grid-template-columns: 1fr; }
	.dx-hero__media { max-width: 640px; margin-top: 8px; }
}
@media (max-width: 560px) {
	.dx-hero ul.dx-hero__points { grid-template-columns: 1fr; }
	.dx-hero__media { padding: 0 0 40px 24px; }
	p.dx-hero__badge { top: 12px; right: 8px; max-width: 190px; padding: 12px 14px; }
	.dx-hero .wp-block-buttons .wp-block-button { flex: 1 1 100%; }
	.dx-hero .wp-block-buttons .wp-block-button__link { width: 100%; }
}

/* ---------- Karten (Leistungen) ---------- */

.dx-cards.wp-block-columns {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0 auto;
}
.dx-cards--3.wp-block-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dx-card.wp-block-column {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--radius);
	background: #fff;
	overflow: hidden;
	box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
	transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.dx-section--mist .dx-card.wp-block-column { box-shadow: var(--shadow-sm); }
.dx-card.wp-block-column:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.dx-card .wp-block-image { overflow: hidden; }
.dx-card .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.dx-card:hover .wp-block-image img { transform: scale(1.06); }
.dx-card > :not(.wp-block-image) { margin-left: 26px; margin-right: 26px; }
.dx-card h3 { margin-top: 24px; margin-bottom: 10px; text-transform: uppercase; }
.dx-card p { color: var(--muted); font-size: .98rem; }
.dx-card p.dx-card__more { margin-top: auto; padding: 16px 0 26px; }
.dx-card p.dx-card__more a { font-weight: 700; text-decoration: none; color: var(--ink); }
.dx-card p.dx-card__more a::after { content: ""; position: absolute; inset: 0; }
.dx-card p.dx-card__more a::before { content: "→"; float: right; margin-left: 8px; color: var(--accent); transition: transform .3s var(--ease); }
.dx-card:hover p.dx-card__more a::before { transform: translateX(4px); }
.dx-card ul.dx-checks { font-size: .95rem; color: var(--muted); }
.dx-card > :last-child:not(.dx-card__more):not(.wp-block-image) { margin-bottom: 28px; }

@media (max-width: 1080px) {
	.dx-cards.wp-block-columns,
	.dx-cards--3.wp-block-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
	.dx-cards.wp-block-columns,
	.dx-cards--3.wp-block-columns { grid-template-columns: 1fr; }
}

/* ---------- Bild + Text (Zickzack) ---------- */

.dx-rows { counter-reset: dxrow; }
.dx-split.wp-block-columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(32px, 6vw, 88px);
	align-items: center;
	margin-bottom: 0;
}
.dx-rows .dx-split { counter-increment: dxrow; }
.dx-rows .dx-split + .dx-split { margin-top: clamp(64px, 9vw, 120px); }
.dx-rows .dx-split:nth-child(even) > .wp-block-column:first-child { order: 2; }
/* Core setzt align-items: normal !important auf .wp-block-columns – daher align-self je Spalte */
.dx-split > .wp-block-column { min-width: 0; align-self: center; }

.dx-media { position: relative; }
.dx-media .wp-block-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.dx-media::before {
	content: "";
	position: absolute;
	right: -18px; bottom: -18px;
	width: 46%; height: 52%;
	border-radius: var(--radius);
	background: repeating-linear-gradient(135deg, rgba(227, 38, 63, .18) 0 2px, transparent 2px 12px);
	z-index: -1;
}
.dx-rows .dx-split:nth-child(even) .dx-media::before { right: auto; left: -18px; }
.dx-media { z-index: 0; }

.dx-rows .dx-split .dx-text h2::before {
	content: counter(dxrow, decimal-leading-zero);
	display: block;
	margin-bottom: 10px;
	color: var(--accent);
	font-size: .95rem;
	letter-spacing: .2em;
}
.dx-text h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.dx-text p { color: var(--muted); }
.dx-text p strong { color: var(--text); }
.dx-text .wp-block-buttons { margin-top: 28px; }

.dx-media--pair.wp-block-column { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); padding-bottom: 48px; }
.dx-media--pair > .wp-block-image { grid-column: 2 / -1; grid-row: 1; }
.dx-media--pair > .wp-block-image + .wp-block-image { grid-column: 1 / 7; grid-row: 1; align-self: end; margin-bottom: -48px; z-index: 1; }
.dx-media--pair > .wp-block-image + .wp-block-image img { aspect-ratio: 4 / 3; border: 6px solid #fff; }
.dx-section--mist .dx-media--pair .wp-block-image + .wp-block-image img { border-color: var(--mist); }

@media (max-width: 900px) {
	.dx-split.wp-block-columns { grid-template-columns: 1fr; }
	.dx-rows .dx-split:nth-child(even) > .wp-block-column:first-child { order: 0; }
	.dx-media::before { right: -10px; bottom: -10px; }
	.dx-rows .dx-split:nth-child(even) .dx-media::before { left: auto; right: -10px; }
	.dx-media--pair.wp-block-column { padding-bottom: 36px; }
	.dx-media--pair > .wp-block-image + .wp-block-image { margin-bottom: -36px; }
}

/* ---------- Ablauf (Schritte) ---------- */

.dx-steps.wp-block-columns {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	counter-reset: dxstep;
	margin-bottom: 0;
}
.dx-step.wp-block-column {
	position: relative;
	counter-increment: dxstep;
	padding: 30px 26px 32px;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: var(--radius);
	background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
	transition: border-color .3s, transform .35s var(--ease);
}
.dx-step.wp-block-column:hover { border-color: rgba(255, 56, 81, .5); transform: translateY(-4px); }
.dx-step::before {
	content: counter(dxstep, decimal-leading-zero);
	display: block;
	margin-bottom: 26px;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--accent-bright);
	font-family: var(--display);
	font-size: 3.4rem;
	font-weight: 700;
	line-height: 1;
}
.dx-step h3 { text-transform: uppercase; }
.dx-step p { font-size: .97rem; }
.dx-section--mist .dx-step.wp-block-column { border-color: var(--line); background: #fff; }
.dx-section--mist .dx-step::before { -webkit-text-stroke-color: var(--accent); }

@media (max-width: 1080px) { .dx-steps.wp-block-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dx-steps.wp-block-columns { grid-template-columns: 1fr; } }

/* ---------- Vorteile (Kacheln) ---------- */

.dx-features.wp-block-columns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 0;
}
.dx-feature.wp-block-column {
	padding: 32px 28px;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-sm);
	border-top: 4px solid var(--accent);
}
.dx-feature h3 { text-transform: uppercase; }
.dx-feature p { color: var(--muted); }
@media (max-width: 860px) { .dx-features.wp-block-columns { grid-template-columns: 1fr; } }

/* ---------- Galerie ---------- */

.wp-block-gallery.has-nested-images.dx-gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: clamp(150px, 17vw, 240px);
	grid-auto-flow: dense;
	gap: 14px;
	margin: 0 auto;
}
.wp-block-gallery.has-nested-images.dx-gallery figure.wp-block-image:not(#individual-image) {
	width: auto;
	margin: 0;
	border-radius: 16px;
	overflow: hidden;
	background: var(--steel);
}
.wp-block-gallery.has-nested-images.dx-gallery figure.wp-block-image:not(#individual-image):nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
.wp-block-gallery.has-nested-images.dx-gallery figure.wp-block-image:not(#individual-image):nth-child(7n + 5) { grid-column: span 2; }
.wp-block-gallery.has-nested-images.dx-gallery figure.wp-block-image a,
.wp-block-gallery.has-nested-images.dx-gallery figure.wp-block-image img {
	display: block;
	width: 100%;
	height: 100%;
}
.wp-block-gallery.has-nested-images.dx-gallery figure.wp-block-image img {
	object-fit: cover;
	transition: transform .6s var(--ease), filter .4s;
}
.wp-block-gallery.has-nested-images.dx-gallery figure.wp-block-image a { position: relative; cursor: zoom-in; }
.wp-block-gallery.has-nested-images.dx-gallery figure.wp-block-image a::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 50%, rgba(14, 16, 20, .55)) , url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") right 16px bottom 16px / 26px no-repeat;
	opacity: 0;
	transition: opacity .3s;
}
.wp-block-gallery.has-nested-images.dx-gallery figure.wp-block-image:hover img { transform: scale(1.06); }
.wp-block-gallery.has-nested-images.dx-gallery figure.wp-block-image:hover a::after { opacity: 1; }

.dx-gallery--teaser.wp-block-gallery.has-nested-images.dx-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dx-gallery--teaser.wp-block-gallery.has-nested-images.dx-gallery figure.wp-block-image:not(#individual-image):nth-child(7n + 5) { grid-column: span 1; }

@media (max-width: 860px) {
	.wp-block-gallery.has-nested-images.dx-gallery,
	.dx-gallery--teaser.wp-block-gallery.has-nested-images.dx-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 44vw; }
	.wp-block-gallery.has-nested-images.dx-gallery figure.wp-block-image:not(#individual-image):nth-child(7n + 5) { grid-column: span 2; }
	.dx-gallery--teaser.wp-block-gallery.has-nested-images.dx-gallery figure.wp-block-image:not(#individual-image):nth-child(7n + 5) { grid-column: span 1; }
	.wp-block-gallery.has-nested-images.dx-gallery figure.wp-block-image:not(#individual-image):nth-child(7n + 1) { grid-row: span 1; }
}

.dx-section--dark .wp-block-buttons,
.dx-after-gallery { margin-top: 40px; }

/* Lightbox */
.dx-lb {
	position: fixed; inset: 0; z-index: 1000;
	display: grid; place-items: center;
	padding: 64px 72px;
	background: rgba(8, 9, 12, .94);
	opacity: 0;
	transition: opacity .25s;
}
.dx-lb.is-open { opacity: 1; }
.dx-lb img {
	max-width: 100%;
	max-height: calc(100vh - 128px);
	border-radius: 12px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
	user-select: none;
}
.dx-lb button {
	position: absolute;
	display: grid; place-items: center;
	width: 52px; height: 52px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 50%;
	background: rgba(255, 255, 255, .06);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transition: background .2s, border-color .2s;
}
.dx-lb button:hover { background: var(--accent); border-color: var(--accent); }
.dx-lb__close { top: 18px; right: 18px; }
.dx-lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.dx-lb__next { right: 16px; top: 50%; transform: translateY(-50%); }
.dx-lb__count { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: .9rem; letter-spacing: .1em; }
@media (max-width: 640px) {
	.dx-lb { padding: 64px 10px; }
	.dx-lb__prev, .dx-lb__next { top: auto; bottom: 10px; transform: none; }
}

/* ---------- Seitenkopf (Unterseiten) ---------- */

.dx-pagehero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(300px, 38vw, 460px);
	padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px);
	background:
		radial-gradient(800px 400px at 90% 0%, rgba(227, 38, 63, .25), transparent 60%),
		var(--ink);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}
.dx-pagehero__img {
	position: absolute; inset: 0; z-index: -2;
	width: 100%; height: 100%;
	object-fit: cover;
	animation: dx-zoom 18s ease-out both;
}
.dx-pagehero.has-image::after {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, rgba(14, 16, 20, .92) 0%, rgba(14, 16, 20, .7) 45%, rgba(14, 16, 20, .25) 100%), linear-gradient(0deg, rgba(14, 16, 20, .7), transparent 50%);
}
@keyframes dx-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.dx-pagehero__inner > * { max-width: 760px; }
.dx-pagehero h1 { margin-bottom: .25em; }
.dx-pagehero__lead { margin: 0; color: rgba(255, 255, 255, .78); font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.dx-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: rgba(255, 255, 255, .6); font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.dx-crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.dx-crumbs a:hover { color: var(--accent-bright); }
.dx-crumbs [aria-current] { color: var(--accent-bright); }
.dx-pagehero--404 { min-height: 360px; }

/* ---------- Kontakt ---------- */

.dx-contact.wp-block-columns {
	display: grid;
	grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
	margin-bottom: 0;
}
.dx-contact > .wp-block-column { min-width: 0; align-self: start; }
.dx-contact__info .wp-block-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); margin-top: 28px; }
.dx-contact__form.wp-block-column {
	padding: clamp(24px, 4vw, 44px);
	border-radius: 24px;
	background: #fff;
	box-shadow: var(--shadow);
	border: 1px solid var(--line);
}
.dx-contact__form h2,
.dx-contact__info h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.dx-contact__form > p { color: var(--muted); }
@media (max-width: 900px) { .dx-contact.wp-block-columns { grid-template-columns: 1fr; } }

.dx-contact-list { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.dx-contact-list li {
	display: flex;
	gap: 16px;
	padding: 18px 20px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid var(--line);
}
.dx-section--mist .dx-contact-list li { border-color: transparent; box-shadow: var(--shadow-sm); }
.dx-contact-list small { display: block; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dx-contact-list a:not(.dx-link) { color: var(--ink); font-weight: 600; text-decoration: none; font-size: 1.08rem; }
.dx-contact-list a:not(.dx-link):hover { color: var(--accent); }
.dx-ico {
	display: grid; place-items: center; flex: none;
	width: 46px; height: 46px;
	border-radius: 14px;
	background: rgba(227, 38, 63, .1);
	color: var(--accent);
}
.dx-ico svg { width: 22px; height: 22px; }

/* Formular */
.dx-form { position: relative; margin-top: 24px; }
.dx-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dx-field { display: grid; gap: 6px; }
.dx-field--full { grid-column: 1 / -1; }
.dx-field > span { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dx-field input,
.dx-field select,
.dx-field textarea {
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	background: #fbfbfc;
	color: var(--text);
	font: inherit;
	font-size: 1rem;
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.dx-field textarea { min-height: 140px; resize: vertical; }
.dx-field input:focus,
.dx-field select:focus,
.dx-field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(227, 38, 63, .12); }
.dx-field.is-invalid input,
.dx-field.is-invalid textarea { border-color: var(--accent); }
.dx-check { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 0; font-size: .92rem; color: var(--muted); cursor: pointer; }
.dx-check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.dx-check.is-invalid span { color: var(--accent); }
.dx-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.dx-form__foot small { color: var(--muted); }
.dx-form button[disabled] { opacity: .6; pointer-events: none; }
.dx-form__msg { margin-bottom: 20px; padding: 16px 18px; border-radius: 12px; font-size: .97rem; }
.dx-form__msg--ok { background: #e9f8ef; color: #135c32; border: 1px solid #b9e6c9; }
.dx-form__msg--err { background: #fdecef; color: #9b1326; border: 1px solid #f6c1ca; }
.dx-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .dx-form__grid { grid-template-columns: 1fr; } .dx-form__foot .dx-btn { width: 100%; } }

/* Karte */
.dx-map {
	position: relative;
	aspect-ratio: 21 / 8;
	min-height: 340px;
	border-radius: 24px;
	overflow: hidden;
	background:
		radial-gradient(circle at 50% 45%, rgba(227, 38, 63, .25), transparent 40%),
		linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 40px 40px,
		linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 40px 40px,
		var(--graphite);
	color: #fff;
}
.dx-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dx-map__consent {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 10px;
	padding: 24px;
	text-align: center;
}
.dx-map__consent .dx-ico { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 0 0 12px rgba(227, 38, 63, .2); margin-bottom: 10px; }
.dx-map__consent p { margin: 0; color: rgba(255, 255, 255, .65); font-size: .9rem; }
.dx-map__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.dx-map .dx-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.dx-map .dx-btn--ghost:hover { color: #fff; border-color: #fff; }
@media (max-width: 640px) { .dx-map { aspect-ratio: 4 / 5; } }

/* ---------- Rechtstexte ---------- */

.dx-legal h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: 1.6em; }
.dx-legal h2:first-child { margin-top: 0; }
.dx-legal h3 { margin-top: 1.4em; font-size: 1.2rem; }
.dx-legal p,
.dx-legal li { color: #3a404b; }
.dx-note { padding: 16px 20px; border-radius: 12px; background: var(--mist); border-left: 4px solid var(--accent); }

.dx-facts { display: grid; gap: 0; margin: 0 0 1.5em; padding: 0; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.dx-facts > div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 20px; }
.dx-facts > div:nth-child(odd) { background: var(--mist); }
.dx-facts dt { font-weight: 700; color: var(--muted); }
.dx-facts dd { margin: 0; }
@media (max-width: 560px) { .dx-facts > div { grid-template-columns: 1fr; gap: 2px; } }

/* 404 */
.dx-404__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.dx-404__list a { display: block; padding: 10px 16px; border-radius: 999px; background: var(--mist); color: var(--ink); font-weight: 600; text-decoration: none; }
.dx-404__list a:hover { background: var(--ink); color: #fff; }

/* ---------- CTA-Band ---------- */

.dx-cta {
	position: relative;
	padding: clamp(56px, 7vw, 88px) 0;
	background:
		repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 22px),
		linear-gradient(120deg, #c71d33, var(--accent) 50%, #ff3851);
	color: #fff;
	overflow: hidden;
}
.dx-cta__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.dx-cta h2 { margin-bottom: .3em; font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.dx-cta p { color: rgba(255, 255, 255, .88); max-width: 40em; }
.dx-cta .dx-eyebrow { color: #fff; }
.dx-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 860px) {
	.dx-cta__inner { grid-template-columns: 1fr; }
	.dx-cta__actions { justify-content: flex-start; }
}
@media (max-width: 480px) { .dx-cta__actions .dx-btn { width: 100%; } }

/* ---------- Footer ---------- */

.dx-footer { padding: clamp(56px, 7vw, 88px) 0 0; background: var(--ink); color: rgba(255, 255, 255, .7); font-size: .97rem; }
.dx-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; }
.dx-footer__brand .dx-logo img { height: 52px; }
.dx-footer__brand p { margin-top: 22px; max-width: 30em; }
.dx-footer__title { margin: 0 0 18px; color: #fff; font-size: 1rem; letter-spacing: .12em; }
.dx-footer__list { display: grid; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.dx-footer a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.dx-footer a:hover { color: var(--accent-bright); }
.dx-footer__contact li { display: flex; gap: 12px; }
.dx-footer__contact svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--accent-bright); }
.dx-footer .dx-lang { background: transparent; border-color: rgba(255, 255, 255, .18); }
.dx-footer .dx-lang a { color: rgba(255, 255, 255, .7); }
.dx-footer .dx-lang a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.dx-footer .dx-lang .is-active { background: #fff; color: var(--ink); }
.dx-footer__bottom {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	margin-top: clamp(40px, 5vw, 64px);
	padding-top: 22px; padding-bottom: 22px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: .88rem;
	color: rgba(255, 255, 255, .5);
}
.dx-totop { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); }
@media (max-width: 960px) { .dx-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dx-footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Animationen ---------- */

.dx-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.dx-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.dx-reveal { opacity: 1; transform: none; }
}

/* ---------- Design-Vorschau-Umschalter (nur bei ?design=N) ---------- */
.dx-design-switch {
	position: fixed;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	z-index: 2000;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	max-width: calc(100vw - 24px);
	padding: 8px 10px;
	border-radius: 999px;
	background: rgba(14, 16, 20, .92);
	box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .6);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font-family: var(--font);
	font-size: 13px;
}
.dx-design-switch span {
	padding: 0 6px;
	color: #9aa2b1;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-size: 11px;
}
.dx-design-switch a {
	padding: 6px 11px;
	border-radius: 999px;
	color: #e7e9ee;
	text-decoration: none;
	white-space: nowrap;
	line-height: 1;
}
.dx-design-switch a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.dx-design-switch a[aria-current="true"] { background: var(--accent); color: #fff; }
@media (max-width: 640px) {
	.dx-design-switch { font-size: 12px; gap: 2px; padding: 6px 8px; }
	.dx-design-switch a { padding: 6px 9px; }
}
