/* ==========================================================
   brand.css — Design-Tokens, Typografie, Basisstile
   ========================================================== */

:root {
    /* Farben */
    --bg: #f6f4ee;
    --surface: #ffffff;
    --surface-alt: #eeebe3;
    --surface-deep: #1d2b24;
    --text: #18211c;
    --muted: #5a635d;
    --primary: #2f5d46;
    --primary-hover: #244a37;
    --primary-soft: #e3ebe4;
    --accent: #6f8f86;
    --sage: #a9bfa8;
    --solar: #e3b448;
    --solar-soft: #f7ecd0;
    --border: #e2ded4;
    --border-strong: #cfcabd;
    --error: #a3342b;
    --on-dark: #f3f1ea;
    --on-dark-muted: #b9c3bc;

    /* Radien */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;

    /* Schatten */
    --shadow-sm: 0 1px 2px rgba(24, 33, 28, .05), 0 2px 8px rgba(24, 33, 28, .04);
    --shadow-md: 0 10px 30px -12px rgba(24, 33, 28, .18), 0 2px 6px rgba(24, 33, 28, .05);

    /* Layout */
    --container: 1260px;
    --gutter: clamp(16px, 4vw, 40px);
    --section-space: clamp(72px, 9vw, 128px);
    --header-h: 76px;

    /* Schrift */
    --font-head: "Manrope", "General Sans", "Inter Tight", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-body: "Inter", "Manrope", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--text);
    line-height: 1.12;
    letter-spacing: -.02em;
    margin: 0 0 .6em;
    font-weight: 700;
    overflow-wrap: break-word;
    hyphens: manual;
}

@media (max-width: 600px) {
    h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; }
}

h1 { font-size: clamp(36px, 5.4vw, 66px); letter-spacing: -.03em; }
h2 { font-size: clamp(29px, 3.6vw, 46px); }
h3 { font-size: clamp(19px, 1.6vw, 22px); letter-spacing: -.01em; line-height: 1.3; }
h4 { font-size: 17px; letter-spacing: 0; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }

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

strong { font-weight: 650; }

ul, ol { padding-left: 1.2em; }

::selection { background: var(--solar-soft); color: var(--text); }

:focus-visible {
    outline: 3px solid var(--solar);
    outline-offset: 3px;
    border-radius: 4px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 18px;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
    opacity: .6;
}

.lead {
    font-size: clamp(17px, 1.45vw, 20px);
    line-height: 1.6;
    color: var(--muted);
    max-width: 64ch;
}

.muted { color: var(--muted); }

.mono {
    font-family: var(--font-mono);
    letter-spacing: .04em;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 1000;
    background: var(--text);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }
