/* ============================================================
   Bravex / KI im Mittelstand — Design Tokens
   Black, white, nothing else.
   ============================================================ */

/* Webschriften im Hub: seit 2026-08-25 laedt index.html Fraunces und Manrope von Google,
 * weil die Kundenseite im Hub dasselbe Design wie das Kundenportal traegt. Die Werte hier
 * bleiben die Rueckfall-Schriften; stil.css setzt die Portal-Schriften davor.
 *
 * Bis dahin galt — und als Warnung bleibt es stehen — "keine Webschriften im Hub":
 *
 * Der Hub ist ein Betriebswerkzeug: Tabellen, Kennungen, Zahlen, oft bei 13 px. Dafuer ist
 * die Systemschrift die beste verfuegbare Wahl. Sie ist auf jedem Geraet fuer genau diese
 * Groessen gehintet, sie ist sofort da, und sie haelt den Hub unabhaengig von einem fremden
 * Server: Bis 2026-08-14 holte diese Datei drei Schriftfamilien von Google. Eine davon
 * (Instrument Serif) wurde nirgends benutzt, und bei jedem Aufruf hing die Lesbarkeit der
 * Kundenakte an einer Verbindung nach draussen.
 *
 * Die Marken-Typografie bleibt, wo sie hingehoert: auf Marketing-Seiten und in der
 * Kundenanzeige (ui/standard-anzeige/), die eigene Kopien dieser Dateien hat. */

:root {
  /* ---------- COLOR · Light mode (product default) ---------- */
  --bg:              #FFFFFF;
  --surface-1:       #F5F5F5;
  --surface-2:       #FFFFFF;
  --surface-3:       #FAFAFA;
  --border:          #E5E5E5;
  --border-strong:   #D4D4D4;
  --text:            #0A0A0A;
  --text-dim:        #4B4B4B;
  --text-mute:       #8A8A8A;
  --accent:          #000000;
  --accent-inverse:  #FFFFFF;
  --focus-ring:      #000000;

  /* ---------- TYPOGRAPHY ---------- */
  --font-sans:       system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif:      Georgia, 'Times New Roman', serif;
  --font-mono:       ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --type-hero:       4rem;      /* 64 — campaign caps */
  --type-display:    2.5rem;    /* 40 — product H1 */
  --type-editorial:  2.25rem;   /* 36 — serif */
  --type-h2:         1.75rem;   /* 28 */
  --type-h3:         1.25rem;   /* 20 */
  --type-lead:       1.125rem;  /* 18 */
  --type-body:       0.9375rem; /* 15 */
  --type-small:      0.8125rem; /* 13 */
  --type-mono:       0.6875rem; /* 11 */

  --lh-tight:        1.05;
  --lh-display:      1.2;
  --lh-heading:      1.3;
  --lh-body:         1.7;

  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-black:    900;

  --tracking-tight:  -0.02em;
  --tracking-normal: 0;
  --tracking-wide:   0.12em;
  --tracking-mono:   0.3em;

  /* ---------- SPACING (px via rem) ---------- */
  --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-22: 88px;
  --space-30: 120px;

  /* ---------- RADIUS ---------- */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-2xl:  24px;
  --radius-pill: 9999px;

  /* ---------- ELEVATION ---------- */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.18);

  /* ---------- MOTION ---------- */
  --ease:           cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast:  150ms;
  --duration-base:  240ms;
  --duration-slow:  480ms;

  /* ---------- LAYOUT ---------- */
  --container-wide: 1200px;
  --container-edit: 940px;
  --nav-height:     64px;
}

/* ---------- DARK MODE (campaign, hero, manifesto) ---------- */
[data-theme="dark"],
.theme-dark {
  --bg:             #000000;
  --surface-1:      #0A0A0A;
  --surface-2:      #111111;
  --surface-3:      #181818;
  --border:         #222222;
  --border-strong:  #2E2E2E;
  --text:           #F0F0F0;
  --text-dim:       #A0A0A0;
  --text-mute:      #5A5A5A;
  --accent:         #FFFFFF;
  --accent-inverse: #000000;
  --focus-ring:     #FFFFFF;

  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-xl: none;
}

/* ============================================================
   BASE RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: var(--weight-light);
  font-size: var(--type-body);
  line-height: var(--lh-body);
}

::selection { background: var(--text); color: var(--bg); }

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.t-hero {
  font-family: var(--font-sans);
  font-weight: var(--weight-black);
  font-size: clamp(2.5rem, 6vw, var(--type-hero));
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
  color: var(--text);
}

.t-display {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  font-size: clamp(2rem, 4vw, var(--type-display));
  line-height: var(--lh-display);
  color: var(--text);
}

.t-editorial {
  font-family: var(--font-serif);
  font-weight: var(--weight-regular);
  font-size: var(--type-editorial);
  line-height: var(--lh-display);
  color: var(--text);
}

.t-h2 {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  font-size: var(--type-h2);
  line-height: var(--lh-heading);
  color: var(--text);
}

.t-h3 {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  font-size: var(--type-h3);
  line-height: var(--lh-heading);
  color: var(--text);
}

.t-lead {
  font-family: var(--font-sans);
  font-weight: var(--weight-light);
  font-size: var(--type-lead);
  line-height: var(--lh-body);
  color: var(--text-dim);
}

.t-body {
  font-family: var(--font-sans);
  font-weight: var(--weight-light);
  font-size: var(--type-body);
  line-height: var(--lh-body);
  color: var(--text-dim);
}

.t-small {
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--type-small);
  line-height: 1.5;
  color: var(--text-dim);
}

.t-mono,
.section-tag {
  font-family: var(--font-mono);
  font-weight: var(--weight-medium);
  font-size: var(--type-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--text-mute);
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 14px;
  opacity: 0.6;
}

/* ============================================================
   FOCUS
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ============================================================
   MOTION PREF
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
