/* ============================================================
   G&B Logistics — Design Tokens
   Quelle: gb-logistics-brand/colors_and_type.css (CI 03/2012 + digitale
   Erweiterung). Unveraendert uebernommen bis auf die Schrifteinbindung:
   Montserrat wird selbst gehostet, damit die CSP ohne externe Quellen
   auskommt.
   ============================================================ */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin-var.woff2') format('woff2');
}

:root {
  /* ---------- Core CI colors ---------- */
  --gb-grey: #999999; /* HKS 91 N 60% */
  --gb-red: #c30017; /* HKS 23 N */
  --gb-black: #000000; /* HKS 97 N */
  --gb-white: #ffffff;

  /* ---------- Extended greyscale (digital) ---------- */
  --gb-grey-950: #0a0a0a;
  --gb-grey-900: #161616;
  --gb-grey-800: #242424;
  --gb-grey-700: #3a3a3a;
  --gb-grey-600: #5c5c5c;
  --gb-grey-500: #7a7a7a;
  --gb-grey-400: #999999;
  --gb-grey-300: #bfbfbf;
  --gb-grey-200: #dcdcdc;
  --gb-grey-100: #ededed;
  --gb-grey-50: #f6f6f6;

  /* ---------- Red scale (hover / bg tints only) ---------- */
  --gb-red-900: #7a000e;
  --gb-red-800: #9c0013;
  --gb-red-700: #c30017;
  --gb-red-600: #d42234;
  --gb-red-500: #e24458;
  --gb-red-100: #fbe4e7;
  --gb-red-50: #fdf2f3;

  /* ---------- Semantic roles ---------- */
  --color-bg: var(--gb-white);
  --color-bg-alt: var(--gb-grey-50);
  --color-bg-inverse: var(--gb-black);
  --color-surface: var(--gb-white);
  --color-border: var(--gb-grey-200);
  --color-border-strong: var(--gb-grey-400);
  --color-text: var(--gb-black);
  --color-text-muted: var(--gb-grey-600);
  --color-text-soft: var(--gb-grey-500);
  --color-text-inverse: var(--gb-white);
  --color-accent: var(--gb-red);
  --color-accent-hover: var(--gb-red-800);

  --color-success: #2f7d3a;
  --color-warning: #c57a00;
  --color-info: #1e4fa8;
  --color-danger: var(--gb-red);

  /* ---------- Typography ---------- */
  --font-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 3rem;
  --fs-5xl: 3.75rem;
  --fs-6xl: 4.5rem;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-widest: 0.12em;

  /* ---------- Spacing (4pt grid) ---------- */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 6rem;
  --space-11: 8rem;

  /* ---------- Radii ---------- */
  --radius-none: 0;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;
  --radius-default: var(--radius-sm);

  /* ---------- Shadows ---------- */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 18px 32px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
  --shadow-ring: 0 0 0 3px rgba(195, 0, 23, 0.25);

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 360ms;

  /* ---------- Layout ---------- */
  --container-max: 1200px;
  --container-gutter: var(--space-5);
  --header-h: 72px;
}

/* ---------- Base reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* ---------- Heading utilities ---------- */
.h1 {
  font-weight: var(--fw-bold);
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

.h2 {
  font-weight: var(--fw-bold);
  font-size: var(--fs-3xl);
  line-height: var(--lh-snug);
}

.h3 {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
}

.h4 {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
}

.eyebrow {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent);
}

.lead {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}
