:root {
	color-scheme: light dark;
	--blue: #0a2a8c;
	--blue-strong: #071d63;
	--red: #d61f26;
	--bg: #ffffff;
	--bg-alt: #f4f6fb;
	--surface: #ffffff;
	--text: #1b2233;
	--muted: #556078;
	--border: #dde2ee;
	--link: #0a3fc2;
	--radius: 12px;
	--shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 4px 16px rgb(16 24 40 / 6%);
	--max: 1120px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0f1420;
		--bg-alt: #151c2c;
		--surface: #1a2236;
		--text: #e6e9f2;
		--muted: #a3adc4;
		--border: #2a3550;
		--link: #8fb0ff;
		--shadow: none;
	}
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-text-size-adjust: 100%;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--link);
}

a:focus-visible,
.btn:focus-visible {
	outline: 3px solid var(--red);
	outline-offset: 2px;
}

h1,
h2,
h3 {
	line-height: 1.2;
	margin: 0 0 0.6em;
}

h1 {
	font-size: clamp(1.8rem, 3vw + 1rem, 2.6rem);
}

h2 {
	font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem);
}

h3 {
	font-size: 1.2rem;
}

.container {
	width: 100%;
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 1.25rem;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -3rem;
	z-index: 100;
	padding: 0.5rem 1rem;
	background: var(--blue);
	color: #fff;
	border-radius: 0 0 8px 8px;
}

.skip-link:focus {
	top: 0;
}

/* Kopfzeile */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--border);
}

.header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	min-height: 4rem;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 800;
	font-size: 1.4rem;
	letter-spacing: -0.02em;
	color: var(--text);
	text-decoration: none;
}

.brand img {
	width: 40px;
	height: 40px;
}

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

.nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav a:not(.btn) {
	color: var(--text);
	text-decoration: none;
	font-weight: 500;
}

.nav a:not(.btn):hover,
.nav a[aria-current="page"] {
	color: var(--link);
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

@media (max-width: 560px) {
	.site-header {
		position: static;
	}

	.site-header .nav {
		gap: 0.25rem 0.9rem;
		font-size: 0.95rem;
	}
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 0.75rem 1.4rem;
	border-radius: 999px;
	border: 2px solid transparent;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.2;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn-sm {
	padding: 0.45rem 1rem;
}

.btn-primary {
	background: var(--blue);
	color: #fff;
}

.btn-primary:hover {
	background: var(--blue-strong);
}

.btn-outline {
	border-color: currentcolor;
	color: var(--link);
}

.btn-outline:hover {
	background: var(--bg-alt);
}

@media (prefers-color-scheme: dark) {
	.btn-primary {
		background: #2f5bff;
	}

	.btn-primary:hover {
		background: #4a70ff;
	}
}

/* Abschnitte */
.section {
	padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-alt {
	background: var(--bg-alt);
}

.section-head {
	max-width: 46rem;
	margin-bottom: 2.5rem;
}

.lead {
	font-size: 1.2rem;
	color: var(--muted);
}

.eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--red);
}

@media (prefers-color-scheme: dark) {
	.eyebrow {
		color: #ff8a8f;
	}
}

/* Einstieg */
.hero {
	padding: clamp(3rem, 8vw, 6rem) 0;
	background:
		radial-gradient(60rem 30rem at 85% 0%, color-mix(in srgb, var(--red) 10%, transparent), transparent 70%),
		radial-gradient(50rem 30rem at 0% 100%, color-mix(in srgb, var(--blue) 14%, transparent), transparent 70%);
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	align-items: center;
	gap: 3rem;
}

.mockup {
	justify-self: center;
	width: min(100%, 320px);
	padding: 1.25rem 1rem 1rem;
	border: 10px solid #1b2233;
	border-radius: 36px;
	background: var(--surface);
	box-shadow: 0 24px 48px rgb(10 42 140 / 22%);
	font-size: 0.9rem;
	line-height: 1.35;
}

@media (prefers-color-scheme: dark) {
	.mockup {
		border-color: #34405e;
	}
}

.mockup-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-weight: 700;
}

.mockup-count {
	color: var(--muted);
	font-weight: 600;
	font-size: 0.85rem;
}

.mockup-progress {
	height: 6px;
	margin: 0.6rem 0 0.9rem;
	border-radius: 3px;
	background: var(--bg-alt);
	overflow: hidden;
}

.mockup-progress span {
	display: block;
	width: 33%;
	height: 100%;
	background: var(--blue);
}

.mockup-list {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mockup-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--border);
	border-left: 4px solid var(--border);
	border-radius: 10px;
}

.mockup-list li:has(.is-done) {
	border-left-color: #1f9d55;
}

.mockup-list li:has(.is-active) {
	border-left-color: var(--red);
}

.mockup-text {
	display: grid;
	min-width: 0;
}

.mockup-text small {
	color: var(--muted);
}

.mockup-tag {
	flex: none;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	background: var(--bg-alt);
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 600;
}

.mockup-tag.is-done {
	background: color-mix(in srgb, #1f9d55 15%, transparent);
	color: #146c3a;
}

.mockup-tag.is-active {
	background: color-mix(in srgb, var(--red) 14%, transparent);
	color: #a3161c;
}

@media (prefers-color-scheme: dark) {
	.mockup-tag.is-done {
		color: #5ee08f;
	}

	.mockup-tag.is-active {
		color: #ff8a8f;
	}
}

.mockup-actions {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem;
	margin-top: 0.9rem;
}

.mockup-actions span {
	padding: 0.5rem 0;
	border-radius: 10px;
	background: var(--blue);
	color: #fff;
	text-align: center;
	font-weight: 600;
	font-size: 0.8rem;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 2rem 0 1rem;
}

.hint {
	font-size: 0.95rem;
	color: var(--muted);
}

@media (max-width: 760px) {
	.hero-grid {
		grid-template-columns: 1fr;
	}
}

/* Einsatzgebiete */
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.chips li {
	padding: 0.45rem 1rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	font-weight: 500;
}

/* Karten */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.card {
	padding: 1.5rem;
	border: 1px solid var(--border);
	border-top: 4px solid var(--blue);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.card:nth-child(even) {
	border-top-color: var(--red);
}

.card p {
	margin: 0;
	color: var(--muted);
}

.checklist {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 0.75rem 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.checklist li {
	position: relative;
	padding-left: 1.9rem;
}

.checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 80% no-repeat;
}

/* Kontakt */
.contact {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 2rem;
	align-items: center;
	padding: clamp(1.5rem, 4vw, 3rem);
	border-radius: calc(var(--radius) * 1.5);
	background: linear-gradient(135deg, var(--blue), var(--blue-strong));
	color: #fff;
}

.contact h2 {
	color: #fff;
}

.contact p {
	color: rgb(255 255 255 / 85%);
}

.contact address {
	font-style: normal;
	line-height: 1.8;
}

.contact a:not(.btn) {
	color: #fff;
}

.contact .btn-primary {
	background: #fff;
	color: var(--blue);
}

.contact .btn-primary:hover {
	background: #e8edff;
}

.contact .btn-outline {
	color: #fff;
}

.contact .btn-outline:hover {
	background: rgb(255 255 255 / 12%);
}

@media (max-width: 760px) {
	.contact {
		grid-template-columns: 1fr;
	}
}

/* Rechtstexte */
.prose {
	max-width: 52rem;
	padding-top: 3rem;
	padding-bottom: 4rem;
	overflow-wrap: anywhere;
}

.prose h1 {
	font-size: clamp(1.8rem, 3vw + 1rem, 2.4rem);
}

.prose h2,
.prose h4 {
	margin-top: 2rem;
	font-size: 1.3rem;
}

.prose h5 {
	font-size: 1.05rem;
}

/* 404 */
.notfound {
	padding: 6rem 0;
	text-align: center;
}

.notfound .actions {
	justify-content: center;
}

/* Fusszeile */
.site-footer {
	padding: 2rem 0;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: 0.95rem;
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.footer-inner p {
	margin: 0;
}

.site-footer .nav a:not(.btn) {
	color: var(--muted);
}
