:root {
  --ff-brand: "TWK Everett", "Helvetica Neue", Arial, sans-serif;

  --brand-primary: #005758;
  --brand-primary-hover: #1a6a6b;
  --brand-primary-active: #004646;

  --brand-secondary: #e6f1f1;
  --brand-secondary-hover: #cce3e3;
  --brand-secondary-active: #b3d5d5;

  --brand-text: #1c2222;
  --brand-text-soft: #4b5b5b;
  --brand-white: #ffffff;

  --brand-card-bg: #ffffff;
  --brand-card-border: #d9d8d7;

  --brand-dropdown-bg: #ffffff;
  --brand-dropdown-hover: #f3faf8;
  --brand-dropdown-active: #e5f3f0;

  --brand-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
  --brand-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.18);

  /* Bootstrap alignment */
  --bs-primary: #005758;
  --bs-primary-rgb: 0, 87, 88;
  --bs-link-color: #005758;
  --bs-link-hover-color: #1a6a6b;
  --bs-border-color: #d9d8d7;
}

/* =========================================================
   Global typography
   ========================================================= */

html,
body,
body * {
  font-family: var(--ff-brand);
}

body {
  color: var(--brand-text);
  background-color: #ffffff;
}

p,
li,
a,
button,
input,
select,
textarea,
label,
small,
span,
td,
th,
.nav-link,
.dropdown-item,
.btn,
footer,
footer * {
  font-family: var(--ff-brand) !important;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--brand-primary-hover);
}

/* =========================================================
   Buttons (mapped to existing Bootstrap buttons)
   ========================================================= */

.btn {
  border-radius: 6px;
  border-width: 1px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus,
.btn:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(0, 87, 88, 0.18);
}

.btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--brand-white);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  color: var(--brand-white);
}

.btn-primary:active,
.btn-check:checked + .btn-primary,
.btn.show,
.btn-primary.active {
  background-color: var(--brand-primary-active) !important;
  border-color: var(--brand-primary-active) !important;
  color: var(--brand-white) !important;
}

.btn-secondary {
  background-color: var(--brand-secondary);
  border-color: var(--brand-secondary);
  color: var(--brand-primary);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--brand-secondary-hover);
  border-color: var(--brand-secondary-hover);
  color: var(--brand-primary);
}

.btn-secondary:active {
  background-color: var(--brand-secondary-active) !important;
  border-color: var(--brand-secondary-active) !important;
  color: var(--brand-primary) !important;
}

.btn-outline-primary {
  background-color: #ffffff;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--brand-secondary-hover);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-outline-primary:active {
  background-color: var(--brand-secondary-active) !important;
  border-color: var(--brand-primary) !important;
  color: var(--brand-primary) !important;
}

/* Größen aus dem Guide an Bootstrap angelehnt */
.btn-sm {
  min-width: 111px;
  min-height: 28px;
  padding: 0.25rem 0.75rem;
}

.btn-lg {
  min-width: 143px;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
}

/* =========================================================
   Header + navbar + dropdown navigation
   ========================================================= */

header.bg-primary {
  background: var(--brand-primary) !important;
}

#headernav {
  border-bottom: 1px solid #e8ecec;
}

#headernav .container {
  padding-top: 12px;
  padding-bottom: 12px;
}

#headernav .logo {
  display: inline-block;
  width: auto;
  max-width: 100%;
  vertical-align: middle;
}

#headernav .logo_techdata {
  max-height: 54px;
}

#headernav .logo_hp {
  max-height: 40px !important;
  margin-left: 1rem;
}

.navbar.bg-primary {
  background: var(--brand-primary) !important;
  border-radius: 10px;
}

.navbar .navbar-nav {
  gap: 0.125rem;
}

.navbar .nav-link {
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.75rem 0.875rem !important;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-item.show > .nav-link,
.navbar .nav-item.active > .nav-link {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
}

.navbar .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
}

.navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.15);
}

.navbar .dropdown-menu {
  background: var(--brand-dropdown-bg);
  border: 1px solid var(--brand-card-border);
  border-radius: 8px;
  box-shadow: var(--brand-shadow-md);
  padding: 4px;
  margin-top: 0.5rem;
  min-width: 184px;
}

.navbar .dropdown-item {
  min-height: 32px;
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  color: var(--brand-text);
  font-size: 16px;
  font-weight: 400;
  white-space: normal;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background: var(--brand-dropdown-hover);
  color: var(--brand-primary);
}

.navbar .dropdown-item:active,
.navbar .dropdown-item.active {
  background: var(--brand-dropdown-active);
  color: var(--brand-primary);
}

.navbar .dropdown-menu li > strong,
.navbar .dropdown-menu .ps-3 strong {
  display: block;
  color: var(--brand-primary);
  font-size: 15px;
  font-weight: 600;
  padding: 0.5rem 0.75rem 0.25rem;
}

.hersteller-menu .row {
  margin-left: 0;
  margin-right: 0;
}

.hersteller-menu [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 1200px) {
  .navbar .dropdown-menu.hersteller-menu {
    width: 400px;
  }
}

/* =========================================================
   Hero / intro section
   ========================================================= */

#page_header_img img,
#header_bg img {
  display: block;
}

#page_content h1 {
  color: var(--brand-primary);
  font-weight: 700;
  line-height: 1.15;
}

#page_content h2,
#page_content h3,
#page_content h4,
#page_content h5 {
  color: var(--brand-primary);
  font-weight: 700;
}

#page_content p {
  color: var(--brand-text);
  line-height: 1.6;
}

/* =========================================================
   Card styling mapped to the real HTML
   ========================================================= */

/* Highscore cards */
/* .highscore-inner {
  background: var(--brand-card-bg);
  border: 1px solid var(--brand-card-border);
  border-radius: 10px;
  box-shadow: var(--brand-shadow-sm);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
  height: 100%;
  padding: 16px !important;
}

.highscore-display:hover .highscore-inner {
  box-shadow: var(--brand-shadow-md);
  transform: translateY(-2px);
}

.highscore-display {
  cursor: pointer;
}

.highscore-inner .fa-solid {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--brand-primary);
  font-size: 1.1rem;
}

/* Booster / Umsatzziele cards */
#dashboard .col-md-3 > .position-relative.p-3 {
  background: var(--brand-card-bg);
  border: 1px solid var(--brand-card-border);
  border-radius: 10px;
  box-shadow: var(--brand-shadow-sm);
  height: 100%;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

#dashboard .col-md-3 > .position-relative.p-3:hover {
  box-shadow: var(--brand-shadow-md);
  transform: translateY(-2px);
} */

/* Logo rotator cards */
/* #logo-rotator a > div {
  background: var(--brand-card-bg) !important;
  border: 1px solid var(--brand-card-border);
  border-radius: 10px;
  box-shadow: var(--brand-shadow-sm);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

#logo-rotator a:hover > div {
  box-shadow: var(--brand-shadow-md);
  transform: translateY(-2px);
}

#logo-rotator img {
  max-width: 100%;
  object-fit: contain;
} */

/* Flip cards */
.square-flip .square,
.square-flip .square2 {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--brand-shadow-sm);
}

/* Sonderverlosungen / ähnliche Content-Blöcke */
#sonderverlosung .row,
#umsatzziele .row,
#dashboard .row {
  --bs-gutter-y: 1.5rem;
}


/* =========================================================
   Sidebar widget
   ========================================================= */

#sidebar-status {
  background: var(--brand-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 10px 0 0 10px;
  box-shadow: var(--brand-shadow-md);
  padding: 16px !important;
}

#sidebar-status h2,
#sidebar-status h3,
#sidebar-status p,
#sidebar-status li,
#sidebar-status a {
  font-family: var(--ff-brand) !important;
  color: #ffffff !important;
}

#sidebar-status h2 {
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2;
}

#sidebar-status h3 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

#sidebar-status ul {
  margin: 0 0 0.75rem;
  padding-left: 1rem;
}

#sidebar-status li {
  line-height: 1.5;
}

/* =========================================================
   Footer
   ========================================================= */

footer,
footer * {
  font-family: var(--ff-brand) !important;
}

footer {
  color: #ffffff;
  background: var(--brand-primary);
}

footer a {
  color: #ffffff;
}

footer a:hover,
footer a:focus {
  color: #e6f1f1;
}

/* =========================================================
   Responsive polish
   ========================================================= */

@media (max-width: 991.98px) {
  .navbar.bg-primary {
    border-radius: 0;
  }

  .navbar .nav-link {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .navbar .dropdown-menu {
    border-radius: 8px;
  }

  #sidebar-status {
    top: auto;
    bottom: 1rem;
    right: 1rem;
    border-radius: 10px;
    max-width: calc(100vw - 2rem);
  }
}

@media (max-width: 767.98px) {
  #page_content h1 {
    font-size: 2rem;
  }

  #page_content h2 {
    font-size: 1.5rem;
  }

  #logo-rotator a > div {
    padding: 1rem !important;
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
  }
}