/* Hallmark · genre: editorial · macrostructure: Photographic · H6 Photographic-Fold knobs: image=full-bleed, caption=lower-left, text=overlaid
 * theme: custom (tuned) · vibe: "Hof, Wärme, Weite, Würde, Zukunft" · paper: oklch(96% 0.012 78) · accent: oklch(42% 0.094 141)
 * display: Fraunces (roman) · body: IBM Plex Sans · axes: light / roman-serif / chromatic-other (waldgrün ~141)
 * nav: N12 Banner + retract · footer: Ft1 Mast-headed · enrichment: Tier C (Higgsfield, ein Master → elf Ableitungen)
 * studied: no · context: user-provided (Master-Briefing + Umsetzungsvorlage + Interview) · pre-emit critique: P5 H5 E4 S5 R5 V4
 */

/* =========================================================================
   Schriften — lokal gehostet. Kein Aufruf an Google, keine externe Verbindung.
   ========================================================================= */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/fraunces-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/fraunces-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/ibmplexsans-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/ibmplexsans-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* =========================================================================
   Grundlagen
   ========================================================================= */

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  overflow-x: clip;
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; background: var(--color-paper-3); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-style: normal;                 /* Überschriften sind immer aufrecht */
  font-weight: 400;
  line-height: var(--leading-tight);
  letter-spacing: var(--track-display);
  overflow-wrap: anywhere;            /* lange deutsche Komposita          */
  min-width: 0;
  margin: 0;
  text-wrap: balance;
}
p, li { overflow-wrap: break-word; }
p { margin: 0; }

h1 { font-size: var(--text-display);   line-height: var(--leading-display); }
h2 { font-size: var(--text-display-s); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

a { color: inherit; }

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

/* =========================================================================
   Fokus — erscheint sofort, wird nie animiert.
   ========================================================================= */

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.band--dark :focus-visible,
.hero :focus-visible {
  outline-color: var(--color-focus-dark);
}

/* Sprungmarke für Tastatur und Screenreader */
.skip {
  position: absolute;
  left: var(--space-md);
  top: -100%;
  z-index: var(--z-toast);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: top var(--dur-micro) var(--ease-out);
}
.skip:focus { top: var(--space-md); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* =========================================================================
   Eine einzige inszenierte Bewegung: der Seiteneinstieg.
   Danach ist der Inhalt einfach da.
   ========================================================================= */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal var(--dur-long) var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 90ms);
}
@keyframes reveal { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 150ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }
  .reveal { transform: none; }
}

/* =========================================================================
   Scroll-Reveal: Inhalte steigen beim Erscheinen sanft ein.
   Nur aktiv, wenn das Skript die Klasse .js-reveal setzt — ohne JavaScript
   ist jeder Inhalt sofort und vollständig da.
   ========================================================================= */

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-long) var(--ease-out),
              transform var(--dur-long) var(--ease-out);
  transition-delay: calc(var(--ri, 0) * 80ms);
  will-change: opacity, transform;
}
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Das hidden-Attribut muss immer gewinnen. Ohne diese Zeile überschreibt
   jede Klasse mit eigenem display (z. B. .fortschritt, .assistent__schritt)
   die Regel des Browsers – ausgeblendete Elemente bleiben dann sichtbar. */
[hidden] { display: none !important; }
