/* ==========================================================================
   MediaWeav — Design Tokens
   Uebernommen aus dem MediaWeav Design System (tokens/*.css), unveraendert.
   Aenderungen bitte hier UND im Design System pflegen, damit beide synchron
   bleiben.
   ========================================================================== */

/* --- Fonts -------------------------------------------------------------
   Space Grotesk, Inter, IBM Plex Mono, Caveat — alle SIL OFL.
   Lokal ausgeliefert aus assets/fonts/. Keine Verbindung zu Google, damit
   keine IP-Adressen der Besucher an Dritte gehen (DSGVO) und die Seite ohne
   externe Abhaengigkeit laeuft. Erzeugt von build.js — nicht von Hand aendern.
   ----------------------------------------------------------------------- */

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../assets/fonts/caveat-500-600-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: "Caveat";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../assets/fonts/caveat-500-600-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 Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-400-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 Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-400-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 Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-500-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 Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-500-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: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-400-700-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: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-400-700-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: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-500-700-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: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-500-700-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;
}

:root {
  /* --- Petrol (Tiefen-Petrol) --- */
  --petrol-50: #EDF5F3;
  --petrol-100: #DCEBE8;
  --petrol-200: #A8CFC9;
  --petrol-300: #6DAFA6;
  --petrol-400: #3E8E84;
  --petrol-500: #1C6B62;
  --petrol-600: #155049;
  --petrol-700: #0F3D3A;
  --petrol-800: #0B2E2B;
  --petrol-900: #08211F;

  /* --- Amber (Signal-Amber) --- */
  --amber-100: #FCEBCF;
  --amber-300: #FAD199;
  --amber-400: #F6B95E;
  --amber-500: #F2A63C;
  --amber-600: #A66A15;

  /* --- Warme Neutrale / Ink --- */
  --sand-0: #FFFFFF;
  --sand-50: #FBF9F6;
  --sand-100: #F7F4EF;
  --sand-200: #EFEAE2;
  --sand-300: #E3DED6;
  --sand-400: #C9C2B8;
  --sand-500: #6B6660;
  --sand-700: #3A3833;
  --sand-900: #1B1A18;

  /* --- Sage (Salbei-Nebel) --- */
  --sage-100: #F1F6F4;
  --sage-200: #E4EDEA;
  --sage-300: #D2E0DC;

  /* --- Benannte Markenfarben --- */
  --brand-petrol: var(--petrol-700);
  --brand-sage: var(--sage-200);
  --brand-amber: var(--amber-500);
  --brand-ink: var(--sand-900);
  --brand-chalk: var(--sand-100);

  /* --- Semantisch: Flaechen --- */
  --surface-page: var(--sand-100);
  --surface-raised: var(--sand-50);
  --surface-card: var(--sand-0);
  --surface-muted: var(--sage-200);
  --surface-inverse: var(--petrol-700);
  --surface-inverse-deep: var(--petrol-900);
  --surface-ink: var(--sand-900);
  --surface-accent: var(--amber-500);
  --surface-accent-soft: var(--amber-100);

  /* --- Semantisch: Text --- */
  /* WICHTIG: heisst bewusst --text-ink, nicht --text-body. Im Design System
     traegt dieses Farb-Token denselben Namen wie die Schriftgroesse
     --text-body aus typography.css. Da typography spaeter importiert wird,
     gewinnt dort die Groesse. Die Farbangabe wurde damit ungueltig und der
     Fliesstext rutschte auf reines Schwarz — genau das, was das Konzept mit
     "nie reines Schwarz" ausschliesst.
     Beim Nachziehen aus dem Design System nicht zurueckbenennen. */
  --text-ink: var(--sand-900);
  --text-heading: var(--petrol-700);
  --text-muted: var(--sand-500);
  --text-on-inverse: var(--sand-100);
  --text-on-inverse-muted: var(--petrol-200);
  --text-on-accent: var(--sand-900);
  --text-accent: var(--amber-600);
  --text-link: var(--petrol-700);
  --text-link-hover: var(--petrol-500);

  /* --- Semantisch: Linien --- */
  --line-hairline: var(--sand-300);
  --line-strong: var(--sand-400);
  --line-inverse: rgba(247, 244, 239, .18);
  --line-focus: var(--petrol-500);

  /* --- Semantisch: Status (sparsam) --- */
  --status-success: #2F6B4F;
  --status-success-soft: #E6F0EA;
  --status-warning: var(--amber-600);
  --status-warning-soft: var(--amber-100);
  --status-danger: #9B3922;
  --status-danger-soft: #F7E7E2;
  --status-info: var(--petrol-500);
  --status-info-soft: var(--petrol-50);

  /* --- Fokusring --- */
  --focus-ring: 0 0 0 3px rgba(28, 107, 98, .32);

  /* --- Typografie --- */
  --font-display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-body: Inter, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  /* Vierte Schrift, bewusst und exakt an EINER Stelle: das Zitat auf
     "Ueber uns". Nirgendwo sonst einsetzen. */
  --font-hand: Caveat, "Segoe Script", "Bradley Hand", cursive;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --text-display-1: clamp(3rem, 6.2vw, 4.75rem);
  --text-display-2: clamp(2.5rem, 4.6vw, 3.5rem);
  --text-h1: clamp(2.125rem, 3.6vw, 2.75rem);
  --text-h2: clamp(1.75rem, 2.6vw, 2.125rem);
  --text-h3: 1.5rem;
  --text-h4: 1.25rem;

  --text-lead: 1.1875rem;
  --text-body: 1rem;
  --text-sm: 0.9375rem;
  --text-xs: 0.8125rem;

  --text-eyebrow: 0.75rem;

  --leading-tight: 1.04;
  --leading-snug: 1.18;
  --leading-heading: 1.24;
  --leading-body: 1.65;
  --leading-relaxed: 1.75;

  --tracking-display: -0.035em;
  --tracking-heading: -0.02em;
  --tracking-body: 0em;
  --tracking-eyebrow: 0.14em;
  --tracking-label: 0.02em;

  /* Versal-Headlines brauchen weniger negatives Tracking als gemischte
     Schreibung, sonst kleben die Grossbuchstaben aneinander. */
  --tracking-display-caps: -0.012em;
  --tracking-heading-caps: -0.005em;

  --measure-prose: 63ch;
  --measure-lead: 48ch;

  /* --- Spacing --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;
  --space-40: 160px;

  --section-y: clamp(72px, 9vw, 140px);
  --section-y-tight: clamp(48px, 6vw, 88px);

  --container-max: 1200px;
  --container-narrow: 760px;
  --gutter: clamp(20px, 5vw, 64px);
  --grid-gap: 24px;

  /* --- Radien --- */
  --radius-none: 0;
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --radius-control: 8px;
  --radius-card: 14px;
  --radius-media: 16px;
  --border-width: 1px;
  --border-width-strong: 1.5px;

  /* --- Elevation: warm getoent, nie blaugrau --- */
  --shadow-none: none;
  --shadow-xs: 0 1px 2px rgba(27, 26, 24, .05);
  --shadow-sm: 0 1px 2px rgba(27, 26, 24, .05), 0 2px 6px rgba(27, 26, 24, .04);
  --shadow-md: 0 2px 4px rgba(27, 26, 24, .04), 0 8px 20px rgba(27, 26, 24, .06);
  --shadow-lg: 0 4px 8px rgba(27, 26, 24, .04), 0 18px 44px rgba(27, 26, 24, .09);
  --shadow-inset-hairline: inset 0 0 0 1px var(--line-hairline);
  --shadow-focus: var(--focus-ring);
  --shadow-accent: 0 2px 10px rgba(166, 106, 21, .18);

  /* --- Motion --- */
  --ease-standard: cubic-bezier(.2, .6, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --duration-instant: 90ms;
  --duration-fast: 150ms;
  --duration-base: 220ms;
  --duration-slow: 420ms;
  --duration-reveal: 640ms;
  --transition-control:
    color var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
  --press-scale: 0.985;

  /* Weg, den ein Element beim Einblenden zuruecklegt.
     ABWEICHUNG vom Design System: dort stehen 8 px als Obergrenze. Bewusst
     auf 20 px erhoeht, damit die Bewegung ueberhaupt wahrnehmbar ist. Die
     Haltung bleibt: nur Fade und Versatz, kein Federn, kein Parallax.
     Siehe README, Abschnitt "Bewusste Abweichungen von den Vorlagen". */
  --reveal-shift: 20px;
  --reveal-stagger: 90ms;

  /* --- Schutzverlauf ueber Bildern (Petrol-900 getoent, nie neutrales Schwarz) --- */
  --scrim-media: linear-gradient(to top, rgba(11, 46, 43, .72) 0%, rgba(11, 46, 43, .10) 55%, rgba(11, 46, 43, 0) 100%);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-instant: 0ms;
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
    --duration-reveal: 0ms;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  color: var(--text-heading);
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-heading);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a {
  color: var(--text-link);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: var(--transition-control);
}

a:hover {
  color: var(--text-link-hover);
  border-bottom-color: var(--petrol-400);
}

img { max-width: 100%; }

::selection {
  background: var(--amber-300);
  color: var(--sand-900);
}

:focus-visible {
  outline: 2px solid var(--line-focus);
  outline-offset: 2px;
}

