/**
 * Conversion-focused header layer (feature-flagged via body class .sk-new-header).
 */

.sk-new-header {
  --skh-bg: #f8fbf8;
  --skh-surface: #ffffff;
  --skh-border: #e3e9e6;
  --skh-ink: #1e3641;
  --skh-muted: #5f7280;
  --skh-accent: #1f7a63;
  --skh-accent-soft: #eef7f4;
}

.sk-new-header .sk-header {
  width: 100%;
}

.sk-new-header .sk-topbar {
  height: 44px;
  background: linear-gradient(180deg, #f5faf7 0%, #f0f7f4 100%);
  border-bottom: 1px solid var(--skh-border);
}

.sk-new-header .sk-topbar__inner {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sk-new-header .sk-topbar__trust,
.sk-new-header .sk-topbar__institution {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sk-new-header .sk-topbar__item,
.sk-new-header .sk-topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--skh-muted);
  font-size: 0.79rem;
  line-height: 1;
  white-space: nowrap;
}

.sk-new-header .sk-topbar__icon {
  color: #8ca199;
  font-size: 0.9rem;
  line-height: 1;
}

.sk-new-header .sk-topbar__link {
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 5px 9px;
}

.sk-new-header .sk-topbar__link:hover {
  border-color: #d6e4de;
  background: #ffffff;
  color: var(--skh-ink);
}

.sk-new-header .sk-topbar__link--mail {
  font-weight: 600;
}

.sk-new-header .sk-topbar__link--cta {
  border-color: #d2e4dd;
  background: #f3f9f6;
  color: #1f7a63;
  font-weight: 700;
}

.sk-new-header .sk-header-main-wrap {
  background: var(--skh-surface);
  border-bottom: 1px solid var(--skh-border);
}

.sk-new-header .sk-header-main {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(320px, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.sk-new-header .sk-header-main__brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.sk-new-header .sk-header-main__brand img {
  max-height: 52px;
  width: auto;
  height: auto;
}

.sk-new-header .sk-header-main__logo-fallback {
  display: inline-flex;
  align-items: center;
  color: var(--skh-ink);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
}

.sk-new-header .sk-header-search__form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0;
  border: 1px solid #d4e2db;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(26, 60, 74, 0.08);
  overflow: hidden;
}

.sk-new-header .sk-header-search__input {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 12px 14px !important;
  height: 46px !important;
  color: var(--skh-ink);
  font-size: 0.96rem;
  box-shadow: none !important;
  background: transparent !important;
}

.sk-new-header .sk-header-search__input::placeholder {
  color: #6d7f8a;
}

.sk-new-header .sk-header-search__submit {
  height: 46px;
  min-width: 82px;
  border: 0;
  border-left: 1px solid #dce7e2;
  border-radius: 0;
  background: linear-gradient(180deg, #f2f9f6 0%, #e9f5f0 100%);
  color: #1d5f4f;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
}

.sk-new-header .sk-header-search__submit:hover {
  background: linear-gradient(180deg, #e8f4ef 0%, #def0e9 100%);
}

.sk-new-header .sk-header-main__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sk-new-header .sk-header-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid #d9e4df;
  border-radius: 12px;
  text-decoration: none;
  color: var(--skh-ink);
  background: #ffffff;
}

.sk-new-header .sk-header-action:hover {
  border-color: #c2d6cd;
  background: #f8fcfa;
}

.sk-new-header .sk-header-action__icon {
  font-size: 0.95rem;
  line-height: 1;
}

.sk-new-header .sk-header-action__label {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
}

.sk-new-header .sk-header-action__count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e7694e;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.sk-new-header #masthead {
  background: var(--skh-bg) !important;
  border-bottom: 1px solid var(--skh-border);
  backdrop-filter: none !important;
}

.sk-new-header #masthead .ast-above-header-wrap {
  display: none !important;
}

.sk-new-header #masthead .site-below-header-wrap,
.sk-new-header #masthead .site-primary-header-wrap,
.sk-new-header #masthead .site-above-header-wrap {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

.sk-new-header #masthead .ast-below-header-bar {
  min-height: 58px !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  border: 0 !important;
  background: transparent !important;
}

.sk-new-header #masthead [data-section="section-hb-social-icons-1"],
.sk-new-header #masthead [data-section="section-header-search"] {
  display: none !important;
}

.sk-new-header #masthead .ast-builder-menu-1,
.sk-new-header #masthead .ast-builder-menu-1 .ast-main-header-bar-alignment,
.sk-new-header #masthead .ast-builder-menu-1 .main-header-bar-navigation {
  width: 100%;
}

.sk-new-header #masthead .ast-builder-menu-1 .main-header-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
}

.sk-new-header #masthead .ast-builder-menu-1 .main-header-menu > .menu-item {
  line-height: normal !important;
}

.sk-new-header #masthead .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1;
}

.sk-new-header #masthead .sk-menu-shortcut-item > .sk-menu-shortcut-link {
  border: 1px solid #d2e3db !important;
  background: var(--skh-accent-soft) !important;
  color: var(--skh-accent) !important;
  font-weight: 700 !important;
}

.sk-new-header #masthead .sk-menu-shortcut-item > .sk-menu-shortcut-link:hover {
  border-color: #b9d4c8 !important;
  background: #e5f3ed !important;
}

.sk-new-header #masthead .ast-builder-menu-1 .main-header-menu > .sk-menu-shortcut-item--first {
  margin-left: auto;
  position: relative;
  padding-left: 18px;
}

.sk-new-header #masthead .ast-builder-menu-1 .main-header-menu > .sk-menu-shortcut-item--first::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #d7e1dc;
}

.sk-new-header .sk-header-action--cart {
  cursor: pointer;
}

.sk-new-header .astra-mobile-cart-overlay {
  background: rgba(21, 39, 48, 0.32);
  backdrop-filter: blur(2px);
}

.sk-new-header .astra-cart-drawer {
  background: linear-gradient(180deg, #fdfefc 0%, #f6fbf8 100%);
  border-left: 1px solid #dce8e2;
  box-shadow: -20px 0 44px rgba(27, 55, 67, 0.18);
}

.sk-new-header .astra-cart-drawer .astra-cart-drawer-header {
  min-height: 68px;
  padding: 14px 18px;
  border-bottom: 1px solid #dbe7e1;
  background: linear-gradient(180deg, #f6fbf8 0%, #f2f8f4 100%);
}

.sk-new-header .astra-cart-drawer .astra-cart-drawer-title {
  font-size: 1.03rem;
  font-weight: 700;
  color: #274754;
}

.sk-new-header .astra-cart-drawer .astra-cart-drawer-close {
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid #d2e3db;
  border-radius: 10px;
  background: #ffffff;
  color: #355666;
}

.sk-new-header .astra-cart-drawer .astra-cart-drawer-close:hover {
  border-color: #bfd8cc;
  background: #f6fbf8;
}

.sk-new-header .astra-cart-drawer .astra-cart-drawer-content {
  padding: 68px 16px 14px;
}

.sk-new-header .astra-cart-drawer .widget_shopping_cart,
.sk-new-header .astra-cart-drawer .woocommerce-mini-cart,
.sk-new-header .astra-cart-drawer .widget_shopping_cart_content {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sk-new-header .astra-cart-drawer .woocommerce-mini-cart__empty-message {
  margin: 0;
  padding: 16px;
  border: 1px dashed #cfdfd8;
  border-radius: 14px;
  color: #607783;
  background: #fbfefd;
}

.sk-new-header .astra-cart-drawer .woocommerce-mini-cart {
  display: grid;
  gap: 10px;
}

.sk-new-header .astra-cart-drawer .woocommerce-mini-cart .mini_cart_item {
  position: relative;
  margin: 0;
  padding: 12px 12px 12px 84px;
  border: 1px solid #dfe9e4;
  border-radius: 14px;
  background: #ffffff;
}

.sk-new-header .astra-cart-drawer .woocommerce-mini-cart .mini_cart_item img {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e6efeb;
}

.sk-new-header .astra-cart-drawer .woocommerce-mini-cart .mini_cart_item a:not(.remove) {
  display: block;
  padding-right: 26px;
  color: #274552;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
}

.sk-new-header .astra-cart-drawer .woocommerce-mini-cart .mini_cart_item .remove {
  right: 8px;
  top: 8px;
  width: 22px;
  height: 22px;
  border: 1px solid #d7e6df;
  border-radius: 999px;
  color: #6e8691 !important;
  line-height: 19px;
  background: #ffffff;
}

.sk-new-header .astra-cart-drawer .woocommerce-mini-cart .mini_cart_item .remove:hover {
  color: #ffffff !important;
  background: #e46b57;
  border-color: #e46b57;
}

.sk-new-header .astra-cart-drawer .woocommerce-mini-cart .quantity,
.sk-new-header .astra-cart-drawer .ast-mini-cart-price-wrap {
  margin-top: 6px;
  color: #66808c;
  font-size: 0.84rem;
}

.sk-new-header .astra-cart-drawer .woocommerce-mini-cart__total {
  margin-top: 8px;
  padding: 12px 2px;
  border-top: 1px solid #d9e6e0;
  border-bottom: 1px solid #d9e6e0;
  color: #294753;
  font-weight: 700;
}

.sk-new-header .astra-cart-drawer .woocommerce-mini-cart__buttons {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 0;
}

.sk-new-header .astra-cart-drawer .woocommerce-mini-cart__buttons .button {
  width: 100%;
  margin: 0;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
}

.sk-new-header .astra-cart-drawer .woocommerce-mini-cart__buttons .button:not(.checkout) {
  border: 1px solid #d4e4dc;
  background: #ffffff;
  color: #31525f;
}

.sk-new-header .astra-cart-drawer .woocommerce-mini-cart__buttons .button:not(.checkout):hover {
  border-color: #bdd8cb;
  background: #f6fbf8;
}

.sk-new-header .astra-cart-drawer .woocommerce-mini-cart__buttons .button.checkout {
  border: 1px solid #1f7a63;
  background: linear-gradient(180deg, #2a8f74 0%, #1f7a63 100%);
  color: #ffffff;
}

.sk-new-header .astra-cart-drawer .woocommerce-mini-cart__buttons .button.checkout:hover {
  border-color: #1c6f5a;
  background: linear-gradient(180deg, #26846b 0%, #1c6f5a 100%);
}

@media (max-width: 1320px) {
  .sk-new-header .sk-topbar__link--mail {
    display: none;
  }
}

@media (max-width: 1080px) {
  .sk-new-header .sk-topbar__inner {
    gap: 10px;
  }

  .sk-new-header .sk-header-main {
    grid-template-columns: minmax(140px, auto) minmax(280px, 1fr) auto;
    gap: 12px;
  }

  .sk-new-header .sk-header-action__label {
    display: none;
  }
}

@media (max-width: 921px) {
  .sk-new-header .sk-topbar {
    display: none;
  }

  .sk-new-header .sk-header-main {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 8px;
    row-gap: 8px;
    align-items: center;
    padding: 10px 0;
  }

  .sk-new-header .sk-header-main__brand {
    display: block;
    order: 1;
    grid-column: 1;
  }

  .sk-new-header .sk-header-main__brand .custom-logo-link {
    justify-content: flex-start;
  }

  .sk-new-header .sk-header-main__actions {
    order: 2;
    grid-column: 2;
    justify-content: flex-end;
    width: auto;
    flex-wrap: nowrap;
  }

  .sk-new-header .sk-header-main__search {
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
  }

  .sk-new-header .sk-header-action__label {
    display: inline;
    font-size: 0.79rem;
  }

  .sk-new-header #masthead .ast-builder-menu-1 .main-header-menu > .sk-menu-shortcut-item--first {
    margin-left: 0;
    padding-left: 0;
  }

  .sk-new-header #masthead .ast-builder-menu-1 .main-header-menu > .sk-menu-shortcut-item--first::before {
    display: none;
  }

  .sk-new-header #masthead .ast-below-header-wrap {
    display: none !important;
  }

  .sk-new-header #masthead .ast-primary-header-bar {
    border-bottom: 0 !important;
  }

  .sk-new-header #ast-mobile-header .site-branding {
    display: none !important;
  }

  .sk-new-header #ast-mobile-header .ast-primary-header-bar {
    min-height: 56px !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .sk-new-header #ast-mobile-header .ast-primary-header-bar .ast-main-header-bar-alignment {
    margin-left: auto;
    width: auto;
  }
}

@media (max-width: 544px) {
  .sk-new-header .sk-header-main__brand img {
    max-height: 46px;
  }

  .sk-new-header .sk-header-action {
    min-height: 36px;
    padding: 7px 9px;
  }

  .sk-new-header .sk-header-action__label {
    display: none;
  }

  .sk-new-header .sk-header-main__actions {
    gap: 6px;
  }
}

/* Mobilmenu integreret i custom header */
.sk-new-header .sk-header-action--menu {
  display: none;
  cursor: pointer;
}

@media (max-width: 921px) {
  .sk-new-header .sk-header-action--favorite {
    display: none;
  }

  .sk-new-header .sk-header-action--menu {
    display: inline-flex;
  }

  .sk-new-header #ast-mobile-header {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .sk-new-header #ast-mobile-header .ast-primary-header-bar {
    display: none !important;
  }
}
