/* ==========================================================================
   Basis: Reset, Typografie, Hilfsklassen
   ========================================================================== */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* Nach einem Sprung ist die Seite gescrollt, der Header also schon klein */
    scroll-padding-top: calc(var(--header-h-scrolled) + 1rem);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.7;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

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

img {
    height: auto;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 var(--space-4);
    color: var(--heading);
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

/* Lange deutsche Wörter („Geschwisterermäßigung“) dürfen auf kleinen Handys trennen */
@media (max-width: 480px) {
    h1,
    h2,
    h3 {
        -webkit-hyphens: auto;
        hyphens: auto;
        overflow-wrap: break-word;
    }
}

h1 em,
h2 em,
h3 em {
    font-style: italic;
    color: var(--accent);
}

h3 {
    font-size: var(--fs-h3);
}

p {
    margin: 0 0 var(--space-4);
    text-wrap: pretty;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: color var(--dur-fast) ease;
}

a:hover {
    color: var(--accent-hover);
}

address {
    font-style: normal;
}

figure {
    margin: 0;
}

blockquote {
    margin: 0;
}

button {
    font: inherit;
    color: inherit;
}

::selection {
    background: var(--c-bordeaux);
    color: var(--c-cream);
}

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

/* Dunkle Flächen: goldener Fokusrahmen (Bordeaux wäre dort unsichtbar) */
.motto,
.cta__card:not(.cta__card--light),
.site-footer,
.lightbox {
    --focus: var(--c-gold-300);
}

.site-main:focus {
    outline: none;
}

/* ---- Hilfsklassen ---- */
.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: var(--space-4);
    top: -100px;
    z-index: 1000;
    padding: var(--space-3) var(--space-5);
    background: var(--c-bordeaux);
    color: var(--c-cream);
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.skip-link:focus {
    top: var(--space-4);
    color: var(--c-cream);
}

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

.rounded {
    border-radius: var(--radius);
}

.icon {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    color: var(--c-gold-700);
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

.eyebrow--light {
    color: var(--c-gold-300);
}

.lead {
    font-size: var(--fs-lead);
    line-height: 1.6;
    color: var(--text-soft);
    max-width: 38em;
}

.kicker {
    font-family: var(--font-serif);
    font-size: var(--fs-h3);
    font-style: italic;
    color: var(--accent);
    margin-bottom: var(--space-4);
}
