/*
 * Vision11-CI fuer die IT-Support-Anwendung (Eigenbau)
 * Quelle der Werte: Plugin V11 Office (create-presentation, references/slides.md)
 * Schriftdateien und Logo kommen aus dem Plugin (brand/fonts, brand/logos) und werden
 * im Code-Projekt unter /static abgelegt. Webfont-Lizenz fuer NeoSans vorher pruefen.
 */

@font-face {
  font-family: "NeoSans Std";
  src: url("/static/fonts/NeoSansStd-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "NeoSans Std";
  src: url("/static/fonts/NeoSansStd-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Farben laut Vision11-CI */
  --v11-black: #000000;        /* Text auf Weiss */
  --v11-night-grey: #575757;   /* Sekundaertext */
  --v11-blue: #009FE3;         /* Vision11 Blue: Flaechen, Markierungen, aktive Zustaende */
  --v11-dark-blue: #0077AA;    /* Akzent, nur zusammen mit Vision11 Blue */
  --v11-night-blue: #005072;   /* Beschriftungen in Hinweisboxen */
  --v11-blue-10: #E6F5FD;      /* 10 % Vision11 Blue: Hinweisflaechen */
  --v11-white: #FFFFFF;

  /* Ableitungen fuer die Oberflaeche (keine CI-Farben, nur Grautoene) */
  --flaeche: var(--v11-white);
  --flaeche-ruhig: #F4F4F4;
  --linie: #DADADA;

  /* Rollen */
  --text: var(--v11-black);
  --text-sekundaer: var(--v11-night-grey);
  /* Weisser Text auf #009FE3 erreicht kein WCAG-AA fuer normale Schrift.
     Buttons mit weisser Schrift deshalb in Dark Blue; Vision11 Blue fuer Flaechen und Markierungen. */
  --aktion: var(--v11-dark-blue);
  --aktion-text: var(--v11-white);
  --markierung: var(--v11-blue);
  --fokus: var(--v11-blue);

  /* Eintragsarten im Fallverlauf (A-36) */
  --eintrag-nachricht-bg: var(--flaeche);            /* Nachricht der Mitarbeitenden */
  --eintrag-antwort-bg: var(--v11-blue-10);          /* Antwort der IT an Mitarbeitende */
  --eintrag-antwort-rand: var(--v11-blue);
  --eintrag-notiz-bg: var(--flaeche-ruhig);          /* interne Notiz, nur IT */
  --eintrag-notiz-rand: var(--v11-night-grey);
  --eintrag-ki-rand: var(--v11-night-blue);          /* Beitrag der KI */

  /* Typografie */
  --schrift: "NeoSans Std", system-ui, -apple-system, "Segoe UI", sans-serif;
  --groesse-klein: 0.875rem;
  --groesse-text: 1rem;
  --groesse-h3: 1.25rem;
  --groesse-h2: 1.5rem;
  --groesse-h1: 2rem;
  --zeilenhoehe: 1.5;

  /* Abstaende */
  --abstand-1: 0.25rem;
  --abstand-2: 0.5rem;
  --abstand-3: 1rem;
  --abstand-4: 1.5rem;
  --abstand-5: 2rem;
  --radius: 4px;
}

html { font-family: var(--schrift); font-size: 16px; line-height: var(--zeilenhoehe); color: var(--text); background: var(--flaeche); }
h1, h2, h3 { font-weight: 700; line-height: 1.2; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }

.button { background: var(--aktion); color: var(--aktion-text); border: 0; border-radius: var(--radius); padding: var(--abstand-2) var(--abstand-3); font: inherit; font-weight: 700; cursor: pointer; }
.button--zweitrangig { background: transparent; color: var(--aktion); border: 1px solid var(--aktion); }

.eintrag { padding: var(--abstand-3); border-left: 4px solid transparent; border-radius: var(--radius); }
.eintrag--nachricht { background: var(--eintrag-nachricht-bg); border-left-color: var(--linie); }
.eintrag--antwort { background: var(--eintrag-antwort-bg); border-left-color: var(--eintrag-antwort-rand); }
.eintrag--interne-notiz { background: var(--eintrag-notiz-bg); border-left-color: var(--eintrag-notiz-rand); }
.eintrag--ki { background: var(--flaeche); border-left-color: var(--eintrag-ki-rand); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
