/* ==========================================================
   base.css - Tokens, Reset, Typografie
   Farben: --cr-primary/--cr-steel/--cr-accent/--cr-accent-ink
   werden inline von functions.php::cr_color_vars() gesetzt (Customizer).
   ========================================================== */

:root{
	--primary: var(--cr-primary, #1C1E22);
	--steel: var(--cr-steel, #3E5368);
	--accent: var(--cr-accent, #D9641E);
	--accent-ink: var(--cr-accent-ink, #A84E17);
	--bg: #F4F3F0;
	--bg-raised: #FFFFFF;
	--ink: #1C1E22;
	--ink-soft: #52555B;
	--line: #D9D6CE;

	--font-display: 'Archivo', 'Arial Narrow', sans-serif;
	--font-body: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;

	/* Typo-Skala, Verhaeltnis 1.333 (Major Third) auf Basis 17px */
	--step-0: clamp(1.0625rem, 1rem + 0.15vw, 1.125rem);
	--step-1: clamp(1.25rem, 1.1rem + 0.5vw, 1.4rem);
	--step-2: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
	--step-3: clamp(2rem, 1.5rem + 2vw, 3.25rem);
	--step-4: clamp(2.75rem, 2rem + 3vw, 4.5rem);

	--radius: 2px;
	--radius-feature: 999px; /* bewusste Ausnahme: nur Slider-Dots/Kreis-Badge */
	--shadow-sm: 0 1px 2px rgba(0,0,0,.4);
	--shadow-md: 0 14px 34px rgba(17,19,22,.22);

	--space-xs: 1rem;
	--space-sm: 1.75rem;
	--space-md: 3rem;
	--space-section-sm: 4rem;
	--space-section-md: 6rem;
	--space-section-lg: 8rem;
	--space-section-xl: 10rem;

	--container: min(1280px, 100% - 3rem);
	--header-h: 84px;
}

@media (max-width: 600px){
	:root{ --header-h: 68px; }
}

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

html{
	overflow-x: hidden; /* Sicherheitsnetz fuer transform-Reveals, siehe JS */
	scroll-behavior: smooth;
}

body{
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.6;
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
}

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

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

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

h1{ font-size: var(--step-4); font-weight: 800; }
h2{ font-size: var(--step-3); }
h3{ font-size: var(--step-2); }

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

a{ color: inherit; }

.eyebrow{
	font-family: var(--font-display);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent-ink);
	margin: 0 0 0.9em;
}
.eyebrow--light{ color: #F2B48C; }

.container{ width: var(--container); margin-inline: auto; }

ul.footer-nav-list, ul.nav-list, ul.mobile-nav-list{
	list-style: none; margin: 0; padding: 0;
}

/* Gutenberg-Inhaltslisten behalten sichtbare Bullets */
.entry-content ul.wp-block-list,
.page-content ul.wp-block-list{
	list-style: disc;
	padding-left: 1.3rem;
}
.page-content ol.wp-block-list{
	padding-left: 1.3rem;
}

.screen-reader-text, .skip-link{
	position: absolute; left: -9999px; top: 0;
	background: var(--primary); color: #fff;
	padding: .75rem 1.25rem; z-index: 2000;
}
.skip-link:focus{ left: 1rem; top: 1rem; }

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

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