/* SYNYSSPACE Farbwelt "Spektrum", Fassung "Still" (03.11.2026 abends: minimaler).
   Tinte fast schwarz, Knoepfe weiss, das Spektrum nur noch im Y, in einer
   Haarlinie (--y-grad) und in den Welten. Ueberschriften Instrument Serif.

   Erste Fassung "Spektrum" (03.11.2026, Rebranding), gemeinsame Quelle
   fuer Member-App (/app/) und Studio-App (/admin/m/).

   Anker ist das Logo: das farbige Y (Cyan #2EE6FF, Blau #5B8DFF, Violett
   #7D6BFF, Magenta #C46BFF, src/components/brand/BrandY.tsx). Alles andere ist
   neu: tiefe Tinte statt Anthrazit, Spektrum statt Gold, kraeftige Welten,
   Syne und Instrument Sans wie auf der Website.

   Alternativen ohne App-Eingriff: <html data-farbwelt="ton|nachtgold|moos|herz">.
   "ton" ist die Fassung vor dem Rebranding (Vergleichsbilder).
   Alle Paare nach WCAG AA geprueft (Fliesstext >= 4,5:1; t4 und a3 nur fuer
   Linien, Symbole, Grossschrift >= 3:1).

   Namen:
   --s0..--s2   Flaechen (Grund, Karte, erhobene Karte/Sheet)
   --glass      Glasflaeche ueber der Welt-Szene
   --t1..--t4   Text (Haupt, Zweit, Leise, nur Deko/deaktiviert)
   --a1..--a3   Akzent (Text, Knopfflaeche, Linie); in "Still" weiss/grau. --a-grad ist
                in "Still" einfarbig weiss, das Spektrum steht in --y-grad. --link Verweise
   --g1..--g3   Alias auf --a*, damit bestehender Code weiterlaeuft
   --w-*        Weltakzente; [data-world] setzt --welt und --welt-tief
   --ok/--warn/--danger, --line/--line-strong, --shadow-1/--shadow-2
   Bewegung: --ease, --d1 140ms, --d2 240ms, --d3 420ms. Nur transform und opacity. */

@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/app/instrument-serif-400i-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/app/instrument-serif-400i-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/app/instrument-serif-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/app/instrument-serif-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Syne'; src: url('/fonts/syne-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Syne'; src: url('/fonts/syne-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-sans-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-sans-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-sans-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --s0: #0A0A0D;
  --s1: #131317;
  --s2: #1B1B21;
  --s-press: rgba(245, 245, 247, 0.06);
  --glass: rgba(19, 19, 23, 0.74);
  --glass-strong: rgba(19, 19, 23, 0.92);
  --glass-blur: 16px;

  --t1: #F5F5F7;
  --t2: #C8C8D0;
  --t3: #9B9BA7;
  --t4: #6C6C78;

  --y-cyan: #2EE6FF;
  --y-blue: #5B8DFF;
  --y-violet: #7D6BFF;
  --y-magenta: #C46BFF;

  --a1: #F5F5F7;
  --a2: #F5F5F7;
  --a3: #8A8A96;
  --a-rgb: 245, 245, 247;
  --a-soft: rgba(245, 245, 247, 0.07);
  --a-line: rgba(245, 245, 247, 0.24);
  --on-accent: #0A0A0D;
  --a-grad: linear-gradient(#F5F5F7, #F5F5F7);
  --y-grad: linear-gradient(90deg, #2EE6FF 0%, #5B8DFF 38%, #7D6BFF 66%, #C46BFF 100%);
  --link: #A9EFFF;

  --g1: var(--a1);
  --g2: var(--a2);
  --g3: var(--a3);
  --g-rgb: var(--a-rgb);
  --g-soft: var(--a-soft);
  --g-line: var(--a-line);
  --on-gold: var(--on-accent);

  --w-aqua: #3FD8EC;
  --w-forest: #4FDC9F;
  --w-fire: #FF8148;
  --w-crystal: #FF93CB;
  --w-vr: #AE90FF;
  --w-kids: #CDB0FF;

  --welt: #8A8A96;
  --welt-tief: #101016;

  --ok: #5FE0A8;
  --ok-soft: rgba(95, 224, 168, 0.14);
  --warn: #FFC861;
  --warn-soft: rgba(255, 200, 97, 0.14);
  --danger: #FF7F88;
  --danger-soft: rgba(255, 127, 136, 0.14);

  --line: rgba(245, 245, 247, 0.08);
  --line-strong: rgba(245, 245, 247, 0.15);
  --shadow-1: none;
  --shadow-2: 0 24px 60px rgba(0, 0, 0, 0.55);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --d1: 140ms;
  --d2: 240ms;
  --d3: 420ms;

  --font-d: 'Instrument Serif', Georgia, serif;
  --font-w: 'Syne', 'Instrument Sans', system-ui, sans-serif; /* nur Wortmarke */
  --font-s: 'Instrument Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --tap: 44px;
}

[data-world="aqua"]    { --welt: var(--w-aqua);    --welt-tief: #06303A; }
[data-world="forest"]  { --welt: var(--w-forest);  --welt-tief: #0A3424; }
[data-world="fire"]    { --welt: var(--w-fire);    --welt-tief: #3E1608; }
[data-world="crystal"] { --welt: var(--w-crystal); --welt-tief: #3B1230; }
[data-world="vr"]      { --welt: var(--w-vr);      --welt-tief: #1F1648; }
[data-world="kids"]    { --welt: var(--w-kids);    --welt-tief: #2A1C4A; }

/* Fassung vor dem Rebranding (warmes Anthrazit, Messing). */
:root[data-farbwelt="ton"] {
  --s0: #0E0D0B; --s1: #181614; --s2: #23201C; --glass: rgba(24, 22, 20, 0.7); --glass-strong: rgba(24, 22, 20, 0.88);
  --t1: #F4EFE6; --t2: #CEC6B8; --t3: #A39B8E; --t4: #7E776C;
  --a1: #E2C084; --a2: #CCA86C; --a3: #957A4E; --a-rgb: 204, 168, 108;
  --a-soft: rgba(204, 168, 108, 0.14); --a-line: rgba(204, 168, 108, 0.32); --on-accent: #0E0D0B;
  --a-grad: linear-gradient(120deg, #E2C084, #CCA86C);
  --w-aqua: #7AAFC6; --w-forest: #8DB39A; --w-fire: #E08A5A; --w-crystal: #E0A1B4; --w-vr: #B49AC4; --w-kids: #BEB3CE;
  --ok: #72C9A0; --warn: #E6B866; --danger: #F0877E;
  --line: rgba(244, 239, 230, 0.09); --line-strong: rgba(244, 239, 230, 0.16);
  --font-d: 'Instrument Serif', Georgia, serif;
  --font-s: 'Barlow Semi Condensed', -apple-system, system-ui, sans-serif;
}

:root[data-farbwelt="nachtgold"] {
  --s0: #0B0C10; --s1: #14161C; --s2: #1E2129; --glass: rgba(20, 22, 28, 0.66); --glass-strong: rgba(20, 22, 28, 0.86);
  --t1: #F3EEE4; --t2: #C8C3B8; --t3: #9D998F; --t4: #7A776F;
  --a1: #EBCB8B; --a2: #DDB46E; --a3: #9C7E4A; --a-rgb: 221, 180, 110;
  --a-soft: rgba(221, 180, 110, 0.14); --a-line: rgba(221, 180, 110, 0.34); --on-accent: #0B0C10;
  --a-grad: linear-gradient(120deg, #F2D59A 0%, #DDB46E 50%, #B98A4A 100%);
  --ok: #6CC69B; --warn: #E3B462; --danger: #EE8279;
}

/* "Herz" (03.11. nachts), nur Member-App: warme Tinte, echtes Gold, Welten kraeftig.
   Mitte zwischen Spektrum (laut) und Still (grau). t1..t3 auf s0..s2 >= 4,5:1,
   on-accent auf a1/a2 >= 7:1, a1 auf s0 >= 10:1. */
:root[data-farbwelt="herz"] {
  --s0: #0D0B09; --s1: #17130F; --s2: #211B15; --s-press: rgba(235, 203, 139, 0.08);
  --glass: rgba(23, 19, 15, 0.72); --glass-strong: rgba(23, 19, 15, 0.9);
  --t1: #F7F1E6; --t2: #D3C9B8; --t3: #A89C89; --t4: #7C7263;
  --a1: #EBCB8B; --a2: #DDB46E; --a3: #B98A4A; --a-rgb: 221, 180, 110;
  --a-soft: rgba(221, 180, 110, 0.14); --a-line: rgba(221, 180, 110, 0.38); --on-accent: #1A1208;
  --a-grad: linear-gradient(120deg, #F6DEA6 0%, #E2BC74 45%, #B98A4A 100%);
  --link: #EBCB8B;
  --line: rgba(247, 241, 230, 0.09); --line-strong: rgba(247, 241, 230, 0.17);
  --shadow-1: 0 1px 0 rgba(255, 240, 210, 0.06) inset, 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 24px 60px rgba(0, 0, 0, 0.6);
  --ok: #6CC69B; --warn: #E3B462; --danger: #EE8279;
}

:root[data-farbwelt="moos"] {
  --s0: #060C0A; --s1: #0D1713; --s2: #15221C; --glass: rgba(13, 23, 19, 0.64); --glass-strong: rgba(13, 23, 19, 0.86);
  --t1: #EEF6EF; --t2: #BFD0C3; --t3: #8FA595; --t4: #6A7E70;
  --a1: #B9F5C9; --a2: #7FE3A0; --a3: #3F9E6A; --a-rgb: 127, 227, 160;
  --a-soft: rgba(127, 227, 160, 0.13); --a-line: rgba(127, 227, 160, 0.34); --on-accent: #060C0A;
  --a-grad: linear-gradient(120deg, #B9F5C9 0%, #7FE3A0 45%, #3FD8EC 100%);
  --ok: #78CC9C; --warn: #E2BC6C; --danger: #EC8A80;
}

/* Arbeitsfassung fuer Petras Studio-App: dichter, ruhiger, Zahlen tabellarisch. */
:root[data-app="studio"] {
  --font-d: 'Instrument Sans', -apple-system, system-ui, sans-serif;
  --line: rgba(242, 244, 255, 0.085);
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.035) inset;
  --shadow-2: 0 14px 36px rgba(2, 3, 10, 0.5);
}
:root[data-app="studio"] body { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  :root { --d1: 0ms; --d2: 0ms; --d3: 0ms; }
}
