/* =========================================================================
   ELP DESIGN TOKENS
   Quelle: analysis/design-tokens.json (erhoben von eurolabs-peptides.com)
   Diese Datei wird von main.css und von Bricks (Theme Styles) referenziert.
   ========================================================================= */

/* --- Fonts (self-hosted, SIL OFL) --- */
@font-face {
	font-family: 'Geist';
	src: url('../fonts/geist-latin.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Geist';
	src: url('../fonts/geist-latin-ext.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Geist Mono';
	src: url('../fonts/geist-mono-latin.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Fraunces';
	src: url('../fonts/fraunces-latin.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Fraunces';
	src: url('../fonts/fraunces-latin-ext.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/*
 * Bricks setzt html { font-size: 10px }. Alle rem-Werte hier sind aber auf die
 * Browser-Standardbasis 16px gerechnet (wie in der Referenz). Deshalb wird die
 * Basis zurückgesetzt und die von Bricks erwartete 10px-Basis nur dort belassen,
 * wo Bricks-eigene Elemente sie brauchen.
 */
html {
	font-size: 100%;
}

:root {
	/* --- Farben ---
	   Hergeleitet aus der Wortmarke: gemessenes Markengold #E1B034
	   = oklch(0.782 0.144 86), Glanzlicht 0.887, Tiefe 0.624.

	   ZENTRALE REGEL: Markengold hat auf Weiß nur 2,0:1 Kontrast. Es ist
	   deshalb ausschließlich Fläche und Zierlinie — NIEMALS Schriftfarbe auf
	   hellem Grund. Für Schrift laufen dieselben Goldtöne abgedunkelt als
	   Bronze (--elp-accent 5,4:1, --elp-primary 7,9:1). Auf Goldflächen steht
	   --elp-primary-hero als Schrift (8,3:1), nicht Weiß (nur 2,0:1).

	   Die frühere Blau-Palette der Referenz bleibt in
	   analysis/design-tokens.json dokumentiert. */

	/* Markengold — nur Flächen, Rahmen, Zierlinien */
	--elp-gold: oklch(0.782 0.144 86);
	--elp-gold-hell: oklch(0.887 0.141 93);
	--elp-gold-tief: oklch(0.624 0.124 79);

	--elp-background: oklch(1 0 0);
	--elp-foreground: oklch(0.19 0.014 75);
	--elp-card: oklch(1 0 0);
	--elp-card-foreground: oklch(0.19 0.014 75);
	--elp-secondary: oklch(0.985 0.008 86);
	--elp-muted: oklch(0.955 0.014 86);
	--elp-muted-foreground: oklch(0.45 0.02 75);
	--elp-accent: oklch(0.53 0.105 76);
	--elp-accent-foreground: oklch(0.99 0.006 86);
	--elp-accent-light: oklch(0.955 0.02 86);
	--elp-accent-dark: oklch(0.43 0.09 72);
	--elp-primary: oklch(0.44 0.075 72);
	--elp-primary-foreground: oklch(0.99 0.006 86);
	--elp-primary-hero: oklch(0.235 0.022 75);
	--elp-primary-dark: oklch(0.235 0.022 75);
	--elp-primary-soft: oklch(0.955 0.02 86);
	--elp-destructive: oklch(0.53 0.19 28);
	--elp-destructive-foreground: oklch(0.98 0 0);
	--elp-success: oklch(0.52 0.105 150);
	--elp-success-foreground: oklch(0.99 0.006 86);
	--elp-status-soon: oklch(0.54 0.125 62);   /* dunkel genug für 5,2:1 auf Weiß */
	--elp-status-pipeline: oklch(0.55 0.02 75);
	--elp-info: oklch(0.96 0.022 86);
	--elp-info-foreground: oklch(0.4 0.07 72);
	--elp-info-border: oklch(0.87 0.03 84);
	--elp-surface-primary-soft: oklch(0.955 0.02 86);
	--elp-surface-primary-emphasis: oklch(0.9 0.05 86);
	--elp-surface-muted-alt: oklch(0.975 0.01 86);
	--elp-paper-warm: oklch(0.97 0.014 86);
	--elp-border: oklch(0.9 0.014 82);
	--elp-input: oklch(0.9 0.014 82);
	--elp-ring: oklch(0.53 0.105 76);

	/* --- Typografie --- */
	--elp-font-body: 'Geist', system-ui, -apple-system, sans-serif;
	--elp-font-headline: 'Geist', system-ui, -apple-system, sans-serif;
	--elp-font-serif: 'Fraunces', Georgia, serif;
	--elp-font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;

	--elp-text-xs: 0.75rem;
	--elp-text-sm: 0.875rem;
	--elp-text-base: 1rem;
	--elp-text-lg: 1.125rem;
	--elp-text-xl: 1.25rem;
	--elp-text-2xl: 1.5rem;
	--elp-text-3xl: 1.875rem;
	--elp-text-4xl: 2.25rem;
	--elp-text-5xl: 3rem;
	--elp-h1-size: clamp(2.25rem, 1.5rem + 3vw, 3.4rem);
	--elp-h1-weight: 500;
	--elp-h1-tracking: -0.02em;

	/* Mono-Label (Kicker, Badges, Meta-Zeilen) */
	--elp-label-size: 0.6875rem;
	--elp-label-tracking: 0.12em;
	--elp-label-weight: 500;

	/* --- Radien --- */
	--elp-radius-sm: 0.375rem;
	--elp-radius: 0.75rem;
	--elp-radius-lg: 1rem;
	--elp-radius-xl: 1.5rem;
	--elp-radius-full: 9999px;

	/* --- Layout & Abstände (4px-Raster) --- */
	--elp-container: 80rem;
	--elp-gutter: 1.25rem;
	--elp-gutter-lg: 2.5rem;
	--elp-space-1: 0.25rem;
	--elp-space-2: 0.5rem;
	--elp-space-3: 0.75rem;
	--elp-space-4: 1rem;
	--elp-space-5: 1.25rem;
	--elp-space-6: 1.5rem;
	--elp-space-8: 2rem;
	--elp-space-10: 2.5rem;
	--elp-space-12: 3rem;
	--elp-space-16: 4rem;
	--elp-space-20: 5rem;
	--elp-section-y: clamp(2.5rem, 1.5rem + 4vw, 5rem);

	/* --- Effekte --- */
	/* Schatten warm getönt statt blau — sonst wirken die Karten kühl im
	   warmen Umfeld, was besonders auf den Papierflächen auffällt. */
	--elp-shadow-card: 0 1px 2px oklch(0.19 0.014 75 / 0.05), 0 4px 12px oklch(0.19 0.014 75 / 0.05);
	--elp-shadow-card-hover: 0 2px 4px oklch(0.19 0.014 75 / 0.07), 0 12px 28px oklch(0.19 0.014 75 / 0.09);
	--elp-shadow-modal: 0 24px 64px oklch(0.19 0.014 75 / 0.2);

	/* Blueprint-Raster (charakteristisch für die Referenz) */
	--elp-grid-line: oklch(0.9 0.016 82 / 0.75);
	--elp-grid-size: 32px;

	/* --- Animation --- */
	--elp-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--elp-dur-fast: 150ms;
	--elp-dur: 200ms;
	--elp-dur-slow: 600ms;
	--elp-skeleton-delay: 300ms;
}

/* Basis-Typografie */
body {
	font-family: var(--elp-font-body);
	color: var(--elp-foreground);
	background-color: var(--elp-background);
	-webkit-font-smoothing: antialiased;
}

/* Wiederkehrendes Muster: Mono-Uppercase-Label */
.elp-label {
	font-family: var(--elp-font-mono);
	font-size: var(--elp-label-size);
	font-weight: var(--elp-label-weight);
	letter-spacing: var(--elp-label-tracking);
	text-transform: uppercase;
	color: var(--elp-muted-foreground);
}

/* Blueprint-Hintergrund */
.elp-blueprint {
	background-image:
		linear-gradient(to right, var(--elp-grid-line) 1px, transparent 1px),
		linear-gradient(to bottom, var(--elp-grid-line) 1px, transparent 1px);
	background-size: var(--elp-grid-size) var(--elp-grid-size);
}
