/* =====================================================================
   Design-Tokens – die einzige Stelle für Schrift, Farben, Abstände & Radien.
   Alle anderen Module (base, layout, components, markdown, public, team, docs, site, heroes, sticker)
   nutzen nur diese Variablen. Reihenfolge der Module: template/admin/partials.html → „styles“.
   ===================================================================== */

/* Schrift: Inter (SIL Open Font License, liegt lokal – kein Google-Fonts-Aufruf, datenschutzfreundlich).
   Für Bildschirme entworfen: große x-Höhe, klare Formen, ruhig lesbar auch in kleinen Größen. */
@font-face { font-family: "Inter"; src: url(/static/app/fonts/inter-regular.woff) format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/static/app/fonts/inter-medium.woff) format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/static/app/fonts/inter-semibold.woff) format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/static/app/fonts/inter-bold.woff) format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Schrift */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-2xs: 11.5px; --fs-xs: 12.5px; --fs-sm: 13.5px; --fs-base: 15px; --fs-md: 17px;
  --fs-lg: 20px; --fs-xl: 24px; --fs-2xl: 30px; --fs-3xl: 38px; --fs-display: clamp(30px, 4vw, 44px);
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;
  --lh-tight: 1.2; --lh-snug: 1.35; --lh-body: 1.6;

  /* Abstände (4er-Raster) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;

  /* Radien */
  --r-xs: 6px; --r-sm: 10px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px;
  --radius: var(--r-lg); --radius-sm: var(--r-sm);

  /* Farben – hell */
  --bg: #f6f5fa; --surface: #ffffff; --surface-2: #f8f7fb; --border: #e8e6f0; --border-strong: #d6d3e2;
  --text: #1b1926; --muted: #625f72; --faint: #9a97a8;
  --accent: #8b5cf6; --accent-2: #ec4899;
  --green: #16a34a; --green-soft: #e6f6ec; --red: #dc2626; --red-soft: #fdecec; --amber: #d97706; --amber-soft: #fdf3e2; --blue: #2563eb;

  /* Marken & Seltenheiten (überall gleich) */
  --brand-twitch: #9146ff; --brand-discord: #5865f2; --brand-steam: #1b2838;
  --rarity-1: #9aa0aa; --rarity-2: #4f8fe8; --rarity-3: #a15ce6; --rarity-4: #e0a21a;

  /* Tiefe & Bewegung */
  --shadow: 0 1px 2px rgba(20, 16, 40, .04), 0 6px 20px rgba(20, 16, 40, .05);
  --shadow-lg: 0 2px 6px rgba(20, 16, 40, .06), 0 18px 48px rgba(20, 16, 40, .10);
  --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Kontur & Versatz-Schatten: im Stil „Schlicht“ ruhig – sticker.css („Verspielt“) macht sie kräftig.
     Bauteile nutzen nur diese Namen, dann passen sie automatisch zu beiden Stilen. */
  --ink: var(--text); --ink-soft: var(--muted);
  --line-w: 1px; --line: var(--line-w) solid var(--border);
  --pop-c: transparent; --pop-sm: none; --pop: var(--shadow); --pop-lg: var(--shadow-lg);

  --sidebar: 252px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0e0d13; --surface: #16151d; --surface-2: #1d1c26; --border: #282632; --border-strong: #363342;
  --text: #ecebf3; --muted: #a4a1b3; --faint: #6f6c7d;
  --green-soft: #12291b; --red-soft: #301617; --amber-soft: #2e2210;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .28);
  --shadow-lg: 0 2px 8px rgba(0, 0, 0, .35), 0 24px 60px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
/* Akzentfarben (oben rechts wählbar) – Weichtöne werden aus der Akzentfarbe gemischt */
[data-accent="violet"] { --accent: #8b5cf6; --accent-2: #ec4899; }
[data-accent="pink"]   { --accent: #db2777; --accent-2: #8b5cf6; }
[data-accent="blue"]   { --accent: #2563eb; --accent-2: #06b6d4; }
[data-accent="teal"]   { --accent: #0d9488; --accent-2: #22c55e; }
[data-accent="amber"]  { --accent: #d97706; --accent-2: #ef4444; }
[data-accent="rainbow"] { --accent: #e0457b; --accent-2: #f59e0b; }
[data-accent="cutegays"] { --accent: #ff3e9a; --accent-2: #9b4dff; } /* die Farben von cutegays.de (Standard) */
[data-theme="dark"][data-accent="cutegays"] { --accent: #ff5aa9; --accent-2: #b37bff; }
:root { --accent-soft: color-mix(in srgb, var(--accent) 12%, var(--surface)); --accent-text: color-mix(in srgb, var(--accent) 78%, var(--text)); }
