/* =========================================================================
   Symphony Theme — base.css
   Design tokens (CSS custom properties) + reset + default typography.
   Token values below are the ASB Baden-Württemberg seed defaults, extracted
   from the reference site. From Phase 2 on, the admin Colors/Typography
   panels write overrides into dynamic-styles.css / typography.css, which are
   enqueued after this file and win on cascade — nothing here needs editing
   per client beyond these defaults.
   ========================================================================= */

:root {
	/* Brand palette */
	--sp-color-primary: #ffee00;
	--sp-color-primary-contrast: #2d2d46;
	--sp-color-accent: #c80a14;
	--sp-color-accent-dark: #a30810;
	--sp-color-text: #2d2d46;
	--sp-color-text-muted: #5b5b78;
	--sp-color-white: #ffffff;
	--sp-color-dark-panel: #2d2d46;
	--sp-color-light-bg: #eef6fb;
	--sp-color-border: #e2e2ea;

	/* Typography — replaced wholesale by the Font Manager's generated
	   typography.css from Phase 4 on; these are just safe fallbacks. */
	--sp-font-body: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--sp-font-heading: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--sp-font-weight-regular: 400;
	--sp-font-weight-bold: 700;

	--sp-size-h1: 40px;
	--sp-line-h1: 44px;
	--sp-size-h2: 48px;
	--sp-line-h2: 52px;
	--sp-size-h3: 24px;
	--sp-line-h3: 32px;
	--sp-size-h4: 20px;
	--sp-line-h4: 28px;
	--sp-size-lead: 20px;
	--sp-line-lead: 28px;
	--sp-size-body: 16px;
	--sp-line-body: 26px;
	--sp-size-small: 14px;
	--sp-line-small: 20px;

	/* Layout */
	--sp-container-width: 1280px;
	--sp-container-pad: 24px;
	--sp-radius-sm: 6px;
	--sp-radius-md: 12px;
	--sp-radius-lg: 24px;
	--sp-radius-pill: 999px;
	--sp-shadow-card: 0 12px 32px rgba(45, 45, 70, 0.12);
	--sp-space-section: 50px;
}

@media (max-width: 782px) {
	:root {
		--sp-size-h1: 30px;
		--sp-line-h1: 36px;
		--sp-size-h2: 32px;
		--sp-line-h2: 38px;
		--sp-size-h3: 20px;
		--sp-line-h3: 28px;
		--sp-space-section: 56px;
	}
}

/* Local font seed — Noto Sans. Real, admin-managed font files live under
   assets/fonts/local/{slug}/ and are auto-detected by the Font Manager
   (Phase 4); until files are dropped in, the stack above falls back to
   system fonts so the layout never breaks. */
@font-face {
	font-family: 'Noto Sans';
	src: url('../../fonts/local/noto-sans/400-normal.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Noto Sans';
	src: url('../../fonts/local/noto-sans/700-normal.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--sp-font-body);
	font-size: var(--sp-size-body);
	line-height: var(--sp-line-body);
	font-weight: var(--sp-font-weight-regular);
	color: var(--sp-color-text);
	background: var(--sp-color-white);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--sp-color-accent);
	text-decoration: none;
	transition: color 0.15s ease;
}
a:hover,
a:focus {
	color: var(--sp-color-accent-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--sp-font-heading);
	font-weight: var(--sp-font-weight-bold);
	color: var(--sp-color-text);
	margin: 0 0 0.5em;
}

h1 {
	font-size: var(--sp-size-h1);
	line-height: var(--sp-line-h1);
}
h2 {
	font-size: var(--sp-size-h2);
	line-height: var(--sp-line-h2);
	color: var(--sp-color-accent);
}
h3 {
	font-size: var(--sp-size-h3);
	line-height: var(--sp-line-h3);
}
h4 {
	font-size: var(--sp-size-h4);
	line-height: var(--sp-line-h4);
}

p {
	margin: 0 0 1em;
}
p.big,
.sp-lead {
	font-size: var(--sp-size-lead);
	line-height: var(--sp-line-lead);
}

ul,
ol {
	margin: 0 0 1em;
	padding-left: 1.25em;
}

button,
input,
select,
textarea {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
}

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

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
	border: 0;
}
.screen-reader-text:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 12px 16px;
	background: var(--sp-color-white);
	z-index: 100000;
	clip: auto;
}
