/*
 * Cashflow Lab – Schrift, Effekt-Startzustände und HTML-Bausteine in Text-Modulen.
 * Farben, Größen und Abstände der Module kommen aus dem Divi-Markup (gcid-cfl-*).
 * html.cfl-fx  = Bewegung erlaubt (kein prefers-reduced-motion), gesetzt im <head>
 * html.cfl-ready = motion.js läuft (GSAP geladen). Ohne beides ist alles statisch sichtbar.
 */

@font-face {
	font-family: "Archivo";
	src: url("fonts/archivo-var.woff2") format("woff2-variations"), url("fonts/archivo-var.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
}

:root {
	--cfl-bg: #0A0B0A;
	--cfl-surface: #131512;
	--cfl-line: #2A2E28;
	--cfl-text: #F2F1EC;
	--cfl-muted: #A3A69F;
	--cfl-accent: #C8F25A;
	--cfl-ease: cubic-bezier(.16, 1, .3, 1);
	/* Ebenen: 1 Inhalt, 40 Header, 60 Fortschritt, 70 Körnung, 100 Vorhang */
}

body.cfl-site { background: var(--cfl-bg); color: var(--cfl-muted); }
.cfl-site ::selection { background: var(--cfl-accent); color: var(--cfl-bg); }
.cfl-site #page-container { overflow: clip; }
.cfl-display :is(h1, h2, h3) { font-stretch: 118%; }
.cfl-site :is(a, button):focus-visible { outline: 2px solid var(--cfl-accent); outline-offset: 4px; border-radius: 6px; }

/* Körnung: fixiert, ohne Zeigerereignisse, nie auf scrollenden Containern */
html.cfl-fx body.cfl-site::after {
	content: ""; position: fixed; inset: -50%; z-index: 70; pointer-events: none; opacity: .055;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Topbar ---------- */
.cfl-topbar.et_pb_section {
	position: fixed !important; top: 0; left: 0; right: 0; z-index: 40;
	transition: transform .6s var(--cfl-ease), background-color .4s ease, border-color .4s ease;
	border-bottom: 1px solid transparent;
}
.admin-bar .cfl-topbar.et_pb_section { top: 32px; }
.cfl-topbar.is-scrolled { background-color: rgba(10, 11, 10, .72) !important; border-bottom-color: rgba(242, 241, 236, .08);
	-webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.cfl-topbar.is-hidden { transform: translateY(-110%); }

.cfl-logo a { display: inline-flex; align-items: center; gap: 11px; color: var(--cfl-text) !important; font-weight: 600;
	letter-spacing: -.02em; text-decoration: none; font-stretch: 112%; }
.cfl-logo strong { font-weight: 800; color: var(--cfl-accent); }
.cfl-logo-mark { position: relative; width: 22px; height: 22px; border-radius: 7px; background: var(--cfl-accent); flex: none; overflow: hidden; }
.cfl-logo-mark::after { content: ""; position: absolute; inset: 6px; border-radius: 3px; background: var(--cfl-bg);
	transition: transform .7s var(--cfl-ease); }
.cfl-logo a:hover .cfl-logo-mark::after { transform: rotate(135deg) scale(.7); }

.cfl-nav { display: flex; justify-content: center; gap: 36px; }
.cfl-nav a { position: relative; text-decoration: none; transition: color .3s ease; }
.cfl-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--cfl-accent);
	transform: scaleX(0); transform-origin: right; transition: transform .5s var(--cfl-ease); }
.cfl-nav a:hover { color: var(--cfl-text) !important; }
.cfl-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Buttons (Divi 5.16: Modulklassen liegen am <a>, Spezifität über #page-container) ---------- */
body #page-container .cfl-btn.et_pb_button { transition: background-color .35s ease, color .35s ease, border-color .35s ease, transform .2s ease !important; will-change: transform; }
body #page-container .cfl-btn.et_pb_button:hover { padding-left: 32px !important; padding-right: 32px !important; }
body #page-container .cfl-btn.et_pb_button:active { scale: .97; }
body #page-container .cfl-btn-sm.et_pb_button { font-size: 15px !important; padding: 12px 22px !important; }
body #page-container .cfl-btn-lg.et_pb_button { font-size: 20px !important; padding: 24px 46px !important; }
body #page-container .cfl-btn-lg.et_pb_button:hover { padding: 24px 46px !important; }
body #page-container .cfl-btn.et_pb_button::after { display: none !important; }

/* ---------- Hero ---------- */
.cfl-hero.et_pb_section { position: relative; min-height: 100dvh; justify-content: center; overflow: hidden; isolation: isolate; }
.cfl-hero > .et_pb_row:not(.cfl-flow) { position: relative; z-index: 2; }
.cfl-flow.et_pb_row { position: absolute !important; inset: 0; width: 100% !important; max-width: none !important;
	margin: 0 !important; padding: 0 !important; z-index: 0; pointer-events: none; }
.cfl-flow :is(.et_pb_column, .et_pb_code, .et_pb_code_inner) { width: 100%; height: 100%; margin: 0 !important; padding: 0 !important; }
.cfl-flow-canvas { display: block; width: 100%; height: 100%; }
.cfl-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: radial-gradient(120% 90% at 0% 60%, rgba(10, 11, 10, .9) 20%, rgba(10, 11, 10, .2) 70%, rgba(10, 11, 10, .65) 100%),
		linear-gradient(to bottom, rgba(10, 11, 10, 0) 70%, var(--cfl-bg) 100%); }

/* Hero-Headline fluid, damit "Content rein." / "Cashflow raus." auf Desktop je eine Zeile bleiben */
body #page-container .cfl-hero .cfl-kinetic h1 { font-size: clamp(52px, 8.3vw, 124px) !important; }

/* Kinetische Headlines (SplitText) */
.cfl-kinetic :is(h1, h2) { text-wrap: balance; }
.cfl-kinetic .cfl-word { display: inline-block; white-space: nowrap; }
.cfl-kinetic .cfl-char { display: inline-block; will-change: transform; font-stretch: calc(var(--w, 118) * 1%); font-weight: var(--wg, 800); }
.cfl-kinetic .cfl-char-mask { padding-bottom: .04em; margin-bottom: -.04em; }

/* ---------- Laufband ---------- */
.cfl-ticker-sec.et_pb_section { overflow: hidden; }
.cfl-ticker { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cfl-ticker-track { display: flex; align-items: center; width: max-content; }
.cfl-tick-word { font-size: clamp(42px, 6.4vw, 96px); font-weight: 800; font-stretch: 125%; text-transform: uppercase;
	letter-spacing: -.035em; line-height: 1.05; padding: 0 .32em; color: transparent; -webkit-text-stroke: 1.5px rgba(242, 241, 236, .5); }
.cfl-tick-word:nth-of-type(odd) { color: var(--cfl-text); -webkit-text-stroke: 0; }
.cfl-tick-star { flex: none; width: .9em; height: .9em; font-size: clamp(30px, 3.6vw, 52px); background: var(--cfl-accent);
	clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
@media (prefers-reduced-motion: no-preference) {
	.cfl-ticker-track { animation: cfl-marquee 38s linear infinite; }
	.cfl-tick-star { animation: cfl-spin 6s linear infinite; }
}
@keyframes cfl-marquee { to { transform: translateX(-50%); } }
@keyframes cfl-spin { to { rotate: 360deg; } }

/* ---------- Ansatz: horizontal gepinnt (html.cfl-pin setzt motion.js ab 981px) ---------- */
.cfl-panel.et_pb_column { position: relative; overflow: hidden; min-height: 420px; }
.cfl-panel.et_pb_column::before { content: ""; position: absolute; right: -18%; top: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle, rgba(200, 242, 90, .16), rgba(200, 242, 90, 0) 65%); pointer-events: none; }
html.cfl-pin .cfl-pan-track.et_pb_row { max-width: none !important; width: max-content !important; margin-left: 5vw !important;
	margin-right: 0 !important; flex-wrap: nowrap !important; align-self: flex-start; will-change: transform; }
html.cfl-pin .cfl-panel.et_pb_column { flex: 0 0 min(76vw, 1040px) !important; max-width: none !important; min-height: min(56vh, 560px); }
html.cfl-pin .cfl-pan.et_pb_section { min-height: 100vh; padding-top: 112px !important; padding-bottom: 48px !important; }

.cfl-fillword :is(h1, h2, h3) {
	--fill: 100%;
	-webkit-text-fill-color: transparent; -webkit-text-stroke: 1.5px rgba(242, 241, 236, .55);
	background: linear-gradient(90deg, var(--cfl-accent), var(--cfl-accent)) no-repeat 0 0 / var(--fill) 100%;
	-webkit-background-clip: text; background-clip: text; text-transform: uppercase;
}
html.cfl-ready .cfl-fillword :is(h1, h2, h3) { --fill: 0%; }

/* ---------- Statement ---------- */
html.cfl-ready .cfl-scrub .cfl-word { opacity: .14; }
.cfl-scrub .cfl-word.is-accent { color: var(--cfl-accent); }

/* ---------- Kanäle ---------- */
.cfl-spot.et_pb_column { position: relative; isolation: isolate; min-height: 380px; transform-style: preserve-3d;
	transition: border-color .4s ease; }
.cfl-spot.et_pb_column::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(200, 242, 90, .16), transparent 60%);
	transition: opacity .4s ease; pointer-events: none; }
.cfl-spot.et_pb_column:hover { border-color: rgba(200, 242, 90, .45) !important; }
.cfl-spot.et_pb_column:hover::before { opacity: 1; }
.cfl-ch-icon { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 18px;
	background: rgba(200, 242, 90, .1); color: var(--cfl-accent); transition: transform .6s var(--cfl-ease), background-color .4s ease; }
.cfl-ch-icon svg { width: 30px; height: 30px; }
.cfl-spot:hover .cfl-ch-icon { transform: rotate(-8deg) scale(1.08); background: var(--cfl-accent); color: var(--cfl-bg); }

/* ---------- Transparenz ---------- */
.cfl-zero { display: flex; align-items: flex-start; margin: 0; padding: 0 !important; font-size: clamp(150px, 24vw, 340px);
	font-weight: 800; font-stretch: 125%; line-height: .8; letter-spacing: -.06em; color: var(--cfl-accent);
	font-variant-numeric: tabular-nums; }
.cfl-euro { font-size: .36em; margin: .1em 0 0 .08em; font-stretch: 100%; }
.cfl-prose p + p { margin-top: 1em; }

/* ---------- Kontakt ---------- */
.cfl-contact.et_pb_section { position: relative; overflow: hidden; }
.cfl-contact.et_pb_section::before { content: ""; position: absolute; left: 50%; bottom: -55%; width: 120vw; aspect-ratio: 2 / 1;
	translate: -50% 0; border-radius: 50%; pointer-events: none;
	background: radial-gradient(closest-side, rgba(200, 242, 90, .14), rgba(200, 242, 90, 0)); }
.cfl-contact a[href^="mailto"] { text-decoration: underline; text-decoration-color: var(--cfl-accent); text-underline-offset: 5px; }

/* ---------- Footer ---------- */
.cfl-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px 22px; padding: 0 !important; }
.cfl-foot a { text-decoration: none; transition: color .3s ease; }
.cfl-foot a:hover { color: var(--cfl-accent) !important; }
.cfl-sep { width: 1px; height: 14px; background: var(--cfl-line); }

/* ---------- Rechtsseiten ---------- */
.cfl-back a { text-decoration: none; }
.cfl-legal h2 { font-family: "Archivo", sans-serif; font-size: 26px; font-weight: 800; font-stretch: 110%; letter-spacing: -.02em;
	line-height: 1.2; color: var(--cfl-text); margin: 2.2em 0 .6em; padding: 0; }
.cfl-legal h2:first-child { margin-top: 0; }
.cfl-legal p { margin: 0 0 1em; padding: 0; }
.cfl-legal a { text-decoration: underline; text-decoration-color: var(--cfl-accent); text-underline-offset: 4px; }

/* ---------- Vorhang + Fortschritt ---------- */
.cfl-curtain { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
	background: var(--cfl-accent); color: var(--cfl-bg); pointer-events: none; }
html.cfl-fx .cfl-curtain { display: flex; }
.cfl-curtain-word { font-family: "Archivo", sans-serif; font-size: clamp(28px, 8.4vw, 140px); font-weight: 600; font-stretch: 125%;
	letter-spacing: -.04em; text-transform: uppercase; }
.cfl-curtain-word strong { font-weight: 900; }
.cfl-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: var(--cfl-accent);
	transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.admin-bar .cfl-progress { top: 32px; }

/* ---------- Startzustände + Sicherheitsnetz ---------- */
/* Bis motion.js übernimmt, ist Bewegtes versteckt. Lädt es nicht, blendet CSS nach 2,5 s alles ein. */
html.cfl-fx:not(.cfl-ready) :is(.cfl-reveal, .cfl-kinetic, .cfl-split-up) { opacity: 0; animation: cfl-show .6s ease 2.5s forwards; }
html.cfl-fx:not(.cfl-ready) .cfl-curtain { animation: cfl-curtain-out .9s var(--cfl-ease) 2.5s forwards; }
@keyframes cfl-show { to { opacity: 1; } }
@keyframes cfl-curtain-out { to { transform: translateY(-100%); } }

/* ---------- Mobil ---------- */
@media (max-width: 980px) {
	.cfl-nav-col.et_pb_column { display: none !important; }
	.cfl-topbar .et_pb_column { flex: 1 1 auto !important; width: auto !important; }
	.admin-bar .cfl-topbar.et_pb_section, .admin-bar .cfl-progress { top: 46px; }
}
@media (max-width: 767px) {
	.cfl-topbar .et_pb_row { flex-wrap: nowrap !important; }
	.cfl-foot { justify-content: flex-start; }
	.cfl-panel.et_pb_column, .cfl-spot.et_pb_column { min-height: 0; }
	.cfl-zero { font-size: 46vw; }
}
@media (max-width: 600px) { .admin-bar .cfl-topbar.et_pb_section { top: 0; } }
