/* =========================================================================
   Orius – Design-Tokens
   Farben aus dem Logo-Paket (#172554 → #1E40AF) und der Intro-Animation.
   Dunkel = Navy der Animation, Hell = kühles Grau mit Logo-Blau.
   ========================================================================= */

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marke (fix) */
  --orius-navy-dark: #172554;
  --orius-navy: #1e40af;
  --orius-gradient: linear-gradient(90deg, #172554 0%, #1e40af 100%);
  /* Farbflächen (Team-Fotos, Bildflächen in den Illustrationen); auf „Software“ violett */
  --media-a: var(--orius-navy-dark);
  --media-b: var(--orius-navy);

  /* Schrift */
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --fs-display: clamp(2.75rem, 1.2rem + 6.4vw, 7.25rem);
  --fs-h2: clamp(2.1rem, 1.2rem + 3.6vw, 4.5rem);
  --fs-h3: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem);
  --fs-lead: clamp(1.075rem, 0.95rem + 0.5vw, 1.35rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.75rem;

  /* 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: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3.5rem);
  --container: 1320px;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-xl: 36px;
  --radius-pill: 999px;

  --header-h: 80px;
  --logo-h: 48px;

  /* Bewegung */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-origin: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur-base: 260ms;

  /* Ebenen */
  --z-base: 1;
  --z-raised: 2;
  --z-header: 50;
  --z-menu: 60;
  --z-intro: 100;
  --z-skip: 110;
}

@media (max-width: 959px) {
  :root {
    /* Handy: Logo-Zeile (--header-row) + Zeile mit der Tab-Pill = gesamte Header-Höhe */
    --header-row: 64px;
    --header-tabs: 52px;
    --header-h: calc(var(--header-row) + var(--header-tabs));
    --logo-h: 38px;
  }
}

/* ---------- Dunkel (Navy der Animation) ---------- */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #040817;
  --bg-2: #071029;
  --surface: #0b1433;
  --surface-2: #111d45;
  --line: rgba(143, 176, 255, 0.14);
  --line-strong: rgba(143, 176, 255, 0.3);

  --text: #eeece7;
  --text-2: #aeb6cc;
  --text-3: #7d88a8;

  --accent: #8fb0ff;
  --accent-2: #6f8ff0;
  --accent-soft: rgba(143, 176, 255, 0.12);
  --on-accent: #040817;
  --focus: #b9ccff;

  --ok: #7ee2b8;
  --error: #ff9a9a;

  /* Header-Logo im Dunkelmodus: Ring und Schrift hell gefüllt (der dunkle Verlaufsring ging auf dem Navy unter).
     Das Intro blendet seinen Verlaufsring beim Flug in die Ecke in diese Farbe über (intro.js, handoff). */
  /* Gedämpftes, leicht bläuliches Hellgrau statt fast Weiß: liegt sanfter auf dem Navy */
  --logo-word: #c3cadc;
  --ring-grad-o: 0;
  --ring-solid-o: 1;
  --ring-edge-o: 0;
  /* Noch offen, Alternativen zum weißen Ring (statt der drei Zeilen darüber einsetzen):
     A heller Verlauf:   --ring-grad-o: 1; --ring-solid-o: 0; --logo-grad-a: #4f6fd6; --logo-grad-b: #9db9ff;
     B Akzentblau:       --ring-grad-o: 1; --ring-solid-o: 0; --logo-grad-a: #8fb0ff; --logo-grad-b: #8fb0ff;
     C Weiß zu Blau:     --ring-grad-o: 1; --ring-solid-o: 0; --logo-grad-a: #6f8ff0; --logo-grad-b: #eeece7;
     Bei A–C im Intro (intro.js, handoff) den Ring-Verlauf auf diese Farben statt auf --logo-word überblenden. */
  --shade: #01030a;
  --shadow-card: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  --shadow-lift: 0 40px 80px -20px rgba(0, 0, 0, 0.75);

  --hero-bg: radial-gradient(circle 70vmax at 50% 50%, #0b1536 0%, #081028 40%, #050a1c 75%, #03060f 100%);
  --glow: rgba(111, 143, 240, 0.35);

  /* Intro-Farben */
  --intro-bg: var(--hero-bg);
  --intro-speck: #9fb4ff;
  --intro-neon-a: #5b7fe8;
  --intro-neon-b: #8fb0ff;
  --intro-edge: #6f8ff0;
  --intro-dot: #8fb0ff;
  --intro-comet-glow: #9fb8ff;
  --intro-comet-core: #ffffff;
  --intro-pulse: #7c9dff;
  --intro-ink: #eeece7;
}

/* ---------- Hell (kühles Grau, Schrift + Logo im Logo-Blau) ---------- */
[data-theme="light"] {
  color-scheme: light;
  --bg: #d9dde3;
  --bg-2: #d0d5dc;
  --surface: #e0e3e8;
  --surface-2: #e6e9ed;
  --line: rgba(23, 37, 84, 0.12);
  --line-strong: rgba(23, 37, 84, 0.26);

  --text: #172554;
  --text-2: #3b4a78;
  --text-3: #4a5780;

  --accent: #1e40af;
  --accent-2: #172554;
  --accent-soft: rgba(30, 64, 175, 0.08);
  --on-accent: #ffffff;
  --focus: #1e40af;

  --ok: #0f7a4f;
  --error: #b42318;

  --logo-word: #172554;
  --ring-grad-o: 1;
  --ring-solid-o: 0;
  --ring-edge-o: 0;
  --shade: rgba(23, 37, 84, 0.55);
  --shadow-card: 0 30px 60px -34px rgba(23, 37, 84, 0.35);
  --shadow-lift: 0 40px 80px -30px rgba(23, 37, 84, 0.4);

  --hero-bg: radial-gradient(circle 70vmax at 50% 50%, #e2e5ea 0%, #dde1e6 45%, #d6dae0 75%, #ced3da 100%);
  --glow: rgba(30, 64, 175, 0.18);

  --intro-bg: var(--hero-bg);
  --intro-speck: #1e40af;
  --intro-neon-a: #1e40af;
  --intro-neon-b: #3b5bdb;
  --intro-edge: #3b5bdb;
  --intro-dot: #1e40af;
  --intro-comet-glow: #6f8ff0;
  --intro-comet-core: #1e40af;
  --intro-pulse: #1e40af;
  --intro-ink: #172554;
}

/* ---------- Tab „Software/Automation“: dieselbe Farbwelt wie „Websites“, nur mit sanftem Violett ----------
   Alle Blautöne (Hintergründe, Flächen, Schrift, Linien, Akzent) sind hier um denselben Farbwinkel
   ins Violett gedreht und etwas entsättigt, damit es nicht sticht. Logo (Schriftzug + Ring) und Intro bleiben im Logo-Blau. */
[data-tab="software"][data-theme="dark"],
[data-tab="software"]:not([data-theme="light"]) {
  --bg: #0d0813;
  --bg-2: #150f21;
  --surface: #1d142a;
  --surface-2: #281d39;
  --line: rgba(193, 174, 228, 0.14);
  --line-strong: rgba(193, 174, 228, 0.3);

  --text-2: #bab2c8;
  --text-3: #8f83a2;

  --accent: #c1aee4;
  --accent-2: #a08ed1;
  --accent-soft: rgba(193, 174, 228, 0.12);
  --on-accent: #0d0813;
  --focus: #ded2f3;

  --shade: #050308;
  --hero-bg: radial-gradient(circle 70vmax at 50% 50%, #1e152c 0%, #160f21 40%, #0f0a17 75%, #08060c 100%);
  --glow: rgba(160, 142, 209, 0.28);
  --vt-backdrop: #050308;
}
[data-tab="software"][data-theme="light"] {
  --bg: #dcdbe2;
  --bg-2: #d3d2da;
  --surface: #e3e1e7;
  --surface-2: #e8e7ec;
  --line: rgba(49, 32, 75, 0.12);
  --line-strong: rgba(49, 32, 75, 0.26);

  --text: #31204b;
  --text-2: #54446f;
  --text-3: #605278;

  --accent: #62459d;
  --accent-2: #402d6c;
  --accent-soft: rgba(98, 69, 157, 0.08);
  --on-accent: #ffffff;
  --focus: #62459d;

  --shade: rgba(49, 32, 75, 0.55);
  --shadow-card: 0 30px 60px -34px rgba(49, 32, 75, 0.35);
  --shadow-lift: 0 40px 80px -30px rgba(49, 32, 75, 0.4);
  --hero-bg: radial-gradient(circle 70vmax at 50% 50%, #e5e3e9 0%, #e0dee5 45%, #d9d8de 75%, #d1d0d8 100%);
  --glow: rgba(98, 69, 157, 0.18);
  --vt-backdrop: #bbb9c4;
}
[data-tab="software"] {
  --media-a: #281e3b;
  --media-b: #5f4e88;
}

/* Hintergrund hinter den Karten beim Tab-Wechsel */
:root {
  --vt-backdrop: #01030a;
}
[data-theme="light"] {
  --vt-backdrop: #b6bdc7;
}
