/* Design-Tokens – siehe design-system/plm/MASTER.md. Keine Rohwerte in Komponenten. */
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Hausschrift – nur für die Tech-Pack-Ansicht, damit die Vorschau zeigt, was später
   im PDF steht (dort ist dieselbe Schrift eingebettet). Der Browser lädt die zwei
   Dateien erst, wenn der Editor sie benutzt; die übrige Oberfläche bleibt bei Inter. */
@font-face {
  font-family: "TT Norms Pro";
  src: url("../assets/fonts/TTNormsPro-Normal.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TT Norms Pro";
  src: url("../assets/fonts/TTNormsPro-Bd.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farben – monochrom nach dem Vorbild von cyclite.cc.
     Die Oberfläche bleibt schwarz/weiß/grau, damit Materialfarben,
     Labdips und Artworks unverfälscht daneben stehen. */
  --color-primary: #111111;
  --color-primary-hover: #000000;
  --color-on-primary: #ffffff;
  --color-secondary: #0a6cff;        /* nur Links und Fokus */
  --color-accent: #0f766e;
  --color-accent-soft: #f0fdfa;
  --color-background: #f1f1f4;
  --color-foreground: #111111;
  --color-card: #ffffff;
  --color-muted: #f4f4f6;
  --color-muted-foreground: #6e6e76;
  --color-border: #e6e6ea;
  --color-border-strong: #cfcfd6;
  --color-destructive: #dc2626;
  --color-destructive-soft: #fef2f2;
  --color-on-destructive: #ffffff;
  --color-warning: #b45309;
  --color-warning-soft: #fffbeb;
  --color-ring: #0a6cff;

  /* Abstände (Dichte 8/10 – „Dense/Dashboard") */
  --space-xs: 2px;
  --space-sm: 4px;
  --space-md: 8px;
  --space-lg: 14px;
  --space-xl: 18px;
  --space-2xl: 26px;
  --space-3xl: 32px;
  --space-4xl: 48px;

  /* Radien & Schatten */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  /* Zwei Ebenen je Schatten: die nahe Kante trennt, der weite Schein gibt Tiefe. */
  --shadow-sm: 0 1px 2px rgba(16, 18, 27, .04), 0 2px 6px rgba(16, 18, 27, .04);
  --shadow-md: 0 2px 4px rgba(16, 18, 27, .05), 0 8px 24px rgba(16, 18, 27, .08);
  --shadow-lg: 0 4px 8px rgba(16, 18, 27, .06), 0 24px 60px rgba(16, 18, 27, .18);

  /* Typografie */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tracking-caps: 0.06em;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-page: 22px/28px var(--font-sans);
  --text-section: 16px/22px var(--font-sans);
  --text-body: 14.5px/21px var(--font-sans);
  --text-cell: 13.5px/19px var(--font-sans);
  --text-label: 12px/16px var(--font-sans);

  /* Bewegung (Dial 3/10). Die eingebauten CSS-Easings sind zu schwach – diese
     Kurve startet schnell und läuft sanft aus, damit die Oberfläche sofort antwortet. */
  --motion-fast: 140ms;
  --motion-base: 240ms;
  --motion-exit: 160ms;   /* Schließen ist schneller als Öffnen: Weg ist weg, darauf wartet niemand. */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-press: cubic-bezier(0.32, 0.72, 0, 1);   /* iOS-nah, für Panels */
  --ease-exit: cubic-bezier(0.215, 0.61, 0.355, 1); /* sanfter: mit --ease wäre ein Ausgang nach der halben Zeit schon unsichtbar */

  /* Maße */
  --control-height: 38px;
  --sidebar-width: 248px;
  --topbar-height: 60px;
  --content-max: 1680px;
  --cell-max: 200px;
}

@media (pointer: coarse) {
  :root { --control-height: 44px; }
}

/* „Bewegung reduzieren“ ist am Ende von app.css geregelt: Dort werden die Bewegungen
   selbst abgeschaltet, die weichen Einblendungen bleiben. */
