/*
 * HLZ Friesenheim-Hochdorf - corporate design for LibreBooking
 *
 * LibreBooking loads this file automatically after librebooking.css if it exists
 * (Pages/Page.php). It is our only CSS change; upstream files stay untouched.
 *
 * Colors taken from the HLZ logo (HLZ-Pfalz.de/HLZPFalz1Blu/Logos/web/HLZ-Logo_pos.svg).
 */

:root {
  --hlz-green-dark: #194e19;  /* ball gradient, start */
  --hlz-green-light: #66c544; /* ball gradient, end */
  --hlz-green-mid: #2f7a26;   /* between both, still readable with white text (WCAG AA) */
  --hlz-anthracite: #20242c;  /* owl, lettering */
  --hlz-red: #d91920;         /* eye */
  --hlz-red-dark: #870e12;    /* claim, red gradient start */
  --hlz-red-claim: #d22027;   /* claim, red gradient end */
}

/* Replaces the color of every LibreBooking theme (body[data-bs-theme] beats [data-bs-theme='...']) */
body[data-bs-theme] {
  --primary: var(--hlz-green-dark);
  --primary-hover: var(--hlz-green-mid);
  --primary-disabled: color-mix(in oklab, var(--primary) 40%, white);
  --text-color-btn: #ffffff;

  /* Bootstrap components that do not use LibreBooking's --primary */
  --bs-primary: #194e19;
  --bs-primary-rgb: 25, 78, 25;
  --bs-link-color: #194e19;
  --bs-link-color-rgb: 25, 78, 25;
  --bs-link-hover-color: #2f7a26;
  --bs-link-hover-color-rgb: 47, 122, 38;
  --bs-body-color: #20242c;
  --bs-body-color-rgb: 32, 36, 44;
}

/* Input focus in green instead of Bootstrap blue */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--hlz-green-light);
  box-shadow: 0 0 0 0.25rem rgba(102, 197, 68, 0.3);
}

/* Logo: image is 400 px high (also used large on the login page), header shows it at 72 px */
img.logo {
  max-height: 72px;
}

/* Claim "Geballte Leidenschaft. Vereinte Kraft." on the right side of the header.
   Added via CSS so the upstream template (tpl/globalheader.tpl) stays untouched.
   Image is 150 px high, shown at 60 px. Hidden on small screens. */
div:has(> a.navbar-brand)::after {
  content: "";
  margin-left: auto;
  width: 186px;
  height: 60px;
  flex-shrink: 0;
  background: url("../img/hlz-claim.png") no-repeat right center / contain;
}

@media (max-width: 767.98px) {
  div:has(> a.navbar-brand)::after {
    display: none;
  }
}

/* Navigation bar: stripe like the claim - green gradient of the ball, then the red gradient.
   Hard stop between green and red: a smooth green-to-red blend would turn brown in between. */
nav.navbar {
  border-bottom: 4px solid var(--hlz-green-dark);
  border-image: linear-gradient(90deg,
      var(--hlz-green-dark) 0%,
      var(--hlz-green-light) 80%,
      var(--hlz-red-dark) 80%,
      var(--hlz-red-claim) 100%) 1;
}
