/*
 * Rex Diner Portal – Design-Tokens
 * ---------------------------------------------------------------
 * Alle Farben, Schriften, Abstände und Radien werden hier zentral festgelegt.
 * Zum Anpassen an das Logo nur die Werte im Block "Markenfarben" ändern;
 * Hell- und Dunkelmodus leiten ihre Rollenfarben daraus ab.
 *
 * Markenfarben stammen aus dem Logo: Nachtschwarz, Ochsenblut, Neonrot, Messing, Creme.
 */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-display.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff") format("woff");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-italic.woff") format("woff");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* ---- Markenfarben ---- */
  --brand-night: #1a1210;
  --brand-night-2: #241915;
  --brand-oxblood: #5a1416;
  --brand-red: #b3121f;
  --brand-neon: #ff3d4a;
  --brand-brass: #b98a4e;
  --brand-brass-light: #e3c48f;
  --brand-cream: #f4ead9;
  --brand-paper: #fbf8f2;

  /* ---- Schrift ---- */
  --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Skala 1.25 (große Terz) */
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 1.953rem;
  --step-4: 2.441rem;
  --step-5: clamp(2.6rem, 5vw + 1rem, 3.815rem);
  --step-hero: clamp(3.4rem, 11vw, 8.5rem);

  /* ---- Abstände (8er-Raster) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: clamp(4rem, 9vw, 7rem);

  /* ---- Formen ---- */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --content: 1180px;
  --measure: 68ch;
  --header-h: 72px;
  --sidebar-w: 264px;

  /* ---- Bewegung ---- */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 120ms;
  --dur: 220ms;

  /* ---- Rollenfarben: Hellmodus ---- */
  --bg: var(--brand-paper);
  --surface: #ffffff;
  --surface-2: #f3ecdf;
  --surface-sunken: #efe6d6;
  --text: #1f1714;
  --text-strong: #120c0a;
  --muted: #6b5d53;
  --line: #e2d6c3;
  --line-strong: #c9b89f;
  --accent: var(--brand-red);
  --accent-hover: #9a0f1a;
  --accent-ink: #ffffff;
  --accent-soft: #fbe5e6;
  --brass: #87602c;
  --focus: #1f1714;
  --focus-halo: rgba(185, 138, 78, 0.45);
  --shadow-1: 0 1px 2px rgba(42, 25, 18, 0.06), 0 1px 1px rgba(42, 25, 18, 0.04);
  --shadow-2: 0 10px 30px -12px rgba(42, 25, 18, 0.28);
  --overlay: rgba(18, 12, 10, 0.55);

  --tone-success: #1d6f42;
  --tone-success-bg: #e3f2e8;
  --tone-warning: #8a4b00;
  --tone-warning-bg: #fcefd9;
  --tone-danger: #a3101c;
  --tone-danger-bg: #fbe3e4;
  --tone-info: #1f5b93;
  --tone-info-bg: #e2edf8;
  --tone-neutral: #5b4f47;
  --tone-neutral-bg: #efe8dd;

  /* Nachtflächen (Hero, Seitenleiste) bleiben in beiden Modi dunkel */
  --night-bg: var(--brand-night);
  --night-surface: var(--brand-night-2);
  --night-text: var(--brand-cream);
  --night-muted: #bfae9a;
  --night-line: #3b2c25;

  color-scheme: light;
}

/* ---- Rollenfarben: Dunkelmodus (Systemeinstellung, sofern nicht manuell hell gewählt) ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #120c0a;
    --surface: #1b1310;
    --surface-2: #241a16;
    --surface-sunken: #0e0907;
    --text: #f1e6d6;
    --text-strong: #fff8ee;
    --muted: #b5a493;
    --line: #36281f;
    --line-strong: #4e3b30;
    --accent: #e8333f;
    --accent-hover: #ff4d58;
    --accent-ink: #ffffff;
    --accent-soft: #3a1316;
    --brass: var(--brand-brass-light);
    --focus: var(--brand-brass-light);
    --focus-halo: rgba(227, 196, 143, 0.35);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 14px 34px -14px rgba(0, 0, 0, 0.7);
    --overlay: rgba(0, 0, 0, 0.65);
    --tone-success: #7fd3a1;
    --tone-success-bg: #13291c;
    --tone-warning: #f2bd6b;
    --tone-warning-bg: #2f2210;
    --tone-danger: #ff8a92;
    --tone-danger-bg: #36141a;
    --tone-info: #8fbff0;
    --tone-info-bg: #142436;
    --tone-neutral: #c9b9a8;
    --tone-neutral-bg: #2a201b;
    --night-bg: #0b0706;
    --night-surface: #160f0c;
    color-scheme: dark;
  }
}

/* ---- Dunkelmodus manuell gewählt ---- */
:root[data-theme="dark"] {
  --bg: #120c0a;
  --surface: #1b1310;
  --surface-2: #241a16;
  --surface-sunken: #0e0907;
  --text: #f1e6d6;
  --text-strong: #fff8ee;
  --muted: #b5a493;
  --line: #36281f;
  --line-strong: #4e3b30;
  --accent: #e8333f;
  --accent-hover: #ff4d58;
  --accent-ink: #ffffff;
  --accent-soft: #3a1316;
  --brass: var(--brand-brass-light);
  --focus: var(--brand-brass-light);
  --focus-halo: rgba(227, 196, 143, 0.35);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 14px 34px -14px rgba(0, 0, 0, 0.7);
  --overlay: rgba(0, 0, 0, 0.65);
  --tone-success: #7fd3a1;
  --tone-success-bg: #13291c;
  --tone-warning: #f2bd6b;
  --tone-warning-bg: #2f2210;
  --tone-danger: #ff8a92;
  --tone-danger-bg: #36141a;
  --tone-info: #8fbff0;
  --tone-info-bg: #142436;
  --tone-neutral: #c9b9a8;
  --tone-neutral-bg: #2a201b;
  --night-bg: #0b0706;
  --night-surface: #160f0c;
  color-scheme: dark;
}
