/* =============================================================================
   Snapper A4 Kunden-Papers — gemeinsames Design
   Vertrag: SNAPPER_A4_PAPER_STYLE.md — NICHT redesignen, nur Tokens/Klassen nutzen.
   ============================================================================= */

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('https://base.snapper.network/assets/fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('https://base.snapper.network/assets/fonts/Inter-Medium.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('https://base.snapper.network/assets/fonts/Inter-SemiBold.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('https://base.snapper.network/assets/fonts/Inter-Bold.woff2') format('woff2');
}

@page { size: A4; margin: 0; }

:root {
	--primary: #00B8E6;
	--primary-hover: #008AAC;
	--logo-cyan: #0FB4C7;
	--navy: #063F59;
	--foreground: #0f172a;
	--muted: #f1f5f9;
	--muted-foreground: #64748b;
	--border: #e2e8f0;
	--card: #ffffff;
	--tip: #fff8e8;
	--tip-border: #f0d48a;
	--tip-text: #5c4a12;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	background: #e2e8f0;
	color: var(--foreground);
	font-family: Inter, "Segoe UI", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.page {
	width: 210mm;
	height: 297mm;
	max-height: 297mm;
	margin: 10mm auto;
	padding: 9mm 12mm 7mm;
	background: var(--card);
	box-shadow: 0 10px 36px rgba(15, 23, 42, 0.12);
	display: flex;
	flex-direction: column;
	gap: 4mm;
	position: relative;
	overflow: hidden;
	page-break-after: avoid;
	page-break-inside: avoid;
	break-inside: avoid;
}

.page::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 0;
	height: 5mm;
	background: linear-gradient(90deg, var(--navy) 0%, var(--primary) 100%);
}

.page::after {
	content: "";
	position: absolute;
	right: -40mm;
	top: -30mm;
	width: 90mm;
	height: 90mm;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 184, 230, 0.12) 0%, transparent 70%);
	pointer-events: none;
}

.header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8mm;
	margin-top: 2mm;
	margin-bottom: 1.5mm;
	position: relative;
	z-index: 1;
}

.logo {
	height: 10mm;
	width: auto;
	display: block;
}

.kicker {
	font-size: 8.5pt;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--primary-hover);
	white-space: nowrap;
}

/* Hero-Block: Logo → Titel → Lead mit etwas mehr Luft */
.hero {
	display: flex;
	flex-direction: column;
	gap: 3.5mm;
	position: relative;
	z-index: 1;
	margin-bottom: 1mm;
}

h1 {
	margin: 0;
	font-size: 22pt;
	font-weight: 700;
	line-height: 1.15;
	color: var(--navy);
	letter-spacing: -0.02em;
	max-width: 155mm;
	position: relative;
	z-index: 1;
}

.lead {
	margin: 0;
	font-size: 10.5pt;
	line-height: 1.45;
	color: #334155;
	max-width: 172mm;
	position: relative;
	z-index: 1;
}

.lead strong { color: var(--navy); font-weight: 600; }

.compare {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3mm;
	position: relative;
	z-index: 1;
}

.card {
	background: var(--muted);
	border: 1px solid var(--border);
	border-radius: 3mm;
	padding: 3.2mm 4mm;
	height: 100%;
}

.card.accent-primary { border-top: 3px solid var(--primary); background: #f0fbff; }
.card.accent-navy { border-top: 3px solid var(--navy); }

.card h2 {
	margin: 0 0 2mm;
	font-size: 11.5pt;
	font-weight: 700;
	color: var(--navy);
}

.card p, .card li {
	margin: 0;
	font-size: 9.5pt;
	line-height: 1.4;
	color: #334155;
}

.card ul {
	margin: 0;
	padding-left: 4.2mm;
}

.card li + li { margin-top: 1.3mm; }

.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 3mm;
	position: relative;
	z-index: 1;
}

.step {
	background: var(--navy);
	color: #fff;
	border-radius: 3mm;
	padding: 3.2mm 3.5mm 3.5mm;
	min-height: 0;
	position: relative;
	overflow: hidden;
}

.step::after {
	content: "";
	position: absolute;
	right: -6mm;
	bottom: -8mm;
	width: 22mm;
	height: 22mm;
	border-radius: 50%;
	background: rgba(0, 184, 230, 0.22);
}

.step .n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 7mm;
	height: 7mm;
	border-radius: 999px;
	background: var(--primary);
	color: #fff;
	font-size: 10pt;
	font-weight: 700;
	margin-bottom: 2mm;
}

.step h3 {
	margin: 0 0 1.5mm;
	font-size: 10.5pt;
	font-weight: 700;
	position: relative;
	z-index: 1;
}

.step p {
	margin: 0;
	font-size: 9pt;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.88);
	position: relative;
	z-index: 1;
}

.section-label {
	margin: 0;
	font-size: 8.5pt;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--primary-hover);
	position: relative;
	z-index: 1;
}

.cases {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 3mm;
	position: relative;
	z-index: 1;
	align-items: stretch;
}

.case {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 3mm;
	padding: 3.2mm;
	box-shadow: 0 1mm 2.5mm rgba(6, 63, 89, 0.04);
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.case-icon {
	width: 8mm;
	height: 8mm;
	margin-bottom: 2mm;
	display: block;
	color: var(--navy);
	flex-shrink: 0;
}

.case-icon .accent { color: var(--primary); fill: var(--primary); stroke: var(--primary); }

.case .tag {
	display: inline-block;
	font-size: 7.5pt;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--primary-hover);
	margin-bottom: 1.2mm;
}

.case h3 {
	margin: 0 0 1.8mm;
	font-size: 10.5pt;
	font-weight: 700;
	color: var(--navy);
}

.case p {
	margin: 0;
	font-size: 9pt;
	line-height: 1.35;
	color: #334155;
}

/* Nested „wie gefiltert“-Card: immer unten in der Fallbeispiel-Card */
.case-filter {
	margin-top: auto;
	padding: 1.8mm 2.2mm;
	border-radius: 1.5mm;
	background: #eef9fd;
	border: 1px solid rgba(0, 184, 230, 0.28);
	font-size: 8pt;
	line-height: 1.3;
	color: var(--navy);
	font-weight: 500;
}

.bottom {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	gap: 3mm;
	position: relative;
	z-index: 1;
	align-items: stretch;
}

.bottom > .card,
.bottom > .tip {
	height: 100%;
	min-height: 100%;
}

.tip {
	background: var(--tip);
	border: 1px solid var(--tip-border);
	border-radius: 3mm;
	padding: 3.2mm 4mm;
	align-self: stretch;
}

.tip h2 {
	margin: 0 0 1.8mm;
	font-size: 10.5pt;
	font-weight: 700;
	color: var(--tip-text);
}

.tip p {
	margin: 0;
	font-size: 9pt;
	line-height: 1.4;
	color: var(--tip-text);
}

.footer {
	margin-top: auto;
	flex-shrink: 0;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 6mm;
	padding-top: 2.5mm;
	border-top: 1px solid var(--border);
	font-size: 8pt;
	color: var(--muted-foreground);
	position: relative;
	z-index: 1;
}

.footer strong { color: var(--navy); font-weight: 600; }

.footer .mark {
	height: 7mm;
	width: auto;
	display: block;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 3mm;
}

.footer-meta {
	text-align: right;
	line-height: 1.35;
}

/* Link optisch wie Fließtext (keine Browser-Linkfarbe/-unterstreichung) */
.footer-meta a {
	color: inherit;
	text-decoration: none;
}

/* Dok.-Nr. + Version in einer Zeile, z. B. K-001 · v1.0 */
.footer-ids {
	display: block;
	margin-top: 1mm;
	font-weight: 600;
	color: var(--navy);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.footer-ids a {
	color: inherit;
	text-decoration: none;
}

.footer-ids .footer-version {
	color: var(--muted-foreground);
	font-weight: 600;
}

@media print {
	html, body {
		background: #fff;
		margin: 0;
		padding: 0;
	}
	.page {
		margin: 0;
		box-shadow: none;
		width: 210mm;
		height: 297mm;
		max-height: 297mm;
		page-break-after: avoid;
		page-break-inside: avoid;
		break-inside: avoid;
	}
}
