/* Grundlagen: Zurücksetzen, Typografie, Hilfsklassen */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
    margin: 0;
    font-family: var(--schrift-text);
    font-size: clamp(16px, .4vw + 14px, 18px);
    line-height: 1.65;
    color: var(--text);
    background: var(--weiss);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blau); text-underline-offset: .2em; }
a:hover { color: var(--rot); }
p { margin: 0 0 1em; }
address { font-style: normal; }

h1, h2, h3, h4 {
    font-family: var(--schrift-titel);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.025em;
    color: var(--blau-tief);
    margin: 0 0 .45em;
    text-wrap: balance;
}
h1 { font-size: clamp(44px, 7vw, 120px); letter-spacing: -.04em; line-height: .95; }
h2 { font-size: clamp(34px, 4.6vw, 72px); letter-spacing: -.035em; }
h3 { font-size: clamp(21px, 1.5vw, 26px); font-weight: 700; letter-spacing: -.015em; line-height: 1.15; }
.akzent { font-style: italic; font-weight: 700; color: var(--rot); }

.container { width: 100%; max-width: var(--breite); margin-inline: auto; padding-inline: var(--rand); }
.abschnitt { padding-block: var(--abstand); }
.abschnitt--hell { background: var(--hell); }
.abschnitt--blau { background: var(--blau-tief); color: #c3cee6; }
.abschnitt--blau h2, .abschnitt--blau h3 { color: var(--weiss); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprung-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--rot); color: #fff; border-radius: var(--radius-klein); }
.sprung-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--himmel); outline-offset: 3px; }

/* Einblend-Animation beim Scrollen */
.einblenden { opacity: 0; transform: translateY(32px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.einblenden.ist-sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .einblenden { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
