.main-navigation .menu-item-cart > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.main-navigation .menu-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.08);
}

.main-navigation .menu-bar-item > a {
  display: flex;
  align-items: center;
  padding-right: 0;
  margin-left: 60px;
}

#bt-topbar {
  position: sticky;
  top: 0;
  z-index: 700;

  height: 31px;
  padding: 0;
  box-sizing: border-box;

  background: #80566d;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: #f4f5f4 !important;
}

#bt-topbar .bt-topbar-inner {
  max-width: 1465px;
  height: 30px;
  margin: 0 auto;
  padding: 16px 20px;
  box-sizing: border-box;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;

  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

#bt-topbar .bt-topbar__label {
  opacity: 0.85;
}

#bt-topbar .bt-topbar__value {
  text-decoration: none;
  color: #f4f5f4;
}

#bt-topbar .bt-topbar-left .bt-topbar__value {
  font-weight: 600;
}

#bt-topbar .bt-topbar__icon {
  display: none;
}

#site-navigation.toggled {
  position: fixed;
  inset: 0;

  z-index: 99999;

  padding: 0 !important;

  background: rgba(17, 24, 39, 0.72);
}

#site-navigation.toggled .inside-navigation {
  z-index: 1001;
  flex: 0 0 85px;

  width: min(70vw, 360px);
  height: 85px;
  padding: 12px 16px !important;

  box-sizing: border-box;
}

#site-navigation.toggled .main-nav {
  position: absolute;
  inset: 0 auto auto 0 !important;

  width: min(70vw, 360px);
  height: 100vh;

  margin: 0 !important;
  transform: translateX(0) !important;

  background: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);

  transition: none !important;
  will-change: auto !important;

  padding-top: 85px;
}

#site-navigation.toggled .main-nav .menu-item-has-children > a {
  position: relative;
  padding-right: 55px;
}

#site-navigation.toggled
  .main-nav
  .menu-item-has-children
  > a
  .dropdown-menu-toggle {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  padding-right: 20px;
  color: #414544;
}

#site-navigation.toggled
  .main-nav
  .menu-item-has-children
  > a
  .dropdown-menu-toggle
  svg {
  width: 18px;
  height: 18px;
}

#site-navigation.toggled
  .main-nav
  #menu-item-6502
  > a
  .bt-nav-static-mega-arrow {
  display: none;
}

#site-navigation.toggled .menu-toggle {
  display: flex !important;
  align-items: center;

  width: min(70vw, 360px);

  position: absolute;
  inset: 0 auto auto 0;

  z-index: 100000;

  background: #fff;
  padding: 7px 16px;
}

#site-navigation.toggled .menu-toggle .mobile-menu:empty::before {
  content: "Menü";
}

#site-navigation.toggled .menu-toggle .gp-icon {
  display: inline-flex !important;
}

#site-navigation.toggled .bt-sticky-logo {
  display: none !important;
}

#site-navigation.toggled .inside-navigation.grid-container {
  margin-inline: 0 !important;
}

.bt-mobile-menu-help {
  display: none;
}

#site-navigation.toggled .bt-mobile-menu-help {
  display: block;

  padding: 14px 0 18px;
  margin: 14px 0 0;

  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

#site-navigation.toggled .bt-mobile-menu-help-inner {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#site-navigation.toggled .bt-mobile-menu-help-inner a {
  display: flex;
  align-items: center;

  min-height: 48px;
  line-height: 1.2;

  padding: 10px 12px;
  border-radius: 10px;

  text-decoration: none;
  color: #414544;

  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.7);
}

#site-navigation.toggled .bt-mobile-menu-help-meta {
  font-size: 12.5px;
  opacity: 0.7;
}

#site-navigation.toggled .menu-bar-items {
  position: static;
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 10px;
  z-index: 999999;
}

#site-navigation.toggled .menu-bar-item.menu-item-cart {
  display: flex;
  margin: 0;
}

#site-navigation.toggled .menu-item-cart > a {
  padding: 6px 8px;
}

#site-navigation.toggled .inside-navigation::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
}



.bt-container {
  max-width: 1465px;
  margin: 0 auto;
  padding: 0 20px;
}

.bt-header {
  padding: 40px 0 10px;
}

.bt-header__logo img {
  width: clamp(160px, 18vw, 335px);
  max-width: 100%;
  height: auto;
  display: block;
}

.bt-header__tagline {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.2;
  font-style: italic;
  color: #414544 !important;
  text-align: center;
  opacity: 0.9;
  white-space: nowrap;
}

.bt-header__search input[type="search"],
.bt-header__search input.search-field,
.bt-header__search input[name="s"] {
  box-sizing: border-box;

  padding: 10px 16px 10px 48px;

  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;

  background-color: #ffffff;

  font-size: 15px;
  color: #414544;

  transition: border-color 0.2s ease;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 18px center;
  background-size: 18px;
}

.bt-header__search input[type="search"]:focus,
.bt-header__search input.search-field:focus,
.bt-header__search input[name="s"]:focus {
  outline: none;
  box-shadow: none;
}

.bt-header__search--desktop input[type="search"]:focus {
  border-color: rgba(65, 69, 68, 0.45);
}

.bt-header__search--desktop input[type="search"]:hover {
  border-color: rgba(0, 0, 0, 0.18);
}

.bt-header__search input[type="search"]::placeholder {
  color: #9aa0a0;
  font-size: 15px;
  font-weight: 400;
}

.bt-search-inline {
  display: flex;
  width: 100%;
  min-width: 0;
}

.bt-search-cat {
  flex: 0 0 auto;
  min-width: 120px;
  max-width: 150px;

  padding: 0 10px;

  border: 1px solid rgba(0, 0, 0, 0.12);
  border-right: 0;
  border-radius: 10px 0 0 10px;

  background: #fff;

  font-size: 13px;
  line-height: 1.2;

  appearance: none;
  -webkit-appearance: none;
}

.bt-search-inline .search-field {
  border-radius: 0;
}

.bt-search-inline button[type="submit"] {
  border-radius: 0 10px 10px 0;
}

.bt-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 14px;
  color: #414544;
  opacity: 0.75;
  text-decoration: none;
  transition:
    opacity 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.bt-header__actions a:not(.bt-action--checkout):not(.bt-action--faq) {
  opacity: 0.75;
}

.bt-header__actions a:not(.bt-action--checkout):not(.bt-action--faq):hover {
  opacity: 1;
}

#bt-header details.bt-action--account-dd > summary.bt-action__summary::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-right: 6px;
  display: inline-block;
  vertical-align: middle;

  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
  opacity: 0.8;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23414544' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M5.5 21a6.5 6.5 0 0 1 13 0'/%3E%3C/svg%3E");
}

#bt-header .bt-header__actions a.bt-action--faq {
  padding: 5px 10px;
  border-radius: 6px;

  background: #ffffff;
  border: 1px solid #e42c8c;

  color: #e42c8c !important;
  opacity: 1;

  text-transform: none;
  letter-spacing: 0;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

#bt-header .bt-header__actions a.bt-action--faq:hover,
#bt-header .bt-header__actions a.bt-action--faq:focus {
  color: #e42c8c !important;
  background: rgba(228, 44, 140, 0.06);
  border-color: #e42c8c;
  outline: none;
}

.main-navigation .main-nav {
  margin-left: 0;

  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 520px) {
  .bt-header__logo img {
    width: 145px;
  }

  .bt-header__actions {
    flex-wrap: wrap;
    row-gap: 10px;
  }
}

.main-navigation {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 31px);
  z-index: 9;

  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.main-navigation.bt-is-sticky {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.main-navigation .inside-navigation {
  max-width: 1465px;
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  padding: 0 20px 0 10px !important;
}

#bt-header .bt-header__inner {
  display: grid !important;
  grid-template-columns: minmax(0, auto) 1fr;
  grid-template-areas:
    "logo actions"
    "search search";
  align-items: center;
  column-gap: 14px;
  row-gap: 12px;
}

#bt-header .bt-header__logo {
  grid-area: logo;
  min-width: 0;
}

#bt-header .bt-header__actions {
  grid-area: actions;
  justify-self: end;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap !important;
  gap: 10px;

  width: auto !important;
  min-width: 0;
  margin-left: 0;
  white-space: nowrap;
}

#bt-header .bt-header__search--desktop {
  grid-area: search;

  display: flex !important;
  justify-content: center !important;

  min-width: 0 !important;
}

#bt-header .bt-header__search--desktop form,
#bt-header .bt-header__search--desktop form.woocommerce-product-search,
#bt-header .bt-header__search--desktop .woocommerce-product-search {
  display: flex;
  width: 100% !important;
  max-width: 720px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
}

#bt-header .bt-header__logo img {
  max-height: 84px;
}

#bt-header .bt-header__actions .bt-action,
#bt-header .bt-header__actions .bt-action__summary {
  font-size: 13px;
}

.main-navigation .main-nav > ul > li > a {
  padding: 7px 14px;
  letter-spacing: 0.5px;
}

/* FINAL OVERRIDES – ABSOLUTE PRIORITY ZONE (SSOT)
   ==========================================================
   Regeln hier:
   - dürfen bewusst Base/Breakpoint übersteuern
   - enthalten !important nur wenn technisch nötig
   - sind NICHT für Layout-Definition gedacht
   - sind nicht splitten ohne komplette Prüfung
   ========================================================== */
#bt-header .bt-header__search--desktop input[type="search"],
#bt-header .bt-header__search--desktop input.search-field,
#bt-header .bt-header__search--desktop input[name="s"] {
  flex: 1 1 auto !important;
  max-width: none !important;
  min-width: 0 !important;
  font-size: 16px;
  padding-block: 12px;
}

#bt-topbar .bt-topbar-contact,
#bt-topbar .bt-topbar-account {
  display: none !important;
}

@media (max-width: 768px) {
  /* KONTAKT UND ACCOUNT IN TOPBAR VERSCHIEBEN */

  #bt-topbar .bt-topbar-left,
  #bt-topbar .bt-topbar-right {
    display: none !important;
  }

  #bt-header .bt-header__actions a.bt-action[href="/kontakt/"],
  #bt-header .bt-header__actions a.bt-action--account {
    display: none !important;
  }

  #bt-header .bt-action--account-dd > summary {
    display: none;
  }

  #bt-header .bt-header__actions {
    gap: 12px;
  }

  #bt-topbar .bt-topbar-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;

    gap: 8px !important;
    padding: 0 12px !important;

    line-height: 1 !important;
  }

  #bt-topbar .bt-topbar-contact,
  #bt-topbar .bt-topbar-account {
    display: inline-flex !important;
    align-items: center !important;
    position: relative !important;

    margin: 0 !important;
    padding: 0 !important;

    white-space: nowrap !important;
    line-height: 1 !important;
  }

  #bt-topbar .bt-topbar-account {
    margin-left: auto !important;
  }

  #bt-topbar .bt-topbar-contact__summary,
  #bt-topbar .bt-topbar-account__summary {
    display: inline-flex !important;
    align-items: center !important;

    list-style: none;
    cursor: pointer;

    padding: 2px 7px !important;

    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1 !important;

    color: #f4f5f4 !important;
    border: 1px solid rgba(244, 245, 244, 0.45) !important;
    border-radius: 5px !important;
    background: rgba(255, 255, 255, 0.06) !important;

    white-space: nowrap !important;
  }

  #bt-topbar .bt-topbar-contact__summary::-webkit-details-marker,
  #bt-topbar .bt-topbar-account__summary::-webkit-details-marker {
    display: none;
  }

  #bt-topbar .bt-topbar-contact__panel,
  #bt-topbar .bt-topbar-account__panel {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    z-index: 9999 !important;

    margin: 0 !important;
    padding: 10px !important;

    min-width: 260px !important;
    max-width: calc(100vw - 24px) !important;

    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18) !important;

    box-sizing: border-box !important;
  }

  #bt-topbar .bt-topbar-contact__panel {
    left: 0 !important;
    right: auto !important;
  }

  #bt-topbar .bt-topbar-account__panel {
    right: 0 !important;
    left: auto !important;

    min-width: 140px !important;
    max-width: 180px !important;
  }

  #bt-topbar .bt-topbar-contact__item,
  #bt-topbar .bt-topbar-account__item {
    display: block;

    padding: 8px 6px;

    text-decoration: none;
    white-space: nowrap;

    color: #414544;
    font-size: 14px;
    line-height: 1.2;
  }

  #bt-topbar .bt-topbar-account__item {
    text-align: left;
  }

  #bt-topbar .bt-topbar-contact__item + .bt-topbar-contact__item,
  #bt-topbar .bt-topbar-account__item + .bt-topbar-account__item {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
}

#bt-header .bt-action--account-dd {
  position: relative;
  display: inline-block;
}
#bt-header .bt-action--account-dd > summary {
  list-style: none;
  cursor: pointer;
}
#bt-header .bt-action--account-dd > summary::-webkit-details-marker {
  display: none;
}

#bt-header .bt-action--account-dd .bt-action__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 9999;

  min-width: 140px;
  max-width: 180px;
  padding: 10px;

  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

#bt-header .bt-action--account-dd .bt-action__item {
  display: block;
  padding: 8px 6px;

  text-decoration: none;
  color: #414544;
  font-size: 14px;
  line-height: 1.2;
}

#bt-header .bt-action--account-dd .bt-action__item + .bt-action__item {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

#bt-header details.bt-action--account-dd .bt-action__panel {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}

#bt-header .bt-header__actions a,
#bt-header .bt-header__actions summary,
#bt-header .bt-header__actions button {
  position: relative;
  z-index: 1;
}

#bt-header .bt-header__actions a:focus-visible,
#bt-header .bt-header__actions summary:focus-visible,
#bt-header .bt-header__actions button:focus-visible {
  outline: none;
  background: transparent !important;
  box-shadow: none !important;
  color: #e42c8c !important;
}

#bt-header .bt-header__actions a:focus-visible::after,
#bt-header .bt-header__actions summary:focus-visible::after,
#bt-header .bt-header__actions button:focus-visible::after {
  content: "";
  position: absolute;
  inset: -6px -10px;
  border-radius: 10px;
  background: rgba(228, 44, 140, 0.08);
  z-index: -1;
  pointer-events: none;
}

.bt-header input:focus-visible,
.bt-header select:focus-visible,
.bt-header textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(228, 44, 140, 0.22);
}

.screen-reader-text:focus-visible {
  outline: none;
  box-shadow: none;
  background: inherit;
}

.skip-link,
.screen-reader-text.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus,
.skip-link:focus-visible,
.screen-reader-text.skip-link:focus,
.screen-reader-text.skip-link:focus-visible {
  position: fixed !important;
  inset: 12px auto auto 12px !important;
  z-index: 100000 !important;

  display: inline-flex !important;
  align-items: center !important;

  margin: 0 !important;
  min-width: 260px !important;
  max-width: calc(100vw - 24px) !important;
  padding: 10px 14px !important;

  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18) !important;
  box-sizing: border-box !important;

  color: #414544 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: 400 !important;
  outline: none !important;
}

/* ==========================================================
   MOBILE STICKY-LOGO
   - mittig im geschlossenen Sticky-Header
   - im geöffneten Mobile-Menü ausgeblendet
   ========================================================== */

.main-navigation .bt-sticky-logo {
  display: flex !important;
  visibility: visible !important;
  opacity: 0 !important;
  pointer-events: none !important;

  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 1002;

  transform: translate(-50%, -50%);

  transition: opacity 0.28s ease !important;
}

.main-navigation .bt-sticky-logo img {
  display: block !important;

  height: 45px;
  width: auto;
  max-width: min(34vw, 150px);

  transition: none !important;
}

.main-navigation.bt-is-sticky .bt-sticky-logo {
  opacity: 1 !important;
}

/* Desktop-Logo-Versatz darf mobil niemals greifen */
.main-navigation.bt-is-sticky .main-nav {
  margin-left: 0 !important;
  transform: none !important;
}
