/* Leicht – Basis. Designsystem „Klares Papier“. */

@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
	--bg: #F6F7F9;
	--surface: #FFFFFF;
	--ink: #15192A;
	--muted: #565D70;
	--line: #DCE0E8;
	--accent: #1F47C9;
	--accent-ink: #18389F;
	--accent-soft: #E8EDFB;
	--code-bg: #EEF1F6;

	--font-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

	--space-xs: 8px;
	--space-sm: 16px;
	--space-md: 24px;
	--space-lg: 48px;
	--space-xl: clamp(64px, 9vw, 96px);
	--space-xxl: clamp(88px, 12vw, 144px);

	--radius-sm: 4px;
	--radius: 6px;
	--container: 1200px;
	--gutter: clamp(20px, 5vw, 48px);
	--measure: 64ch;
}

*, *::before, *::after { box-sizing: border-box; }
:where(html) { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { :where(html) { scroll-behavior: auto; } }
:where(body) { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, pre) { margin: 0; }
:where(h1, h2, h3, h4) { font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
:where(p) { text-wrap: pretty; }
:where(img, svg, video) { max-width: 100%; height: auto; display: block; }
:where(a) { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:where(a:hover) { color: var(--accent-ink); }
:where(code, pre, kbd) { font-family: var(--font-mono); }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: var(--gutter); top: -100px; background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: var(--radius); z-index: 100; }
.skip-link:focus { top: 12px; color: var(--surface); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 68px; }
.site-brand { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.site-brand:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); font-size: 0.975rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav .site-nav__cta { color: var(--accent); font-weight: 600; }
.site-nav .site-nav__cta:hover { color: var(--accent-ink); }
@media (max-width: 760px) { .site-nav a:not(.site-nav__cta) { display: none; } }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: var(--radius); background: var(--accent); color: #FFFFFF; font: 600 1rem/1 var(--font-sans); text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; transition: background-color 160ms ease, transform 160ms ease; }
.button:hover { background: var(--accent-ink); color: #FFFFFF; }
.button:active { transform: translateY(1px); }
.text-link { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.text-link:hover { color: var(--accent); }

/* Normale Seiten */
.prose-page { padding-block: var(--space-xl); }
.prose-page h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: var(--space-lg); max-width: 20ch; }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--space-lg); color: var(--muted); font-size: 0.95rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-sm); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer ul { list-style: none; padding: 0; display: flex; gap: var(--space-md); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
