/* ==========================================================================
   FORM Design-Tokens (09.11.2026)
   Einzige Quelle für Schrift, Farben, Radien, Schatten und Abstände.
   Gilt für Website UND Studio (Editor lädt diese Datei ebenfalls).
   Regel: Keine festen Farbwerte in Komponenten – immer var(--f-*).
   Dunkelmodus: html[data-theme="dark"], gesetzt per Schalter (site.js).
   ========================================================================== */

@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/pjs400.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/pjs500.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/pjs600.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/pjs700.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/pjs800.woff2') format('woff2'); }

:root {
  color-scheme: light;

  /* Flächen */
  --f-bg: #ffffff;
  --f-panel: #f6f5f3;        /* getönte Abschnitte, Karten auf Weiß */
  --f-panel-2: #eeede9;      /* Hover auf Panel, Schienen */
  --f-panel-hover: #f0efec;
  --f-surface: #ffffff;      /* Karten, Eingabefelder, Menüs */
  --f-surface-2: #fafaf9;
  --f-glass: rgba(255, 255, 255, .86);
  --f-stage: #f3f2ef;        /* 3D-Bühne (Studio + Startseite) */

  /* Linien */
  --f-line: #e7e6e2;
  --f-line-2: #d9d8d3;

  /* Text */
  --f-ink: #0b0b0c;
  --f-ink-soft: #3d3d3a;
  --f-ink-2: #62625e;        /* Fließtext gedämpft, 6,1:1 auf Weiß */
  --f-ink-3: #6f6f6a;        /* Hinweise, 5,0:1 auf Weiß */
  --f-on-ink: #ffffff;       /* Text auf var(--f-ink) */
  --f-ink-hover: #26262a;

  /* Akzent + Status */
  --f-accent: #2756f5;
  --f-accent-ink: #1d45d1;
  --f-accent-soft: rgba(39, 86, 245, .08);
  --f-accent-line: rgba(39, 86, 245, .28);
  --f-ok: #1f8a4c;
  --f-ok-soft: rgba(31, 138, 76, .1);
  --f-warn: #a35f00;
  --f-warn-soft: rgba(176, 106, 0, .1);
  --f-bad: #c0392b;
  --f-bad-soft: rgba(192, 57, 43, .08);

  /* Dunkle Bänder (bleiben in beiden Modi dunkel) */
  --f-dark: #0b0b0c;
  --f-dark-2: #161618;
  --f-dark-line: rgba(255, 255, 255, .1);
  --f-dark-ink-2: #a1a19c;

  /* Filament-Musterfarben (Illustrationen, Startseite) */
  --f-fil-1: #ff6a2b;  /* Orange */
  --f-fil-2: #2756f5;  /* Blau */
  --f-fil-3: #1aa37a;  /* Grün */
  --f-fil-4: #f4c430;  /* Gelb */
  --f-fil-5: #0b0b0c;  /* Schwarz */
  --f-fil-6: #e9e7e2;  /* Naturweiß */

  /* Schrift */
  --f-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

  /* Radien */
  --f-r-xs: 6px;
  --f-r-sm: 10px;
  --f-r: 14px;
  --f-r-lg: 20px;
  --f-r-xl: 28px;
  --f-r-pill: 999px;

  /* Schatten */
  --f-shadow-sm: 0 1px 2px rgba(11, 11, 12, .05);
  --f-shadow: 0 1px 2px rgba(11, 11, 12, .04), 0 18px 36px -24px rgba(11, 11, 12, .22);
  --f-shadow-lg: 0 2px 6px rgba(11, 11, 12, .04), 0 40px 80px -40px rgba(11, 11, 12, .3);
  --f-ring: 0 0 0 3px var(--f-accent-soft);

  /* Raster */
  --f-max: 1200px;
  --f-pad: 28px;
  --f-hd: 68px;
  --f-sec: 120px;

  /* Bewegung */
  --f-ease: cubic-bezier(.2, .7, .2, 1);
  --f-fast: .15s;
}
@media (max-width: 768px) {
  :root { --f-pad: 18px; --f-sec: 80px; --f-hd: 60px; }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --f-bg: #0b0b0c;
  --f-panel: #141416;
  --f-panel-2: #1c1c1f;
  --f-panel-hover: #1a1a1d;
  --f-surface: #111113;
  --f-surface-2: #161618;
  --f-glass: rgba(11, 11, 12, .82);
  --f-stage: #131315;
  --f-line: rgba(255, 255, 255, .09);
  --f-line-2: rgba(255, 255, 255, .16);
  --f-ink: #f4f4f2;
  --f-ink-soft: #d6d6d2;
  --f-ink-2: #a5a5a0;
  --f-ink-3: #93938e;
  --f-on-ink: #0b0b0c;
  --f-ink-hover: #dadad6;
  --f-accent: #6d8dff;
  --f-accent-ink: #8ea7ff;
  --f-accent-soft: rgba(109, 141, 255, .13);
  --f-accent-line: rgba(109, 141, 255, .35);
  --f-ok: #4cc685;
  --f-ok-soft: rgba(76, 198, 133, .12);
  --f-warn: #e3a64a;
  --f-warn-soft: rgba(227, 166, 74, .12);
  --f-bad: #ff7b6b;
  --f-bad-soft: rgba(255, 123, 107, .12);
  --f-dark: #141416;
  --f-dark-2: #1c1c1f;
  --f-fil-5: #2a2a2e;
  --f-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --f-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 36px -24px rgba(0, 0, 0, .7);
  --f-shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
