/* ==========================================================================
   Design-Tokens — Werte aus extrasauber.de/assets/css/custom.min.css
   ========================================================================== */

@font-face { font-display: swap; font-family: Rubik; font-style: normal; font-weight: 300;
  src: url("../fonts/rubik-v28-latin-300.woff2") format("woff2"); }
@font-face { font-display: swap; font-family: Rubik; font-style: normal; font-weight: 400;
  src: url("../fonts/rubik-v28-latin-regular.woff2") format("woff2"); }
@font-face { font-display: swap; font-family: Rubik; font-style: normal; font-weight: 500;
  src: url("../fonts/rubik-v28-latin-500.woff2") format("woff2"); }
@font-face { font-display: swap; font-family: Rubik; font-style: normal; font-weight: 600;
  src: url("../fonts/rubik-v28-latin-600.woff2") format("woff2"); }

:root {
	/* Marke */
	--es-primary: #143557;
	--es-primary-hover: #0d2540;
	--es-secondary: #0094db;
	--es-secondary-hover: #007cb8;
	--es-light: #e4e9ef;
	--es-tint: #f4f7fa;
	--es-placeholder: #e4e9ef;

	--es-body-color: #212529;
	--es-body-bg: #fff;
	--es-border: #dde3ea;
	--es-muted: #667085;

	/* Abgeleitete Flächen für Hero und Karten */
	--es-scrim: 20 53 87;          /* --es-primary als RGB */
	--es-ring: 0 148 219;          /* --es-secondary als RGB */

	/* Typografie */
	--es-font: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--es-fw-light: 300;
	--es-fw-medium: 500;
	--es-fw-bold: 600;

	--es-fs-xs: 0.875rem;
	--es-fs-sm: 1rem;
	--es-fs-base: 1.1875rem;
	--es-fs-lead: 1.375rem;

	--es-lh-body: 1.6;

	/* Layout — Breakpoints: sm 576, md 768, lg 992, xl 1300, xxl 1850 */
	--es-wrap: 1225px;
	/* Lesebreite in rem, NICHT in ch: ch rechnet gegen die eigene
	   Schriftgröße, dadurch werden Überschriften doppelt so breit
	   wie Absätze und brechen aus der Spalte aus. */
	--es-measure: 47rem;
	--es-gutter: clamp(1rem, 4vw, 2rem);

	/* Rhythmus */
	--es-flow: 1.15rem;            /* Abstand zwischen Textblöcken */
	--es-flow-lg: 2.75rem;         /* Abstand um Trenner und H2 */

	--es-radius-sm: 0.5rem;
	--es-radius: 0.875rem;
	--es-radius-lg: 1.25rem;
	--es-radius-pill: 50rem;

	--es-shadow-sm: 0 1px 2px rgb(16 24 40 / 0.06), 0 1px 3px rgb(16 24 40 / 0.08);
	--es-shadow: 0 4px 6px -2px rgb(16 24 40 / 0.04), 0 12px 16px -4px rgb(16 24 40 / 0.10);
	--es-shadow-lg: 0 8px 8px -4px rgb(16 24 40 / 0.04), 0 20px 24px -4px rgb(16 24 40 / 0.12);

	--es-ease: cubic-bezier(0.2, 0, 0, 1);
	--es-dur: 220ms;
}

/* Höhenanimation von auto (Chrome 129+, Safari 26+) */
@supports (interpolate-size: allow-keywords) {
	:root { interpolate-size: allow-keywords; }
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 6rem;
}

body {
	margin: 0;
	font-family: var(--es-font);
	font-size: var(--es-fs-base);
	font-weight: var(--es-fw-light);
	line-height: var(--es-lh-body);
	color: var(--es-body-color);
	background: var(--es-body-bg);
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	color: var(--es-primary);
	font-weight: var(--es-fw-light);
	line-height: 1.12;
	text-wrap: balance;
}

h1 { font-size: clamp(1.875rem, 1.3rem + 2.1vw, 2.875rem); }
h2 { font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.125rem); }
h3 { font-size: clamp(1.3125rem, 1.16rem + 0.6vw, 1.5625rem); font-weight: var(--es-fw-medium); }
h4 { font-size: 1.1875rem; font-weight: var(--es-fw-medium); }

h1 strong, h2 strong, h3 strong, h4 strong { font-weight: var(--es-fw-bold); }

p { margin: 0; text-wrap: pretty; }
b, strong { font-weight: var(--es-fw-bold); }

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

a { color: var(--es-secondary); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--es-secondary-hover); }

:focus-visible {
	outline: 2px solid var(--es-secondary);
	outline-offset: 3px;
	border-radius: 2px;
}

::selection { background: rgb(var(--es-ring) / 0.2); }

.wrap {
	width: 100%;
	max-width: var(--es-wrap);
	margin-inline: auto;
	padding-inline: var(--es-gutter);
}

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; inset-inline-start: -9999px; z-index: 9999;
	padding: 0.875rem 1.25rem;
	background: var(--es-primary); color: #fff; text-decoration: none;
	border-end-end-radius: var(--es-radius-sm);
}
.skip-link:focus-visible { inset-inline-start: 0; color: #fff; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
