/* ─── Reset (modern, minimal) ──────────────────────────────────────── */

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

* { margin: 0; }

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
    scroll-padding-top: 96px; /* Floating Pill Nav clearance */
}

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

body {
    min-height: 100dvh;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: var(--text-body);
    font-weight: 400;
    line-height: var(--leading-base);
    overflow-x: hidden;
}

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

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

button {
    background: none;
    border: 0;
    cursor: pointer;
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--dur-base) var(--ease-out);
}

ul, ol { list-style: none; padding: 0; }

table { border-collapse: collapse; width: 100%; }

/* ─── Typografie-Defaults ──────────────────────────────────────────── */

h1, h2, h3, h4 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    text-wrap: balance;
}

p { text-wrap: pretty; }

/* ─── A11y-Helpers ─────────────────────────────────────────────────── */

.visually-hidden {
    position: absolute;
    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;
    top: -100px;
    left: var(--space-4);
    z-index: var(--z-modal);
    padding: var(--space-3) var(--space-5);
    background-color: var(--color-anthrazit);
    color: var(--color-text-inverse);
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: top var(--dur-base) var(--ease-out);
}

.skip-link:focus-visible {
    top: var(--space-4);
}

/* Sichtbare Focus-States: konsistent über die Site */
:focus-visible {
    outline: 3px solid var(--color-anthrazit);
    outline-offset: 3px;
    border-radius: var(--radius-pill);
}

/* Selection-Style */
::selection {
    background-color: var(--color-brand);
    color: var(--color-white);
}

/* ─── Container ────────────────────────────────────────────────────── */

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

.container-wide {
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

/* ─── Section-Defaults ─────────────────────────────────────────────── */

.section {
    padding-block: var(--space-section);
    position: relative;
}

.section-tight {
    padding-block: clamp(48px, 6vw, 80px);
}

/* ─── Atom: Kicker (v2: normale Schreibweise, kein Uppercase) ──────── */

.kicker {
    display: inline-block;
    font-size: var(--text-label);
    font-weight: 600;
    letter-spacing: var(--tracking-label);
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
}

.kicker--inverse { color: rgba(255, 255, 255, 0.7); }

/* ─── Atom: Section-Heading ───────────────────────────────────────── */

.section-heading {
    font-size: var(--text-h1);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-5);
    max-width: 22ch;
}

.section-subline {
    font-size: var(--text-body-lg);
    line-height: var(--leading-snug);
    color: var(--color-text-muted);
    max-width: 60ch;
    margin-bottom: var(--space-7);
}

/* ─── Brand-Akzent (z. B. finaler Punkt im Hero-H1) ──────────────── */

.accent-brand { color: var(--color-brand); }
