/* Edelstein AI – Branding für LibreChat v0.8.7 (07.10.2026)
   Überschreibt nur CSS-Variablen und wenige Klassen; das Layout bleibt LibreChat.
   Markenverlauf Teal → Cyan → Lila (#0d9488 → #06b6d4 → #7c3aed),
   Schriften Plus Jakarta Sans (Text) und Space Grotesk (Überschriften), selbst gehostet. */

/* latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/edelstein/fonts/PlusJakartaSans-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/edelstein/fonts/PlusJakartaSans-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;
}
/* latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/edelstein/fonts/PlusJakartaSans-500-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/edelstein/fonts/PlusJakartaSans-500-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;
}
/* latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/edelstein/fonts/PlusJakartaSans-600-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/edelstein/fonts/PlusJakartaSans-600-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;
}
/* latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/edelstein/fonts/PlusJakartaSans-700-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/edelstein/fonts/PlusJakartaSans-700-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;
}
/* latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/edelstein/fonts/SpaceGrotesk-500-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/edelstein/fonts/SpaceGrotesk-500-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;
}
/* latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/edelstein/fonts/SpaceGrotesk-600-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/edelstein/fonts/SpaceGrotesk-600-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;
}
/* latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/edelstein/fonts/SpaceGrotesk-700-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/edelstein/fonts/SpaceGrotesk-700-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;
}

:root {
  /* LibreChats Akzentfarbe ist eine grüne Skala – sie wird zum Edelstein-Teal. */
  --green-50: #f0fdfa;
  --green-100: #ccfbf1;
  --green-200: #99f6e4;
  --green-300: #5eead4;
  --green-400: #2dd4bf;
  --green-500: #14b8a6;
  --green-600: #0d9488;
  --green-700: #0f766e;
  --green-800: #115e59;
  --green-900: #134e4a;
  --green-950: #042f2e;
  --brand-purple: #7c3aed;
  --surface-submit: #0d9488;
  --surface-submit-hover: #0f766e;
  --edelstein-verlauf: linear-gradient(90deg, #0d9488 0%, #06b6d4 50%, #7c3aed 100%);
}

.dark {
  --brand-purple: #a78bfa;
  --surface-submit: #0d9488;
  --surface-submit-hover: #14b8a6;
  /* dunkle Flächen leicht ins Nachtblau gezogen statt neutralem Grau */
  --surface-primary: #0b1120;
  --surface-primary-alt: #0f172a;
  --surface-primary-contrast: #0f172a;
  --surface-secondary: #111b2e;
  --surface-secondary-alt: #111b2e;
  --surface-tertiary: #1e293b;
  --surface-tertiary-alt: #1e293b;
  --surface-dialog: #0f172a;
  --surface-chat: #1e293b;
  --presentation: #111b2e;
}

/* Schrift */
html, body, button, input, textarea, select,
.font-sans, [class*="font-sans"] {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important;
}
h1, h2, h3, .text-2xl, .text-3xl, .text-4xl {
  font-family: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif !important;
  letter-spacing: -0.01em;
}

/* Feste Grüntöne aus Tailwind, die nicht über Variablen laufen (z. B. Login-Knopf) */
.bg-green-500, .bg-green-600 { background-color: #0d9488 !important; }
.hover\:bg-green-600:hover, .hover\:bg-green-700:hover, .hover\:bg-green-550:hover { background-color: #0f766e !important; }
.text-green-500, .text-green-600 { color: #0d9488 !important; }
.dark .text-green-500, .dark .text-green-600 { color: #2dd4bf !important; }
.border-green-500, .focus\:border-green-500:focus { border-color: #0d9488 !important; }
.focus\:ring-green-500:focus { --tw-ring-color: #0d9488 !important; }

/* Markenverlauf als schmale Leiste am oberen Rand jeder Seite */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--edelstein-verlauf);
  z-index: 9999;
  pointer-events: none;
}

/* Textauswahl in Markenfarbe */
::selection { background: rgba(6, 182, 212, 0.25); }

/* Dunkler Modus: feste #0d0d0d-Flächen (z. B. Login) an das Nachtblau angleichen */
.dark .dark\:bg-gray-900, .dark .bg-gray-900 { background-color: #0b1120 !important; }
.dark .bg-gray-900\/80 { background-color: #0b1120cc !important; }
.dark .from-gray-900, .dark .dark\:from-gray-900 {
  --tw-gradient-from: #0b1120 var(--tw-gradient-from-position) !important;
  --tw-gradient-to: #0b112000 var(--tw-gradient-to-position) !important;
}
.dark input:-webkit-autofill, .dark .webkit-dark-styles { -webkit-box-shadow: inset 0 0 0 50vh #0b1120 !important; box-shadow: inset 0 0 0 50vh #0b1120 !important; }
