/*
 * Technik-Bereich auf der Startseite (29.11.2026): Scroll-Geschichte Scan → bereinigtes PDF/TIFF und Druck → Schnitt.
 * Bewusst eine dunkle „Bühne“ mitten in der hellen Seite (gilt in jedem Farbschema gleich), Systemschrift
 * (keine externen Schriften). Ohne .is-live (kein JS / Bewegung reduzieren) steht das Endbild still.
 */
.fus-tech {
	--ft-bg: #05070a;
	--ft-ink: #f5f7fa;
	--ft-sub: #a3adbb;
	--ft-mute: #6b7685;
	--ft-line: rgba(255, 255, 255, 0.08);
	--ft-accent: #4d9fff;
	--ft-accent-strong: #1f6fe0;
	--ft-top: 0px;
	--ft-stage-w: min(100%, 1180px);
	position: relative;
	isolation: isolate;
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: none !important;
	margin: 0 !important;
	padding: clamp(84px, 10vw, 150px) 0 clamp(84px, 9vw, 140px);
	background: var(--ft-bg);
	color: var(--ft-ink);
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	text-align: center;
	overflow: clip;
}
.fus-tech *, .fus-tech *::before, .fus-tech *::after { box-sizing: border-box; }
.fus-tech::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 520px;
	background: radial-gradient(60% 100% at 50% 0%, rgba(77, 159, 255, 0.16), rgba(77, 159, 255, 0) 70%);
	pointer-events: none;
	z-index: -1;
}
#technik { scroll-margin-top: 66px; }

/* ---------- Kopf ---------- */
.fus-tech-head { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.fus-tech-eyebrow, .fus-tech-kick {
	margin: 0 0 14px;
	color: var(--ft-accent);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.fus-tech-title {
	margin: 0;
	color: var(--ft-ink);
	font-family: inherit;
	font-size: clamp(2.2rem, 5.4vw, 4.9rem);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.028em;
	text-wrap: balance;
}
.fus-tech-grad {
	background: linear-gradient(92deg, #9fd0ff 0%, #4d9fff 45%, #a99bff 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}
.fus-tech-intro {
	max-width: 680px;
	margin: 22px auto 0;
	color: var(--ft-sub);
	font-size: clamp(1.05rem, 1.45vw, 1.32rem);
	line-height: 1.5;
	text-wrap: pretty;
}

/* ---------- Kapitel (ruhender Zustand) ---------- */
.fus-tech-ch { position: relative; margin-top: clamp(64px, 8vw, 120px); }
.fus-tech-pin {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(18px, 2.4vw, 30px);
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 16px;
}
.fus-tech-copy { width: 100%; max-width: 1100px; }
.fus-tech-beats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	text-align: left;
	counter-reset: ftbeat;
}
.fus-tech-beat { counter-increment: ftbeat; border-top: 1px solid var(--ft-line); padding-top: 14px; }
.fus-tech-beat h3 {
	margin: 0 0 6px;
	color: var(--ft-ink);
	font-family: inherit;
	font-size: 1.08rem;
	font-weight: 650;
	line-height: 1.25;
	letter-spacing: -0.01em;
}
.fus-tech-beat h3::before { content: counter(ftbeat) " · "; color: var(--ft-accent); }
.fus-tech-beat p { margin: 0; color: var(--ft-sub); font-size: 0.95rem; line-height: 1.5; }

.fus-tech-stagewrap { display: flex; align-items: center; justify-content: center; width: 100%; }
.fus-tech-stage {
	position: relative;
	width: var(--ft-stage-w);
	aspect-ratio: 16 / 10;
	border-radius: clamp(16px, 2.2vw, 30px);
	overflow: hidden;
	background: radial-gradient(70% 70% at 50% 42%, #18202a 0%, #0c1016 62%, #07090c 100%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 40px 80px -30px rgba(0, 0, 0, 0.8);
	font-size: clamp(8px, 1vw, 13px);
	text-align: left;
	user-select: none;
	container-type: inline-size;
}
/* cqw gilt für die Kinder der Bühne (die Bühne selbst ist der Container) – Schrift wächst mit der Bühne. */
@supports (font-size: 1cqw) {
	.fus-tech-stage > * { font-size: clamp(6.5px, 1.42cqw, 15px); }
}
.fus-tech-stage svg { display: block; width: 100%; height: 100%; overflow: hidden; }

.fus-tech-steps {
	display: flex;
	justify-content: center;
	gap: clamp(8px, 2.2vw, 26px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.fus-tech-steps li {
	position: relative;
	min-width: clamp(62px, 11vw, 138px);
	margin: 0;
	padding: 12px 0 0;
	color: var(--ft-mute);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.01em;
	text-align: left;
	transition: color 0.3s ease;
}
.fus-tech-steps li::before, .fus-tech-steps li::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	height: 3px;
	border-radius: 3px;
}
.fus-tech-steps li::before { right: 0; background: #1f262f; }
.fus-tech-steps li::after { width: var(--f, 100%); background: var(--ft-accent); }
.fus-tech-steps li.is-on { color: var(--ft-ink); }
.fus-tech-steps li.is-done { color: #8a96a6; }
.fus-tech-steps li.is-done::after { background: #3b5a85; }

/* ---------- Abschluss ---------- */
.fus-tech-cta { margin: clamp(70px, 9vw, 120px) auto 0; padding: 0 16px; }
.fus-tech-cta p { margin: 0 0 22px; color: #c6ced9; font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 500; letter-spacing: -0.01em; }
.fus-tech-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.9em 1.7em;
	border-radius: 999px;
	background: var(--ft-accent-strong);
	color: #fff !important;
	font-size: 1.02rem;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.fus-tech-btn:hover { background: #3a86f2; transform: translateY(-1px); }
.fus-tech-btn:focus-visible { outline: 3px solid #9fd0ff; outline-offset: 3px; }

/* ---------- Kapitel 1: Plan, Scanner, Betrachter (PDF/TIFF) ----------
 * Bewusst KEIN CAD/Vektor (bieten wir nicht an) – am Ende steht der bereinigte Scan als fertiges Dokument. */
.fus-tech-studio {
	position: absolute;
	inset: 0;
	background: radial-gradient(46% 52% at 50% 50%, rgba(255, 236, 200, 0.09), rgba(255, 236, 200, 0) 70%);
	opacity: calc(1 - var(--view, 1));
}
.fus-tech-view {
	position: absolute;
	inset: 0;
	opacity: var(--view, 1);
	background: linear-gradient(180deg, #2b3038 0%, #23272e 100%);
	color: #c9d2de;
}
.fus-tech-view-bar {
	position: absolute;
	inset: 0 0 auto 0;
	height: 7%;
	display: flex;
	align-items: center;
	gap: 2.2%;
	padding: 0 1.6%;
	background: #31363f;
	border-bottom: 1px solid #3c434d;
	white-space: nowrap;
}
.fus-tech-view-dots { display: inline-flex; gap: 0.5em; }
.fus-tech-view-dots i { width: 0.85em; height: 0.85em; border-radius: 50%; background: #ff5f57; }
.fus-tech-view-dots i:nth-child(2) { background: #febc2e; }
.fus-tech-view-dots i:nth-child(3) { background: #28c840; }
.fus-tech-view-file { color: #eef2f7; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.fus-tech-view-tools { display: inline-flex; align-items: center; gap: 0.9em; margin-left: auto; color: #8b95a5; }
.fus-tech-view-tools b { min-width: 4.2em; padding: 0.25em 0.6em; border-radius: 0.4em; background: #23272e; color: #eef2f7; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.fus-tech-view-pages {
	position: absolute;
	left: 1.2%;
	top: 10%;
	width: 15.6%;
	display: flex;
	flex-direction: column;
	gap: 0.7em;
	padding: 0.9em 0.8em;
	border-radius: 0.8em;
	background: #262b32;
	border: 1px solid #353c46;
}
.fus-tech-view-h { color: #8b95a5; font-size: 0.86em; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fus-tech-view-page { display: flex; flex-direction: column; gap: 0.35em; opacity: 0.55; }
.fus-tech-view-page.is-on { opacity: 1; }
.fus-tech-view-page i {
	display: block;
	aspect-ratio: 1000 / 700;
	border-radius: 0.25em;
	background:
		linear-gradient(#22252a, #22252a) 18% 20% / 50% 4% no-repeat,
		linear-gradient(#22252a, #22252a) 18% 20% / 4% 58% no-repeat,
		linear-gradient(#22252a, #22252a) 18% 78% / 50% 4% no-repeat,
		linear-gradient(#22252a, #22252a) 66% 20% / 4% 62% no-repeat,
		linear-gradient(#9aa3ad, #9aa3ad) 92% 88% / 22% 14% no-repeat,
		#fbfbf8;
	outline: 2px solid transparent;
	outline-offset: 1px;
}
.fus-tech-view-page.is-on i { outline-color: var(--ft-accent); }
.fus-tech-view-page span { font-size: 0.86em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fus-tech-view-status {
	position: absolute;
	inset: auto 0 0 0;
	height: 5.6%;
	display: flex;
	align-items: center;
	gap: 2.4em;
	padding: 0 1.6%;
	background: #31363f;
	border-top: 1px solid #3c434d;
	color: #8b95a5;
	white-space: nowrap;
	overflow: hidden;
}
.fus-tech-view-typed { margin-left: auto; color: #7ee2a8; font-weight: 600; }

.fus-tech-plan {
	position: absolute;
	left: 19%;
	top: 15.3%;
	width: 62%;
	height: 69.4%;
	transform: translateY(calc((1 - var(--in, 1)) * 14%));
}
.fus-tech-plan > div { position: absolute; inset: 0; }
.fus-tech-plan-old {
	transform: rotate(-1.7deg) scale(0.982);
	-webkit-clip-path: inset(calc(var(--s, 1) * 100%) 0 0 0);
	clip-path: inset(calc(var(--s, 1) * 100%) 0 0 0);
	filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.55));
}
.fus-tech-plan-dig {
	-webkit-clip-path: inset(0 0 calc((1 - var(--s, 1)) * 100%) 0);
	clip-path: inset(0 0 calc((1 - var(--s, 1)) * 100%) 0);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
/* Lupe: Kreis = 24 % der Planbreite, Inhalt 2,4-fach (= 1000 % der Lupe); --lx/--ly = Mittelpunkt (0…1). */
.fus-tech-plan > .fus-tech-loupe {
	inset: auto;
	left: calc(var(--lx, 0.85) * 100% - 12%);
	top: calc(var(--ly, 0.49) * 100% - 17.143%);
	width: 24%;
	aspect-ratio: 1;
	border-radius: 50%;
	overflow: hidden;
	background: #fbfbf8;
	border: 3px solid rgba(255, 255, 255, 0.95);
	box-shadow: 0 1.4em 2.6em rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.3), inset 0 0 1.2em rgba(0, 0, 0, 0.18);
	opacity: var(--lo, 1);
	transform: scale(calc(0.8 + 0.2 * var(--lo, 1)));
}
.fus-tech-loupe-in {
	position: absolute;
	width: 1000%;
	aspect-ratio: 1000 / 700;
	left: calc((0.5 - var(--lx, 0.85) * 10) * 100%);
	top: calc((0.5 - var(--ly, 0.49) * 7) * 100%);
}
.fus-tech-loupe-in svg { width: 100%; height: 100%; }

.fus-tech-scanner {
	position: absolute;
	left: 11.5%;
	width: 77%;
	top: calc(15.3% + var(--s, 1) * 69.4%);
	height: 7.6%;
	transform: translateY(-50%);
	opacity: var(--scanop, 0);
	pointer-events: none;
}
.fus-tech-scanner-body {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 1.4em;
	height: 100%;
	padding: 0 2.2%;
	border-radius: 0.9em;
	background: linear-gradient(180deg, #454d58 0%, #262b32 46%, #15181c 100%);
	box-shadow: 0 1.6em 3em rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.6);
	color: #d5dce5;
	white-space: nowrap;
}
.fus-tech-scanner-led { width: 0.7em; height: 0.7em; border-radius: 50%; background: #34d399; box-shadow: 0 0 0.8em #34d399; }
.fus-tech-scanner-read { font-family: ui-monospace, Menlo, Consolas, monospace; }
.fus-tech-scanner-read b { color: #fff; font-weight: 700; }
.fus-tech-scanner-spec { margin-left: auto; color: #8590a0; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.9em; }
.fus-tech-scanner-light {
	position: absolute;
	left: 2%;
	right: 2%;
	bottom: -2px;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, rgba(159, 208, 255, 0), #9fd0ff 8%, #ffffff 50%, #9fd0ff 92%, rgba(159, 208, 255, 0));
	box-shadow: 0 0 10px 2px rgba(130, 195, 255, 0.85), 0 0 46px 12px rgba(77, 159, 255, 0.35);
}

.fus-tech-chips, .fus-tech-files, .fus-tech-done {
	position: absolute;
	margin: 0;
	padding: 0;
	list-style: none;
	pointer-events: none;
}
.fus-tech-chips {
	left: 50%;
	bottom: 3.4%;
	display: flex;
	gap: 0.7em;
	transform: translateX(-50%);
	white-space: nowrap;
}
.fus-tech-chips li, .fus-tech-done li {
	margin: 0;
	padding: 0.5em 1em;
	border-radius: 999px;
	background: rgba(14, 19, 26, 0.84);
	border: 1px solid rgba(255, 255, 255, 0.12);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: #e8eef6;
	font-weight: 500;
	opacity: 0;
}
.fus-tech-files { right: 1.6%; top: 10%; display: flex; flex-direction: column; gap: 0.55em; opacity: var(--files, 1); }
.fus-tech-files li {
	margin: 0;
	padding: 0.4em 0.9em;
	border-radius: 0.5em;
	background: rgba(77, 159, 255, 0.14);
	border: 1px solid rgba(77, 159, 255, 0.45);
	color: #cfe4ff;
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-weight: 700;
	text-align: center;
}

/* ---------- Kapitel 2: Druck & Schnitt ---------- */
.fus-tech-stage--print { background: radial-gradient(80% 80% at 50% 45%, #161c24 0%, #0b0e13 64%, #07090c 100%); }
.fus-tech-print-svg { position: absolute; inset: 0; }
.fus-tech-led { transition: fill 0.2s ease; }
.fus-tech-printer.is-busy .fus-tech-led { animation: fusTechBlink 0.7s steps(1) infinite; }
@keyframes fusTechBlink { 50% { fill: #0f5132; } }
.fus-tech-done { left: 50%; bottom: 4%; display: flex; gap: 0.7em; transform: translateX(-50%); white-space: nowrap; }
.fus-tech-done li { opacity: var(--done, 1); }
.fus-tech-done b { color: #fff; }

/* Ruhender Zustand: Endbild zeigt alles. */
.fus-tech:not(.is-live) .fus-tech-chips { display: none; }

/* ---------- Abspielen beim Scrollen ---------- */
.fus-tech.is-live .fus-tech-ch { height: 430vh; margin-top: clamp(40px, 5vw, 70px); }
.fus-tech.is-live .fus-tech-ch--print { height: 400vh; }
.fus-tech.is-live .fus-tech-pin {
	position: -webkit-sticky;
	position: sticky;
	top: var(--ft-top, 0px);
	height: calc(100vh - var(--ft-top, 0px));
	justify-content: center;
	padding-top: clamp(14px, 3vh, 34px);
	padding-bottom: clamp(14px, 3vh, 30px);
}
@supports (height: 100svh) {
	.fus-tech.is-live .fus-tech-pin { height: calc(100svh - var(--ft-top, 0px)); }
}
.fus-tech.is-live .fus-tech-stagewrap { flex: 1 1 auto; min-height: 0; }
.fus-tech.is-live .fus-tech-beats { display: grid; grid-template-columns: 1fr; text-align: center; }
.fus-tech.is-live .fus-tech-beat {
	grid-area: 1 / 1;
	border: 0;
	padding: 0;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
	pointer-events: none;
}
.fus-tech.is-live .fus-tech-beat.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fus-tech.is-live .fus-tech-beat h3 { font-size: clamp(1.55rem, 3.3vw, 3rem); font-weight: 700; letter-spacing: -0.024em; line-height: 1.08; margin-bottom: 0.4em; text-wrap: balance; }
.fus-tech.is-live .fus-tech-beat h3::before { content: none; }
.fus-tech.is-live .fus-tech-beat p { max-width: 640px; margin: 0 auto; font-size: clamp(0.98rem, 1.3vw, 1.18rem); text-wrap: pretty; }
.fus-tech.is-live .fus-tech-steps li::after { transition: none; }

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 860px) {
	.fus-tech-beats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fus-tech-scanner-spec { display: none; }
}
@media (max-width: 600px) {
	.fus-tech-beats { grid-template-columns: 1fr; }
	.fus-tech-stage { font-size: 7px; border-radius: 14px; }
	.fus-tech-steps li { font-size: 11.5px; min-width: 0; flex: 1 1 0; }
	.fus-tech-steps { width: 100%; gap: 8px; }
	.fus-tech-view-status span:nth-child(2), .fus-tech-view-page span { display: none; }
	.fus-tech-chips li:nth-child(4) { display: none; }
	.fus-tech.is-live .fus-tech-ch { height: 360vh; }
	.fus-tech.is-live .fus-tech-ch--print { height: 340vh; }
}

@media (prefers-reduced-motion: reduce) {
	.fus-tech-printer.is-busy .fus-tech-led { animation: none; }
	.fus-tech-btn { transition: none; }
}
