/* ============================================================================
   AION — aion-base.css (BR-WEB-02 AP4: Master-Linie)
   Token-Quelle: iscad-tokens.css (generiert aus iscad-tokens/iscad-tokens.yaml,
   v0.4) — Werte NIE hier ändern, nur in der YAML.
   Die :root-Variablen der Seiten werden hier zentral auf die Marken-Tokens
   gemappt; Struktur-CSS bleibt (noch) pro Seite. Fonts selbst gehostet (DSGVO),
   identische Dateien wie iscad-it.eu.
   ============================================================================ */

@import url('iscad-tokens.css');

/* === Lokale Fonts (identisch Master-Site) === */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/fraunces-latin-full-normal.woff2') format('woff2-variations');
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/fraunces-latin-full-italic.woff2') format('woff2-variations');
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/geist-latin-wght-italic.woff2') format('woff2-variations');
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/geist-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: 'Geist Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/geist-mono-latin-wght-normal.woff2') format('woff2-variations');
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/geist-mono-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* === Mapping AION-Variablen -> ISCaD-Tokens === */
:root {
  /* Neutrale: Tinte/Papier/Flächen — kommen vom Master (kühl statt warm) */
  --ink:        var(--iscad-ink);
  --ink-2:      var(--iscad-ink-soft);
  --ink-3:      var(--iscad-muted);
  --ink-4:      var(--iscad-ink-dim);
  --paper:      var(--iscad-paper);
  --paper-2:    var(--iscad-surface);
  --paper-3:    var(--iscad-surface-2);
  --rule:       var(--iscad-line);
  --rule-2:     rgba(18,38,44,.06);   /* Ink-Alpha */
  --rule-dim:   rgba(18,38,44,.06);

  /* Dunkelflächen: Petrol statt Grün-Schwarz */
  --dark:       var(--iscad-petrol-dark);
  --dark-2:     var(--iscad-petrol);

  /* Produktfarben — Token-Basis (YAML v0.4) */
  --aion:        var(--iscad-product-aion);
  --aion-mid:    var(--iscad-product-aion-mid);
  --aion-pale:   var(--iscad-product-aion-pale);
  --cairn:       var(--iscad-product-cairn);
  --cairn-mid:   var(--iscad-product-cairn-mid);
  --cairn-pale:  var(--iscad-product-cairn-pale);
  --gold:        var(--iscad-product-gold);
  --gold-pale:   var(--iscad-product-gold-pale);
  --purple:      var(--iscad-product-purple);
  --purple-pale: var(--iscad-product-purple-pale);

  /* Warnhinweise (Datenschutz) — Severity-Token, Tint abgeleitet */
  --alert:      var(--iscad-severity-critical);
  --alert-pale: color-mix(in srgb, var(--iscad-severity-critical) 8%, var(--iscad-paper));

  /* Typo — Master-Schriften */
  --serif: var(--iscad-font-display);
  --sans:  var(--iscad-font-body);
  --mono:  var(--iscad-font-mono);

  /* Form/Layout — AION-spezifisch, r-lg vom Token */
  --r:    4px;
  --r-lg: var(--iscad-radius);
  --max:  1140px;
  --col:  clamp(20px, 4vw, 52px);
}
