/* BossClient Website – Kino-Design mit echten Aufnahmen aus dem Spiel */
:root {
	--bg: #05070d;
	--bg-2: #090c16;
	--panel: rgba(14, 18, 32, 0.62);
	--panel-strong: rgba(16, 21, 38, 0.86);
	--line: rgba(255, 255, 255, 0.08);
	--line-strong: rgba(255, 255, 255, 0.16);
	--text: #e9edf7;
	--dim: #9aa3b8;
	--mute: #636d84;
	--a1: #4f7cff;
	--a2: #8b5cff;
	--aur1: #1af28c;
	--aur2: #6a40f2;
	--glow: 26, 242, 140;
	--radius: 20px;
	--font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Roboto, Arial, sans-serif;
	--font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Roboto, Arial, sans-serif;
	--mono: ui-monospace, "Cascadia Mono", "Cascadia Code", "SF Mono", Consolas, "Roboto Mono", monospace;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--ease-io: cubic-bezier(.76, 0, .24, 1);
	--sky-opacity: .72;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 17px/1.6 var(--font);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
::selection { background: rgba(139, 92, 255, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--a1); outline-offset: 3px; border-radius: 8px; }
kbd {
	font: 600 .82em var(--font);
	padding: .12em .5em;
	border-radius: 7px;
	background: rgba(255, 255, 255, .08);
	border: 1px solid var(--line-strong);
	border-bottom-width: 2px;
	white-space: nowrap;
}
code { font: .9em var(--mono); background: rgba(255,255,255,.07); padding: .1em .4em; border-radius: 6px; }

.grad {
	background: linear-gradient(100deg, #8fb0ff 0%, var(--a2) 45%, var(--aur1) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

@keyframes logoPulse { 50% { transform: scale(1.06); filter: drop-shadow(0 0 40px rgba(139, 92, 255, .8)); } }

/* Kino-Balken: oeffnen sich sofort zum Breitbild, beim ersten Scrollen ganz weg */
.bars { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.bars i { position: absolute; left: 0; right: 0; height: 50.5vh; background: #020306; transition: height 1.3s cubic-bezier(.3, .7, .1, 1); }
.bars i:first-child { top: 0; }
.bars i:last-child { bottom: 0; }
body.ready .bars i { height: 11vh; }
body.opened .bars i { height: 0; transition-duration: 1.1s; }

/* Fortschritt der ganzen Seite, oben am Rand */
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 85; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); background: linear-gradient(90deg, var(--a1), var(--a2), rgb(var(--glow))); box-shadow: 0 0 12px rgba(var(--glow), .8); }

/* Mausrad-Scrollen uebernimmt das Skript, dann kein doppeltes Gleiten */
html.smooth-wheel { scroll-behavior: auto; }

/* ---------- Himmel, Filmkorn, Zeiger ---------- */
.sky { position: fixed; inset: 0; z-index: -2; opacity: var(--sky-opacity); transition: opacity .2s linear; }
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#stars { mix-blend-mode: screen; }
.sky.no-gl { background: radial-gradient(ellipse 120% 60% at 30% 55%, rgba(26, 242, 140, .22), transparent 60%), radial-gradient(ellipse 100% 50% at 75% 45%, rgba(106, 64, 242, .3), transparent 65%), linear-gradient(#020309, #0a1430); }

.grain {
	position: fixed; inset: -50%; z-index: 70; pointer-events: none; opacity: .07;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	animation: grain .9s steps(6) infinite;
}
@keyframes grain {
	0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
	60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(-2%, 6%); }
}

/* ---------- Navigation ---------- */
.nav {
	position: fixed; top: 14px; left: 50%; z-index: 80;
	transform: translateX(-50%);
	width: min(1180px, calc(100% - 28px));
	display: flex; align-items: center; gap: 18px;
	padding: 10px 12px 10px 16px;
	border-radius: 18px;
	border: 1px solid transparent;
	transition: background .4s, border-color .4s, box-shadow .4s, top .4s, opacity .6s, transform .6s var(--ease);
}
body.loading .nav { opacity: 0; transform: translate(-50%, -20px); }
.nav.scrolled {
	top: 10px;
	background: rgba(8, 11, 22, .72);
	border-color: var(--line);
	box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
	backdrop-filter: blur(18px) saturate(140%);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 18px var(--font-display); letter-spacing: -.01em; }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
	position: relative; text-decoration: none; color: var(--dim);
	font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 10px;
	transition: color .25s, background .25s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px;
	background: linear-gradient(90deg, var(--a1), var(--a2));
}
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.04); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	font: 700 16px var(--font); text-decoration: none; color: #fff;
	border-radius: 14px; border: 1px solid transparent; cursor: pointer;
	transition: box-shadow .35s, background .35s, border-color .35s;
	isolation: isolate; overflow: hidden; white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-lg { padding: 17px 28px; font-size: 17px; }
.btn-primary {
	background: linear-gradient(135deg, var(--a1), var(--a2));
	box-shadow: 0 8px 30px rgba(110, 90, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, .35) 50%, transparent 80%);
	transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-primary:hover { box-shadow: 0 12px 44px rgba(120, 100, 255, .7), 0 0 0 1px rgba(255,255,255,.12) inset; }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-ghost { background: rgba(255, 255, 255, .06); border-color: var(--line-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }

.spark {
	position: fixed; z-index: 96; width: 8px; height: 8px; pointer-events: none;
	background: radial-gradient(circle, #fff 0%, var(--c, #8b5cff) 45%, transparent 70%);
	border-radius: 50%;
	animation: spark .9s var(--ease) forwards;
}
@keyframes spark {
	from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
	to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.2); opacity: 0; }
}

/* ---------- Hero ---------- */
.hero {
	--hs: 1.12; --hb: 0px; --hp: 0;
	position: relative; height: 100vh; height: 100svh; min-height: 560px;
	display: grid; place-items: center; text-align: center;
	overflow: hidden; background: #020306;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-video {
	width: 100%; height: 100%; object-fit: cover;
	transform: scale(var(--hs));
	filter: blur(var(--hb)) saturate(1.15) contrast(1.05);
	transition: transform 2.6s var(--ease);
}
body.ready .hero { --hs: 1.04; }
body.opened .hero-video { transition: transform .35s var(--ease); }
/* WebGL-Bild ueber dem Video: Minecraft-Bloecke beim Start, Linse am Zeiger, RGB-Versatz */
.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.hero.gl .hero-gl { display: block; }
/* das Video liefert dann nur noch die Bilder, Zoom und Unschaerfe macht der Shader */
.hero.gl .hero-video { transform: none; filter: none; transition: none; }
.hero-shade {
	position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(180deg, rgba(2, 3, 6, .55) 0%, transparent 22%, transparent 55%, var(--bg) 100%),
		radial-gradient(ellipse 90% 70% at 50% 45%, transparent 40%, rgba(2, 3, 6, .65) 100%),
		rgba(2, 3, 6, calc(.18 + var(--hp) * .5));
}

.viewfinder {
	position: absolute; inset: 86px clamp(14px, 3vw, 34px) clamp(14px, 3vw, 34px); z-index: 2; pointer-events: none;
	font: 600 11px var(--mono); letter-spacing: .22em; color: rgba(255, 255, 255, .72); text-transform: uppercase;
	opacity: 0; transition: opacity 1.2s var(--ease) 1.2s;
}
body.ready .viewfinder { opacity: calc(1 - var(--hp) * 1.6); }
.vf-c { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(255, 255, 255, .7); }
.vf-c.tl { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.vf-c.tr { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
.vf-c.bl { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; }
.vf-c.br { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
.vf-top, .vf-bottom { position: absolute; left: 44px; right: 44px; display: flex; justify-content: space-between; gap: 20px; }
.vf-top { top: 6px; }
.vf-bottom { bottom: 6px; }
.rec { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.rec b { width: 9px; height: 9px; border-radius: 50%; background: #ff3b4e; box-shadow: 0 0 12px #ff3b4e; animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.tc { font-variant-numeric: tabular-nums; }

.hero-content {
	position: relative; z-index: 3; max-width: 1100px; padding: 0 20px; display: grid; justify-items: center;
	transform: translate3d(0, calc(var(--hp) * -120px), 0); opacity: calc(1 - var(--hp) * 1.4);
}
.badge {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 8px 16px; border-radius: 999px; text-decoration: none;
	font-size: 14px; font-weight: 600; color: #e2e7ff;
	background: rgba(8, 11, 22, .45); border: 1px solid rgba(255, 255, 255, .18);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	transition: background .3s, border-color .3s;
}
.badge:hover { background: rgba(79, 124, 255, .22); border-color: rgba(124, 140, 255, .5); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--aur1); box-shadow: 0 0 12px var(--aur1); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--aur1); animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }

.title {
	position: relative; margin: 22px 0 4px;
	font: 900 clamp(60px, 15vw, 232px)/.86 var(--font-display);
	letter-spacing: -.055em;
	display: flex; justify-content: center;
	filter: drop-shadow(0 12px 60px rgba(0, 0, 0, .55));
	user-select: none;
}
.title .ch {
	display: inline-block;
	background: linear-gradient(180deg, #ffffff 0%, #ffffff 42%, #cfd6ff 70%, #9a86ff 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	opacity: 0; transform: translateY(70%) scaleY(1.4); filter: blur(14px);
	transform-origin: 50% 100%;
}
body.ready .title .ch { animation: letterIn 1.1s var(--ease) forwards; animation-delay: calc(.45s + var(--i) * .06s); }
@keyframes letterIn { to { opacity: 1; transform: none; filter: blur(0); } }
/* RGB-Versatz: kurzer Glitch nach dem Einblenden und ab und zu */
.title::before, .title::after {
	content: attr(data-text); position: absolute; inset: 0; display: flex; justify-content: center;
	pointer-events: none; opacity: 0; mix-blend-mode: screen;
}
.title::before { color: rgba(255, 40, 90, .85); }
.title::after { color: rgba(40, 220, 255, .85); }
.title.glitch::before { animation: rgbA .5s steps(2) both; }
.title.glitch::after { animation: rgbB .5s steps(2) both; }
@keyframes rgbA {
	0% { opacity: 1; transform: translate(-8px, 0); clip-path: inset(10% 0 55% 0); }
	25% { transform: translate(6px, 0); clip-path: inset(60% 0 8% 0); }
	50% { transform: translate(-4px, 0); clip-path: inset(30% 0 40% 0); }
	75% { transform: translate(3px, 0); clip-path: inset(75% 0 2% 0); }
	100% { opacity: 0; transform: none; clip-path: inset(0); }
}
@keyframes rgbB {
	0% { opacity: 1; transform: translate(8px, 0); clip-path: inset(50% 0 20% 0); }
	25% { transform: translate(-6px, 0); clip-path: inset(5% 0 70% 0); }
	50% { transform: translate(5px, 0); clip-path: inset(40% 0 35% 0); }
	75% { transform: translate(-3px, 0); clip-path: inset(15% 0 60% 0); }
	100% { opacity: 0; transform: none; clip-path: inset(0); }
}

.tagline { margin: 12px 0 0; font: 600 clamp(20px, 3vw, 32px)/1.3 var(--font-display); color: #e4e8f6; letter-spacing: -.01em; text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
.rotator { position: relative; display: inline-block; min-width: 9ch; text-align: left; vertical-align: bottom; }
.rotator span {
	display: inline-block;
	background: linear-gradient(90deg, #ffffff, #a8f0ff 45%, #c9b0ff);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	animation: wordIn .6s var(--ease);
}
.rotator span.out { animation: wordOut .45s var(--ease) forwards; }
@keyframes wordIn { from { opacity: 0; transform: translateY(70%); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes wordOut { to { opacity: 0; transform: translateY(-70%); filter: blur(8px); } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

.scroll-hint {
	position: absolute; z-index: 3; bottom: clamp(44px, 7vh, 70px); left: 50%; transform: translateX(-50%);
	display: grid; justify-items: center; gap: 10px; text-decoration: none;
	font: 600 10px var(--mono); letter-spacing: .4em; padding-left: .4em; color: rgba(255, 255, 255, .65);
	opacity: calc(1 - var(--hp) * 3);
}
.scroll-hint i { position: relative; width: 1px; height: 46px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: #fff; animation: drip 1.8s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- Laufband ---------- */
.marquee {
	--skew: 0deg;
	position: relative; overflow: hidden; padding: 34px 0; background: var(--bg);
	border-block: 1px solid var(--line);
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; transform: skewX(var(--skew)); }
.marquee span { display: inline-flex; align-items: center; gap: 34px; padding-right: 34px; font: 800 clamp(34px, 6vw, 86px)/1 var(--font-display); letter-spacing: -.035em; color: #fff; white-space: nowrap; }
.marquee span.o { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .55); }
.marquee span::after { content: "✦"; font-size: .4em; color: var(--a2); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%) skewX(var(--skew)); } }

/* ---------- Abschnitte ---------- */
.section { position: relative; max-width: 1220px; margin: 0 auto; padding: 130px 20px 40px; }
.section-head { max-width: 820px; margin: 0 auto 60px; text-align: center; }
.eyebrow {
	display: inline-block; margin-bottom: 16px; padding: 6px 14px; border-radius: 999px;
	font: 600 12px var(--mono); letter-spacing: .2em; text-transform: uppercase;
	color: #c3cdff; background: rgba(79, 124, 255, .1); border: 1px solid rgba(124, 140, 255, .22);
}
h2 { margin: 0; font: 800 clamp(36px, 5.6vw, 72px)/1.04 var(--font-display); letter-spacing: -.04em; }
h3 { margin: 0 0 8px; font: 700 21px/1.25 var(--font-display); letter-spacing: -.015em; }
.section-head p { margin: 20px auto 0; max-width: 620px; color: var(--dim); font-size: 18px; }

/* Ueberschriften Wort fuer Wort von unten */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.16em; }
.split .w > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: 0 100%; transition: transform 1.1s var(--ease); transition-delay: calc(var(--wi) * 45ms); }
.split.in .w > span { transform: none; }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(34px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Hauptmenue-Fenster ---------- */
.showcase { perspective: 1800px; }
.window {
	--rx: 24deg; --s: .9;
	position: relative; max-width: 1140px; margin: 0 auto; border-radius: 18px; overflow: hidden;
	background: #0b0f1c; border: 1px solid var(--line-strong);
	box-shadow: 0 60px 140px -30px rgba(var(--glow), .35), 0 30px 60px rgba(0, 0, 0, .6);
	transform: rotateX(var(--rx)) scale(var(--s));
	transform-origin: 50% 0;
	transition: box-shadow 1.2s var(--ease);
}
.window-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: rgba(255,255,255,.035); border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: 10px; font-size: 13px; color: var(--mute); }
.window-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #05070d; }
.window-shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.07) 45%, transparent 60%); transform: translateX(-100%); animation: shine 7s ease-in-out 2.5s infinite; }
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }

/* ---------- ClickGUI live ---------- */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.demo-frame {
	position: relative; border-radius: 20px;
	border: 1px solid rgba(150, 130, 255, .28); background: #05070d;
	box-shadow: 0 50px 120px -30px rgba(110, 90, 255, .55), 0 0 0 8px rgba(255, 255, 255, .02);
}
.demo-frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: inherit; }
.demo-frame .frame-tag { top: -13px; left: 22px; background: rgba(8, 11, 22, .95); }
.frame-tag, .live {
	position: absolute; left: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
	padding: 5px 10px; border-radius: 8px; font: 600 10px var(--mono); letter-spacing: .18em; text-transform: uppercase;
	color: #fff; background: rgba(5, 7, 13, .65); border: 1px solid var(--line-strong);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.frame-tag::before, .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff3b4e; box-shadow: 0 0 10px #ff3b4e; animation: blink 1.2s steps(1) infinite; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.chapters li {
	position: relative; display: flex; gap: 14px; padding: 14px 16px; border-radius: 14px; cursor: pointer; overflow: hidden;
	border: 1px solid transparent; transition: background .35s, border-color .35s;
}
.chapters li:hover { background: rgba(255, 255, 255, .03); }
.chapters li.active { background: var(--panel-strong); border-color: rgba(150, 130, 255, .28); }
.chapters b { font: 600 12px/1.9 var(--mono); color: var(--mute); transition: color .35s; }
.chapters li.active b { color: var(--a2); }
.chapters span { display: grid; gap: 2px; font-size: 14px; color: var(--mute); transition: color .35s; }
.chapters strong { font: 700 17px var(--font-display); color: var(--dim); transition: color .35s; }
.chapters li.active span { color: var(--dim); }
.chapters li.active strong { color: #fff; }
.chapters i { position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--cp, 0) * 100%); background: linear-gradient(90deg, var(--a1), var(--a2)); opacity: 0; }
.chapters li.active i { opacity: 1; }

/* ---------- Karten / Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* ruhige Karten: nichts kippt oder wackelt mit der Maus, nur der Rand leuchtet dort auf */
.card {
	--mx: 50%; --my: 50%;
	position: relative; display: flex; flex-direction: column;
	border-radius: var(--radius); overflow: hidden;
	background: linear-gradient(180deg, rgba(20, 25, 44, .78), rgba(10, 13, 25, .82));
	border: 1px solid var(--line);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	transition: transform 1s var(--ease), border-color .4s, box-shadow .4s, opacity 1s var(--ease), filter 1s var(--ease);
}
.card::before {
	content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1px; pointer-events: none;
	background: radial-gradient(380px circle at var(--mx) var(--my), rgba(150, 120, 255, .8), rgba(79, 124, 255, .25) 40%, transparent 65%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
	opacity: 0; transition: opacity .4s;
}
.card:hover { border-color: rgba(150, 130, 255, .25); box-shadow: 0 30px 70px -25px rgba(90, 80, 255, .45); }
.card:hover::before { opacity: 1; }
.card.big { grid-column: span 2; grid-row: span 2; }
.card.wide { grid-column: span 2; }
.card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #05070d; }
.card.big .card-media { aspect-ratio: auto; flex: 1; min-height: 320px; }
.card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .6s; filter: saturate(1.1); }
.card:hover .card-media video { filter: saturate(1.35) contrast(1.08) brightness(1.08); }
.card-media.zoom-crop video { transform: scale(1.4); transform-origin: 78% 55%; }
.card-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(10, 13, 25, .9)); }
.card-body { position: relative; z-index: 2; padding: 20px 24px 26px; }
.card.big .card-body { padding: 26px 32px 34px; }
.card.big h3 { font-size: clamp(24px, 2.6vw, 34px); }
.card p { margin: 0; color: var(--dim); font-size: 16px; }
.chip {
	display: inline-block; margin-bottom: 12px; padding: 4px 11px; border-radius: 8px;
	font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase;
	color: #c9d1ff; background: rgba(139, 92, 255, .16); border: 1px solid rgba(139, 92, 255, .3);
}
.card-visual { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, rgba(106, 64, 242, .35), transparent 65%); }
.card.wide .card-visual { aspect-ratio: auto; min-height: 180px; }

/* Spotify-Karte */
.sp-card { display: flex; align-items: center; gap: 14px; width: 82%; padding: 14px; border-radius: 16px; background: rgba(8, 11, 20, .85); border: 1px solid var(--line-strong); box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.sp-cover { flex: none; width: 58px; height: 58px; border-radius: 12px; background: conic-gradient(from 0deg, var(--aur1), var(--a1), var(--a2), #f25abf, var(--aur1)); animation: hue 8s linear infinite; }
@keyframes hue { to { filter: hue-rotate(360deg); } }
.sp-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sp-info b { font-size: 15px; }
.sp-info span { font-size: 13px; color: var(--dim); }
.sp-bar { height: 4px; margin-top: 8px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.sp-bar i { display: block; height: 100%; width: 40%; border-radius: inherit; background: #1ed760; animation: progress 9s linear infinite; }
@keyframes progress { from { width: 4%; } to { width: 100%; } }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.eq i { width: 4px; border-radius: 2px; background: linear-gradient(var(--aur1), var(--a1)); animation: eq 1s ease-in-out infinite alternate; }
.eq i:nth-child(1) { animation-delay: -.2s; } .eq i:nth-child(2) { animation-delay: -.7s; } .eq i:nth-child(3) { animation-delay: -.4s; }
.eq i:nth-child(4) { animation-delay: -.9s; } .eq i:nth-child(5) { animation-delay: -.1s; } .eq i:nth-child(6) { animation-delay: -.55s; } .eq i:nth-child(7) { animation-delay: -.3s; }
@keyframes eq { from { height: 12%; } to { height: 100%; } }
.keys { position: absolute; bottom: 14px; display: flex; gap: 8px; font-size: 13px; }

/* Ladebildschirm-Karte */
.loading-card .card-visual { gap: 12px; align-content: center; }
.lc-logo { width: 64px; height: 64px; filter: drop-shadow(0 0 20px rgba(79,124,255,.6)); animation: logoPulse 2s ease-in-out infinite; }
.lc-bar { width: 60%; height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.lc-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--a1), var(--a2)); animation: lcLoad 3.2s var(--ease) infinite; }
@keyframes lcLoad { 0% { width: 0; } 75%, 100% { width: 100%; } }
.lc-tip { font-size: 13px; color: var(--dim); }

/* Fair-Play-Karte */
.fair { flex-direction: row; align-items: center; }
.fair .card-visual { flex: 0 0 38%; background: radial-gradient(circle at 50% 50%, rgba(26, 242, 140, .18), transparent 65%); }
.shield { width: 96px; height: 96px; fill: rgba(26, 242, 140, .08); stroke: var(--aur1); stroke-width: 2.5; stroke-linejoin: round; filter: drop-shadow(0 0 18px rgba(26, 242, 140, .5)); }
.shield .check { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.fair.in .shield .check { animation: draw 1s var(--ease) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Nordlicht-Farben ---------- */
.colors { position: relative; min-height: 100vh; min-height: 100svh; margin-top: 130px; display: flex; align-items: flex-end; overflow: hidden; background: #020306; }
.colors-stage { position: absolute; inset: 0; }
.color-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); filter: saturate(1.2); transition: opacity .9s var(--ease), transform 2.4s var(--ease); }
.color-video.active { opacity: 1; transform: scale(1); }
.flash { position: absolute; inset: 0; pointer-events: none; background: #fff; opacity: 0; mix-blend-mode: overlay; }
.flash.go { animation: flash .7s var(--ease); }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: .9; } 100% { opacity: 0; } }
.colors-stage.cut { animation: cut .45s steps(3); }
@keyframes cut { 0% { transform: translateX(-10px) scale(1.02); filter: hue-rotate(40deg) saturate(2); } 50% { transform: translateX(8px); } 100% { transform: none; filter: none; } }
.colors-shade {
	position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, var(--bg) 0%, transparent 20%, transparent 45%, rgba(2, 3, 6, .9) 100%), linear-gradient(90deg, rgba(2, 3, 6, .6), transparent 60%);
}
.colors-ui { position: relative; z-index: 2; width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px 80px; }
.colors-ui h2 { font-size: clamp(48px, 8vw, 120px); line-height: .95; text-shadow: 0 10px 60px rgba(0,0,0,.5); }
.colors-ui p { max-width: 540px; color: #d0d6e6; font-size: 18px; margin: 18px 0 26px; text-shadow: 0 2px 20px rgba(0,0,0,.8); }
.palette { display: flex; flex-wrap: wrap; gap: 10px; }
.palette button {
	display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px;
	font: 600 15px var(--font); color: #fff; cursor: pointer;
	border-radius: 999px; border: 1px solid var(--line-strong);
	background: rgba(8, 11, 22, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	transition: border-color .3s, background .3s, transform .3s var(--ease), box-shadow .3s;
}
.palette button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.35); }
.palette button.active { border-color: #fff; background: rgba(255,255,255,.14); box-shadow: 0 0 30px rgba(var(--glow), .45); }
.palette i { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 0 12px var(--c1); }
.palette i.rainbow { background: conic-gradient(#ff4d6d, #ffb84d, #3cf28c, #4dc3ff, #8b5cff, #ff4d6d); box-shadow: 0 0 12px #8b5cff; }

/* ---------- Module ---------- */
.mod-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.tabs { position: relative; display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tab-ind { position: absolute; z-index: 0; left: 0; top: 0; border-radius: 11px; background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 4px 20px rgba(110,90,255,.45); transition: transform .45s var(--ease), width .45s var(--ease), height .45s var(--ease); }
.tab { position: relative; z-index: 1; padding: 9px 14px; border: 0; border-radius: 11px; background: none; color: var(--dim); font: 600 14px var(--font); cursor: pointer; transition: color .3s; }
.tab:hover { color: #fff; }
.tab.active { color: #fff; }
.tab small { margin-left: 6px; opacity: .65; font-weight: 500; }
.search { display: flex; align-items: center; gap: 10px; min-width: 260px; padding: 0 16px; height: 50px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.search:focus-within { border-color: rgba(124,140,255,.6); box-shadow: 0 0 0 4px rgba(79,124,255,.15); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #fff; font: 15px var(--font); }
.search input::placeholder { color: var(--mute); }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.mod {
	position: relative; display: flex; gap: 14px; align-items: flex-start;
	padding: 18px; border-radius: 16px; text-align: left;
	background: linear-gradient(180deg, rgba(20, 25, 44, .7), rgba(11, 14, 26, .75));
	border: 1px solid var(--line);
	animation: modIn .5s var(--ease) both; animation-delay: calc(var(--n) * 25ms);
	transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.mod:hover { transform: translateY(-3px); border-color: rgba(150,130,255,.28); box-shadow: 0 16px 40px -18px rgba(90,80,255,.6); }
.mod::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--a1); opacity: 0; transition: opacity .3s; }
.mod.on::before { opacity: 1; }
@keyframes modIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.mod-text { flex: 1; min-width: 0; }
.mod-text b { display: block; font-size: 16px; margin-bottom: 3px; }
.mod.on .mod-text b { color: #a9bbff; }
.mod-text span { display: block; font-size: 14px; color: var(--dim); line-height: 1.45; }
.mod-cat { display: inline-block; margin-top: 10px; font: 600 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.switch { flex: none; position: relative; width: 46px; height: 26px; margin-top: 2px; border: 0; border-radius: 13px; background: #2a3044; cursor: pointer; transition: background .35s var(--ease), box-shadow .35s; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease); box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.mod.on .switch { background: var(--a1); box-shadow: 0 0 18px rgba(79,124,255,.6); }
.mod.on .switch::after { transform: translateX(20px); }
.switch:disabled { cursor: default; opacity: .75; }
.mod-empty { text-align: center; color: var(--dim); padding: 30px; }

/* ---------- Installation ---------- */
.steps { --p: 0; position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps::before { content: ""; position: absolute; top: 44px; left: 16%; right: 16%; height: 2px; background: var(--line-strong); }
.steps::after { content: ""; position: absolute; top: 44px; left: 16%; height: 2px; width: calc(68% * var(--p)); background: linear-gradient(90deg, var(--a1), var(--a2), var(--aur1)); box-shadow: 0 0 14px var(--a2); }
.step { position: relative; z-index: 1; padding: 0 22px 28px; text-align: center; }
.step-num {
	width: 88px; height: 88px; margin: 0 auto 22px; display: grid; place-items: center;
	font: 800 34px var(--font-display); border-radius: 26px;
	background: linear-gradient(160deg, rgba(30, 36, 62, .95), rgba(12, 15, 28, .95));
	border: 1px solid var(--line-strong);
	box-shadow: 0 0 0 8px var(--bg), 0 20px 40px -10px rgba(90,80,255,.45);
}
.step.in .step-num { animation: numGlow 3s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes numGlow { 50% { box-shadow: 0 0 0 8px var(--bg), 0 0 40px rgba(139,92,255,.6); border-color: rgba(150,130,255,.5); } }
.step p { margin: 0; color: var(--dim); }
.step a { color: #b4c2ff; text-decoration-color: rgba(180,194,255,.4); text-underline-offset: 3px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border-radius: 16px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: border-color .3s, background .3s; }
.faq-item.open { border-color: rgba(150,130,255,.3); background: var(--panel-strong); }
.faq-q { position: relative; width: 100%; padding: 22px 64px 22px 24px; border: 0; background: none; color: #fff; text-align: left; font: 600 18px var(--font); cursor: pointer; }
.faq-q::after { content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg); transition: transform .4s var(--ease), border-color .3s; }
.faq-item.open .faq-q::after { transform: rotate(-135deg) translate(-4px, -4px); border-color: var(--a2); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 24px 22px; color: var(--dim); }

/* ---------- Download ---------- */
.download { position: relative; margin-top: 130px; padding: 160px 20px; overflow: hidden; isolation: isolate; }
.download-media { position: absolute; inset: 0; z-index: -1; }
.download-media video { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.2) brightness(.75); }
.download-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(5, 7, 13, .35) 30%, rgba(5, 7, 13, .35) 70%, var(--bg) 100%); }
.download-card {
	position: relative; max-width: 980px; margin: 0 auto; padding: 70px 30px 56px; text-align: center;
	border-radius: 32px; overflow: hidden; isolation: isolate;
	background: linear-gradient(180deg, rgba(14, 18, 34, .55), rgba(7, 9, 18, .72));
	border: 1px solid rgba(255, 255, 255, .14);
	backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
	box-shadow: 0 50px 120px -30px rgba(90, 80, 255, .5);
}
.download-card::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 0deg, transparent, rgba(139,92,255,.22), transparent 30%, rgba(26,242,140,.15), transparent 60%); animation: rotate 14s linear infinite; }
@keyframes rotate { to { transform: rotate(1turn); } }
.dl-logo { width: 120px; height: 120px; margin: 0 auto 26px; filter: drop-shadow(0 0 40px rgba(110, 100, 255, .7)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.download-card > p { margin: 16px 0 0; color: var(--dim); }
.download-card small { display: block; margin-top: 26px; color: var(--mute); font-size: 14px; }
.download-card small a { color: #b4c2ff; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), #000 40px); padding: 34px 20px 40px; }
/* Video nur in den Buchstaben: dunkle Flaeche mit weisser Schrift, per "multiply" darueber */
.footer-mark { position: relative; max-width: 1500px; margin: 10px auto 40px; overflow: hidden; isolation: isolate; }
.footer-mark video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.15); filter: saturate(1.6) brightness(1.7) contrast(1.1); }
.footer-mark-text {
	position: relative; padding: .04em 0 .1em; text-align: center; white-space: nowrap;
	font: 900 clamp(48px, 15.6vw, 238px)/.86 var(--font-display); letter-spacing: -.06em;
	color: #fff; background: #000; mix-blend-mode: multiply; user-select: none;
}
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer nav a { color: var(--dim); text-decoration: none; font-size: 15px; transition: color .25s; }
.footer nav a:hover { color: #fff; }
.legal { max-width: 1180px; margin: 20px auto 0; color: var(--mute); font-size: 13px; }

/* ---------- Rechtliche Seiten ---------- */
.page { max-width: 820px; margin: 0 auto; padding: 140px 20px 80px; }
.page h1 { font: 800 clamp(36px, 6vw, 56px)/1.1 var(--font-display); letter-spacing: -.03em; margin: 0 0 28px; }
.page h2 { font-size: 24px; margin: 36px 0 10px; letter-spacing: -.01em; }
.page p, .page li { color: #c3c9da; }
.page a { color: #b4c2ff; }
.todo { padding: 14px 18px; border-radius: 12px; background: rgba(255, 184, 77, .1); border: 1px solid rgba(255, 184, 77, .35); color: #ffd79a !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
	.bento { grid-template-columns: repeat(2, 1fr); }
	.card.big { grid-column: span 2; grid-row: auto; }
	.demo-grid { grid-template-columns: 1fr; }
	.chapters { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
	.nav-links {
		position: fixed; top: 76px; left: 14px; right: 14px; flex-direction: column; gap: 2px; padding: 10px;
		background: rgba(8, 11, 22, .95); border: 1px solid var(--line); border-radius: 18px;
		backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
		opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
	}
	.nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
	.nav-links a { padding: 13px 14px; font-size: 17px; }
	.nav-links a.active::after { display: none; }
	.burger { display: block; }
	.nav > .btn { margin-left: auto; }
	.steps { grid-template-columns: 1fr; gap: 10px; }
	.steps::before, .steps::after { display: none; }
	.vf-bottom span:nth-child(2) { display: none; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.bento { grid-template-columns: 1fr; }
	.card.big, .card.wide { grid-column: auto; }
	.card.big .card-media { min-height: 240px; }
	.fair { flex-direction: column; align-items: stretch; }
	.hero-cta .btn { width: 100%; }
	.section { padding-top: 100px; }
	.search { min-width: 0; width: 100%; }
	.window { --rx: 0deg !important; --s: 1 !important; }
	.download { padding: 110px 14px; }
	.download-card { padding: 54px 20px 44px; }
	.chapters { grid-template-columns: 1fr; }
	.chapters li { padding: 10px 12px; }
	.vf-top span:nth-child(2) { display: none; }
	.vf-top, .vf-bottom { left: 34px; right: 34px; }
	.colors-ui { padding-bottom: 56px; }
	.marquee { padding: 24px 0; }
	.footer-mark { margin-bottom: 26px; }
}

/* Weniger Bewegung, wenn gewuenscht */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.reveal, .title .ch, .split .w > span { opacity: 1 !important; transform: none !important; filter: none !important; }
	.window { --rx: 0deg; --s: 1; }
	.marquee-track { animation: none; }
	.grain { display: none; }
}
