/* Source: klarluft-design-system/project/colors_and_type.css, Google Fonts line removed */
/* =============================================================================
   KLARLUFT — Design Tokens
   Klimaanlagen & Ventilatoren · custom-built Air Handling Units
   ============================================================================= */


:root {
  /* -- BRAND ----------------------------------------------------------------
     The logo mark is a layered cyan-blue. #00A0E0 is the dominant pixel
     value sampled from the supplied logo. Use sparingly — primarily for
     mark, key links, and primary CTAs. */
  --brand-500: #00a0e0;          /* primary brand blue (from logo) */
  --brand-600: #0090d0;          /* logo shadow plane / hover */
  --brand-700: #0078b4;          /* pressed / dense text on light */
  --brand-400: #4fb8e6;          /* light tint */
  --brand-300: #8ed1ed;          /* surface accent */
  --brand-200: #c5e6f5;          /* selection fill */
  --brand-100: #e6f4fb;          /* tinted card background */
  --brand-050: #f4fafd;          /* near-white wash */

  /* -- NEUTRALS -- whites, then a careful grey ramp.
     The brand voice avoids saturation; greys carry most of the UI. */
  --white:     #ffffff;
  --grey-025:  #fafbfc;          /* page wash on white-heavy layouts */
  --grey-050:  #f4f5f7;          /* surface — card-on-page */
  --grey-100:  #e9ecef;          /* hairline dividers, input idle */
  --grey-200:  #dde1e6;          /* borders */
  --grey-300:  #c1c7cd;          /* disabled text on white */
  --grey-400:  #9aa1a8;          /* placeholder / icon idle */
  --grey-500:  #6e757c;          /* secondary text */
  --grey-600:  #525a61;          /* body on white-heavy */
  --grey-700:  #3b4248;          /* primary text */
  --grey-800:  #252a2e;          /* headings */
  --grey-900:  #14181b;          /* near-black, reserved */

  /* -- SEMANTIC (functional only — per brand rule, colour is reserved
        for functional cues; no decorative use) */
  --ok-500:    #1f9d55;          /* success: calc completed, status OK */
  --ok-100:    #e3f4ea;
  --warn-500:  #d18608;          /* warning: out-of-range, advisory */
  --warn-100:  #fbeed0;
  --err-500:   #c2362b;          /* error: failed RPC, validation */
  --err-100:   #f7dcd9;
  --info-500:  var(--brand-500); /* info uses brand */
  --info-100:  var(--brand-100);

  /* -- BACKGROUND / FOREGROUND tokens -- always reach for these first */
  --bg:           var(--white);
  --bg-subtle:    var(--grey-025);
  --bg-muted:     var(--grey-050);
  --bg-inset:     var(--grey-100);
  --bg-brand:     var(--brand-100);

  --fg:           var(--grey-800);
  --fg-strong:    var(--grey-900);
  --fg-muted:     var(--grey-600);
  --fg-subtle:    var(--grey-500);
  --fg-disabled:  var(--grey-300);
  --fg-on-brand:  var(--white);
  --fg-brand:     var(--brand-600);

  --border:        var(--grey-200);
  --border-strong: var(--grey-300);
  --border-subtle: var(--grey-100);
  --border-brand:  var(--brand-500);
  --focus-ring:    color-mix(in srgb, var(--brand-500) 45%, transparent);

  /* -- TYPOGRAPHY ----------------------------------------------------------- */
  --font-sans:      "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-condensed: "IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif;
  --font-mono:      "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Base type scale — modest, technical, no flourish. 16px root. */
  --t-display-1: 700 56px/1.05 var(--font-condensed);
  --t-display-2: 600 40px/1.10 var(--font-condensed);
  --t-h1:        600 32px/1.15 var(--font-sans);
  --t-h2:        600 24px/1.25 var(--font-sans);
  --t-h3:        600 18px/1.35 var(--font-sans);
  --t-h4:        600 15px/1.4  var(--font-sans);
  --t-body-lg:   400 17px/1.55 var(--font-sans);
  --t-body:      400 15px/1.55 var(--font-sans);
  --t-body-sm:   400 13px/1.5  var(--font-sans);
  --t-caption:   500 12px/1.4  var(--font-sans);
  --t-overline:  600 11px/1.2  var(--font-sans); /* uppercase, tracked */
  --t-mono:      400 13px/1.45 var(--font-mono);
  --t-mono-lg:   500 18px/1.3  var(--font-mono); /* metric readouts */

  --tracking-tight:   -0.01em;
  --tracking-normal:   0;
  --tracking-wide:     0.04em;
  --tracking-overline: 0.10em;

  /* -- SPACING (4-pt grid) -- */
  --s-0: 0; /* @kind spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;
  --s-9: 56px;
  --s-10: 72px;
  --s-11: 96px;

  /* -- RADII -- restrained; this is engineering software, not consumer. */
  --r-0: 0; /* @kind radius */
  --r-1: 2px;
  --r-2: 4px;          /* inputs, buttons */
  --r-3: 6px;          /* cards */
  --r-4: 10px;         /* modals, large cards */
  --r-pill: 999px;

  /* -- ELEVATION -- mostly flat. Shadows are subtle, cool-tinted. */
  --shadow-0: none;
  --shadow-1: 0 1px 0 rgba(20, 24, 27, 0.04), 0 1px 2px rgba(20, 24, 27, 0.04);
  --shadow-2: 0 1px 2px rgba(20, 24, 27, 0.06), 0 2px 6px rgba(20, 24, 27, 0.06);
  --shadow-3: 0 2px 4px rgba(20, 24, 27, 0.06), 0 8px 24px rgba(20, 24, 27, 0.08);
  --shadow-focus: 0 0 0 3px var(--focus-ring);
  --shadow-inset: inset 0 1px 0 rgba(20, 24, 27, 0.04);

  /* -- MOTION -- short, snappy, no bounce. */
  --ease-out:   cubic-bezier(0.2, 0.7, 0.2, 1); /* @kind other */
  --ease-in:    cubic-bezier(0.4, 0, 0.6, 1); /* @kind other */
  --ease-in-out: cubic-bezier(0.5, 0, 0.2, 1); /* @kind other */
  --dur-1: 80ms;     /* @kind other */ /* hover / press */
  --dur-2: 160ms;    /* @kind other */ /* state changes */
  --dur-3: 240ms;    /* @kind other */ /* panel open */
  --dur-4: 360ms;    /* @kind other */ /* page transitions */

  /* -- LAYOUT -- */
  --container-narrow: 720px;
  --container:        1100px;
  --container-wide:   1320px;
}

/* =============================================================================
   SEMANTIC ELEMENT STYLES — opt-in by adding the .kl-content class to a wrapper
   ============================================================================= */
.kl-content {
  color: var(--fg);
  font: var(--t-body);
  letter-spacing: var(--tracking-normal);
  text-wrap: pretty;
}
.kl-content h1, .kl-h1 { font: var(--t-h1); color: var(--fg-strong); letter-spacing: var(--tracking-tight); margin: 0 0 var(--s-4); }
.kl-content h2, .kl-h2 { font: var(--t-h2); color: var(--fg-strong); margin: var(--s-7) 0 var(--s-3); }
.kl-content h3, .kl-h3 { font: var(--t-h3); color: var(--fg-strong); margin: var(--s-5) 0 var(--s-2); }
.kl-content h4, .kl-h4 { font: var(--t-h4); color: var(--fg);        margin: var(--s-4) 0 var(--s-1); }
.kl-content p          { font: var(--t-body); color: var(--fg-muted); margin: 0 0 var(--s-3); }
.kl-content small, .kl-caption { font: var(--t-caption); color: var(--fg-subtle); }
.kl-overline           { font: var(--t-overline); letter-spacing: var(--tracking-overline); text-transform: uppercase; color: var(--fg-subtle); }
.kl-display-1          { font: var(--t-display-1); color: var(--fg-strong); letter-spacing: var(--tracking-tight); }
.kl-display-2          { font: var(--t-display-2); color: var(--fg-strong); letter-spacing: var(--tracking-tight); }
.kl-mono               { font: var(--t-mono); color: var(--fg); }
.kl-metric             { font: var(--t-mono-lg); color: var(--fg-strong); font-feature-settings: "tnum" 1, "zero" 1; }
.kl-content a          { color: var(--fg-brand); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.kl-content a:hover    { color: var(--brand-700); text-decoration-thickness: 2px; }
.kl-content code       { font: var(--t-mono); background: var(--bg-muted); padding: 1px 6px; border-radius: var(--r-1); }

/* Page-level reset helper */
.kl-page {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: var(--t-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
