/* MDRSI – Stylesheet. Keine externen Schriften, keine Tracker. */

:root {
	--ink: #092c4b;
	--ink-soft: #3a4b5e;
	--muted: #6a7581;
	--paper: #fbfaf7;
	--panel: #ffffff;
	--line: #e3e0d8;
	--accent: #1d5a8e;
	--accent-ink: #ffffff;
	--accent-soft: #e8eff6;

	--serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

	--wrap: 68rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 17px/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

h1, h2, h3 {
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* Kopf */

.site-header {
	border-bottom: 1px solid var(--line);
	background: var(--paper);
	position: sticky;
	top: 0;
	z-index: 10;
}

.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 5.5rem;
}

.brand { display: block; line-height: 0; }

.brand img { height: 3.4rem; width: auto; }

.site-nav a {
	color: var(--ink-soft);
	text-decoration: none;
	font-size: 0.95rem;
	margin-left: 1.75rem;
}

.site-nav a:hover { color: var(--accent); }

/* Einstieg */

.hero {
	padding: 6rem 0 5rem;
	border-bottom: 1px solid var(--line);
}

.hero-grid {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 3rem;
	align-items: center;
}

.hero-logo { width: 100%; height: auto; }

.eyebrow {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 1.25rem;
}

.hero h1 {
	font-size: clamp(2.1rem, 4vw, 3rem);
	max-width: 22ch;
}

.hero .lead {
	font-size: 1.2rem;
	color: var(--ink-soft);
	max-width: 40em;
	margin: 1.5rem 0 2.25rem;
}

.button {
	display: inline-block;
	background: var(--accent);
	color: var(--accent-ink);
	padding: 0.8rem 1.5rem;
	border-radius: 3px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.98rem;
}

.button:hover { background: var(--ink); color: var(--accent-ink); }

.button.ghost {
	background: transparent;
	color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--line);
	margin-left: 0.75rem;
}

.button.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }

/* Abschnitte */

section { padding: 5rem 0; }

section + section { border-top: 1px solid var(--line); }

.section-head { max-width: 40em; margin-bottom: 3rem; }
.section-head h2 { font-size: 2rem; }
.section-head p { color: var(--ink-soft); }

/* Schwerpunkte */

.focus {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

.card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-top: 3px solid var(--accent);
	padding: 2.25rem 2rem 2rem;
}

.card .tag {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
	background: var(--accent-soft);
	padding: 0.25rem 0.6rem;
	border-radius: 2px;
	margin-bottom: 1.25rem;
}

.card h3 { font-size: 1.55rem; margin-bottom: 0.4em; }
.card .sub { color: var(--muted); margin-bottom: 1.5rem; }

.card ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.card li {
	padding: 0.7rem 0 0.7rem 1.4rem;
	border-top: 1px solid var(--line);
	position: relative;
	color: var(--ink-soft);
}

.card li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.3rem;
	width: 0.5rem;
	height: 1px;
	background: var(--accent);
}

/* Arbeitsweise */

.principles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.5rem 2.25rem;
	counter-reset: p;
}

.principles div { counter-increment: p; }

.principles h3 {
	font-size: 1.2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--ink);
}

.principles h3::before {
	content: counter(p, decimal-leading-zero);
	display: block;
	font-family: var(--sans);
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--accent);
	letter-spacing: 0.08em;
	margin-bottom: 0.5rem;
}

.principles p { color: var(--ink-soft); font-size: 0.98rem; }

/* Technik */

.stack {
	display: grid;
	grid-template-columns: 12rem 1fr;
	border-top: 1px solid var(--line);
}

.stack dt, .stack dd {
	margin: 0;
	padding: 1rem 0;
	border-bottom: 1px solid var(--line);
}

.stack dt { font-weight: 600; }
.stack dd { color: var(--ink-soft); }

/* Kontakt */

.contact {
	background: var(--ink);
	color: #e9ecef;
}

.contact h2 { color: #fff; font-size: 2rem; }
.contact p { color: #c3cad2; max-width: 36em; }
.contact .button { background: #fff; color: var(--ink); margin-top: 1rem; }
.contact .button:hover { background: var(--accent-soft); }
.contact .regions { margin-top: 2.5rem; font-size: 0.92rem; color: #9aa5b1; }

/* Fuss */

.site-footer {
	padding: 2rem 0;
	font-size: 0.88rem;
	color: var(--muted);
}

.site-footer .wrap {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}

.site-footer a { color: var(--muted); margin-left: 1.25rem; }
.site-footer a:hover { color: var(--ink); }

/* Rechtstexte */

.legal { padding: 4rem 0 5rem; }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: 2.3rem; margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2.25rem; }
.legal p, .legal li { color: var(--ink-soft); }
.placeholder { background: #fff3c4; padding: 0 0.25em; }

/* Schmale Bildschirme */

@media (max-width: 860px) {
	.focus, .principles, .hero-grid { grid-template-columns: 1fr; }
	.hero-logo { display: none; }
	.stack { grid-template-columns: 1fr; }
	.stack dt { border-bottom: 0; padding-bottom: 0; }
	.site-nav { display: none; }
	.hero { padding: 4rem 0 3.5rem; }
	section { padding: 3.5rem 0; }
	.button.ghost { margin: 0.75rem 0 0; }
}

/* Ablauf */

.steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 1.25rem;
	counter-reset: s;
}

.steps li {
	counter-increment: s;
	padding-top: 1rem;
	border-top: 3px solid var(--accent);
}

.steps li:nth-child(n+5) { border-top-color: var(--ink); }

.steps h3 { font-size: 1.1rem; margin-bottom: 0.35em; }

.steps h3::before {
	content: counter(s, decimal-leading-zero);
	display: block;
	font-family: var(--sans);
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--muted);
	letter-spacing: 0.08em;
	margin-bottom: 0.4rem;
}

.steps p { color: var(--ink-soft); font-size: 0.93rem; margin: 0; }

/* Profil */

.profile {
	display: grid;
	grid-template-columns: 11rem 1fr 19rem;
	gap: 3rem;
	align-items: start;
}

.portrait {
	width: 100%;
	height: auto;
	border-radius: 3px;
	filter: grayscale(0.15);
}

.profile h2 { font-size: 2rem; }
.profile p { color: var(--ink-soft); }

.facts {
	margin: 0;
	background: var(--panel);
	border: 1px solid var(--line);
	padding: 1.75rem 1.75rem 1.25rem;
}

.facts dt {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
	margin-top: 1rem;
}

.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 0.2rem 0 0; }

@media (max-width: 1000px) {
	.steps { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
}

@media (max-width: 860px) {
	.profile { grid-template-columns: 1fr; gap: 2rem; }
	.portrait { max-width: 10rem; }
}

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

/* Kennzahlen */

.figures {
	border-bottom: 1px solid var(--line);
	background: var(--panel);
}

.figures .wrap {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	padding-top: 2rem;
	padding-bottom: 2rem;
}

.figures strong {
	display: block;
	font-family: var(--serif);
	font-size: 2rem;
	line-height: 1.1;
	color: var(--ink);
}

.figures span { display: block; margin-top: 0.4rem; font-size: 0.9rem; line-height: 1.45; color: var(--muted); }

/* Werkzeuge auf den Karten */

.card .tools {
	margin: 1.25rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid var(--line);
	font-size: 0.85rem;
	color: var(--muted);
}

/* Projekte */

.timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--line);
}

.timeline li {
	display: grid;
	grid-template-columns: 9rem 1fr;
	gap: 1.5rem;
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--line);
}

.timeline .when {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--accent);
	padding-top: 0.15rem;
	font-variant-numeric: tabular-nums;
}

.timeline h3 { font-size: 1.12rem; margin-bottom: 0.2em; }
.timeline p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.timeline .detail { margin-top: 0.4rem; max-width: 46em; color: var(--ink-soft); font-size: 0.95rem; }

@media (max-width: 860px) {
	.figures .wrap { grid-template-columns: 1fr 1fr; }
	.timeline li { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* E-Mail-Adresse: im Quelltext rückwärts, auf dem Bildschirm richtig herum */

.rev { unicode-bidi: bidi-override; direction: rtl; }
.at::before { content: "@"; }

.contact .address { margin-top: 1rem; }
.contact .address a { color: #fff; }
