/* KALINA CI — Konto-Konsole (Theme kalina, Parent keycloak.v3)
   Die Konsole ist eine React-App auf PatternFly 5 und laedt ihre eigenen Tokens
   (hell #06c, dunkel #1fa7f8). Eine :root-Regel ohne !important verliert gegen
   diese Kaskade — dann bleibt der Markierungsbalken blau. Also !important. */

:root,
:root:root {
  --pf-v5-global--FontFamily--text: "DejaVu Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --pf-v5-global--FontFamily--heading: "DejaVu Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --pf-v5-global--primary-color--100: #C1121F !important;
  --pf-v5-global--primary-color--200: #9E0E19 !important;
  --pf-v5-global--primary-color--300: #9E0E19 !important;
  --pf-v5-global--active-color--100: #C1121F !important;
  --pf-v5-global--active-color--200: #9E0E19 !important;

  --pf-v5-global--link--Color: #C1121F !important;
  --pf-v5-global--link--Color--hover: #9E0E19 !important;
  --pf-v5-global--link--Color--visited: #9E0E19 !important;

  /* Der Seitenhintergrund kommt aus .pf-v5-c-page, nicht aus body. */
  --pf-v5-c-page--BackgroundColor: #F5F5EF !important;
  --pf-v5-c-button--m-link--Color: #C1121F !important;
  --pf-v5-c-button--m-link--Color--hover: #9E0E19 !important;
}

body {
  background-color: #F5F5EF;
  color: #0B0F14;
}

/* Kopfzeile: Markenakzent statt Standardlinie */
.pf-v5-c-masthead {
  border-bottom: 3px solid #C1121F;
}

.pf-v5-c-masthead__brand img,
.pf-v5-c-masthead .pf-v5-c-brand img {
  max-height: 32px;
  width: auto;
}

/* Primaere Aktionen */
.pf-v5-c-button.pf-m-primary {
  background-color: #C1121F !important;
  border-color: #C1121F !important;
  color: #FFFFFF !important;
}

.pf-v5-c-button.pf-m-primary:hover,
.pf-v5-c-button.pf-m-primary:focus {
  background-color: #9E0E19 !important;
  border-color: #9E0E19 !important;
}

.pf-v5-c-button.pf-m-primary:focus-visible {
  outline: 2px solid #0B0F14;
  outline-offset: 2px;
}

.pf-v5-c-button.pf-m-link {
  color: #C1121F !important;
}

.pf-v5-c-button.pf-m-link:hover {
  color: #9E0E19 !important;
}

/* Aktiver Eintrag: Balken war PatternFly-Blau (#06c). */
.pf-v5-c-nav__link.pf-m-current,
.pf-v5-c-nav__link.pf-m-current:hover {
  color: #0B0F14 !important;
}

.pf-v5-c-nav__link.pf-m-current::before,
.pf-v5-c-nav__link.pf-m-current:hover::before,
.pf-v5-c-nav__link.pf-m-current::after {
  border-inline-start-color: #C1121F !important;
  border-left-color: #C1121F !important;
  background-color: #C1121F !important;
}

/* ---------- dunkel ---------- */
.pf-v5-theme-dark {
  color-scheme: dark;
}

html.pf-v5-theme-dark {
  --pf-v5-global--link--Color: #F2767E !important;
  --pf-v5-global--link--Color--hover: #FF9AA1 !important;
  --pf-v5-global--link--Color--visited: #F2767E !important;
  --pf-v5-global--primary-color--100: #C1121F !important;
  --pf-v5-global--primary-color--200: #9E0E19 !important;
  --pf-v5-global--active-color--100: #E0454F !important;
  --pf-v5-c-page--BackgroundColor: #0B0F14 !important;
  --pf-v5-c-button--m-link--Color: #F2767E !important;
  --pf-v5-c-button--m-link--Color--hover: #FF9AA1 !important;
}

.pf-v5-theme-dark body {
  background-color: #0B0F14 !important;
  color: #F5F5EF !important;
}

/* Benutzername in der Kopfzeile war auf dunklem Grund fast unsichtbar. */
.pf-v5-theme-dark .pf-v5-c-masthead__content,
.pf-v5-theme-dark .pf-v5-c-masthead__content a,
.pf-v5-theme-dark .pf-v5-c-masthead__content span,
.pf-v5-theme-dark .pf-v5-c-masthead__content button {
  color: #F5F5EF !important;
}

.pf-v5-theme-dark .pf-v5-c-masthead {
  border-bottom-color: #C1121F !important;
}

.pf-v5-theme-dark .pf-v5-c-button.pf-m-primary:focus-visible {
  outline-color: #F5F5EF;
}

.pf-v5-theme-dark .pf-v5-c-button.pf-m-link {
  color: #F2767E !important;
}

.pf-v5-theme-dark .pf-v5-c-button.pf-m-link:hover {
  color: #FF9AA1 !important;
}

.pf-v5-theme-dark .pf-v5-c-nav__link.pf-m-current,
.pf-v5-theme-dark .pf-v5-c-nav__link.pf-m-current:hover {
  color: #F5F5EF !important;
}

.pf-v5-theme-dark .pf-v5-c-nav__link.pf-m-current::before,
.pf-v5-theme-dark .pf-v5-c-nav__link.pf-m-current:hover::before,
.pf-v5-theme-dark .pf-v5-c-nav__link.pf-m-current::after {
  border-inline-start-color: #E0454F !important;
  border-left-color: #E0454F !important;
  background-color: #E0454F !important;
}
