/* =========================================================
   Tischlerei Evers u. Schütz GmbH – Präzisionswerk
   base.css – Reset, Design-Tokens, Typografie
   ========================================================= */

:root {
	--primary: oklch(28% 0.01 250);      /* Graphit #1B1F23 */
	--primary-soft: #3A4046;              /* Stahlgrau */
	--bg: #F4F5F2;                        /* Kaltweiß */
	--surface: #FFFFFF;
	--accent: #C14F18;                    /* Signalorange, AA-geprüft */
	--accent-dim: #E7E2DB;
	--text: #1B1F23;
	--text-muted: #5B6168;
	--text-on-dark: #F4F5F2;
	--border: #DBDCD6;
	--border-dark: #4B5158;

	--radius: 2px;
	--radius-feature: 999px; /* bewusst gesetztes, einzelnes rundes Element */
	--shadow-sm: 0 1px 2px rgba(27, 31, 35, 0.08), 0 1px 1px rgba(27, 31, 35, 0.04);
	--shadow-md: 0 12px 28px rgba(27, 31, 35, 0.14), 0 2px 8px rgba(27, 31, 35, 0.08);

	--container: 1320px;
	--container-narrow: 760px;

	--space-2xs: 0.5rem;
	--space-xs: 1rem;
	--space-sm: 1.5rem;
	--space-md: clamp(2.5rem, 4vw, 4rem);
	--space-lg: clamp(4rem, 8vw, 6rem);
	--space-xl: clamp(5rem, 11vw, 8.5rem);
	--space-2xl: clamp(6rem, 14vw, 10rem);

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

	--text-xs: 0.8125rem;
	--text-sm: 0.9375rem;
	--text-base: 1.0625rem;
	--text-md: 1.375rem;
	--text-lg: 1.875rem;
	--text-xl: clamp(1.875rem, 1.3rem + 2vw, 2.75rem);
	--text-2xl: clamp(2.25rem, 1.4rem + 3.2vw, 3.375rem);
	--text-hero: clamp(3.2rem, 1.9rem + 4.6vw, 4.6rem);

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

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

html {
	overflow-x: hidden;
	scroll-behavior: auto;
	-webkit-text-size-adjust: 100%;
}

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

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

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

h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--primary);
	line-height: 1.12;
	margin: 0 0 0.5em;
	font-weight: 600;
	text-wrap: balance;
}

h1 { font-size: var(--text-hero); letter-spacing: -0.01em; }
h2 { font-size: var(--text-2xl); letter-spacing: -0.008em; }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); }

p { margin: 0 0 1.1em; max-width: 68ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

ul, ol { padding-left: 1.3em; margin: 0 0 1.1em; }
li { margin-bottom: 0.4em; max-width: 68ch; }

.eyebrow {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 0.75em;
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--primary);
	color: #fff;
	padding: 0.8em 1.2em;
	z-index: 9999;
	border-radius: var(--radius);
}
.skip-link:focus {
	left: var(--space-xs);
	top: var(--space-xs);
}

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

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

.container--narrow {
	max-width: var(--container-narrow);
}

.page-wrap { padding-block: var(--space-lg); }

/* Mikrotypografie: Maßangaben als dezente Detail-Elemente */
.spec-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-family: 'Fraunces', serif;
	font-variant-numeric: tabular-nums;
	font-size: var(--text-xs);
	letter-spacing: 0.04em;
	color: var(--text-muted);
	border: 1px solid var(--border);
	padding: 0.3em 0.7em;
	border-radius: var(--radius);
}
