/*
 * Dos Aguas Consulting – CI-Theme für LibreChat (Hermes)
 * Quelle: Markenblatt CI-Korrektur (06.09.2026) und Design System.
 * Farben als RGB-Tripel, weil LibreChat sie als rgb(var(--…)) verwendet.
 *   Primär    #192261 = 25 34 97      Sekundär  #2A4184 = 42 65 132
 *   Akzent    #B0D60F = 176 214 15    (sparsam, hier bewusst nicht als Fläche)
 *   Schwarz   #070A0D =  7 10 13      Dunkelgrau #2E3A44 = 46 58 68
 *   Hell      #EFF2F5 = 239 242 245   Interaktiv #0446F1 = 4 70 241
 * Schrift: Barlow als Web-Ersatz für Codec Pro (Entscheidung laut CI-Notiz, Stand bis Lizenzklärung).
 */

@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;600;700;800&family=Barlow+Condensed:wght@800&display=swap");

:root {
  --theme-font-family: Barlow, "Codec Pro", "Helvetica Neue", Arial, sans-serif;
  --theme-radius-xl: 0.5rem;

  --surface-primary: 255 255 255;
  --surface-secondary: 239 242 245;
  --surface-tertiary: 239 242 245;
  --surface-tertiary-alt: 239 242 245;
  --surface-secondary-alt: 239 242 245;
  --surface-hover: 239 242 245;
  --surface-active: 239 242 245;
  --surface-chat: 255 255 255;
  --surface-dialog: 255 255 255;
  --surface-user-message: 239 242 245;

  --surface-submit: 25 34 97;
  --surface-submit-hover: 42 65 132;

  --text-primary: 46 58 68;
  --text-secondary: 46 58 68;
  --text-tertiary: 46 58 68;

  --border-light: 239 242 245;
  --border-medium: 46 58 68;
  --brand-purple: 4 70 241;
  --focus-control: 4 70 241;
}

.dark {
  --surface-primary: 7 10 13;
  --surface-secondary: 25 34 97;
  --surface-tertiary: 25 34 97;
  --surface-tertiary-alt: 25 34 97;
  --surface-secondary-alt: 25 34 97;
  --surface-hover: 42 65 132;
  --surface-active: 42 65 132;
  --surface-chat: 7 10 13;
  --surface-dialog: 25 34 97;
  --surface-user-message: 25 34 97;

  --surface-submit: 42 65 132;
  --surface-submit-hover: 4 70 241;

  --text-primary: 239 242 245;
  --text-secondary: 239 242 245;
  --text-tertiary: 239 242 245;

  --border-light: 42 65 132;
  --border-medium: 239 242 245;
  --brand-purple: 4 70 241;
  --focus-control: 4 70 241;
}

body {
  font-family: var(--theme-font-family);
  background-color: rgb(var(--surface-primary));
  color: rgb(var(--text-primary));
  line-height: 1.6;
  letter-spacing: normal;
}

/* Links und interaktive Elemente: nur Interaktiv-Blau, Akzent-Grün nicht als Fläche */
a {
  color: #0446F1;
}

.dark a {
  color: #0446F1;
}

/* Fokus sichtbar in Interaktiv-Blau (Grün wäre zu schwach für den Kontrast) */
:focus-visible {
  outline: 2px solid #0446F1;
  outline-offset: 2px;
}

/* Fließtext maximal 68 Zeichen breit (CI-Regel) */
.markdown,
.prose {
  max-width: 68ch;
}
