/*
 * Croonlux – Ergänzungen zu den Bricks-Klassen.
 *
 * Nur, was sich in globalen Klassen schlecht pflegen lässt: Keyframes,
 * Reveal-Zustände (nur mit html.cx-js, damit ohne JS und im Builder alles
 * sichtbar bleibt), Wort-Aufhellen im Zitat, Pfeil- und Häkchen-Icons als
 * data-URI, Text-Outline, Scrollbar der Referenzleiste, reduzierte Bewegung.
 * Farben und Maße kommen ausschließlich aus Bricks-Variablen (var(--…)).
 */

/* Hervorhebung in Überschriften ------------------------------------------ */
h1 em,
h2 em {
	font-style: normal;
	color: var(--yellow);
}

.cx-h2--ink em {
	color: var(--ink);
	background: linear-gradient(transparent 62%, var(--yellow) 62%);
}

/* Tastaturfokus ------------------------------------------------------------ */
:where(.cx-btn, .cx-card, .cx-rail-btn, .cx-cinfo__item, .cx-logo, .cx-rail):focus-visible {
	outline: 2px solid var(--yellow);
	outline-offset: 3px;
}

/* Buttons mit Pfeil ---------------------------------------------------------- */
.cx-btn--arrow::after {
	content: "";
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.3s var(--ease);
}

.cx-btn--arrow:hover::after {
	transform: translateX(4px);
}

/* Hero: Ken Burns + Scroll-Hinweis ----------------------------------------- */
.cx-hero__bg {
	animation: cx-kb 22s var(--ease) infinite alternate;
	will-change: transform;
}

@keyframes cx-kb {
	from {
		transform: scale(1.04);
	}
	to {
		transform: scale(1.12) translate(-1.5%, -1%);
	}
}

.cx-scrollcue::after {
	animation: cx-cue 2.2s infinite;
}

@keyframes cx-cue {
	0% {
		transform: scaleY(0);
		transform-origin: top;
	}
	50% {
		transform: scaleY(1);
		transform-origin: top;
	}
	51% {
		transform-origin: bottom;
	}
	100% {
		transform: scaleY(0);
		transform-origin: bottom;
	}
}

/* Laufband ------------------------------------------------------------------- */
.cx-ticker__track {
	animation: cx-tick 38s linear infinite;
}

@keyframes cx-tick {
	to {
		transform: translateX(-50%);
	}
}

/* Reveal --------------------------------------------------------------------- */
html.cx-js .cx-rv {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 1s var(--ease), transform 1s var(--ease);
}

html.cx-js .cx-rv.is-in {
	opacity: 1;
	transform: none;
}

html.cx-js .cx-rv.cx-d1 {
	transition-delay: 0.1s;
}

html.cx-js .cx-rv.cx-d2 {
	transition-delay: 0.2s;
}

html.cx-js .cx-rv.cx-d3 {
	transition-delay: 0.3s;
}

/* Zitat: Wörter hellen beim Scrollen auf ------------------------------------ */
.cx-quote .cx-w {
	color: var(--navy-700);
	transition: color 0.1s;
}

.cx-quote .cx-w.is-lit {
	color: #fff;
}

/* Ablauf: Ziffern als Outline ---------------------------------------------- */
.cx-step__num {
	-webkit-text-stroke: 1px var(--steel);
	transition: color 0.4s, -webkit-text-stroke-color 0.4s;
}

.cx-step:hover .cx-step__num {
	-webkit-text-stroke-color: var(--yellow);
}

/* Häkchenliste --------------------------------------------------------------- */
.cx-checklist__item::before {
	content: "";
	flex: 0 0 22px;
	height: 22px;
	margin-top: 2px;
	border-radius: 50%;
	background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd200' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Referenzleiste ------------------------------------------------------------- */
.cx-rail::-webkit-scrollbar {
	display: none;
}

.cx-rail.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	user-select: none;
}

.cx-rail img {
	-webkit-user-drag: none;
}

/* Inhaltsseiten ohne Bricks-Layout (WordPress-Editor, z. B. Impressum) --------
   Bricks gibt den Inhalt dann direkt als article.wordpress aus. Der fixierte
   Header liegt darüber, daher der Abstand oben. */
/* body-Präfix: Bricks setzt danach width:1100px, der Theme-Stil hebt dessen max-width:100% auf. */
body #brx-content.wordpress {
	width: 100%;
	max-width: var(--wrap);
	overflow-wrap: break-word;
	margin: 0 auto;
	padding: calc(79px + clamp(56px, 8vw, 120px)) var(--pad) clamp(40px, 6vw, 80px);
}

#brx-content.wordpress::before {
	content: "Croonlux";
	display: block;
	margin-bottom: 22px;
	padding-left: 38px;
	background: linear-gradient(var(--yellow), var(--yellow)) left center / 28px 2px no-repeat;
	color: var(--yellow);
	font-family: "JetBrains Mono", monospace;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

#brx-content.wordpress > h1:first-child {
	margin: 0 0 clamp(32px, 4vw, 56px);
	padding-bottom: clamp(32px, 4vw, 56px);
	border-bottom: 1px solid var(--line);
	color: #fff;
	font-size: clamp(44px, 7vw, 110px);
	font-weight: 800;
	font-stretch: 112%;
	line-height: 0.95;
	letter-spacing: -0.02em;
}

#brx-content.wordpress > *:not(h1) {
	max-width: 72ch;
}

#brx-content.wordpress p,
#brx-content.wordpress li {
	color: var(--mist);
	font-size: 18px;
	line-height: 1.7;
}

#brx-content.wordpress p,
#brx-content.wordpress ul,
#brx-content.wordpress ol {
	margin: 0 0 1.1em;
}

#brx-content.wordpress ul,
#brx-content.wordpress ol {
	padding-left: 1.2em;
}

#brx-content.wordpress h2 {
	margin: 2.2em 0 0.6em;
	color: #fff;
	font-size: clamp(26px, 3vw, 40px);
	font-weight: 800;
	font-stretch: 112%;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

#brx-content.wordpress h3 {
	margin: 1.8em 0 0.5em;
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	font-stretch: 110%;
}

#brx-content.wordpress strong {
	color: #fff;
}

#brx-content.wordpress a {
	color: var(--yellow);
	text-decoration: underline;
	text-underline-offset: 3px;
}

#brx-content.wordpress a:hover {
	color: var(--yellow-soft);
}

/* Leistungs-Kacheln: Nummer als Badge, Pfeil als SVG-Icon -------------------- */
.cx-card .cx-card__num.brxe-text-basic {
	top: 28px;
	left: 20px;
	padding: 7px 11px 6px;
	border: 1px solid rgba(255, 210, 0, 0.35);
	border-radius: 999px;
	background-color: rgba(6, 11, 24, 0.62);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.14em;
}

.cx-card .cx-card__arrow.brxe-text-basic {
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background-color: rgba(6, 11, 24, 0.62);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font-size: 0;
	transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}

.cx-card .cx-card__arrow.brxe-text-basic::before {
	content: "";
	/* Absolut zentriert – das ausgeblendete Textzeichen belegt sonst eine eigene Grid-Zeile. */
	position: absolute;
	inset: 0;
	margin: auto;
	width: 20px;
	height: 20px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8.5 7H17v8.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8.5 7H17v8.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Beim Hover von ↗ nach → drehen (statt -45° auf ↑) */
.cx-card:hover .cx-card__arrow.brxe-text-basic {
	border-color: var(--yellow);
	transform: rotate(45deg);
}

/* Footer-Schriftzug als Laufband (Aufbau per JS, nur ohne reduzierte Bewegung) */
#brx-footer .cx-giant.is-marquee {
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.cx-giant__track {
	display: flex;
	width: max-content;
	animation: cx-giant var(--cx-giant-dur, 40s) linear infinite;
}

.cx-giant.is-paused .cx-giant__track {
	animation-play-state: paused;
}

.cx-giant__group,
.cx-giant__word {
	display: flex;
	flex: none;
}

.cx-giant__word {
	padding-right: 0.35em;
}

@keyframes cx-giant {
	to {
		transform: translateX(-50%);
	}
}

/* Scroll-Hinweis: unter 900 px kollidiert er mit der Faktenleiste ------------ */
@media (max-width: 899px) {
	.cx-hero .cx-scrollcue.brxe-text-basic {
		display: none;
	}
}

/* Burger: Tippfläche mind. 44 px, ohne die Header-Höhe zu verändern ---------- */
#brx-header .cx-menu .bricks-mobile-menu-toggle {
	box-sizing: content-box;
	padding: 14px 12px;
	margin: -14px -12px;
}

/* Reduzierte Bewegung -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.cx-hero__bg,
	.cx-scrollcue::after,
	.cx-ticker__track,
	.cx-giant__track {
		animation: none;
	}

	html.cx-js .cx-rv {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.cx-quote .cx-w {
		color: #fff;
		transition: none;
	}

	.cx-btn,
	.cx-btn--arrow::after,
	.cx-card,
	.cx-card__img,
	.cx-card__arrow,
	.cx-ref__img,
	.cx-step::before,
	.cx-step__num,
	.cx-tag,
	.cx-rail-btn,
	.cx-nav {
		transition: none;
	}
}
