/* ==========================================================================
   Design system — Präzisionshandwerk: Kalkweiß & Bauerde
   Eine Akzentfarbe (Bauerde), neutrale Basis (Kalkweiß), dunkle Schrift (Schiefergrau).
   ========================================================================== */

:root {
	--primary: #8A6A4B;      /* Bauerde — Akzent: Linien, Buttons, große Headline-Highlights */
	--primary-ink: #6B4A30;  /* dunklere Bauerde-Variante für kleinen Text/Links (AA-Kontrast) */
	--bg: #F5F2EC;           /* Kalkweiß */
	--bg-raised: #EDE7DC;    /* leicht abgesetzte Fläche für Bänder */
	--ink: #3C3A36;          /* Schiefergrau — Fließtext */
	--ink-soft: #6b6862;     /* gedämpfter Text (Meta, Captions) */
	--paper: #ffffff;

	--radius: 2px;
	--radius-feature: 26px; /* bewusste Ausnahme: nur am Logo-Badge verwendet */

	--space-unit: 0.5rem;
	--space-xs: calc(var(--space-unit) * 2);   /* 16px */
	--space-sm: calc(var(--space-unit) * 3);   /* 24px */
	--space-md: clamp(2.5rem, 5vw, 4rem);      /* 40–64px */
	--space-lg: clamp(4rem, 8vw, 7rem);        /* 64–112px */
	--space-xl: clamp(5rem, 10vw, 10rem);      /* 80–160px */

	--font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
	--font-text: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

	--container: 1240px;
	--prose-width: 62ch;

	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--dur-fast: 180ms;
	--dur-base: 260ms;
}

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

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-text);
	font-size: 18px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg, video, iframe {
	max-width: 100%;
	height: auto;
}

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

.icon {
	width: 1.4em;
	height: 1.4em;
	max-width: 32px;
	max-height: 32px;
	flex: 0 0 auto;
	vertical-align: middle;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.12;
	margin: 0 0 var(--space-xs);
	color: var(--ink);
	text-wrap: pretty;
	letter-spacing: -0.01em;
}

h1 {
	font-size: clamp(2.4rem, 3.4vw + 1.2rem, 3.75rem);
	font-weight: 500;
	margin-bottom: var(--space-sm);
}

h2 {
	font-size: clamp(1.9rem, 1.6vw + 1.3rem, 2.7rem);
}

h3 {
	font-size: clamp(1.3rem, 0.6vw + 1.1rem, 1.6rem);
}

p {
	margin: 0 0 var(--space-xs);
	text-wrap: pretty;
	max-width: var(--prose-width);
}

a {
	color: var(--primary-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

ul, ol {
	padding-left: 1.2em;
}

.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.eyebrow {
	display: inline-block;
	font-family: var(--font-text);
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--primary-ink);
	margin-bottom: var(--space-xs);
}

.rule {
	border: none;
	border-top: 1px solid rgba(60, 58, 54, 0.18);
	margin: 0;
}

.rule--accent {
	border-top: 2px solid var(--primary);
	width: 56px;
	margin-bottom: var(--space-sm);
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--ink);
	color: #fff;
	padding: 0.75em 1.25em;
	z-index: 999;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-family: var(--font-text);
	font-weight: 600;
	font-size: 0.98rem;
	padding: 0.85em 1.6em;
	border-radius: var(--radius);
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: transform var(--dur-fast) var(--ease-out), background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
	min-height: 44px;
}

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

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

.btn--primary:hover {
	background: var(--primary-ink);
	box-shadow: 0 6px 20px -8px rgba(138, 106, 75, 0.55);
}

.btn--ghost {
	background: transparent;
	color: var(--ink);
	border-color: rgba(60, 58, 54, 0.3);
}

.btn--ghost:hover {
	border-color: var(--primary);
	color: var(--primary-ink);
}

:focus-visible {
	outline: 2px solid var(--primary-ink);
	outline-offset: 3px;
}
