/* riederer-it.de — one page, no build step, no external requests */

:root {
	--accent: #0395DE;
	--accent-ink: #026ca1;
	--bg: #ffffff;
	--bg-alt: #f4f6f8;
	--card: #ffffff;
	--ink: #1b1f24;
	--ink-soft: #545c66;
	--rule: #e0e5ea;
	--shadow: 0 1px 2px rgba(16, 24, 32, .06), 0 8px 24px rgba(16, 24, 32, .05);
	--radius: 10px;
	--measure: 46rem;
}

@media (prefers-color-scheme: dark) {
	:root {
		--accent: #4db8ef;
		--accent-ink: #7fccf5;
		--bg: #14181d;
		--bg-alt: #1a1f26;
		--card: #1c222a;
		--ink: #e6eaee;
		--ink-soft: #9aa4b0;
		--rule: #2b323b;
		--shadow: none;
	}
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-feature-settings: "kern", "liga";
}

.wrap {
	width: min(100% - 2.5rem, 62rem);
	margin-inline: auto;
}

a {
	color: var(--accent-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}
a:hover { color: var(--accent); }

code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .9em;
	background: var(--bg-alt);
	padding: .1em .35em;
	border-radius: 4px;
}

/* ---------------------------------------------------------------- hero --- */

.hero {
	background: var(--bg-alt);
	border-bottom: 1px solid var(--rule);
	padding: clamp(3rem, 9vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.eyebrow {
	margin: 0 0 .75rem;
	font-size: .8rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.hero h1 {
	margin: 0;
	font-size: clamp(2.4rem, 7vw, 3.8rem);
	line-height: 1.05;
	letter-spacing: -.02em;
}

.hero .role {
	margin: .4rem 0 1.5rem;
	font-size: clamp(1.1rem, 2.6vw, 1.4rem);
	font-weight: 600;
	color: var(--accent-ink);
}

.lede {
	max-width: var(--measure);
	font-size: 1.08rem;
	color: var(--ink-soft);
}

.links {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem 1.6rem;
	margin: 1.8rem 0 0;
	padding: 0;
	list-style: none;
	font-weight: 600;
}

/* --------------------------------------------------------------- facts --- */

.facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: 1px;
	margin: 3rem 0 0;
	background: var(--rule);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	overflow: hidden;
}

.fact {
	background: var(--card);
	padding: 1.2rem 1.3rem;
}

.fact b {
	display: block;
	font-size: 1.7rem;
	line-height: 1.1;
	letter-spacing: -.02em;
	color: var(--accent-ink);
}

.fact span {
	font-size: .88rem;
	color: var(--ink-soft);
}

/* ------------------------------------------------------------ sections --- */

main { padding-bottom: 4rem; }

section { margin-top: clamp(3rem, 7vw, 4.5rem); }

h2 {
	margin: 0 0 1.8rem;
	padding-bottom: .5rem;
	border-bottom: 2px solid var(--accent);
	font-size: 1.35rem;
	letter-spacing: -.01em;
}

h3 {
	margin: 0;
	font-size: 1.08rem;
	line-height: 1.35;
}

.at {
	color: var(--accent-ink);
	font-weight: 600;
}
.at::before { content: "· "; color: var(--ink-soft); }

/* ------------------------------------------------------------- entries --- */

.entry {
	display: grid;
	grid-template-columns: 11rem 1fr;
	gap: 0 2rem;
	padding: 1.6rem 0;
	border-top: 1px solid var(--rule);
}
.entry:first-of-type { border-top: 0; padding-top: 0; }

.when {
	margin: .2rem 0 0;
	font-size: .9rem;
	font-variant-numeric: tabular-nums;
	color: var(--ink-soft);
}

.what > p { margin: .7rem 0 0; }
.what > p:last-child { margin-bottom: 0; }

.where {
	margin: .25rem 0 0 !important;
	font-size: .92rem;
	color: var(--ink-soft);
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.tags li {
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .01em;
	color: var(--ink-soft);
	background: var(--bg-alt);
	border: 1px solid var(--rule);
	border-radius: 999px;
	padding: .15rem .65rem;
}

.roles {
	margin: 1rem 0 0;
	padding-left: 1rem;
	border-left: 2px solid var(--rule);
}

.roles dt {
	font-weight: 600;
	margin-top: .9rem;
}
.roles dt:first-child { margin-top: 0; }

.roles dd {
	margin: .15rem 0 0;
	color: var(--ink-soft);
	font-size: .95rem;
}

.years {
	font-weight: 400;
	font-size: .85rem;
	color: var(--ink-soft);
	white-space: nowrap;
}
.years::before { content: " "; }

/* --------------------------------------------------------------- cards --- */

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1rem;
}

.card {
	background: var(--card);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 1.3rem;
}

.card p {
	margin: .5rem 0 0;
	color: var(--ink-soft);
	font-size: .95rem;
}

.note {
	margin-top: 1.2rem;
	color: var(--ink-soft);
	font-size: .95rem;
}

/* ----------------------------------------------------------- downloads --- */

.downloads {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 1rem;
	margin-top: 1.5rem;
}

.download {
	display: block;
	padding: 1.1rem 1.3rem;
	background: var(--card);
	border: 1px solid var(--rule);
	border-left: 3px solid var(--accent);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	text-decoration: none;
	color: inherit;
}
.download:hover {
	border-left-color: var(--accent-ink);
	background: var(--bg-alt);
	color: inherit;
}

.download b {
	display: block;
	color: var(--accent-ink);
}

.download span {
	font-size: .88rem;
	color: var(--ink-soft);
}

/* ----------------------------------------------------------- impressum --- */

.imprint {
	font-size: .95rem;
	color: var(--ink-soft);
	max-width: var(--measure);
}
.imprint p { margin: 0 0 1rem; }
.imprint p:last-child { margin-bottom: 0; }
.imprint b { color: var(--ink); }

/* ------------------------------------------------------------- contact --- */

.button {
	display: inline-block;
	margin-top: .5rem;
	padding: .7rem 1.4rem;
	border-radius: var(--radius);
	background: var(--accent);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}
.button:hover { background: var(--accent-ink); color: #fff; }

footer {
	border-top: 1px solid var(--rule);
	padding: 2rem 0;
	color: var(--ink-soft);
	font-size: .9rem;
}
footer p { margin: 0; }

/* --------------------------------------------------------- small print --- */

@media (max-width: 44rem) {
	.entry {
		grid-template-columns: 1fr;
		gap: .35rem;
	}
	.when { order: -1; margin: 0; font-weight: 600; }
}

@media print {
	.hero { background: none; }
	.card, .fact { box-shadow: none; }
	a { color: inherit; text-decoration: none; }
	section { break-inside: avoid; }
}
