/* ============================================================
   Sumaoptix — base.css
   Reset · Design-Tokens · Bänder · gemeinsame Komponenten.
   Sektions-CSS liegt NICHT hier, sondern je Block in dessen style.css.
   Farbwerte stehen ausschließlich hier in den Tokens — Komponenten
   benutzen nur var(--…) und funktionieren so in hell und dunkel.
   ============================================================ */

/* ---------- TOKENS (hell ist Standard, .band-dark kippt den Scope) ---------- */
:root {
	--red: #e30613;
	--red-dk: #c00510;
	--red-lt: #ff4b45;

	--ink: #111317;
	--ink-2: #575656;
	--muted: #8b8e92;
	--line: #e4e5e7;
	--line-2: #eeeff1;
	--surface: #ffffff;
	--card: #ffffff;
	--card-bd: #e4e5e7;
	--card-sh: 0 1px 2px rgba(17, 19, 23, .04), 0 14px 34px -22px rgba(17, 19, 23, .30);

	--r-s: 8px;
	--r-m: 14px;
	--r-l: 20px;
	--r-xl: 28px;

	--mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
	--sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--maxw: 1200px;
	--ease: cubic-bezier(.16, .84, .32, 1);
}

/* ---------- BÄNDER: definieren die Tokens für ihren Bereich neu ---------- */
.band {
	background: var(--surface);
	color: var(--ink);
	position: relative;
}

.band-tint {
	--surface: #f5f6f7;
	background: #f5f6f7;
}

.band-dark {
	--ink: #f2f3f5;
	--ink-2: #b0b4b9;
	--muted: #7b7f85;
	--line: rgba(255, 255, 255, .13);
	--line-2: rgba(255, 255, 255, .07);
	--surface: #0a0b0d;
	--card: rgba(255, 255, 255, .045);
	--card-bd: rgba(255, 255, 255, .11);
	--card-sh: none;
	background: var(--surface);
	color: var(--ink);
}

/* ---------- RESET ---------- */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	background: #fff;
	color: var(--ink);
	font-family: var(--sans);
	line-height: 1.6;
	letter-spacing: -.011em;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection {
	background: rgba(227, 6, 19, .16);
}

a {
	color: inherit;
	text-decoration: none;
}

img,
canvas,
svg {
	display: block;
	max-width: 100%;
}

button,
input,
textarea {
	font: inherit;
	color: inherit;
}

/* Sichtbarer Fokusring auf allen interaktiven Elementen */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--red);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ---------- LAYOUT ---------- */
.wrap {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: 24px;
	position: relative;
	z-index: 2;
}

.sec {
	padding: clamp(76px, 8.5vw, 124px) 0;
}

.sec-head {
	max-width: 720px;
	margin-bottom: clamp(38px, 4.6vw, 62px);
}

.sec-head h2 {
	margin: 16px 0 20px;
}

/* ---------- TYPO ---------- */
h1,
h2,
h3,
h4 {
	letter-spacing: -.032em;
	line-height: 1.06;
	font-weight: 700;
	color: var(--ink);
}

.h-xl {
	font-size: clamp(2.5rem, 5.9vw, 4.6rem);
	letter-spacing: -.042em;
}

.h-l {
	font-size: clamp(1.95rem, 3.9vw, 3.1rem);
	letter-spacing: -.038em;
}

.lead {
	font-size: clamp(1.02rem, 1.25vw, 1.16rem);
	color: var(--ink-2);
	line-height: 1.62;
	font-weight: 400;
}

.red {
	color: var(--red);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--mono);
	font-size: .685rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--muted);
	font-weight: 500;
}

.eyebrow::before {
	content: "";
	width: 9px;
	height: 9px;
	background: var(--red);
	border-radius: 1.5px;
	transform: rotate(-8deg);
	flex: 0 0 auto;
}

/* ---------- BUTTONS ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	white-space: nowrap;
	padding: 14px 24px;
	border-radius: 6px;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--ink);
	font-weight: 600;
	font-size: .94rem;
	cursor: pointer;
	letter-spacing: -.01em;
	transition: transform .4s var(--ease), background .25s, border-color .25s, box-shadow .4s, color .25s;
}

.btn:hover {
	transform: translateY(-1px);
	border-color: var(--ink);
}

.btn.primary {
	background: var(--red);
	border-color: var(--red);
	color: #fff;
	box-shadow: 0 8px 22px -12px rgba(227, 6, 19, .6);
}

.btn.primary:hover {
	background: var(--red-dk);
	border-color: var(--red-dk);
	box-shadow: 0 12px 30px -12px rgba(227, 6, 19, .7);
}

.band-dark .btn {
	border-color: rgba(255, 255, 255, .22);
	color: #fff;
}

.band-dark .btn:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, .07);
}

.band-dark .btn.primary {
	border-color: var(--red);
	background: var(--red);
	color: #fff;
}

.band-dark .btn.primary:hover {
	background: var(--red-dk);
	border-color: var(--red-dk);
	color: #fff;
}

.btn .arr {
	transition: transform .4s var(--ease);
}

.btn:hover .arr {
	transform: translateX(4px);
}

.lnk {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: .94rem;
	color: var(--red);
}

.lnk .arr {
	transition: transform .4s var(--ease);
}

.lnk:hover .arr {
	transform: translateX(4px);
}

/* Gemeinsame Einblend-Animation (FAQ-Antwort, CTA-Bestätigung usw.) */
@keyframes fu {
	to { opacity: 1; transform: none; }
}

/* ---------- REVEAL (global, wird von base.js aktiviert) ---------- */
.reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.in {
	opacity: 1;
	transform: none;
}

.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }

/* ---------- Reduced Motion: alles ruhig stellen ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}

	html {
		scroll-behavior: auto;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}
}
