/* Kopie aus MEO/03_Marketing_Vertrieb/07_Website/site/assets/css/tokens.css, erzeugt mit sync_website.py.
   Nicht von Hand bearbeiten, Änderungen an der Website vornehmen und neu übernehmen. */
/* Kopie von 01_Vorlagen/_ME.CTC_Design_System/colors_and_type.css, Schriftpfade absolut,
   JetBrains Mono lokal statt Google Fonts. Quelle bleibt das Design-System. */
/* ============================================================
   ME-CTC · Matthias Ernst — Colors & Type
   Brand: "Unleash your clarity!"
   Authoritative: the tokens in this file (palette PDF of May 2026 superseded)
   ============================================================ */

/* ---------- Webfonts ---------- */
/* Inter — local variable font (uploaded). Aptos is the Office counterpart;
   if available locally on the user's machine it falls in via the stack below.
   JetBrains Mono is still pulled from Google Fonts (no local file supplied). */

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.ttf") format("truetype-variations"),
       url("../fonts/InterVariable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable-Italic.ttf") format("truetype-variations"),
       url("../fonts/InterVariable-Italic.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* JetBrains Mono lokal (Latin-Untermenge aus dem Design-System), kein Google Fonts */
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-Medium-latin.ttf") format("truetype"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-Bold-latin.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* ============================================================
     COLOR — Brand families (each: base + light/tint)
     ============================================================ */

  /* Teal — Primärfarbe · Brand
     Use: Logo, navigation, primary buttons, success states, key accents */
  --teal-700: #0c6e57;
  --teal-600: #149879;          /* Accent (web highlight, success) */
  --teal-500: #2bb494;
  --teal-400: #66c4ab;          /* Tint */
  --teal-200: #b9e3d6;
  --teal-100: #e4f4ee;
  --teal-50:  #f3faf7;

  /* Petrol — Expertise · Premium · Gutachten
     Use: IT-Sachverständiger context, expert reports, premium, dark UIs */
  --petrol-800: #04576b;
  --petrol-700: #006a85;
  --petrol-600: #0088a8;        /* Expertise primary */
  --petrol-500: #2aa5c4;
  --petrol-400: #5bbfda;        /* Tint */
  --petrol-200: #b8e1ec;
  --petrol-100: #e3f3f8;

  /* Orange — Highlight · CTA
     Use: Call-to-action, badges, new content, promotions. Sparingly. */
  --orange-800: #873302;        /* CTA hover (Kontrast 8,4 : 1 zu Weiss) */
  --orange-700: #a13d02;        /* CTA-Flaeche mit weisser Schrift (6,6 : 1) */
  --orange-600: #d05003;        /* CTA primary */
  --orange-500: #e7733b;
  --orange-400: #fd9d87;        /* Tint */
  --orange-200: #fbd2c4;
  --orange-100: #fdebe3;

  /* Rot — Emergency · Alert
     Use: ONLY actual error states, destructive actions */
  --red-700: #6f0d1a;
  --red-600: #981424;           /* Alert primary */
  --red-500: #c34255;
  --red-400: #ef8592;           /* Tint */
  --red-200: #f6c1c8;
  --red-100: #fce8eb;

  /* ============================================================
     COLOR — Neutrals (warm-cool slightly cool, matches petrol)
     ============================================================ */
  --ink-1000: #040d1a;          /* Wallpaper / dark presentation bg */
  --ink-900:  #0a1c35;          /* Dark UI surface */
  --ink-800:  #0f2444;
  --ink-700:  #1a3354;
  --ink-600:  #2c4565;
  --ink-500:  #4c6586;
  --ink-450:  #5c7094;          /* kleine Beschriftung auf Hell: 5,0 : 1 auf Weiss, 4,6 : 1 auf #F5F6F8 */
  --ink-400:  #7a8ba8;          /* nur Linien, Icons, grosse Schrift: 3,5 : 1 auf Weiss */
  --ink-300:  #a8b6c9;
  --ink-200:  #ccd5e0;
  --ink-150:  #e2e6ec;
  --ink-100:  #eef0f4;
  --ink-50:   #f5f6f8;
  --ink-25:   #fafbfc;
  --paper:    #ffffff;

  /* Dot/grid (from wallpaper) */
  --grid-line-dark: #0a1c35;
  --grid-dot-dark:  #0c1e38;

  /* Network accents from wallpaper */
  --node-mint:   #00c9a7;       /* Brighter teal-mint used on dark */
  --node-petrol: #0088a8;

  /* ============================================================
     SEMANTIC COLORS
     ============================================================ */
  --color-bg:           var(--paper);
  --color-bg-muted:     var(--ink-50);
  --color-bg-subtle:    #f5f5f5;       /* Website hell */
  --color-surface:      var(--paper);
  --color-surface-alt:  var(--ink-25);
  --color-bg-dark:      var(--ink-1000);

  --color-fg:           var(--ink-900);
  --color-fg-strong:    var(--ink-1000);
  --color-fg-muted:     var(--ink-500);
  --color-fg-subtle:    var(--ink-450);    /* ink-400 verfehlt WCAG AA fuer Text */
  --color-fg-on-dark:   #ddeeff;
  --color-fg-on-brand:  var(--paper);

  --color-border:       var(--ink-150);
  --color-border-strong:var(--ink-200);
  --color-divider:      var(--ink-100);

  --color-brand:        var(--ink-900);       /* Navy · primary brand */
  --color-brand-hover:  var(--ink-1000);
  --color-brand-tint:   var(--ink-100);

  --color-accent:       var(--teal-600);       /* Teal · accent / highlight */
  --color-accent-hover: var(--teal-700);
  --color-accent-tint:  var(--teal-100);

  --color-expertise:    var(--petrol-600);    /* Gutachten / IT-SV context */
  --color-expertise-tint: var(--petrol-100);

  --color-cta:          var(--orange-700);    /* 600 erreicht mit weisser Schrift nur 4,3 : 1 (WCAG AA verlangt 4,5) */
  --color-cta-hover:    var(--orange-800);
  --color-cta-tint:     var(--orange-100);

  --color-danger:       var(--red-600);
  --color-danger-tint:  var(--red-100);

  --color-success:      var(--teal-600);
  --color-info:         var(--petrol-600);

  --color-link:         var(--petrol-700);    /* 600 hat auf Weiss nur 4,1 : 1 */
  --color-link-hover:   var(--petrol-800);

  /* Contextual presets — authoritative source for context recipes.
     (Supersedes the palette PDF of May 2026, which predates Navy.) */
  --ctx-website-primary: var(--ink-900);
  --ctx-website-accent:  var(--teal-600);
  --ctx-website-bg:      var(--paper);

  --ctx-deck-primary:    var(--teal-600);
  --ctx-deck-accent:     var(--petrol-600);
  --ctx-deck-bg:         var(--ink-1000);

  --ctx-gutachten-primary: var(--ink-900);
  --ctx-gutachten-accent:  var(--teal-600);
  --ctx-gutachten-bg:      var(--paper);

  --ctx-newsletter-primary: var(--orange-600);
  --ctx-newsletter-accent:  var(--teal-600);
  --ctx-newsletter-bg:      var(--paper);

  /* ============================================================
     DARK-MODE TOKENS — Website (dunkel)
     Apply by wrapping a tree in [data-theme="dark"] or by toggling
     a class. Hue stays consistent with the light system; lightness
     is lifted so the brand reads premium, never developer-dark.
     ============================================================ */
  --dark-bg:           var(--ink-1000);   /* #040D1A · canvas */
  --dark-surface:      var(--ink-900);    /* #0A1C35 · card default */
  --dark-surface-alt:  var(--ink-800);    /* #0F2444 · card hover */
  --dark-surface-3:    var(--ink-700);    /* #1A3354 · pressed / inputs */
  --dark-border:       #142A48;           /* subtle */
  --dark-border-strong:var(--ink-600);    /* #2C4565 */
  --dark-fg-strong:    var(--paper);      /* #FFFFFF · headlines */
  --dark-fg:           #DDEEFF;           /* body */
  --dark-fg-muted:     var(--ink-300);    /* #A8B6C9 · captions */
  --dark-fg-subtle:    var(--ink-400);    /* #7A8BA8 · labels */
  --dark-fg-disabled:  var(--ink-500);    /* #4C6586 */
  --dark-brand:        var(--node-mint);  /* #00C9A7 · primary on dark */
  --dark-brand-hover:  var(--teal-500);   /* #2BB494 */
  --dark-brand-pressed:var(--teal-600);   /* #149879 */
  --dark-link:         var(--petrol-400); /* #5BBFDA · links / info */
  --dark-cta:          var(--orange-400); /* #FD9D87 · accent / CTA on dark */
  --dark-cta-hover:    var(--orange-500); /* #E7733B */
  --dark-success:      var(--node-mint);  /* #00C9A7 */
  --dark-warning:      var(--orange-400);
  --dark-danger:       var(--red-400);    /* #EF8592 */
  --dark-shadow-focus: 0 0 0 3px rgba(0, 201, 167, 0.40);

  /* ============================================================
     TYPE — Stacks
     Inter for web/LaTeX (XeLaTeX); Aptos for Office. The two have
     near-identical x-height + weight, so the stack works in both.
     JetBrains Mono for technical labels / "SYS://" tags.
     ============================================================ */
  --font-sans:    "Inter", "Inter Variable", "Aptos", "Aptos Display", -apple-system,
                  BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI",
                  system-ui, sans-serif;
  --font-display: "Inter", "Inter Variable", "Aptos Display", "Aptos", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", "Cascadia Code", "SF Mono",
                  ui-monospace, Menlo, Consolas, monospace;

  /* Weight scale (Inter weights only — work in Aptos too) */
  --fw-light: 300;       /* @kind font */
  --fw-regular: 400;     /* @kind font */
  --fw-medium: 500;      /* @kind font */
  --fw-semibold: 600;    /* @kind font */
  --fw-bold: 700;        /* @kind font */
  --fw-black: 800;       /* @kind font */

  /* Type scale — modular, calmer ratio (1.25). Tight tracking on display. */
  --fs-xs:   12px;
  --fs-sm:   14px;
  --fs-base: 16px;
  --fs-md:   18px;
  --fs-lg:   20px;
  --fs-xl:   24px;
  --fs-2xl:  30px;
  --fs-3xl:  38px;
  --fs-4xl:  48px;
  --fs-5xl:  64px;
  --fs-6xl:  82px;   /* Wallpaper hero */

  --lh-tight:   1.1;     /* @kind font */
  --lh-snug:    1.25;    /* @kind font */
  --lh-normal:  1.5;     /* @kind font */
  --lh-relaxed: 1.65;    /* @kind font */

  --ls-tight:   -0.02em; /* @kind font */
  --ls-normal:  0;       /* @kind font */
  --ls-wide:    0.04em;  /* @kind font */
  --ls-widest:  0.14em;  /* @kind font */

  /* ============================================================
     SPACING (4px base)
     ============================================================ */
  --s-0: 0;        /* @kind spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;

  /* ============================================================
     RADII — restrained. Forensic, not playful.
     ============================================================ */
  --r-0:  0;       /* @kind radius */
  --r-1:  2px;
  --r-2:  4px;
  --r-3:  6px;
  --r-4:  8px;
  --r-6:  12px;
  --r-pill: 999px;

  /* ============================================================
     SHADOWS — quiet, paper-like. No glow on light surfaces.
     ============================================================ */
  --shadow-xs: 0 1px 2px rgba(10, 28, 53, 0.06);
  --shadow-sm: 0 1px 2px rgba(10, 28, 53, 0.05), 0 2px 6px rgba(10, 28, 53, 0.06);
  --shadow-md: 0 2px 4px rgba(10, 28, 53, 0.06), 0 8px 18px rgba(10, 28, 53, 0.08);
  --shadow-lg: 0 8px 24px rgba(10, 28, 53, 0.10), 0 24px 48px rgba(10, 28, 53, 0.10);
  --shadow-focus: 0 0 0 3px rgba(20, 152, 121, 0.28);
  --shadow-focus-petrol: 0 0 0 3px rgba(0, 136, 168, 0.28);

  /* Inset / divider */
  --shadow-inset-divider: inset 0 -1px 0 var(--ink-150);

  /* ============================================================
     MOTION — subtle, professional. No bounce.
     ============================================================ */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);     /* @kind other */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);  /* @kind other */
  --dur-fast: 120ms;   /* @kind other */
  --dur-base: 200ms;   /* @kind other */
  --dur-slow: 360ms;   /* @kind other */

  /* Layout */
  --container-w: 1200px;          /* @kind spacing */
  --container-w-narrow: 760px;    /* @kind spacing */
  --grid-module: 160px;           /* @kind spacing */
}

/* ============================================================
   DARK-MODE OVERRIDES — apply on [data-theme="dark"] or .theme-dark
   ============================================================ */
[data-theme="dark"], .theme-dark {
  --color-bg:           var(--dark-bg);
  --color-bg-muted:     var(--dark-surface);
  --color-bg-subtle:    var(--dark-surface);
  --color-surface:      var(--dark-surface);
  --color-surface-alt:  var(--dark-surface-alt);
  --color-fg:           var(--dark-fg);
  --color-fg-strong:    var(--dark-fg-strong);
  --color-fg-muted:     var(--dark-fg-muted);
  --color-fg-subtle:    var(--dark-fg-subtle);
  --color-border:       var(--dark-border);
  --color-border-strong:var(--dark-border-strong);
  --color-divider:      var(--dark-border);
  --color-brand:        var(--dark-brand);
  --color-brand-hover:  var(--dark-brand-hover);
  --color-brand-tint:   rgba(0, 201, 167, 0.14);
  --color-cta:          var(--dark-cta);
  --color-cta-hover:    var(--dark-cta-hover);
  --color-cta-tint:     rgba(253, 157, 135, 0.16);
  --color-danger:       var(--dark-danger);
  --color-link:         var(--dark-link);
  --shadow-focus:       var(--dark-shadow-focus);
}

/* ============================================================
   SEMANTIC TYPE — apply via class OR as bare tag
   ============================================================ */

html, body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-fg);
  background: var(--color-bg);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.t-eyebrow, .eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--petrol-700);   /* Text in Petrol: 700er-Stufe fuer WCAG AA */
}

.t-display, h1.display {
  font-family: var(--font-display);
  font-size: var(--fs-5xl);
  font-weight: var(--fw-light);     /* "Unleash your" */
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--color-fg-strong);
}
.t-display .strong, .t-display strong {
  font-weight: var(--fw-bold);
}

h1, .t-h1 {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--color-fg-strong);
}

h2, .t-h2 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color: var(--color-fg-strong);
}

h3, .t-h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  color: var(--color-fg-strong);
}

h4, .t-h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
}

h5, .t-h5 {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
}

p, .t-body {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--color-fg);
  text-wrap: pretty;
}

.t-lead {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--color-fg);
  font-weight: var(--fw-regular);
}

.t-small, small {
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: var(--color-fg-muted);
}

.t-caption {
  font-size: var(--fs-xs);
  line-height: var(--lh-normal);
  color: var(--color-fg-muted);
  letter-spacing: 0.02em;
}

code, .t-mono, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: var(--ls-wide);
}

.t-sys {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  color: var(--ink-500);
  text-transform: uppercase;
}

a {
  color: var(--color-link);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--color-link-hover); }
