/* ---------------------------------------------------------------
   sb-compcard.com
   Fonts: /fonts/  |  Hero: /img/hero.webp
--------------------------------------------------------------- */

@font-face {
	font-family: 'Cherry Swash';
	src: url('/fonts/cherry-swash-latin-400-normal.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Inter';
	src: url('/fonts/inter-latin-400-normal.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Inter';
	src: url('/fonts/inter-latin-600-normal.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

:root {
	--ink: #ecebe8;
	--ink-dim: #9a9c9f;
	--ink-faint: #6d6f73;
	--brass: #c3ab7e;
	--bg-top: #23262a;
	--bg-mid: #191b1e;
	--bg-bottom: #101113;
	--hairline: rgba(236, 235, 232, 0.11);
	--pad: 1.5rem;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: var(--bg-bottom);
	background-image: linear-gradient(168deg, var(--bg-top) 0%, var(--bg-mid) 48%, var(--bg-bottom) 100%);
	background-attachment: fixed;
	color: var(--ink);
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
}

/* --- Sprachwahl ---------------------------------------------- */

.langbar {
	position: absolute;
	top: 1.25rem;
	right: var(--pad);
	z-index: 3;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.langbar a {
	color: var(--ink-faint);
	text-decoration: none;
	padding: 0.35rem 0.15rem;
}

.langbar a:hover,
.langbar a:focus-visible {
	color: var(--ink);
}

.langbar [aria-current='true'] {
	color: var(--ink);
}

.langbar span {
	color: var(--ink-faint);
	margin: 0 0.35rem;
}

/* --- Hero ----------------------------------------------------- */

.hero {
	position: relative;
	overflow: hidden;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 6rem var(--pad) 4rem;
}

.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url('/img/hero.webp');
	background-size: cover;
	background-position: 70% center;
	opacity: 0.42;
	z-index: 0;
}

.hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image: linear-gradient(to bottom, rgba(16, 17, 19, 0.86) 0%, rgba(16, 17, 19, 0.6) 45%, rgba(16, 17, 19, 0.95) 100%);
	z-index: 1;
}

.hero > * {
	position: relative;
	z-index: 2;
}

.name {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin: 0 0 2.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--brass);
}

/* --- Kamera mit Blitz ----------------------------------------- */

.cam {
	position: relative;
	flex: none;
	width: 20px;
	height: 20px;
	/* Feinjustierung zur Versalhoehe der Namenszeile */
	transform: translateY(-2px);
}

.cam-bulb {
animation: om-bulb 20s linear 2s infinite;
}

.cam svg {
	position: relative;
	display: block;
}

.cam-flash {
	position: absolute;
	left: 81%;
	top: 27%;
	width: var(--flash-size, 39px);
	height: var(--flash-size, 39px);
	margin: 0;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.4) 26%, rgba(255, 255, 255, 0) 62%);
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.8);
	animation: om-flash 20s linear 2s infinite;
}

@keyframes om-flash {
	0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
	0.25% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
	0.4% { opacity: 0.9; }
	0.85% { opacity: 0; transform: translate(-50%, -50%) scale(1.05); }
	1.9% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
	2.15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
	2.3% { opacity: 0.9; }
	2.75% { opacity: 0; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes om-bulb {
	0%, 100% { fill: #6b6b6b; }
	0.2%, 2.1% { fill: #ffffff; }
	0.9%, 2.8% { fill: #6b6b6b; }
}

.claim {
	margin: 0 0 2.5rem;
	font-family: 'Cherry Swash', Georgia, serif;
	font-weight: 400;
	font-size: clamp(3rem, 15vw, 8.5rem);
	line-height: 1.02;
	letter-spacing: -0.015em;
}

.claim span {
	display: block;
}

.claim .quiet {
	color: var(--ink-dim);
}

.lead {
	margin: 0 0 1.75rem;
	max-width: 34ch;
	font-size: clamp(1.15rem, 4.6vw, 1.5rem);
	line-height: 1.5;
}

.spec {
	margin: 0 0 0.75rem;
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-dim);
}

.terms {
	margin: 0 0 3rem;
	max-width: 38ch;
	color: var(--ink-dim);
}

.contact {
	margin: 0;
	font-family: 'Cherry Swash', Georgia, serif;
	font-size: clamp(1.35rem, 6vw, 2.25rem);
	line-height: 1.3;
	word-break: break-word;
}

.contact a {
	text-decoration: none;
	border-bottom: 1px solid var(--hairline);
	padding-bottom: 0.1em;
	transition: border-color 0.25s ease, color 0.25s ease;
}

.contact a:hover,
.contact a:focus-visible {
	color: var(--brass);
	border-bottom-color: var(--brass);
}

.contact + .contact {
	margin-top: 0.85rem;
}

.statement {
	padding: 5rem var(--pad) 4rem;
	border-top: 1px solid var(--hairline);
}

.statement-lead {
	margin: 0 0 1.5rem;
	max-width: 18ch;
	font-family: 'Cherry Swash', Georgia, serif;
	font-weight: 400;
	font-size: clamp(1.9rem, 8vw, 4rem);
	line-height: 1.12;
	letter-spacing: -0.01em;
}

.statement-body {
	margin: 0 0 2.5rem;
	max-width: 38ch;
	font-size: clamp(1.05rem, 4vw, 1.3rem);
	line-height: 1.55;
	color: var(--ink-dim);
}

.signature {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--brass);
}

@media (min-width: 48rem) {
	.statement {
		padding-top: 7rem;
	}
}

/* --- Glossar -------------------------------------------------- */

.entry {
	padding: 5rem var(--pad) 3rem;
	border-top: 1px solid var(--hairline);
}

.eyebrow {
	margin: 0 0 2.5rem;
	font-weight: 600;
	font-size: 0.75rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--brass);
}

.headword {
	margin: 0 0 0.5rem;
	font-family: 'Cherry Swash', Georgia, serif;
	font-weight: 400;
	font-size: clamp(2.25rem, 10vw, 4rem);
	line-height: 1.1;
}

.grammar {
	margin: 0 0 2.75rem;
	max-width: 46ch;
	font-size: clamp(1.05rem, 4vw, 1.3rem);
	line-height: 1.5;
	color: var(--ink-dim);
}

.grammar .phonetic {
	font-weight: 600;
	color: var(--brass);
	white-space: nowrap;
}

.grammar .tag {
	font-weight: 600;
	color: var(--ink);
}

.columns {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem 3rem;
	max-width: 100rem;
}

.columns p {
	margin: 0;
	max-width: 44ch;
}

.columns .definition {
	color: var(--ink);
}

.columns .aside {
	color: var(--ink-dim);
}

/* --- Fuß ------------------------------------------------------ */

.foot {
	padding: 2.5rem var(--pad) 3.5rem;
	font-size: 0.8rem;
	letter-spacing: 0.05em;
	color: var(--ink-faint);
}

.foot a {
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.foot a:hover,
.foot a:focus-visible {
	color: var(--ink);
	border-bottom-color: var(--hairline);
}

/* --- Impressumsseite ------------------------------------------ */

.legal {
	padding: 5rem var(--pad) 3rem;
	max-width: 60ch;
}

.legal h1 {
	margin: 0 0 2.5rem;
	font-family: 'Cherry Swash', Georgia, serif;
	font-weight: 400;
	font-size: clamp(2rem, 8vw, 3rem);
	line-height: 1.15;
}

.legal h2 {
	margin: 2.75rem 0 0.75rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-dim);
}

.legal p {
	margin: 0 0 1.1rem;
}

.legal .address {
	color: var(--ink);
}

.legal a {
	color: var(--brass);
	text-decoration: none;
}

.legal a:hover,
.legal a:focus-visible {
	text-decoration: underline;
}

/* --- Animation ------------------------------------------------ */

.fadeIn {
	opacity: 0;
	transform: translateX(-27px);
	animation: fadeInRight 1.39s 0.39s forwards;
	animation-timing-function: linear(0, 0.618 4.6%, 1.072 9.7%, 1.358 15.3%, 1.446 18.4%, 1.497 21.7%, 1.512 23.9%, 1.514 26.2%, 1.481 31.5%, 1.421 36.4%, 1.174 53.4%, 1.108 59.5%, 1.059 65.7%, 1.028 71.9%, 1.009 78.9%, 1);
}

.fadeIn.d1 {
	animation-delay: 0.62s;
}

.fadeIn.d2 {
	animation-delay: 0.85s;
}

.fadeIn.d3 {
	animation-delay: 1.08s;
}

.fadeIn.d4 {
	animation-delay: 1.31s;
}

@keyframes fadeInRight {
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

:focus-visible {
	outline: 2px solid var(--brass);
	outline-offset: 3px;
}

/* --- Ab Tablet ------------------------------------------------ */

@media (min-width: 48rem) {
	:root {
		--pad: 4rem;
	}

	body {
		font-size: 1.0625rem;
	}

	.hero {
		padding-top: 8rem;
		padding-bottom: 6rem;
	}

	.hero::before {
		background-position: 75% center;
		opacity: 0.5;
	}

	.hero::after {
		background-image: linear-gradient(100deg, rgba(16, 17, 19, 0.95) 0%, rgba(16, 17, 19, 0.78) 48%, rgba(16, 17, 19, 0.4) 100%);
	}

	.entry,
	.legal {
		padding-top: 7rem;
	}

	.columns {
		grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
		gap: 2.5rem 4rem;
	}
}

@media (min-width: 75rem) {
	:root {
		--pad: 6rem;
	}

	.claim {
		font-size: clamp(5rem, 9vw, 9.5rem);
	}
}

/* --- Reduzierte Bewegung -------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.fadeIn {
		opacity: 1;
		transform: none;
		animation: none;
	}

	.cam-flash,
	.cam-bulb {
		animation: none;
	}
}
