/* =====================================================================
   CubeX v3 · Homepage-Übergabe 03.11.2026
   Styles der neu gebauten Abschnitte (Shortcodes aus cx-1103.php)
   Palette: ink #2C2C2C · gelb #FFF38A · panel #FFFAD0 · hell #FFFDF0
            linie #BEBA88 · oliv #736C55 · akzent #FDF659
   ===================================================================== */

@font-face { font-family: "chillax medium"; src: url("/wp-content/uploads/2025/04/Chillax-Medium.ttf") format("truetype"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Switzer Medium"; src: url("/wp-content/uploads/2025/04/Switzer-Medium.ttf") format("truetype"); font-weight: 400 600; font-display: swap; }

:root {
	--cx-ink: #2C2C2C;
	--cx-yellow: #FFF38A;
	--cx-accent: #FDF659;
	--cx-panel: #FFFAD0;
	--cx-light: #FFFDF0;
	--cx-line: #BEBA88;
	--cx-olive: #736C55;
	--cx-r: 24px;
	--cx-head: "chillax medium", "Chillax", sans-serif;
	--cx-body: "Switzer Medium", "Switzer", sans-serif;
}

/* Elementor-Rahmen der Shortcode-Abschnitte neutralisieren */
.elementor-section.cx-host > .elementor-container > .elementor-column > .elementor-widget-wrap { padding: 0 !important; }
.elementor-section.cx-host .elementor-widget-shortcode { margin-bottom: 0 !important; }
.elementor-section.cx-host { padding: 0 !important; }

.cx-wrap {
	box-sizing: border-box;
	margin: 0 30px 15px;
	border-radius: var(--cx-r);
	font-family: var(--cx-body);
	color: var(--cx-ink);
}
.cx-wrap *, .cx-wrap *::before, .cx-wrap *::after { box-sizing: border-box; }
.cx-wrap p { font-size: 16px; line-height: 1.65; margin: 0 0 14px; }
.cx-panel { background: var(--cx-panel); padding: clamp(28px, 5vw, 72px) clamp(20px, 5vw, 72px); }

.cx-h1, .cx-h2, .cx-h3, .cx-wrap h3 { font-family: var(--cx-head); color: var(--cx-ink); font-weight: 500; letter-spacing: -0.01em; }
.cx-h1 { font-size: clamp(36px, 5.2vw, 68px); line-height: 1.05; margin: 0 0 18px; color: #fff; }
.cx-h2 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.12; margin: 0 0 20px; }
.cx-h2--xl { font-size: clamp(34px, 4.6vw, 60px); }
.cx-h2--light { color: #fff; }
.cx-h3 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.25; margin: 40px 0 22px; }
.cx-center { text-align: center; }
.cx-lead { font-family: var(--cx-head); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; color: var(--cx-olive); margin: 0; }
.cx-claim { font-family: var(--cx-head); font-size: 19px !important; margin-top: 20px !important; }
.cx-kicker {
	display: inline-block; font-family: var(--cx-body); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
	color: var(--cx-olive); margin-bottom: 14px;
}
.cx-kicker--light { color: var(--cx-accent); }

/* Buttons ------------------------------------------------------------ */
.cx-btn {
	display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
	background: var(--cx-yellow); color: var(--cx-ink) !important; font: 500 15px/1 var(--cx-body); text-decoration: none !important;
	transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.cx-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(44,44,44,.15); background: var(--cx-accent); }
.cx-btn--dark { background: var(--cx-ink); color: #fff !important; }
.cx-btn--dark:hover { background: #000; }

.cx-info-btn {
	display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; padding: 10px 20px 10px 10px;
	border-radius: 999px; background: #fff; border: 1px solid var(--cx-line); color: var(--cx-ink) !important;
	font: 500 15px/1.2 var(--cx-body); text-decoration: none !important; transition: all .25s ease;
}
.cx-info-btn .cx-i { width: 30px; height: 30px; flex: none; color: var(--cx-ink); background: var(--cx-yellow); border-radius: 50%; padding: 3px; transition: transform .35s ease; }
.cx-info-btn:hover { border-color: var(--cx-ink); box-shadow: 0 8px 22px rgba(44,44,44,.12); }
.cx-info-btn:hover .cx-i { transform: rotate(360deg); }
.cx-info-btn--solid { background: var(--cx-ink); border-color: var(--cx-ink); color: #fff !important; }
.cx-info-wrap { margin-top: 18px; }

.cx-round {
	width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--cx-line); background: #fff; color: var(--cx-ink);
	display: inline-grid; place-items: center; cursor: pointer; padding: 0; transition: all .2s ease;
}
.cx-round svg { width: 20px; height: 20px; }
.cx-round:hover { border-color: var(--cx-ink); transform: scale(1.06); }
.cx-round--dark { background: var(--cx-ink); border-color: var(--cx-ink); color: #fff; }
.cx-round--glass { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); color: #fff; backdrop-filter: blur(6px); }

/* Intro unter dem Hero -------------------------------------------------- */
.cx-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.cx-intro__text { font-family: var(--cx-head) !important; font-size: clamp(22px, 2.3vw, 32px) !important; line-height: 1.3 !important; margin: 0 !important; max-width: 980px; }
/* "hochschieben unter das Bild": weniger Leerraum im Intro-Panel */
.elementor-element-6290b19 { padding-top: 0 !important; }
.elementor-element-6290b19 > .elementor-container > .elementor-column > .elementor-widget-wrap { padding-top: clamp(28px, 4vw, 52px) !important; padding-bottom: clamp(28px, 4vw, 52px) !important; }
.elementor-element-6290b19 .elementor-element-64b72595 { margin-bottom: 18px !important; }

/* Material: Wald-Panel mit mitlaufendem Hintergrund ---------------------- */
.cx-material { margin-bottom: 15px; }
.cx-forest {
	position: relative; overflow: hidden; border-radius: var(--cx-r); min-height: 560px; display: flex; align-items: center;
	isolation: isolate;
}
.cx-forest__bg {
	position: absolute; left: -4%; right: -4%; top: -32%; height: 164%; background-size: cover; background-position: 50% 50%;
	z-index: -2; will-change: transform; transform: translate3d(0, var(--cx-par, 0px), 0) scale(var(--cx-zoom, 1.06));
	animation: cx-drift 26s ease-in-out infinite alternate;
}
@keyframes cx-drift { 0% { background-position: 44% 50%; } 100% { background-position: 56% 46%; } }
.cx-forest::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(20,24,16,.82) 0%, rgba(20,24,16,.6) 55%, rgba(20,24,16,.25) 100%); }
.cx-forest__body { padding: clamp(36px, 6vw, 90px); max-width: 980px; }
.cx-forest__text p { color: rgba(255,255,255,.92); font-size: 17px; max-width: 760px; }

/* Kreislauf */
.cx-cycle {
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 70px); align-items: center;
	background: var(--cx-light); border-radius: var(--cx-r); padding: clamp(28px, 4vw, 64px); margin-top: 15px;
}
.cx-cycle__visual { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; margin: 0 auto; }
.cx-cycle__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cx-cycle__arc { fill: none; stroke: #736C55; stroke-width: 1.6; opacity: .35; transition: opacity .4s ease, stroke .4s ease; }
.cx-cycle__arc.is-on { opacity: 1; stroke: var(--cx-ink); }
.cx-cycle__runner { fill: var(--cx-ink); filter: drop-shadow(0 0 6px rgba(253,246,89,.9)); }
.cx-cycle__center {
	position: absolute; left: 50%; top: 50%; width: 33%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
	background-size: cover; background-position: center; box-shadow: 0 20px 50px rgba(44,44,44,.22), 0 0 0 10px #fff;
}
.cx-cycle__logo { position: absolute; right: 2%; bottom: 2%; width: 30%; height: auto; background: #fff; border-radius: 50%; padding: 7%; box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.cx-cycle__node {
	position: absolute; width: 25%; aspect-ratio: 1; transform: translate(-50%, -50%); padding: 0; border: 0; background: none; cursor: pointer;
	transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.cx-cycle__node--n { left: 50%; top: 12.5%; }
.cx-cycle__node--e { left: 87.5%; top: 50%; }
.cx-cycle__node--s { left: 50%; top: 87.5%; }
.cx-cycle__node--w { left: 12.5%; top: 50%; }
.cx-cycle__pic { position: absolute; inset: 0; border-radius: 50%; background-size: cover; background-position: center; box-shadow: 0 0 0 6px #fff, 0 10px 26px rgba(44,44,44,.18); filter: grayscale(.55) brightness(.95); transition: filter .4s ease, box-shadow .4s ease; }
.cx-cycle__num { position: absolute; left: -4%; top: -4%; width: 34%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--cx-olive); font: 500 13px var(--cx-body); box-shadow: 0 3px 10px rgba(0,0,0,.12); transition: all .4s ease; }
.cx-cycle__label { position: absolute; left: 50%; top: 104%; transform: translateX(-50%); width: 150%; font: 500 11px/1.3 var(--cx-body); letter-spacing: .1em; text-transform: uppercase; color: var(--cx-olive); text-align: center; }
.cx-cycle__node.is-on { transform: translate(-50%, -50%) scale(1.12); }
.cx-cycle__node.is-on .cx-cycle__pic { filter: none; box-shadow: 0 0 0 6px var(--cx-yellow), 0 14px 34px rgba(44,44,44,.25); }
.cx-cycle__node.is-on .cx-cycle__num { background: var(--cx-ink); color: var(--cx-yellow); }
.cx-cycle__node.is-on .cx-cycle__label { color: var(--cx-ink); }

.cx-cycle__card { position: relative; background: #fff; border-radius: 18px; padding: 28px 30px 84px; box-shadow: 0 14px 40px rgba(44,44,44,.08); min-height: 230px; }
.cx-cycle__slide { position: absolute; left: 30px; right: 30px; top: 28px; opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.cx-cycle__slide.is-on { position: relative; left: auto; right: auto; top: auto; opacity: 1; transform: none; pointer-events: auto; }
.cx-cycle__step { font: 500 12px var(--cx-body); letter-spacing: .14em; text-transform: uppercase; color: var(--cx-olive); }
.cx-cycle__slide h3 { font-size: 26px; margin: 10px 0 10px; }
.cx-cycle__slide p { margin: 0; }
.cx-cycle__nav { position: absolute; right: 22px; bottom: 20px; display: flex; gap: 10px; }
.cx-cycle__steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; position: relative; }
.cx-cycle__steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 17px; height: 1px; background: var(--cx-line); }
.cx-cycle__steps button { position: relative; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; font: 500 12px var(--cx-body); color: var(--cx-olive); }
.cx-cycle__steps button span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--cx-light); border: 1px solid var(--cx-line); color: var(--cx-olive); transition: all .3s ease; }
.cx-cycle__steps button.is-on { color: var(--cx-ink); }
.cx-cycle__steps button.is-on span { background: var(--cx-ink); border-color: var(--cx-ink); color: var(--cx-yellow); }

/* Raumbuch: digitales Buch ---------------------------------------------- */
.cx-raumbuch__head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 70px); margin-bottom: clamp(30px, 4vw, 56px); }
.cx-raumbuch__text p { margin-bottom: 12px; }

.cx-book { position: relative; }
.cx-book__stage { position: relative; display: flex; align-items: stretch; justify-content: center; perspective: 2600px; }
.cx-book__spread {
	position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 1160px; aspect-ratio: 16 / 9.6;
	border-radius: 10px; box-shadow: 0 30px 60px rgba(60,50,20,.22), 0 8px 18px rgba(60,50,20,.12);
	background: #ece3b8; padding: 10px; transform-style: preserve-3d;
}
.cx-book__spread::before { /* Seitenschnitt unten */
	content: ""; position: absolute; left: 14px; right: 14px; bottom: -7px; height: 8px; border-radius: 0 0 8px 8px;
	background: repeating-linear-gradient(0deg, #f4ecc6 0 1px, #e0d59f 1px 2px); z-index: -1;
}
.cx-book__page { position: relative; overflow: hidden; background: var(--cx-light); }
.cx-book__page--l { border-radius: 6px 0 0 6px; cursor: w-resize; }
.cx-book__page--r { border-radius: 0 6px 6px 0; cursor: e-resize; }
.cx-book__page--l::after, .cx-book__page--r::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; pointer-events: none; z-index: 3; }
.cx-book__page--l::after { right: 0; background: linear-gradient(90deg, rgba(0,0,0,0), rgba(70,55,10,.16)); }
.cx-book__page--r::after { left: 0; background: linear-gradient(270deg, rgba(0,0,0,0), rgba(70,55,10,.22)); }
.cx-book__spine { position: absolute; left: 50%; top: 10px; bottom: 10px; width: 2px; transform: translateX(-1px); background: rgba(80,64,20,.25); z-index: 4; }

.cx-book__left { position: absolute; inset: 0; padding: 7% 9% 6% 8%; display: flex; flex-direction: column; }
.cx-book__kicker { font: 500 11px var(--cx-body); letter-spacing: .2em; text-transform: uppercase; color: var(--cx-olive); }
.cx-book__title { display: flex; align-items: baseline; gap: 14px; margin: 10px 0 14px; font-family: var(--cx-head); font-size: clamp(22px, 2.5vw, 36px); line-height: 1.05; color: var(--cx-ink); }
.cx-book__no { font-size: 1.5em; color: #E9C93A; -webkit-text-stroke: 0; }
.cx-book__desc { font-size: clamp(13px, 1.05vw, 15.5px) !important; line-height: 1.6 !important; color: #4a4a40; }
.cx-book__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: auto 0 0; }
.cx-book__facts div { border-top: 1px solid var(--cx-line); padding-top: 10px; }
.cx-book__facts dt { font: 500 10.5px var(--cx-body); letter-spacing: .12em; text-transform: uppercase; color: var(--cx-olive); margin: 0 0 4px; }
.cx-book__facts dd { font-family: var(--cx-head); font-size: clamp(14px, 1.3vw, 19px); margin: 0; color: var(--cx-ink); }
.cx-book__cores { display: flex; align-items: center; gap: 6px; margin-top: 16px; }
.cx-book__cores i { width: 26px; height: 18px; border: 1.5px solid var(--cx-ink); border-radius: 3px; background: var(--cx-yellow); }
.cx-book__cores b { order: -1; width: 14px; height: 18px; border-radius: 3px; background: var(--cx-ink); margin-right: 4px; }
.cx-book__folio { position: absolute; left: 8%; bottom: 4%; font: 500 11px var(--cx-body); color: var(--cx-olive); }
.cx-book__folio--r { left: auto; right: 6%; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }

.cx-book__right { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cx-book__badge { position: absolute; right: 6%; top: 6%; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; background: rgba(255,253,240,.92); font: 500 12px var(--cx-body); letter-spacing: .08em; color: var(--cx-ink); box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.cx-book__badge img { width: 24px; height: 24px; }

/* Blatt beim Umblättern */
.cx-book__leaf { position: absolute; top: 10px; bottom: 10px; width: calc(50% - 10px); transform-style: preserve-3d; z-index: 10; transition: transform .9s cubic-bezier(.45,.05,.25,1); }
.cx-book__leaf--fwd { left: 50%; transform-origin: left center; }
.cx-book__leaf--back { left: 10px; transform-origin: right center; }
.cx-book__face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--cx-light); }
.cx-book__face--b { transform: rotateY(180deg); }
.cx-book__leaf--fwd .cx-book__face--a { border-radius: 0 6px 6px 0; }
.cx-book__leaf--fwd .cx-book__face--b { border-radius: 6px 0 0 6px; }
.cx-book__leaf--back .cx-book__face--a { border-radius: 6px 0 0 6px; }
.cx-book__leaf--back .cx-book__face--b { border-radius: 0 6px 6px 0; }
.cx-book__face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,0) 30%, rgba(255,255,255,.08) 70%, rgba(0,0,0,.08)); opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.cx-book__leaf.is-turning .cx-book__face::after { opacity: 1; }

/* Register-Reiter rechts */
.cx-book__tabs { display: flex; flex-direction: column; gap: 6px; margin-left: -4px; padding-top: 34px; z-index: 0; }
.cx-book__tabs button {
	writing-mode: vertical-rl; display: flex; align-items: center; gap: 8px; padding: 14px 8px; border: 0; cursor: pointer;
	border-radius: 0 10px 10px 0; background: #efe6bd; color: var(--cx-olive); font: 500 11px var(--cx-body); letter-spacing: .1em;
	text-transform: uppercase; transition: all .25s ease; box-shadow: inset 6px 0 8px -6px rgba(0,0,0,.2);
}
.cx-book__tabs button b { font-weight: 600; }
.cx-book__tabs button span { max-height: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-book__tabs button:hover { background: #f6eec9; color: var(--cx-ink); padding-right: 12px; }
.cx-book__tabs button.is-on { background: var(--cx-yellow); color: var(--cx-ink); padding-right: 14px; }

.cx-book__ctrl { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
.cx-book__dots { display: flex; gap: 8px; }
.cx-book__dots i { width: 22px; height: 4px; border-radius: 4px; background: var(--cx-line); opacity: .5; cursor: pointer; transition: all .3s ease; }
.cx-book__dots i.is-on { width: 40px; background: var(--cx-ink); opacity: 1; }
.cx-book__hint { text-align: center; font-size: 13px !important; color: var(--cx-olive); margin: 12px 0 0 !important; }

/* Vergleich ------------------------------------------------------------- */
.cx-vergleich__head { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(20px, 4vw, 70px); }
.cx-vergleich__tt { margin-top: clamp(30px, 4vw, 56px); text-align: center; }
.cx-vs { display: grid; grid-template-columns: minmax(0, 1fr) 210px minmax(0, 1fr); column-gap: 0; grid-auto-flow: row dense; }
.cx-vs__col { grid-row: 1; }
.cx-vs__col--conv { grid-column: 1; }
.cx-vs__mid { grid-column: 2; grid-row: 1; }
.cx-vs__col--cx { grid-column: 3; }
.cx-vs__top { position: relative; height: 170px; border-radius: 18px 18px 0 0; background-size: cover; background-position: center; overflow: hidden; display: flex; align-items: flex-end; }
.cx-vs__top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 10%, rgba(0,0,0,.72)); }
.cx-vs__col--conv .cx-vs__top { filter: grayscale(1); }
.cx-vs__top div { position: relative; z-index: 1; padding: 18px 22px; color: #fff; }
.cx-vs__top strong { display: block; font: 500 21px/1.2 var(--cx-head); }
.cx-vs__top span { font-size: 13px; opacity: .85; }
.cx-vs__col--cx .cx-vs__top strong::after { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--cx-accent); margin-left: 8px; vertical-align: middle; box-shadow: 0 0 0 4px rgba(253,246,89,.3); }

.cx-vs__cell { display: flex; gap: 12px; align-items: flex-start; padding: 16px 22px; font-size: 14.5px; line-height: 1.5; border-bottom: 1px solid rgba(190,186,136,.45); }
.cx-vs__cell--conv { grid-column: 1; background: rgba(255,255,255,.55); color: #6b6a5e; }
.cx-vs__cell--cx { grid-column: 3; background: #fff; color: var(--cx-ink); font-weight: 500; }
.cx-vs__crit { grid-column: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 12px 10px; border-bottom: 1px solid rgba(190,186,136,.45); font: 500 13px/1.25 var(--cx-head); color: var(--cx-ink); }
.cx-vs__crit svg { width: 24px; height: 24px; color: var(--cx-olive); }
.cx-vs__x, .cx-vs__ok { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; margin-top: -1px; }
.cx-vs__x { background: #ECE9DD; color: #8C8A7A; }
.cx-vs__ok { background: var(--cx-yellow); color: var(--cx-ink); }
.cx-vs__x svg, .cx-vs__ok svg { width: 16px; height: 16px; }
.cx-vs__mlabel { display: none; }
.cx-vs > .cx-vs__cell--cx:last-child { border-bottom: 0; }
.cx-vs > .cx-vs__cell--cx:last-child { border-radius: 0 0 18px 18px; }
.cx-vs .cx-vs__cell--conv:nth-last-child(2) { border-radius: 0 0 18px 18px; border-bottom: 0; }
.cx-vs .cx-vs__crit:nth-last-child(3) { border-bottom: 0; }
.cx-vs__cell--cx { box-shadow: 10px 0 30px -18px rgba(44,44,44,.25), -10px 0 30px -18px rgba(44,44,44,.25); }
.cx-vs__cell { transition: background .2s ease; }

/* Innenausstattung: Titel + Bad-Liste raus ------------------------------- */
.cx-innen { padding: clamp(30px, 4vw, 60px) clamp(20px, 5vw, 72px) 6px; margin-bottom: 0; text-align: center; }
.cx-innen .cx-h2 { margin-bottom: 0; }
.elementor-element-6d169bbf { padding-top: 0 !important; margin-top: 0 !important; }
.elementor-element-6d169bbf > .elementor-container > .elementor-column > .elementor-widget-wrap { padding-top: 0 !important; }
.elementor-element-6d169bbf .main-div { margin-top: 0 !important; padding-top: 0 !important; }
.main-div #sliderTitle, .main-div > .container { display: none !important; }
.main-div .cx-room-desc { display: none !important; }

/* Umsetzung + Außenansicht ----------------------------------------------- */
.cx-umsetzung { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: center; background: var(--cx-light); padding: clamp(28px, 4vw, 64px); }
.cx-umsetzung__copy p { font-size: 15.5px; }
.cx-gallery { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3.4; background: #ddd; box-shadow: 0 24px 50px rgba(44,44,44,.18); }
.cx-gallery__track { position: absolute; inset: 0; }
.cx-gallery__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.cx-gallery__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s ease-out; }
.cx-gallery__slide.is-on { opacity: 1; }
.cx-gallery__slide.is-on img { transform: scale(1); }
.cx-gallery::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 65%, rgba(0,0,0,.45)); }
.cx-gallery__label { position: absolute; left: 22px; top: 20px; z-index: 2; font-family: var(--cx-head); font-size: clamp(22px, 2.2vw, 32px); color: #fff; }
.cx-gallery__ctrl { position: absolute; right: 18px; bottom: 18px; z-index: 2; display: flex; align-items: center; gap: 12px; color: #fff; font-size: 13px; }
.cx-gallery__count b { font-weight: 600; }

/* Prozess mit mitlaufendem CubeX-Symbol ---------------------------------- */
.cx-prozess { background: var(--cx-light); padding: clamp(36px, 5vw, 80px) clamp(20px, 5vw, 72px); }
.cx-flow { position: relative; max-width: 1040px; margin: clamp(30px, 4vw, 56px) auto 0; padding: 10px 0 30px; }
.cx-flow__line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-1px); background: repeating-linear-gradient(180deg, var(--cx-line) 0 4px, transparent 4px 10px); }
.cx-flow__fill { position: absolute; left: 0; top: 0; width: 100%; height: var(--cx-flow, 0%); background: var(--cx-ink); }
.cx-flow__marker { position: absolute; left: 50%; top: var(--cx-flow, 0%); width: 64px; height: 64px; transform: translate(-50%, -50%) rotate(var(--cx-rot, 0deg)); z-index: 3; border-radius: 50%; background: #fff; box-shadow: 0 10px 28px rgba(44,44,44,.2), 0 0 0 6px rgba(253,246,89,.35); display: grid; place-items: center; }
.cx-flow__marker img { width: 70%; height: auto; }
.cx-flow__step { position: relative; display: flex; padding: 22px 0; }
.cx-flow__step--l { justify-content: flex-start; }
.cx-flow__step--r { justify-content: flex-end; }
.cx-flow__dot { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--cx-light); border: 2px solid var(--cx-line); z-index: 2; transition: all .35s ease; }
.cx-flow__card { width: calc(50% - 60px); background: #fff; border-radius: 18px; padding: 24px 26px; box-shadow: 0 10px 30px rgba(44,44,44,.06); opacity: .45; transform: translateY(18px); transition: all .6s cubic-bezier(.2,.8,.2,1); position: relative; }
.cx-flow__card::before { content: ""; position: absolute; top: 50%; width: 40px; height: 1px; background: var(--cx-line); }
.cx-flow__step--l .cx-flow__card::before { right: -40px; }
.cx-flow__step--r .cx-flow__card::before { left: -40px; }
.cx-flow__no { font: 500 12px var(--cx-body); letter-spacing: .14em; color: var(--cx-olive); }
.cx-flow__card h3 { font-size: 22px; margin: 6px 0 8px; }
.cx-flow__card p { margin: 0; font-size: 15px; }
.cx-flow__step.is-on .cx-flow__card { opacity: 1; transform: none; box-shadow: 0 16px 40px rgba(44,44,44,.1); }
.cx-flow__step.is-on .cx-flow__dot { background: var(--cx-yellow); border-color: var(--cx-ink); box-shadow: 0 0 0 6px rgba(253,246,89,.35); }

/* Kommunen ---------------------------------------------------------------- */
.cx-kommunen__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 70px); }
.cx-adv { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cx-adv__item { grid-column: span 2; background: #fff; border-radius: 18px; padding: 26px 24px; transition: transform .3s ease, box-shadow .3s ease; }
.cx-adv__item:nth-child(4), .cx-adv__item:nth-child(5) { grid-column: span 3; }
.cx-adv__item:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(44,44,44,.1); }
.cx-adv__ic { width: 48px; height: 48px; border-radius: 50%; background: var(--cx-yellow); display: grid; place-items: center; margin-bottom: 16px; }
.cx-adv__ic svg { width: 24px; height: 24px; color: var(--cx-ink); }
.cx-adv__item h3 { font-size: 19px; margin: 0 0 8px; line-height: 1.25; }
.cx-adv__item p { font-size: 14.5px; margin: 0; color: #4a4a40; }
.cx-kommunen__more { margin-top: 30px; text-align: center; }

/* FAQ --------------------------------------------------------------------- */
.cx-faq { background: var(--cx-light); padding: clamp(32px, 5vw, 72px) clamp(20px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(20px, 4vw, 70px); align-items: start; }
.cx-faq__list { border-top: 1px solid var(--cx-line); }
.cx-faq__item { border-bottom: 1px solid var(--cx-line); }
.cx-faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; font: 500 18px/1.35 var(--cx-head); color: var(--cx-ink); }
.cx-faq__item summary::-webkit-details-marker { display: none; }
.cx-faq__item summary i { flex: none; position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--cx-yellow); transition: transform .3s ease, background .3s ease; }
.cx-faq__item summary i::before, .cx-faq__item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--cx-ink); transform: translate(-50%, -50%); }
.cx-faq__item summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s ease; }
.cx-faq__item[open] summary i { background: var(--cx-ink); }
.cx-faq__item[open] summary i::before, .cx-faq__item[open] summary i::after { background: var(--cx-yellow); }
.cx-faq__item[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.cx-faq__a { padding: 0 60px 22px 4px; }
.cx-faq__a p { margin: 0; color: #4a4a40; }

/* Team: Projektleitung entfernt, Kontaktformular "auf eine Höhe" --------- */
.elementor-element-13d5e368 > .elementor-container { align-items: flex-start !important; }
.elementor-element-13d5e368 .elementor-element-622ccd23 > .elementor-widget-wrap { padding-top: 10px !important; }
.elementor-element-392b7e37 .elementor-field-group { margin-bottom: 14px !important; }
.elementor-element-392b7e37 input.elementor-field, .elementor-element-392b7e37 textarea.elementor-field {
	background: #fff !important; border: 1px solid #E6E1C4 !important; border-radius: 12px !important; padding: 14px 16px !important;
	font-family: var(--cx-body) !important; font-size: 15px !important; transition: border-color .2s ease, box-shadow .2s ease;
}
.elementor-element-392b7e37 input.elementor-field:focus, .elementor-element-392b7e37 textarea.elementor-field:focus { border-color: var(--cx-ink) !important; box-shadow: 0 0 0 4px rgba(253,246,89,.45) !important; outline: 0; }
.elementor-element-392b7e37 .elementor-field-label { font: 500 13px var(--cx-body) !important; color: var(--cx-olive) !important; margin-bottom: 6px !important; }
.elementor-element-392b7e37 .elementor-field-type-submit { margin-top: 6px; }
.elementor-element-392b7e37 .elementor-button {
	width: 100% !important; justify-content: center; border-radius: 999px !important; padding: 18px 28px !important;
	background: var(--cx-ink) !important; color: #fff !important; font: 500 15px var(--cx-body) !important; letter-spacing: .02em;
	transition: transform .25s ease, box-shadow .25s ease;
}
.elementor-element-392b7e37 .elementor-button:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(44,44,44,.2); }

/* Social-Leiste im Footer ------------------------------------------------- */
.cx-social { display: flex; justify-content: center; gap: 12px; margin: 6px 0 22px; flex-wrap: wrap; }
.cx-social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--cx-ink) !important; border: 1px solid var(--cx-line); transition: all .25s ease; }
.cx-social a:hover { background: var(--cx-ink); color: var(--cx-yellow) !important; border-color: var(--cx-ink); transform: translateY(-3px); }
.cx-social svg { width: 20px; height: 20px; }

/* Kommunen-Unterseite ------------------------------------------------------ */
.cx-kpage { padding-top: 92px; width: 100vw; margin-left: calc(50% - 50vw); }
.cx-khero { position: relative; min-height: 560px; display: flex; align-items: flex-end; background-size: cover; background-position: center; overflow: hidden; }
.cx-khero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,22,16,.85) 0%, rgba(20,22,16,.55) 55%, rgba(20,22,16,.15)); }
.cx-khero__body { position: relative; padding: clamp(30px, 6vw, 80px); max-width: 860px; color: #fff; }
.cx-khero__body p { color: rgba(255,255,255,.9); font-size: 18px; margin-bottom: 26px; }
.cx-back { display: flex; width: max-content; align-items: center; gap: 6px; color: #fff !important; font-size: 14px; text-decoration: none !important; opacity: .85; margin-bottom: 30px; }
.cx-back svg { width: 18px; height: 18px; }
.cx-back:hover { opacity: 1; }
.cx-dl { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 80px); align-items: center; background: var(--cx-ink); color: #fff; padding: clamp(32px, 5vw, 72px); }
.cx-dl .cx-h2, .cx-dl p { color: #fff; }
.cx-dl__doc { position: relative; max-width: 300px; margin: 0 auto; transform: rotate(-4deg); transition: transform .4s ease; }
.cx-dl:hover .cx-dl__doc { transform: rotate(0deg) scale(1.03); }
.cx-dl__cover { aspect-ratio: 1 / 1.414; border-radius: 6px; background-size: cover; background-position: center; box-shadow: 18px 22px 0 -6px var(--cx-yellow), 0 30px 60px rgba(0,0,0,.45); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.cx-dl__cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.7)); }
.cx-dl__cover img, .cx-dl__cover span { position: relative; }
.cx-dl__cover img { width: 46px; }
.cx-dl__cover span { font: 500 26px var(--cx-head); color: #fff; }
.cx-dl__pdf { position: absolute; right: -14px; top: 18px; background: var(--cx-yellow); color: var(--cx-ink); font: 600 12px var(--cx-body); letter-spacing: .1em; padding: 6px 12px; border-radius: 999px; }
.cx-dl__form label { display: block; font-size: 13px; letter-spacing: .06em; color: rgba(255,255,255,.75); margin-bottom: 8px; }
.cx-dl__row { display: flex; gap: 10px; flex-wrap: wrap; }
.cx-dl__row input[type=email] { flex: 1 1 260px; min-width: 0; border-radius: 999px !important; border: 1px solid rgba(255,255,255,.3) !important; background: rgba(255,255,255,.08) !important; color: #fff !important; padding: 15px 22px !important; font: 15px var(--cx-body) !important; }
.cx-dl__row input[type=email]::placeholder { color: rgba(255,255,255,.45); }
.cx-dl__row input[type=email]:focus { outline: 0; border-color: var(--cx-yellow) !important; }
.cx-dl .cx-btn--dark { background: var(--cx-yellow); color: var(--cx-ink) !important; }
.cx-dl__skip { display: inline-block; margin-top: 14px; color: var(--cx-yellow) !important; font-size: 14px; text-decoration: underline !important; text-underline-offset: 3px; }
.cx-dl__msg { min-height: 1em; margin: 10px 0 0 !important; font-size: 14px !important; color: var(--cx-yellow) !important; }
.cx-dl__note { font-size: 12.5px !important; color: rgba(255,255,255,.6) !important; margin-top: 8px !important; }
.cx-dl__note a { color: rgba(255,255,255,.85) !important; }
.cx-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.cx-cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding: clamp(30px, 5vw, 64px); background: linear-gradient(110deg, rgba(20,22,16,.88), rgba(20,22,16,.55)), url('/wp-content/uploads/cx/aussen-2.jpg') center / cover; }
.cx-cta p { color: rgba(255,255,255,.88); margin: 0; max-width: 640px; }
.cx-cta .cx-h2 { margin-bottom: 10px; }

/* Reveal beim Scrollen ----------------------------------------------------- */
.cx-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.cx-reveal.is-in { opacity: 1; transform: none; }

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 1024px) {
	.cx-cycle, .cx-raumbuch__head, .cx-vergleich__head, .cx-umsetzung, .cx-kommunen__grid, .cx-faq, .cx-dl { grid-template-columns: 1fr; }
	.cx-cycle__visual { max-width: 460px; }
	.cx-adv { grid-template-columns: 1fr 1fr; }
	.cx-adv__item, .cx-adv__item:nth-child(4), .cx-adv__item:nth-child(5) { grid-column: span 1; }
	.cx-adv__item:nth-child(5) { grid-column: span 2; }
	.cx-book__tabs { display: none; }
}
@media (max-width: 767px) {
	.cx-wrap { margin: 0 15px 10px; }
	.cx-forest { min-height: 0; }
	.cx-forest__text p { font-size: 15.5px; }
	.cx-cycle__label { font-size: 9.5px; letter-spacing: .06em; }
	.cx-cycle__num { font-size: 11px; }
	.cx-cycle__steps button { font-size: 10.5px; }
	.cx-cycle__card { padding: 22px 20px 80px; }
	.cx-cycle__slide { left: 20px; right: 20px; top: 22px; }

	/* Buch mobil: eine Seite, Bild oben */
	.cx-book__spread { grid-template-columns: 1fr; grid-template-rows: 220px auto; aspect-ratio: auto; }
	.cx-book__page--r { order: -1; border-radius: 6px 6px 0 0; }
	.cx-book__page--l { border-radius: 0 0 6px 6px; min-height: 360px; }
	.cx-book__page--l::after, .cx-book__page--r::after, .cx-book__spine { display: none; }
	.cx-book__left { padding: 24px 22px 40px; }
	.cx-book__leaf { display: none; }
	.cx-book__page { transition: opacity .35s ease; }
	.cx-book.is-fading .cx-book__page { opacity: 0; }

	/* Vergleich mobil: je Kriterium eine Karte */
	.cx-vs { grid-template-columns: 1fr; }
	.cx-vs__col, .cx-vs__mid { display: none; }
	.cx-vs__crit { grid-column: 1; flex-direction: row; justify-content: flex-start; margin-top: 18px; border: 0; padding: 0 0 8px; font-size: 16px; }
	.cx-vs__cell--conv, .cx-vs__cell--cx { grid-column: 1; border-radius: 0 !important; }
	.cx-vs__cell--conv { order: 0; }
	.cx-vs { display: flex; flex-direction: column; }
	.cx-vs__cell--conv { border-radius: 14px 14px 0 0 !important; }
	.cx-vs__cell--cx { border-radius: 0 0 14px 14px !important; border-bottom: 0; }

	.cx-flow__line { left: 26px; }
	.cx-flow__marker { left: 26px; width: 48px; height: 48px; }
	.cx-flow__dot { left: 26px; }
	.cx-flow__step, .cx-flow__step--r { justify-content: flex-end; }
	.cx-flow__card { width: calc(100% - 64px); }
	.cx-flow__step--l .cx-flow__card::before, .cx-flow__step--r .cx-flow__card::before { left: -20px; right: auto; width: 20px; }

	.cx-adv { grid-template-columns: 1fr; }
	.cx-adv__item, .cx-adv__item:nth-child(5) { grid-column: span 1; }
	.cx-faq__a { padding-right: 4px; }
	.cx-kpage { padding-top: 90px; }
	.cx-khero { min-height: 520px; }
	.cx-gallery { aspect-ratio: 4 / 3.6; }
}
@media (prefers-reduced-motion: reduce) {
	.cx-reveal, .cx-flow__card, .cx-gallery__slide img, .cx-book__leaf { transition: none !important; }
	.cx-forest__bg { transform: none !important; animation: none !important; }
}

/* Kontakt: Formular nicht bis an den Rand, gleiche Einrückung wie links */
@media (min-width: 1025px) {
	.elementor-element-13d5e368 .elementor-element-622ccd23 > .elementor-widget-wrap { padding-right: 8% !important; }
}

/* ------------------------------------------------------------ Footer */
.cx-foot {
	position: relative; overflow: hidden; isolation: isolate;
	margin: 0 30px 30px; border-radius: var(--cx-r); background: #2C2C2C; color: rgba(255,253,240,.78);
	padding: clamp(40px, 6vw, 88px) clamp(24px, 6vw, 88px) 28px; font-family: "Switzer Medium", sans-serif;
}
.cx-foot__mark { position: absolute; right: -6%; top: -18%; width: min(46vw, 620px); opacity: .06; z-index: -1; pointer-events: none; transform: rotate(-8deg); }
.cx-foot__top { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; padding-bottom: clamp(36px, 5vw, 64px); border-bottom: 1px solid rgba(255,253,240,.14); }
.cx-foot__claim { font-family: "chillax medium", sans-serif !important; color: #FFFDF0 !important; font-size: clamp(34px, 4.6vw, 68px) !important; line-height: 1.04 !important; letter-spacing: -.01em; margin: 0; }
.cx-foot__cta p { font-size: 17px; line-height: 1.6; margin: 0 0 22px; color: rgba(255,253,240,.78); }
.cx-foot__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cx-foot__btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; background: #FDF659; color: #2C2C2C !important; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .25s ease, background .25s ease; }
.cx-foot__btn svg { width: 18px; height: 18px; transition: transform .25s ease; }
.cx-foot__btn:hover { transform: translateY(-2px); background: #FFF38A; }
.cx-foot__btn:hover svg { transform: translateX(3px); }
.cx-foot__btn--ghost { background: transparent; color: #FFFDF0 !important; border: 1px solid rgba(255,253,240,.32); }
.cx-foot__btn--ghost:hover { background: rgba(255,253,240,.08); border-color: #FDF659; }
.cx-foot__grid { display: grid; grid-template-columns: 1.25fr .8fr 1fr 1.45fr; gap: clamp(24px, 4vw, 56px); padding: clamp(36px, 5vw, 60px) 0; }
.cx-foot__brand img { width: 190px; height: auto; display: block; margin-bottom: 18px; }
.cx-foot__brand p { font-size: 15px; line-height: 1.6; max-width: 300px; margin: 0; }
.cx-foot__col h3 { font-family: "Switzer Medium", sans-serif !important; font-size: 12px !important; letter-spacing: .16em; text-transform: uppercase; color: #BEBA88 !important; margin: 0 0 16px; font-weight: 600; line-height: 1.3 !important; }
.cx-foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.cx-foot a { color: rgba(255,253,240,.82); text-decoration: none; transition: color .2s ease; }
.cx-foot__col ul a, .cx-foot__tel { font-size: 15px; color: rgba(255,253,240,.82) !important; }
.cx-foot__col ul a:hover, .cx-foot__tel:hover, .cx-foot__bar a:hover { color: #FDF659 !important; }
.cx-foot address { font-style: normal; font-size: 15px; line-height: 1.7; margin: 0 0 10px; }
.cx-foot .cx-social { justify-content: flex-start; margin: 0; gap: 8px; flex-wrap: wrap; max-width: 300px; }
.cx-foot .cx-social a { width: 42px; height: 42px; background: rgba(255,253,240,.06); border-color: rgba(255,253,240,.18); color: #FFFDF0 !important; }
.cx-foot .cx-social a:hover { background: #FDF659; border-color: #FDF659; color: #2C2C2C !important; }
.cx-foot__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(255,253,240,.14); font-size: 13px; color: rgba(255,253,240,.55); }
.cx-foot__bar nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.cx-foot__bar a { font-size: 13px; color: rgba(255,253,240,.7) !important; }
.cx-foot__top-link { display: inline-flex; align-items: center; gap: 6px; }
.cx-foot__top-link svg { width: 16px; height: 16px; }
.elementor-element-fbddfe9 video.cx-video { display: block; width: 100%; max-width: 1240px; height: auto !important; max-height: none; aspect-ratio: 16 / 9; object-fit: cover; background: #2C2C2C; }
@media (max-width: 1024px) {
	.cx-foot__top { grid-template-columns: 1fr; align-items: start; }
	.cx-foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
	.cx-foot { margin: 0 15px 15px; padding: 40px 22px 24px; }
	.cx-foot__grid { grid-template-columns: .85fr 1.15fr; row-gap: 34px; column-gap: 18px; }
	.cx-foot__brand { grid-column: 1 / -1; }
	.cx-foot__col:last-child { grid-column: 1 / -1; }
	.cx-foot__bar { flex-direction: column; align-items: flex-start; }
	.cx-foot__mark { width: 80vw; top: -6%; }
}
