/* ID Workflows · Design-Tokens für die Website
   Stand 27.11.2026 · Logo Variante H · Farbsystem „Claude“
   Fest: Logo, Dachmarke, Grundfarben (Ink, Graphit, Stein, Papier).
   Vorläufig: Namen „ID Clean“ / „ID Security“ (Arbeitstitel), Farbe von ID Security. */

/* ---------- Schrift: DM Sans, selbst gehostet (kein Google-Fonts-CDN, DSGVO) ---------- */
@font-face {
  font-family: "DM Sans";
  src: url("./fonts/DMSans-Variable.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("./fonts/DMSans-Italic-Variable.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Grundfarben (fest) */
  --color-ink: #0E1013;        /* Seitenhintergrund */
  --color-graphit: #1B1E24;    /* Karten, Menüs, abgesetzte Bereiche */
  --color-graphit-2: #23272E;  /* Flächen innerhalb von Karten (z. B. Illustrationsfelder) */
  --color-stein: #8B919A;      /* Nebentext, Labels, Icons, Linien */
  --color-papier: #F3F1EC;     /* Text, Überschriften, Logo, helle Buttons */

  --color-border: rgba(243, 241, 236, 0.10);
  --color-border-strong: rgba(243, 241, 236, 0.18);

  /* Branchenfarben (sparsam: Punkte, Linien, Rubriken, aktive Zustände – nie als Fläche) */
  --color-clean: #51D9AD;          /* ID Clean (Name = Arbeitstitel) */
  --color-clean-on-light: #008962;
  --color-security: #5FA7FF;       /* ID Security – VORLÄUFIG, nicht abgesegnet */
  --color-security-on-light: #1762B6;

  /* Semantik */
  --bg: var(--color-ink);
  --surface: var(--color-graphit);
  --surface-2: var(--color-graphit-2);
  --text: var(--color-papier);
  --text-muted: var(--color-stein);
  --accent: var(--color-clean);    /* Akzent der Hauptseite, solange ID Clean das erste Produkt ist */

  --button-primary-bg: var(--color-papier);
  --button-primary-text: var(--color-ink);
  --button-secondary-border: var(--color-border-strong);
  --button-secondary-text: var(--color-papier);

  /* Typografie */
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fw-light: 300;     /* wie „Workflows“ im Logo – nur für sehr große Display-Zeilen */
  --fw-regular: 400;   /* Fließtext */
  --fw-medium: 500;    /* Buttons, Navigation, Labels, H3 */
  --fw-semibold: 600;  /* H1, H2 */
  --fw-extrabold: 800; /* wie „iD“ im Logo – nur für Kürzel/Zahlen-Highlights, nicht für Fließtext */

  --tracking-display: -0.03em;  /* H1 */
  --tracking-heading: -0.02em;  /* H2, H3 */
  --tracking-body: 0;
  --tracking-label: 0.01em;

  --fs-h1: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 2vw, 3rem);
  --fs-h3: 1.25rem;
  --fs-lead: 1.25rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  --lh-tight: 1.05;
  --lh-heading: 1.15;
  --lh-body: 1.6;

  /* Logo-Höhe im Header (Höhe der SVG-Grafik) */
  --logo-height: 24px;
  --logo-height-mobile: 22px;
}

html {
  font-family: var(--font-sans);
  font-optical-sizing: auto;      /* DM Sans hat eine opsz-Achse: Überschriften werden automatisch feiner */
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
