/* =========================================================
   EinEdelstein - Local Manrope
   Variable font / self-hosted
   ========================================================= */

/* Latin Extended */
@font-face {
    font-family: "ED Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/manrope/manrope-latin-ext-variable.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;
}

/* Latin */
@font-face {
    font-family: "ED Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/manrope/manrope-latin-variable.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;
}

/* =========================================================
   EinEdelstein — Shared navigation chevron tokens
   ---------------------------------------------------------
   CSS-only primitive. No icon asset or icon font is required.
   Contexts may override size/stroke locally while keeping the
   same visual language.
   ========================================================= */
:root {
  --ed-chevron-size: 0.5rem;
  --ed-chevron-stroke: 1px;
  --ed-chevron-opacity: 0.68;
}

/* EinEdelstein — Warehouse/IQIT horizontal menu alignment compatibility */
#desktop-header .cbp-horizontal > ul > li {
    float: none;
}

/* Warehouse mobile-header icon compatibility below 576px. */

@media (max-width: 575.98px) {
    #mobile-header .m-nav-btn > i {
        font-size: 1.875rem;
    }
}

/* Mobile form controls — prevent browser focus auto-zoom.
   Warehouse reduces the Mobile root font size below 768px; keep editable
   form controls at 16px without changing the global root typography. */
@media (max-width: 767.98px) {
  .form-control {
    font-size: 16px;
  }
}

/* Warehouse mobile search — preserve the quieter placeholder hierarchy. */
@media (max-width: 991.98px) {
  #search-widget-mobile .form-search-control::placeholder {
    font-size: 0.88rem;
  }
}


/* ED: IQIT mobile menu forward chevrons — Font Awesome glyph replacement.
   Keep native IQIT/Warehouse classes and JS hooks; replace forward-arrow presentation only.
   Submenu back navigation uses the native Font Awesome glyph. */
@media (max-width: 991.98px) {
  #iqitmegamenu-mobile {
    --ed-mobile-menu-chevron-size: 7px;
    --ed-mobile-menu-chevron-stroke: 1.4px;
  }

  #iqitmegamenu-mobile .mobile-menu__arrow {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #iqitmegamenu-mobile
  .mobile-menu__arrow .fa-angle-right.expand-icon {
    flex: 0 0 16px !important;
    width: 16px !important;
    height: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    font-family: inherit !important;
    font-size: 0 !important;
    line-height: 1 !important;
  }

  #iqitmegamenu-mobile
  .mobile-menu__arrow .fa-angle-right.expand-icon::before {
    content: "" !important;
    display: block !important;
    width: var(--ed-mobile-menu-chevron-size) !important;
    height: var(--ed-mobile-menu-chevron-size) !important;
    border-top: var(--ed-mobile-menu-chevron-stroke) solid currentColor !important;
    border-right: var(--ed-mobile-menu-chevron-stroke) solid currentColor !important;
    transform: rotate(45deg) !important;
    transform-origin: 50% 50% !important;
    position: static !important;
    margin: 0 !important;
    font-family: inherit !important;
  }

}

/* ED: IQIT mobile submenu leaf links.
   Adds subtle hierarchy indentation, full-row click area and native-style divider.
   Presentation/accessibility only; IQIT navigation logic remains untouched. */
@media (max-width: 991.98px) {
  #iqitmegamenu-mobile .mobile-menu__links-list-li {
    position: relative;
  }

  #iqitmegamenu-mobile
  .mobile-menu__links-list-li > a.text-reset:only-child {
    display: block;
    padding-left: 0.75rem;
  }

  #iqitmegamenu-mobile
  .mobile-menu__links-list-li > a.text-reset:only-child::after {
    content: "";
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    border-bottom: 1px solid #ececec;
  }
}

/* IQIT mobile drawer follows the native Warehouse header geometry. */
@media (max-width: 991.98px) {
  /* #header owns normal geometry; #mobile-header-sticky owns sticky geometry. */
  #mobile-header {
    position: static !important;

    /* Current Warehouse mobile-icon color token. */
    --edfo-mobile-menu-toggle-color: #2b2a28;
  }

  #_mobile_iqitmegamenu-mobile {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;

    /* Legacy fallback first; svh wins where supported. */
    height: calc(100vh - 100%) !important;
    height: calc(100svh - 100%) !important;
  }

}

/* Keep touch overscroll inside the native IQIT drawer. */
@media (max-width: 991.98px) and (pointer: coarse) {
  #_mobile_iqitmegamenu-mobile {
    overscroll-behavior-y: contain;
  }
}

/* ED Front Office — CMS-backed mobile utility footer presentation. */
@media (max-width: 991.98px) {
  #iqitmegamenu-mobile .edfo-mobile-menu-utility-footer {
    display: flex;
    align-items: center;
  }

  #iqitmegamenu-mobile .edfo-mobile-menu-utility-links {
    align-items: stretch;
  }

  /* Preserve native DOM for theme.js; hide only its presentation. */
  #iqitmegamenu-mobile
  .edfo-mobile-menu-utility-footer
  .mobile-menu__language-currency,
  #iqitmegamenu-mobile
  .edfo-mobile-menu-utility-footer
  .mobile-menu__user {
    display: none !important;
  }

  #iqitmegamenu-mobile .edfo-mobile-menu-utility-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0 !important;
    min-width: 0;
    padding: 0 0.75rem;
    line-height: 1.25;
  }

  #iqitmegamenu-mobile
  .edfo-mobile-menu-utility-link + .edfo-mobile-menu-utility-link {
    border-left: 1px solid #ececec;
  }
}

/* IQIT submenu scroll affordance — CSS only; native drawer geometry unchanged. */
@media (max-width: 991.98px) {
  #iqitmegamenu-mobile .mobile-menu__submenu--panel.mobile-menu__submenu--active {
    background:
      /* local covers */
      linear-gradient(#fff 30%, rgba(255,255,255,0)) center top,
      linear-gradient(rgba(255,255,255,0), #fff 70%) center bottom,

      /* fixed scroll shadows */
      radial-gradient(
        farthest-side at 50% 0,
        rgba(43,42,40,.10),
        rgba(43,42,40,0)
      ) center top,
      radial-gradient(
        farthest-side at 50% 100%,
        rgba(43,42,40,.10),
        rgba(43,42,40,0)
      ) center bottom;

    /* Keep stacked IQIT panels opaque. */
    background-color: #fff;

    background-repeat: no-repeat;
    background-size:
      100% 28px,
      100% 28px,
      100% 14px,
      100% 14px;
    background-attachment:
      local,
      local,
      scroll,
      scroll;
  }
}

/* =========================================================
   EinEdelstein — Global Footer Newsletter
   ---------------------------------------------------------
   Warehouse / ps_emailsubscription / GDPR remain functional
   sources of truth. This layer owns presentation only.

   >=768px:
   - shared Tablet/Desktop visual contract site-wide
   - compact inner-page geometry by default
   - homepage geometry may override only what differs in ed-home.css

   <768px:
   - shared Mobile form / button / GDPR visual contract site-wide
   - compact inner-page composition by default
   - homepage envelope art direction remains in ed-home.css
   ========================================================= */

/* Newsletter GDPR contrast — global across footer breakpoints/layouts. */
#footer .ed-newsletter .psgdpr_consent_message {
  color: rgb(74 72 68);
}

#footer .ed-newsletter .psgdpr_consent_message a {
  color: rgb(82 72 140);
}

#footer .ed-newsletter form > .mt-2.text-muted {
  opacity: 1;
}

/* GDPR owns the submit disabled state; CSS only presents it. */
#footer .block-newsletter .btn-subscribe:disabled {
  opacity: .6;
  cursor: not-allowed;
}

#footer .block-newsletter .btn-subscribe:not(:disabled) {
  border-left: 1px solid rgba(0, 0, 0, .18);
  cursor: pointer;
}

/* Shared Mobile newsletter form presentation.
   Homepage and inner pages reuse the same native form / CTA / GDPR contract.
   Only homepage envelope geometry remains in ed-home.css. */
@media (max-width: 767.98px) {
  /* Inner pages keep their existing global section composition.
     Balance the native title margins against #footer-container top padding
     without changing total vertical space before the form. */
  body:not(#index) #footer .block-newsletter > h5,
  body:not(#index) #footer .block-newsletter > .h5 {
    margin-top: 0;
    margin-bottom: 30px;
    font-weight: 500;

    /*
     * Keep the real footer heading as the semantic source text, but mirror its
     * Mobile visual presentation with the approved editorial break after “&”.
     * The pseudo-element inherits the native Warehouse typography, so this does
     * not introduce a second title type scale. 2lh reserves exactly two lines.
     */
    position: relative;
    min-height: 2lh;
    color: transparent;
  }

  body:not(#index) #footer .block-newsletter > h5::after,
  body:not(#index) #footer .block-newsletter > .h5::after {
    content: "Schönes &\A ein wenig Funkeln";
    position: absolute;
    inset: 0;
    display: block;
    color: #2b2a28;
    white-space: pre-line;
    text-align: center;
    font-weight: 500;
    pointer-events: none;
  }

  /* Inner pages do not have the homepage envelope object to bound the form. */
  body:not(#index) #footer .block-newsletter > .ps-emailsubscription-block {
    width: 100%;
    max-width: 420px;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
  }

  #footer .block-newsletter .newsletter-input-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(8px, 2vw, 12px);
    width: 100%;
    min-height: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  #footer .block-newsletter .newsletter-input-group:focus-within {
    border-color: transparent;
    box-shadow: none;
  }

  #footer .block-newsletter .newsletter-input-group .input-subscription {
    width: 100%;
    min-width: 0;
    min-height: clamp(48px, calc(40px + 2vw), 56px);
    padding: 0 clamp(0.95rem, calc(0.82rem + 0.55vw), 1.18rem);
    border: 1px solid rgb(111 103 163 / 0.13);
    border-radius: 2px;
    background: rgb(255 255 255 / 0.96);
    box-shadow: 0 2px 8px rgb(32 32 39 / 0.012);
    font-size: 16px;
    color: #2b2a28;
  }

  #footer .block-newsletter .newsletter-input-group .input-subscription::placeholder {
    font-size: 0.88rem;
  }

  #footer .block-newsletter .newsletter-input-group .input-subscription:focus {
    border-color: rgb(111 103 163 / 0.34);
    box-shadow: 0 2px 10px rgb(32 32 39 / 0.025);
    outline: 0;
  }

  #footer .block-newsletter .newsletter-input-group .input-group-append {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  #footer .block-newsletter .newsletter-input-group .btn-subscribe {
    width: 100%;
    min-width: 0;
    min-height: clamp(44px, calc(36px + 2vw), 52px);
    padding: clamp(0.70rem, calc(0.60rem + 0.40vw), 0.86rem) 1rem;
    border: 0;
    border-left: 0;
    border-radius: 2px;
    background: #756da6;
    color: #fff;
    white-space: nowrap;
    font-size: clamp(0.88rem, calc(0.82rem + 0.20vw), 0.98rem);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    transition: none;
  }

  #footer .block-newsletter .newsletter-input-group .btn-subscribe:disabled {
    background: #9e98bd;
    color: #fff;
    opacity: 0.66;
  }

  #footer .block-newsletter
  .ps-emailsubscription-block
  form > .mt-2.text-muted {
    width: 100%;
    max-width: none;
    margin:
      clamp(15px, 4vw, 26px)
      auto
      0 !important;
    margin-bottom: 0;
  }

  #footer .block-newsletter .psgdpr_consent_message {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: clamp(0.78rem, calc(0.74rem + 0.20vw), 0.84rem);
    line-height: 1.46;
    text-align: left;
  }

  #footer .block-newsletter .psgdpr_consent_checkbox_span {
    flex: 0 0 auto;
    margin-top: 0.10rem;
  }

  #footer .block-newsletter .psgdpr_consent_message > span:last-child {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* Shared Desktop + Tablet newsletter presentation.
   The default geometry is the approved compact inner-page composition. */
@media (min-width: 768px) {
  #footer .block-newsletter {
    display: grid;
    grid-template-columns:
      minmax(0, .88fr)
      minmax(0, 1.12fr);
    grid-template-rows: auto;
    column-gap: clamp(2.5rem, 5vw, 3.5rem);
    row-gap: 0;
    align-items: center;
    position: relative;
    padding-top: clamp(1.7rem, 3vw, 2.25rem);
    padding-bottom: clamp(1.7rem, 3vw, 2.25rem);
  }

  #footer .block-newsletter::before {
    content: "";
    position: absolute;
    top: 22%;
    bottom: 22%;
    left: 44%;
    width: 1px;
    background: rgb(111 103 163 / 0.10);
    transform: translateX(-0.5px);
    pointer-events: none;
  }

  #footer .block-newsletter > h5,
  #footer .block-newsletter > .h5 {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    width: 100%;
    max-width: 18ch;
    margin: 0;
    white-space: normal;
    text-align: center;
    font-size:
      clamp(
        1.55rem,
        calc(.65rem + 1.9vw),
        1.85rem
      );
    line-height: 1.08;
    font-weight: 520;
    letter-spacing: -0.018em;
  }

  #footer .block-newsletter > .ps-emailsubscription-block {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    width: 100%;
    max-width: 470px;
    min-width: 0;
  }

  #footer .block-newsletter .newsletter-input-group {
    display: flex;
    width: 100%;
    min-height: 48px;
    margin: 0;
    border: 1px solid rgb(111 103 163 / 0.18);
    background: rgb(255 255 255 / 0.88);
    box-shadow: 0 3px 14px rgb(32 32 39 / 0.025);
  }

  #footer .block-newsletter .newsletter-input-group:focus-within {
    border-color: rgb(111 103 163 / 0.34);
    box-shadow: 0 3px 14px rgb(32 32 39 / 0.035);
  }

  #footer .block-newsletter .newsletter-input-group .input-subscription {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 48px;
    padding: 0 clamp(.85rem, 1.6vw, 1.05rem);
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: clamp(.88rem, 1.25vw, .94rem);
    color: #2b2a28;
  }

  #footer .block-newsletter .newsletter-input-group .input-subscription:focus {
    box-shadow: none;
  }

  #footer .block-newsletter .newsletter-input-group .input-group-append {
    display: flex;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    margin: 0;
  }

  #footer .block-newsletter .newsletter-input-group .btn-subscribe {
    width: auto;
    min-width: clamp(118px, 14vw, 142px);
    min-height: 48px;
    padding: 0 clamp(.8rem, 1.6vw, 1.15rem);
    border: 0;
    border-left: 1px solid rgb(255 255 255 / 0.22);
    background: #756da6;
    color: #fff;
    white-space: nowrap;
    font-size: clamp(.78rem, 1.1vw, .86rem);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    transition: background-color 160ms ease, opacity 160ms ease;
  }

  #footer .block-newsletter .newsletter-input-group .btn-subscribe:disabled {
    background: #9e98bd;
    color: #fff;
    opacity: .66;
  }

  #footer .block-newsletter .newsletter-input-group .btn-subscribe:not(:disabled):hover,
  #footer .block-newsletter .newsletter-input-group .btn-subscribe:not(:disabled):focus,
  #footer .block-newsletter .newsletter-input-group .btn-subscribe:not(:disabled):focus-visible {
    background: #655d96;
  }

  #footer .block-newsletter
  .ps-emailsubscription-block
  form > .mt-2.text-muted {
    width: 100%;
    max-width: none;
    margin-top: clamp(.6rem, 1vw, .75rem) !important;
    margin-bottom: 0;
  }

  #footer .block-newsletter .psgdpr_consent_message {
    display: flex;
    align-items: flex-start;
    gap: clamp(.4rem, .8vw, .55rem);
    width: 100%;
    margin: 0;
    padding: 0;
    font-size:
      clamp(
        .76rem,
        calc(.58rem + .35vw),
        .82rem
      );
    line-height: 1.46;
    text-align: left;
  }

  #footer .block-newsletter .psgdpr_consent_checkbox_span {
    flex: 0 0 auto;
    margin-top: .08rem;
  }

  #footer .block-newsletter .psgdpr_consent_message > span:last-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  #footer .block-newsletter .psgdpr_consent_message a {
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
  }
}

/* Visible keyboard focus for the native GDPR-controlled checkbox. */
#footer .block-newsletter
.psgdpr_consent_message
input[type="checkbox"]:focus-visible
+ .psgdpr_consent_checkbox_span {
  outline: 2px solid #6f67a3;
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  #footer .block-newsletter .newsletter-input-group .btn-subscribe {
    transition: none;
  }
}

/* =========================================================
   ED Front Office — Mobile Footer Editorial Accordion
   ---------------------------------------------------------
   Presentation only.
   Warehouse owns the native .block-toggle / ._toggled state
   and the existing footer JavaScript. No template/JS changes.
   ========================================================= */
@media (max-width: 767.98px) {
  /* Keep the native accordion blocks, but draw quiet inset dividers
     inside the footer gutter instead of full viewport-width borders. */
  #footer #footer-container-main .block-toggle {
    position: relative;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border: 0;
  }

  #footer #footer-container-main .block-toggle::after {
    content: "";
    position: absolute;
    left: 0.9375rem;
    right: 0.9375rem;
    bottom: 0;
    height: 1px;
    background: rgb(43 42 40 / 0.10);
    pointer-events: none;
  }

  /* Give the first row the same inset upper boundary. */
  #footer #footer-container-main .row > .block-toggle:first-child::before {
    content: "";
    position: absolute;
    left: 0.9375rem;
    right: 0.9375rem;
    top: 0;
    height: 1px;
    background: rgb(43 42 40 / 0.10);
    pointer-events: none;
  }

  /* Variant A: clean, balanced main rows. */
  #footer #footer-container-main
  .block-toggle > .block-title {
    height: 56px;
    min-height: 56px;
    margin: 0;
    padding: 0 0.9375rem;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    width: 100%;

    color: #2b2a28;
    font-size: clamp(0.92rem, calc(0.88rem + 0.20vw), 0.98rem);
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: -0.01em;
  }

  /* Remove Warehouse's old flex-filling line after the title. */
  #footer #footer-container-main
  .block-toggle > .block-title::after {
    content: none;
    display: none;
    border: 0;
  }

  /* Label left, indicator right. */
  #footer #footer-container-main
  .block-toggle > .block-title > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 auto;
    width: 100%;
    margin-right: 0;
  }

  /* Fine editorial chevron using the native state hook. */
  #footer #footer-container-main
  .block-toggle > .block-title > span::after {
    content: "";
    display: block;
    flex: 0 0 auto;

    width: var(--ed-chevron-size);
    height: var(--ed-chevron-size);
    margin-left: 1rem;

    border-right: var(--ed-chevron-stroke) solid currentColor;
    border-bottom: var(--ed-chevron-stroke) solid currentColor;

    font: inherit;
    opacity: var(--ed-chevron-opacity);

    transform: rotate(45deg);
    transform-origin: 50% 50%;
    transition: transform 160ms ease;
  }

  #footer #footer-container-main
  .block-toggle._toggled > .block-title > span::after {
    content: "";
    transform: rotate(225deg);
  }

  /* Keep the native footer surface visually continuous.
     Open content gets symmetric breathing room without a second background layer. */
  #footer #footer-container-main
  .block-toggle > .block-content {
    padding: 0.75rem 0.9375rem;
    background: transparent;
  }

  #footer #footer-container-main
  .block-toggle > .block-content ul {
    margin: 0;
    padding: 0;
  }

  #footer #footer-container-main
  .block-toggle > .block-content li {
    margin: 0;
  }

  /* Child links: full-row touch targets with marker/text on one axis.
     The real Warehouse DOM uses .block-content directly (without .block-links
     on that node), so target the proven native structure. */
  #footer #footer-container-main
  .block-toggle > .block-content ul > li > a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.5rem 0;
    box-sizing: border-box;
    line-height: 1.4;
  }

  #footer #footer-container-main
  .block-toggle > .block-content ul > li > a::before {
    position: static;
    flex: 0 0 auto;
    margin: 0 0.55rem 0 0;
    line-height: 1;
    transform: translateY(-0.5px);
  }

  #footer #footer-container-main
  .block-toggle > .block-content ul > li + li {
    margin-top: 0;
  }

  /* Warehouse ships more space above this footer chapter than below it.
     Balance the native footer background around the accordion group on Mobile. */
  #footer #footer-container-main {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }

  /* The last accordion divider already closes the navigation group. */
  #footer #footer-copyrights {
    border-top: 0;
  }
}

@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  #footer #footer-container-main
  .block-toggle > .block-title > span::after {
    transition: none;
  }
}

/* Accessibility: distinguish links inside newsletter GDPR consent text */
#footer .block-newsletter .psgdpr_consent_message a {
  text-decoration: underline;
  text-underline-offset: 0.12em;
  text-decoration-skip-ink: auto;
}

/* Cart quantity badges — independent from Font Awesome */
.cart-products-count-btn {
  font-family: "ED Manrope", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* Mobile cart quantity badge — measured optical alignment */
#mobile-cart-products-count {
  font-weight: 600;
  line-height: 13px;
  padding-top: 1.25px;
  padding-bottom: 0.75px;
}