/* =====================================================================
   gate tenant theme – loaded after site.css for tenant "gate" only.
   As on gate.de (WordPress theme "Enfold", checked 2026-11-30): black and orange,
   Montserrat (headlines in the heavy weights).
     orange   #FF6400  (links / highlights on gate.de; logo dots #FF6600), hover #CC6200
     black    #111111  (dark areas, also Tenant.PrimaryColor), text #313131
   White on this orange is below 4.5:1 – so orange carries black text or is used for marks,
   and the primary button is black with white text (orange on hover with black text).
   ===================================================================== */

/* Montserrat (SIL Open Font License, fonts/OFL.txt) – variable font 100–900, latin and latin-ext */
@font-face { font-family: Montserrat; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/montserrat-latin-wght-normal.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; }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/montserrat-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Montserrat; font-style: italic; font-weight: 100 900; font-display: swap; src: url("fonts/montserrat-latin-wght-italic.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; }
@font-face { font-family: Montserrat; font-style: italic; font-weight: 100 900; font-display: swap; src: url("fonts/montserrat-latin-ext-wght-italic.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root,
[data-bs-theme="light"],
[data-bs-theme="dark"] {
  --bs-body-font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --portal-accent: #FF6400;
  --portal-accent-rgb: 255, 100, 0;
  --gate-black: #111111;
  --gate-orange: #FF6400;
  --gate-orange-dark: #CC6200;
  --bs-focus-ring-color: rgba(255, 100, 0, .35);
}

/* black navigation with orange highlights */
:root, [data-bs-theme="light"] { --ui-sidebar-bg: var(--gate-black); }
[data-bs-theme="dark"] { --ui-sidebar-bg: #0A0A0A; }
.app-sidebar::before { background: radial-gradient(closest-side, rgba(var(--portal-accent-rgb), .20), transparent); }
.app-nav-link.active, .app-nav-sublink.active { color: #fff; }
.app-nav-link.active .bi, .app-nav-sublink.active .bi { color: var(--gate-orange); }
.app-brand-wordmark svg { height: 26px; }
.auth-brand .app-brand-wordmark svg { height: 34px; }
.app-brand-mark.has-symbol { background: transparent; box-shadow: none; }
.app-brand-mark.has-symbol svg { width: 100%; height: 100%; }

/* links and focus in orange (dark orange on white for readable text) */
:root, [data-bs-theme="light"] { --bs-link-color: var(--gate-orange-dark); --bs-link-color-rgb: 204, 98, 0; --bs-link-hover-color: #a34e00; --ui-primary-strong: var(--gate-orange-dark); }
[data-bs-theme="dark"] { --bs-link-color: var(--gate-orange); --bs-link-color-rgb: 255, 100, 0; --bs-link-hover-color: #ff8a3d; --ui-primary-strong: var(--gate-orange); }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--gate-orange); box-shadow: 0 0 0 3px rgba(255, 100, 0, .25); }
:focus-visible { outline-color: var(--gate-orange); }

/* primary button: black with white text, orange with black text on hover */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--gate-black);
  --bs-btn-border-color: var(--gate-black);
  --bs-btn-hover-color: var(--gate-black);
  --bs-btn-hover-bg: var(--gate-orange);
  --bs-btn-hover-border-color: var(--gate-orange);
  --bs-btn-active-color: var(--gate-black);
  --bs-btn-active-bg: var(--gate-orange-dark);
  --bs-btn-active-border-color: var(--gate-orange-dark);
  --bs-btn-focus-shadow-rgb: 255, 100, 0;
}
[data-bs-theme="dark"] .btn-primary {
  --bs-btn-color: var(--gate-black);
  --bs-btn-bg: var(--gate-orange);
  --bs-btn-border-color: var(--gate-orange);
  --bs-btn-hover-bg: #ff8a3d;
  --bs-btn-hover-border-color: #ff8a3d;
}

/* selected states in orange */
.form-check-input:checked, .form-check-input:indeterminate { background-color: var(--gate-orange); border-color: var(--gate-orange); }
.nav-tabs .nav-link.active { border-bottom-color: var(--gate-orange); color: var(--ui-text); }
th.ui-sort.is-sorted { color: var(--gate-orange-dark); }
.form-check-card:has(.form-check-input:checked) { border-color: var(--gate-orange); background: rgba(var(--portal-accent-rgb), .08); }

/* hero, login, public pages: black with an orange glow */
.ui-hero, .auth-hero, .public-header {
  background: radial-gradient(90% 120% at 100% 0%, rgba(var(--portal-accent-rgb), .35) 0%, transparent 60%), var(--gate-black);
}
.ui-hero strong.text-white { color: var(--gate-orange) !important; }
.auth-hero-list .bi { background: rgba(var(--portal-accent-rgb), .18); color: var(--gate-orange); }

/* typography as on gate.de: heavy headlines, medium labels */
h1, h2, h3, .h1, .h2, .h3, .ui-page-title, .ui-greeting, .auth-hero-title { font-weight: 800; letter-spacing: -.02em; }
h4, h5, h6, .h4, .h5, .h6, .card-header, .ui-table-title, .accordion-button, .alert-heading, .ui-empty-title { font-weight: 700; }
.form-label, .ui-fieldset > legend, .btn, .nav-tabs .nav-link, .app-nav-link, .app-nav-sublink, .dropdown-item,
.table > thead > tr > th, .badge, .ui-page-pretitle, .app-nav-heading { font-weight: 600; }
.ui-stat-value { font-weight: 800; }

/* charts: orange, darker on light surfaces */
:root, [data-bs-theme="light"] { --viz-current: #c25200; }
[data-bs-theme="dark"] { --viz-current: #ff7a29; }
