/* =====================================================================
   KGV Bochum-Ehrenfeld 08 e.V. — Design System
   Warm cream paper, deep leaf-green ink, one warm accent.
   Tokens, element defaults and shared component classes.
   ===================================================================== */

/* ---------- Type: Inter Variable (Google Fonts) ---------- */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;1,14..32,400&display=swap");

:root {
	/* ---------- Color: Garden palette ---------- */
	--leaf-950: #14241b;
	--leaf-900: #1f3a2e;
	--leaf-800: #2a4d3b;
	--leaf-700: #355f49;
	--leaf-600: #467958;
	--leaf-500: #6a9971;
	--leaf-400: #95b898;
	--leaf-300: #bcd4ba;
	--leaf-200: #d8e6d2;
	--leaf-100: #e9f0e1;
	--leaf-50: #f2f6ec;

	--earth-900: #2e1f12;
	--earth-700: #5a3f26;
	--earth-500: #8b6a45;
	--earth-300: #c2a781;
	--earth-100: #e8dcc6;

	--terracotta-700: #9c4f32;
	--terracotta-500: #c76e4a;
	--terracotta-200: #f0c8b6;
	--honey-600: #c99327;
	--honey-500: #e6b344;
	--honey-200: #f3d98a;
	--plum-700: #6e2e48;
	--plum-500: #a4527a;
	--sky-500: #6e96b6;

	--paper: #f6f1e6;
	--paper-2: #efe7d4;
	--stone: #e8e3d5;
	--ink: #1b2520;
	--ink-2: #3c4a40;
	--ink-3: #6a7a6e;
	--white: #fffef8;

	/* ---------- Semantic ---------- */
	--bg: var(--paper);
	--bg-alt: var(--paper-2);
	--bg-deep: var(--leaf-900);
	--bg-tint: var(--leaf-100);
	--surface: var(--white);
	--surface-sunk: var(--stone);

	--fg: var(--ink);
	--fg-soft: var(--ink-2);
	--fg-muted: var(--ink-3);
	--fg-inverse: var(--paper);

	--brand: var(--leaf-700);
	--brand-deep: var(--leaf-900);
	--brand-soft: var(--leaf-100);
	--accent: var(--honey-500);
	--accent-warm: var(--terracotta-500);

	--border: #dcd4bf;
	--border-strong: var(--leaf-700);
	--rule: color-mix(in oklab, var(--leaf-900) 18%, transparent);

	--success: #3f7a4f;
	--warning: #c99327;
	--danger: #9c4f32;

	/* ---------- Type ---------- */
	--font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--font-display: "Inter", ui-sans-serif, system-ui, sans-serif;
	--font-mono: ui-monospace, "JetBrains Mono", Menlo, monospace;

	--fs-12: 0.75rem;
	--fs-13: 0.8125rem;
	--fs-14: 0.875rem;
	--fs-15: 0.9375rem;
	--fs-16: 1rem;
	--fs-18: 1.125rem;
	--fs-20: 1.25rem;
	--fs-24: 1.5rem;
	--fs-30: 1.875rem;
	--fs-36: 2.25rem;
	--fs-48: 3rem;
	--fs-60: 3.75rem;
	--fs-72: 4.5rem;

	--lh-tight: 1.1;
	--lh-snug: 1.25;
	--lh-base: 1.55;
	--lh-loose: 1.75;

	--tracking-tight: -0.02em;
	--tracking-snug: -0.01em;
	--tracking-normal: 0;
	--tracking-wide: 0.04em;
	--tracking-wider: 0.14em;

	/* ---------- Spacing (4px base) ---------- */
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 20px;
	--space-6: 24px;
	--space-8: 32px;
	--space-10: 40px;
	--space-12: 48px;
	--space-16: 64px;
	--space-20: 80px;
	--space-24: 96px;

	/* ---------- Radii ---------- */
	--radius-xs: 2px;
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 14px;
	--radius-xl: 22px;
	--radius-pill: 999px;

	/* ---------- Shadows (soft, green-tinted) ---------- */
	--shadow-xs: 0 1px 0 rgba(27, 37, 32, 0.05);
	--shadow-sm: 0 1px 2px rgba(27, 37, 32, 0.06), 0 1px 1px rgba(27, 37, 32, 0.04);
	--shadow-md: 0 4px 14px -4px rgba(27, 53, 39, 0.14), 0 2px 4px rgba(27, 53, 39, 0.06);
	--shadow-lg: 0 18px 40px -16px rgba(27, 53, 39, 0.22), 0 6px 14px -6px rgba(27, 53, 39, 0.1);
	--shadow-inset: inset 0 0 0 1px rgba(27, 53, 39, 0.08);

	/* ---------- Motion ---------- */
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--ease-in: cubic-bezier(0.5, 0, 0.75, 0);
	--ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
	--dur-fast: 140ms;
	--dur: 220ms;
	--dur-slow: 420ms;

	/* ---------- Layout ---------- */
	--content-max: 1200px;
	--header-h: 96px;

	/* ---------- Legacy aliases (kept so existing markup keeps working) ---------- */
	--color-bg: var(--paper);
	--color-surface: var(--white);
	--color-surface-muted: var(--leaf-50);
	--color-primary: var(--leaf-900);
	--color-primary-soft: var(--leaf-700);
	--color-accent: var(--honey-500);
	--color-accent-soft: var(--honey-200);
	--color-mint: var(--leaf-500);
	--color-text: var(--ink);
	--color-muted: var(--ink-3);
	--color-border: var(--border);
}

/* ===================================================================
   Element defaults
   =================================================================== */

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

html {
	color: var(--fg);
	background: var(--bg);
	font-family: var(--font-sans);
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body {
	margin: 0;
	min-height: 100vh;
	font-size: var(--fs-16);
	line-height: var(--lh-base);
}

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

h1,
.h1 {
	font-family: var(--font-display);
	font-size: clamp(var(--fs-36), 4.8vw, var(--fs-60));
	line-height: var(--lh-tight);
	letter-spacing: var(--tracking-tight);
	font-weight: 600;
	color: var(--leaf-900);
	text-wrap: balance;
	margin: 0 0 var(--space-4);
}

h2,
.h2 {
	font-family: var(--font-display);
	font-size: clamp(var(--fs-24), 3vw, var(--fs-36));
	line-height: var(--lh-snug);
	letter-spacing: var(--tracking-snug);
	font-weight: 600;
	color: var(--leaf-900);
	text-wrap: balance;
	margin: 2rem 0 var(--space-3);
}

h3,
.h3 {
	font-size: var(--fs-20);
	line-height: var(--lh-snug);
	font-weight: 600;
	color: var(--leaf-900);
	margin: 1.5rem 0 var(--space-2);
}

h4,
.h4 {
	font-size: var(--fs-16);
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 var(--space-2);
}

p {
	margin: 0 0 var(--space-3);
	color: var(--fg-soft);
}

small,
.small {
	font-size: var(--fs-13);
	color: var(--fg-muted);
}

ul {
	margin: 0 0 1rem;
	padding-left: 1.25rem;
}

.eyebrow,
.label {
	display: inline-block;
	font-size: var(--fs-12);
	text-transform: uppercase;
	letter-spacing: var(--tracking-wider);
	font-weight: 600;
	color: var(--leaf-700);
	margin-bottom: var(--space-2);
}

a {
	color: var(--leaf-800);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	text-decoration-color: color-mix(in oklab, var(--leaf-700) 45%, transparent);
	transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}

a:hover {
	color: var(--leaf-900);
	text-decoration-color: var(--leaf-700);
}

hr {
	border: 0;
	height: 1px;
	background: var(--rule);
	margin: var(--space-6) 0;
}

code,
kbd,
samp {
	font-family: var(--font-mono);
	font-size: 0.92em;
	background: var(--bg-alt);
	padding: 0.1em 0.35em;
	border-radius: var(--radius-sm);
}

:focus-visible {
	outline: 2px solid var(--leaf-700);
	outline-offset: 2px;
	border-radius: var(--radius-xs);
}

::selection {
	background: var(--leaf-200);
	color: var(--leaf-950);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ===================================================================
   Layout helpers
   =================================================================== */

.container,
.content-wrap {
	max-width: var(--content-max);
	margin: 0 auto;
	padding-left: var(--space-8);
	padding-right: var(--space-8);
}

.content-wrap {
	padding-top: var(--space-16);
	padding-bottom: var(--space-24);
}

.prose {
	max-width: 68ch;
}

/* When prose shares the element with the centered page container, keep the
   box full-width and left-align the editorial column (caps applied per element). */
.content-wrap.prose {
	max-width: var(--content-max);
}

.prose p,
.prose ul,
.prose ol {
	font-size: var(--fs-18);
	line-height: var(--lh-base);
}

.prose p {
	max-width: 64ch;
}

@media (max-width: 640px) {
	.container,
	.content-wrap {
		padding-left: var(--space-5);
		padding-right: var(--space-5);
	}
}

/* ===================================================================
   Buttons
   =================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	font: 600 var(--fs-14) / 1 var(--font-sans);
	letter-spacing: -0.005em;
	padding: 12px 20px;
	border-radius: var(--radius-pill);
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
		transform var(--dur-fast) var(--ease);
}

.btn:active {
	transform: scale(0.985);
}

.btn-sm {
	padding: 9px 14px;
	font-size: var(--fs-13);
}

.btn-primary {
	background: var(--leaf-700);
	color: var(--paper);
}

.btn-primary:hover {
	background: var(--leaf-800);
	color: var(--paper);
	text-decoration: none;
}

.btn-secondary {
	background: transparent;
	color: var(--leaf-900);
	border-color: var(--leaf-700);
}

.btn-secondary:hover {
	background: var(--leaf-50);
	color: var(--leaf-900);
	text-decoration: none;
}

.btn-ghost {
	background: transparent;
	color: var(--leaf-800);
}

.btn-ghost:hover {
	background: var(--leaf-100);
	color: var(--leaf-900);
	text-decoration: none;
}

.btn-warm {
	background: var(--terracotta-500);
	color: var(--paper);
}

.btn-warm:hover {
	background: var(--terracotta-700);
	color: var(--paper);
	text-decoration: none;
}

/* ===================================================================
   Chips
   =================================================================== */

.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	border-radius: var(--radius-pill);
	font-size: var(--fs-12);
	font-weight: 600;
	letter-spacing: -0.005em;
}

.chip-green {
	background: var(--leaf-100);
	color: var(--leaf-900);
	border: 1px solid var(--leaf-200);
}

.chip-warm {
	background: var(--terracotta-200);
	color: var(--terracotta-700);
	border: 1px solid color-mix(in oklab, var(--terracotta-500) 35%, transparent);
}

.chip-honey {
	background: var(--honey-200);
	color: var(--honey-600);
	border: 1px solid color-mix(in oklab, var(--honey-500) 35%, transparent);
}

.chip .dot {
	width: 6px;
	height: 6px;
	border-radius: var(--radius-pill);
	background: currentColor;
	opacity: 0.7;
}

/* ===================================================================
   Cards (flat, hairline border — no coloured left border)
   =================================================================== */

.card-grid {
	display: grid;
	gap: var(--space-4);
	grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}

.card {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: var(--space-6);
	box-shadow: none;
	transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.card:hover {
	box-shadow: var(--shadow-md);
	border-color: var(--leaf-300);
}

.card .icon {
	color: var(--leaf-700);
	margin-bottom: var(--space-3);
}

.card h2,
.card h3 {
	margin: 0 0 var(--space-2);
	font-size: var(--fs-20);
}

.card p {
	font-size: var(--fs-15);
	color: var(--fg-muted);
	margin-bottom: var(--space-4);
}

.card a {
	font-weight: 600;
	text-decoration: none;
	color: var(--leaf-700);
}

.card a:hover {
	color: var(--leaf-900);
	text-decoration: underline;
}

/* ===================================================================
   Notice — hairline border + warm accent top rule
   =================================================================== */

.notice {
	background: var(--white);
	border: 1px solid var(--border);
	border-top: 3px solid var(--terracotta-500);
	border-radius: var(--radius-lg);
	padding: var(--space-5) var(--space-6);
	margin: var(--space-8) 0;
}

.notice strong {
	color: var(--leaf-900);
	display: block;
	margin-bottom: var(--space-1);
}

.notice p {
	color: var(--fg-soft);
}

/* ===================================================================
   Lageplan
   =================================================================== */

.lageplan {
	margin: var(--space-8) 0;
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: var(--shadow-md);
	background: var(--white);
}

.lageplan img {
	width: 100%;
}

/* ===================================================================
   Timeline table
   =================================================================== */

table.timeline {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--fs-16);
	margin: var(--space-6) 0;
}

table.timeline th,
table.timeline td {
	padding: var(--space-4) var(--space-4);
	text-align: left;
	vertical-align: top;
	border-top: 1px solid var(--rule);
}

table.timeline tr:last-child th,
table.timeline tr:last-child td {
	border-bottom: 1px solid var(--rule);
}

table.timeline th {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	color: var(--leaf-700);
	white-space: nowrap;
	width: 8.5rem;
}

table.timeline td {
	color: var(--fg-soft);
}

@media (max-width: 520px) {
	table.timeline th,
	table.timeline td {
		display: block;
		width: 100%;
	}

	table.timeline th {
		padding-bottom: 0;
		border-bottom: 0;
	}

	table.timeline td {
		padding-top: var(--space-1);
		border-top: 0;
	}

	table.timeline tr + tr th {
		border-top: 1px solid var(--rule);
	}
}

/* ===================================================================
   Document list
   =================================================================== */

.doc-list {
	list-style: none;
	padding: 0;
	margin: var(--space-6) 0;
	display: grid;
	gap: var(--space-2);
	max-width: 40rem;
}

.doc-list li {
	margin: 0;
}

.doc-list a {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-4) var(--space-5);
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	font-weight: 600;
	color: var(--leaf-900);
	text-decoration: none;
	transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.doc-list a:hover {
	border-color: var(--leaf-300);
	box-shadow: var(--shadow-sm);
}

.doc-list a .icon {
	color: var(--leaf-700);
	flex: none;
}
