/* ============================================================
   PFOTENKUR — DESIGN TOKENS  v1
   Abgeleitet aus dem jernoxIT-Styleguide (06/2023).

   Zentrale Marken-Tokens für alle Frontends (web-customer, web-vet,
   web-admin, web-auth, app-ui). Wird als ERSTES Stylesheet vor
   shared.css/web.css/main.css geladen, damit die --pk-*-Variablen und
   die Schriften überall verfügbar sind.

   WHITELABEL:
   Alle Akzent-getriebenen Elemente lesen --pk-accent*.
   - Standard (kein Whitelabel): --pk-accent = Pfotenkur-Teal (unten gesetzt).
   - Whitelabel-Kunde: NUR die vier --pk-accent* Variablen überschreiben
     (zur Laufzeit via ui::theme auf dem Wurzel-Element / <Themed>).
   Nichts anderes muss angefasst werden.

   FONTS: self-hosted woff2 (siehe fonts/). Bewusst KEIN Google-Fonts-CDN —
   die CSP ist statisch `style-src 'self'; font-src 'self'` (deploy/web/
   Caddyfile) und der CDN-Bezug wäre in DE DSGVO-kritisch (LG München 2022).
   Die woff2 werden per `data-trunk rel="copy-dir" href=".../fonts"` nach
   dist/fonts/ kopiert; die url()-Pfade hier sind relativ zum (geslashten)
   Stylesheet im dist-Root und lösen darum auf /fonts/… auf.
   ============================================================ */

/* ---- Bricolage Grotesque (Überschriften) — variable 400..800 ---- */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/bricolage-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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/bricolage-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;
}

/* ---- Hanken Grotesk (Fließtext / UI) — variable 400..700 ---- */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/hanken-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: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/hanken-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;
}

/* ---- JetBrains Mono (Werte / Labels / Codes) — variable 400..600 ---- */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/jetbrains-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/jetbrains-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;
}

:root {
  /* ---- Marken-Kernfarben (fix, NICHT pro Whitelabel ändern) ---- */
  --pk-teal:        #19878C;   /* jernoxIT Logo Farbe 1 */
  --pk-teal-deep:   #136A6E;   /* Hover / Aktiv / Text auf Hell */
  --pk-green:       #77CD96;   /* jernoxIT Logo Farbe 2 */
  --pk-green-deep:  #4FAE72;

  /* ---- Akzent (Whitelabel-Hebel) ---- */
  --pk-accent:        var(--pk-teal);
  --pk-accent-deep:   var(--pk-teal-deep);   /* Hover/Aktiv + Wert-Text */
  --pk-accent-soft:   #E6F0E6;               /* getönte Fläche / Progress-Track */
  --pk-accent-on:     #FFFFFF;               /* Text auf Akzentfläche */

  /* ---- Tinte / Text ---- */
  --pk-ink:         #1E231E;   /* jernoxIT Text — Überschriften, Werte */
  --pk-ink-soft:    #46544A;   /* Fließtext */
  --pk-ink-muted:   #7A8A7E;   /* Hilfstext, Labels */
  --pk-ink-faint:   #9AA89E;   /* Einheiten, Meta */

  /* ---- Flächen ---- */
  --pk-paper:       #F5FAF5;   /* Seitenhintergrund */
  --pk-surface:     #E6F0E6;   /* getönte Karten / Chips */
  --pk-surface-2:   #EEF4EE;   /* Tab-/Segment-Hintergrund */
  --pk-white:       #FFFFFF;   /* Karten */

  /* ---- Linien ---- */
  --pk-border:      #E2ECE2;   /* Kartenrand */
  --pk-border-nav:  #DDE9DD;   /* Trennlinien / Header-Border */
  --pk-border-input:#CFE0CF;   /* Eingabefelder */

  /* ---- Funktion / Status ---- */
  --pk-amber:       #E2A33B;   /* Hinweis (z. B. „Zielgewicht erreicht“) */
  --pk-amber-bg:    #FFFAF0;
  --pk-amber-text:  #8A6512;
  --pk-amber-border:#F0D9A8;

  --pk-clay:        #C5564A;   /* Achtung / Übergewicht */
  --pk-clay-bg:     #F7DDD9;
  --pk-clay-text:   #9C3A2F;
  --pk-clay-border: #E7B8B1;   /* Destruktiv-Button-Outline (§02) */

  --pk-success:     var(--pk-green-deep);
  --pk-success-bg:  var(--pk-accent-soft);

  /* ---- Status-Pills / Badges (README §9) ---- */
  --pk-pill-ok-bg:        #E3F3E9;            /* success / done */
  --pk-pill-ok-text:      #2E6B43;
  --pk-pill-warn-bg:      #FDF1DA;            /* attention / due */
  --pk-pill-warn-text:    var(--pk-amber-text);
  --pk-pill-danger-bg:    var(--pk-clay-bg);  /* error / terminated */
  --pk-pill-danger-text:  var(--pk-clay-text);
  --pk-pill-info-bg:      var(--pk-surface);  /* on course / info (accent-tinted) */
  --pk-pill-info-text:    var(--pk-accent-deep);
  --pk-pill-neutral-bg:   var(--pk-surface-2);/* idle / expired */
  --pk-pill-neutral-text: var(--pk-ink-muted);

  /* ---- Typografie ---- */
  --pk-font-display: 'Bricolage Grotesque', system-ui, sans-serif; /* Überschriften */
  --pk-font-body:    'Hanken Grotesk', system-ui, sans-serif;      /* UI / Fließtext */
  --pk-font-mono:    'JetBrains Mono', ui-monospace, monospace;    /* Werte, Labels, Codes */

  /* Schriftgrößen (px-Empfehlung) */
  --pk-text-xs:  12px;
  --pk-text-sm:  14px;
  --pk-text-base:15px;
  --pk-text-md:  16px;
  --pk-text-lg:  19px;
  --pk-h3:       20px;   /* Karten-Titel (display 700) */
  --pk-h2:       30px;   /* Sektions-Titel (display 600) */
  --pk-h1:       clamp(34px, 5vw, 50px);

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

  /* ---- Radien ---- */
  --pk-radius-sm:  8px;    /* Buttons innerhalb, Inputs */
  --pk-radius-md:  10px;   /* Buttons */
  --pk-radius-lg:  12px;   /* Alerts, Tab-Container */
  --pk-radius-xl:  16px;   /* Karten */
  --pk-radius-2xl: 20px;   /* große Panels */
  --pk-radius-pill:999px;  /* Badges, Progress */

  /* ---- Abstände (4er-Raster) ---- */
  --pk-space-1: 4px;
  --pk-space-2: 8px;
  --pk-space-3: 12px;
  --pk-space-4: 16px;
  --pk-space-5: 20px;
  --pk-space-6: 24px;
  --pk-space-8: 32px;

  /* ---- Schatten ---- */
  --pk-shadow-card:  0 1px 2px rgba(20,60,50,0.04);
  --pk-shadow-cta:   0 8px 24px -10px rgba(25,135,140,0.55);
  --pk-shadow-float: 0 30px 70px -28px rgba(20,60,50,0.40);
}

/* ============================================================
   WHITELABEL-BEISPIEL — pro Praxis nur diese 4 Variablen setzen
   (das Produkt verdrahtet sie zur Laufzeit über ui::theme):

   .theme-tierklinik-nord {
     --pk-accent:      #2563EB;
     --pk-accent-deep: #1D4ED8;
     --pk-accent-soft: #E2EBFB;
     --pk-accent-on:   #FFFFFF;
   }
   ============================================================ */
