/*
 * Design tokens shared by the start page (Propshaft) and the app (Vite).
 * The app includes this file through app/frontend/src/styles/app.css.
 *
 * Koralle = Auftraggeber:innen (text on it is always ink, never white)
 * Petrol  = Entwickler:innen and brand (main buttons, progress)
 * Minze   = success, done. Rot = errors, always with an icon or text.
 * Reference: docs/design-vorschlag (style guide by Nico).
 */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/fonts/nunito-latin-var.woff2") format("woff2");
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-var.woff2") format("woff2");
}

:root {
  /* Neutrals, slightly tinted with petrol */
  --cd-ink: #14303a;
  --cd-ink-2: #45606a;
  --cd-ink-3: #6f8992;
  --cd-paper: #f3f7f7;
  --cd-white: #ffffff;
  --cd-line: #e0eaeb;
  --cd-line-2: #cbdadc;

  /* Petrol: brand and Entwickler:innen */
  --cd-petrol: #0f7c8c;
  --cd-petrol-dark: #0a5d69;
  --cd-petrol-soft: #dcf0f2;

  /* Koralle: Auftraggeber:innen */
  --cd-koralle: #ff7a6b;
  --cd-koralle-dark: #db5a4c;
  --cd-koralle-soft: #ffe9e5;
  --cd-koralle-text: #a93f33;

  /* Minze: success */
  --cd-minze: #0b7f4e;
  --cd-minze-dark: #075e39;
  --cd-minze-soft: #dcf4e8;

  /* Rot: errors (sparingly) */
  --cd-rot: #d42f3a;
  --cd-rot-dark: #a81f29;
  --cd-rot-soft: #fde4e5;

  /* Semantic names used across start page and app */
  --cd-accent: var(--cd-petrol);
  --cd-accent-dark: var(--cd-petrol-dark);
  --cd-highlight: var(--cd-koralle);
  --cd-muted: var(--cd-ink-2);
  --cd-soft: var(--cd-line-2);
  --cd-danger: var(--cd-rot);

  /* Shapes */
  --cd-border: 2px solid var(--cd-line);
  --cd-radius-sm: 10px;
  --cd-radius: 16px;
  --cd-radius-lg: 24px;
  --cd-radius-xl: 32px;

  /* The "Kante": a 4px edge under buttons that sinks in when pressed */
  --cd-kante: 0 4px 0 var(--cd-line-2);
  --cd-kante-petrol: 0 4px 0 var(--cd-petrol-dark);
  --cd-kante-koralle: 0 4px 0 var(--cd-koralle-dark);
  --cd-kante-minze: 0 4px 0 var(--cd-minze-dark);
  --cd-kante-rot: 0 4px 0 var(--cd-rot-dark);
  --cd-kante-ink: 0 4px 0 #05161c;
  --cd-shadow: 0 2px 0 var(--cd-line), 0 12px 32px -18px rgb(20 48 58 / 0.25);
  --cd-shadow-accent: var(--cd-shadow);

  --cd-font-sans: "Nunito", "Segoe UI", system-ui, sans-serif;
  --cd-font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
}
