/* ============================================================
   NightKit Design Tokens — single source of truth
   Shared by landing.html, app.html (via css/app.css) and login.html.
   Values are normalised from the real values that were in use; near
   identical values (e.g. #0a0a0a vs #0c0c0c, #888 vs #aaa) collapse
   onto one token on purpose. This file defines the design language;
   it does not style any element.
   ============================================================ */
/* Schriften wie auf der Startseite: New Black (Ueberschriften, nur 400/500) und DM Sans (Text). */
@font-face{font-family:"New Black";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/newblack-regular.woff2) format("woff2")}
@font-face{font-family:"New Black";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/newblack-medium.woff2) format("woff2")}
@font-face{font-family:"DM Sans";font-style:normal;font-weight:100 1000;font-display:swap;src:url(/assets/fonts/dm-sans-latin-opsz-normal.woff2) format("woff2")}

:root {
  /* ---- Colours ---------------------------------------------------- */
  --color-bg:            #000000; /* page background (Startseite: Schwarz) */
  --color-surface:       #111113; /* cards, panels (Startseite --tile) */
  --color-surface-2:     #19191c; /* inputs, pills, raised chips (Startseite --tile-2) */
  --color-border:        #26262a; /* default borders (Startseite --line) */
  --color-border-strong: #3a3a40; /* lighter/visible borders: inputs, pills (Startseite --line-2) */

  --color-text:          #f2f2f2; /* primary text (Startseite --text) */
  --color-text-muted:    #a2a2aa; /* secondary text (Startseite --sec) */
  --color-text-dim:      #76767e; /* tertiary text, placeholders (Startseite --ter) */

  --color-accent:        #000dff; /* brand accent: Blau der Startseite, fuer Flaechen */
  --color-accent-hover:  #2631ff; /* accent, slightly lighter for :hover */
  --color-accent-text:   #8a90ff; /* accent als Schrift/Icon auf Dunkel (#000dff waere zu dunkel) */
  --color-accent-ink:    #ffffff; /* text/icon colour ON the accent */

  --color-danger:        #ff5a5a; /* errors */
  --color-success:       #7ce38b; /* success / "done" */

  /* ---- Radii ------------------------------------------------------ */
  --radius-xs:   4px;  /* tiny handles, progress bars (was 2–5px) */
  --radius-sm:   8px;  /* buttons, inputs, chips (was 6–9px) */
  --radius-md:   12px; /* mid cards (was 10–12px) */
  --radius-lg:   16px; /* large cards, modals (was 14–16px) */
  --radius-pill: 100px;/* pill chips / fully rounded bars */
  --radius-full: 50%;  /* circles (avatars, dots) */

  /* ---- Spacing scale (4-based) ------------------------------------ */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* ---- Elevation shadows ------------------------------------------ */
  --shadow-sm: 0 2px 8px rgba(0,0,0,.4);      /* subtle lift */
  --shadow-md: 0 16px 40px rgba(0,0,0,.5);    /* cards, menus (was 10–16 / 28–44) */
  --shadow-lg: 0 30px 80px rgba(0,0,0,.55);   /* modals, login card (was 18–30 / 50–80) */
  --glow-accent: 0 8px 30px rgba(0,13,255,.4); /* accent button glow */

  /* ---- Typography ------------------------------------------------- */
  /* Font families: DM Sans for all UI text, New Black for display/headlines
     (selbst gehostet, @font-face oben). New Black hat nur 400/500: Ueberschriften
     nutzen --font-weight-display statt bold, sonst rechnet der Browser es fett. */
  --font-body:    "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "New Black", "DM Sans", sans-serif;
  --font-weight-display: 400;

  /* Type scale (SaaS-grade). --font-size-2xs kept for existing micro labels. */
  --font-size-2xs: 10px;
  --font-size-xs:  11px;
  --font-size-sm:  13px;
  --font-size-base:15px; /* default UI text */
  --font-size-md:  17px;
  --font-size-lg:  20px;
  --font-size-xl:  24px;
  --font-size-2xl: 32px;
  --font-size-3xl: 42px;
  --font-size-4xl: 56px;

  --font-weight-regular:    400;
  --font-weight-normal:     400; /* alias of regular (kept for existing consumers) */
  --font-weight-medium:     500;
  --font-weight-semibold:   600;
  --font-weight-bold:       700;
  --font-weight-extrabold:  800;

  --line-height-tight:   1.15;
  --line-height-snug:    1.3;
  --line-height-normal:  1.5;
  --line-height-relaxed: 1.65;

  --letter-spacing-tight:  -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide:   0.06em;
  --letter-spacing-wider:  0.12em;
}
