/* parsQube Design-Tokens – einzige Quelle für Farbe, Typografie, Raster, Form und Bewegung.
   Regel: Komponenten verwenden ausschließlich diese Variablen, keine freien Pixelwerte. */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/_design/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("/_design/fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/_design/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("/_design/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/_design/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url("/_design/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: light dark;

  /* ---- Marke (aus template.css der alten Website) ---- */
  --brand: #008ab7;           /* Flächen, Linien, große Akzente ab 24 px */
  --brand-text: #007aa3;      /* derselbe Ton für Text & Buttons: 4,87:1 auf Weiß */
  --brand-deep: #005977;      /* Hover, aktive Zustände */
  --on-brand: #ffffff;
  --brand-wash: #eef7fb;      /* sehr helle Markenfläche */
  /* Logo-Verlauf, abgetastet aus logo.svg */
  --tone-violet: #8d69ba;
  --tone-sky: #56b1e3;
  --tone-teal: #3ba485;
  --tone-green: #529636;
  --gradient: linear-gradient(90deg, var(--tone-violet), var(--tone-sky) 38%, var(--tone-teal) 70%, var(--tone-green));

  /* ---- Neutral: wenige, fein abgestufte Töne ---- */
  --ink: #111a24;             /* Überschriften */
  --text: #2c3743;            /* Fließtext */
  --muted: #5d6874;           /* Nebentexte (6:1) */
  --subtle: #687380;          /* leise Labels, Zähler – 4,8:1, erfüllt WCAG AA auch bei 12 px */
  --surface: #ffffff;
  --surface-2: #f7f8fa;       /* abgesetzte Abschnitte */
  --surface-3: #f0f2f5;       /* Hover-Flächen */
  --line: #e7eaee;            /* feine Rahmen */
  --line-strong: #d3d9e0;     /* Rahmen bei Hover/Fokus */
  --surface-card: #ffffff;    /* Karten */
  --logo-plate: transparent;  /* Fläche hinter fremden Logos (nur im Dunkelmodus hell) */

  /* ---- Typografie: eine Skala für alles ---- */
  --sans: "IBM Plex Sans", Verdana, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --fs-12: 0.75rem;           /* Labels, Vorzeilen */
  --fs-14: 0.875rem;          /* UI-Text, Meta */
  --fs-16: 1rem;              /* Basis */
  --fs-18: 1.125rem;          /* Lesetext, Lead */
  --fs-20: 1.25rem;           /* H4, Kartentitel */
  --fs-24: 1.5rem;            /* H3 */
  --fs-32: clamp(1.75rem, 1.2rem + 1.6vw, 2rem);      /* H2 im Text */
  --fs-40: clamp(2rem, 1.3rem + 2.4vw, 2.5rem);       /* H2 Abschnitt, H1 Unterseite */
  --fs-56: clamp(2.5rem, 1.4rem + 3.8vw, 3.5rem);     /* H1 Startseite */
  --lh-tight: 1.1;
  --lh-heading: 1.2;
  --lh-ui: 1.5;
  --lh-body: 1.6;
  --lh-read: 1.75;
  --tracking-heading: -0.02em;
  --w-regular: 400;
  --w-semibold: 600;
  --w-bold: 700;

  /* ---- 8-px-Raster ---- */
  --s-0: 2px;                 /* nur Haarlinien */
  --s-1: 4px;                 /* halber Schritt, nur innerhalb von Komponenten */
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 40px;
  --s-8: 48px;
  --s-9: 64px;
  --s-10: 80px;
  --s-11: 96px;
  --s-12: 128px;
  --section: clamp(var(--s-9), 8vw, var(--s-11));
  --gutter: clamp(var(--s-5), 4vw, var(--s-7));
  --wrap: 1232px;
  --measure: 720px;
  --header-h: 128px;

  /* ---- Form ---- */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-full: 999px;
  --border: 1px solid var(--line);
  /* keine weichen Standard-Schatten – nur eine Haarlinie plus Hauch von Tiefe für schwebende Ebenen */
  --elev-1: 0 1px 2px rgb(17 26 36 / .04);
  --elev-pop: 0 0 0 1px rgb(17 26 36 / .06), 0 4px 8px -2px rgb(17 26 36 / .05), 0 16px 32px -12px rgb(17 26 36 / .10);
  --ring: 0 0 0 3px color-mix(in srgb, var(--brand) 35%, transparent);

  /* ---- Bewegung: federnde Kurven, keine linearen Übergänge ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);       /* Hauptkurve: schnell rein, weich aus */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);   /* Zustandswechsel an Ort und Stelle */
  --ease-spring: cubic-bezier(0.34, 1.36, 0.64, 1);/* kleiner Überschwinger für Pop-ups */
  --dur-press: 120ms;
  --dur-fast: 200ms;
  --dur-base: 320ms;
  --dur-slow: 560ms;
  --press: scale(0.98);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Neutrale Töne leicht zum Petrol der Marke getönt – wirkt wärmer und markengerechter als reines Grau */
    --brand: #4fc3e8;
    --brand-text: #6ccdee;      /* 9,4:1 auf --surface */
    --brand-deep: #a8e2f5;
    --on-brand: #04121a;
    --brand-wash: #11303e;
    --ink: #edf2f6;             /* 15,1:1 */
    --text: #c9d3dc;            /* 11,2:1 */
    --muted: #98a6b3;           /* 6,8:1 */
    --subtle: #8695a3;          /* 5,6:1 – auch auf Karten noch 5,1:1 */
    /* Ebenen: weiches Petrol-Anthrazit statt hartem Schwarz; je ein klarer Schritt heller */
    --surface: #141d26;
    --surface-2: #18222c;
    --surface-3: #202c37;
    --surface-card: #1a2530;
    --line: #283643;
    --line-strong: #374756;
    --logo-plate: #eef2f5;      /* helle Fläche nur noch für fremde Logos (Partner, Referenzen) */
    --logo-pars: #c9d2da;       /* Schriftzug „pars“ im eigenen Logo: 11:1, optisch auf Höhe der Qube-Farben */
    --elev-1: 0 1px 2px rgb(0 0 0 / .3);
    --elev-pop: 0 0 0 1px rgb(255 255 255 / .07), 0 16px 40px -16px rgb(0 0 0 / .55);
  }
}
