@supports (overflow: clip) {
    html,
    body {
      overflow-x: clip !important;
    }

    body.no-scroll {
      overflow-x: clip !important;
      overflow-y: visible !important;
      overscroll-behavior: none;
      touch-action: none;
    }
  }

/* Immediate controls; keep focus/checked/open states and meaningful loaders. */
header .navbar,.header-locale-button,.header-locale-button::after,.header-locale-menu,.header-locale-option,
.cookie-consent-button,.cookie-consent-switch,.cookie-consent-switch::after,
.course .box-container .box.product-card,.course .product-gallery__dot::before,
.produktinfo .lite-youtube .lite-youtube__play{transition:none!important}
#custom-alert.cart-added-modal,.cart-added-modal__progress>span{animation:none!important}
.cart-added-modal__progress{display:none!important}
.home-search-section.search-panel-open::before,.home-search-section.mobile-search-open,
.cookie-consent-banner,.cookie-consent-modal__backdrop,#custom-overlay{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.cookie-consent-banner,.header-locale-menu,#custom-alert.cart-added-modal{box-shadow:0 3px 12px rgba(15,23,42,.16)!important}
body .course .box-container .box.product-card>img{box-shadow:none!important}
body .course .box-container .box>.image{box-shadow:inset 0 0 0 1px rgba(71,85,105,.1)!important}
.course .box-container .box.product-card{position:relative}
.course .box-container .box.product-card>a.product-card-link{position:absolute!important;inset:0!important;z-index:1;display:block!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;text-decoration:none!important;border-radius:inherit!important}
.course .box-container .box.product-card>a.product-card-link:focus-visible{outline:2px solid var(--accent,#d93e3e)!important;outline-offset:2px!important}
.course .box-container .box.product-card .product-rating-summary,.course .box-container .box.product-card form{position:relative;z-index:2}
.course .box-container .box.product-card a.product-rating-summary{color:inherit;text-decoration:none}
/* A stalled document request must not disable other links or the menu. */
.listing-navigation-pending .course .box-container .box.product-card,.listing-navigation-pending .course .box-container>.product-card-shell,.listing-navigation-pending .pagination a{pointer-events:auto!important}
.cart-added-modal__continue{display:inline-block;margin:0 2rem 1.6rem;padding:.85rem 1.2rem;background:var(--accent,#d93e3e);color:#fff;text-decoration:none;font-weight:700}
.cart-added-modal__continue:focus-visible,.cart-request-message a:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.cart-request-message{margin:.7rem 0;font-size:1.2rem;line-height:1.5;color:#8f1d1d;overflow-wrap:anywhere}
.cart-request-message a{display:inline-block;margin-left:.5rem;color:inherit;text-decoration:underline}
.daily-sale-expired-note{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.daily-sale-badge__title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

  header .header-actions {
    z-index: 2000;
  }

  .header-locale-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 2100;
  }

  .header-locale-button {
    min-height: 3.8rem;
    padding: 0.55rem 1rem;
    gap: 0.7rem;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 999px;
    background: linear-gradient(180deg, #fff 0%, #f8f8f8 100%);
    color: #121212;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    cursor: pointer;
  }

  .header-locale-button::after {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-0.15rem) rotate(45deg);
    transition: transform 0.18s ease;
  }

  .header-locale-button:focus-visible,
.header-locale-switcher.is-open .header-locale-button {
    border-color: rgba(30, 64, 175, 0.38);
    box-shadow: 0 11px 22px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.96);
    transform: translateY(-1px);
    outline: none;
  }

  .header-locale-switcher.is-open .header-locale-button::after {
    transform: translateY(0.1rem) rotate(225deg);
  }

  .header-locale-menu {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    z-index: 2200;
    min-width: 17.5rem;
    padding: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 0.8rem;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.8rem);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }

  .header-locale-switcher.is-open .header-locale-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header-locale-option {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    min-height: 3.8rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.55rem;
    color: #121212;
    font-size: 1.35rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
  }

  .header-locale-option img {
    width: 2.5rem;
    height: 1.7rem;
    flex: 0 0 auto;
    object-fit: cover;
  }

  .header-locale-option:focus-visible {
    background: #eff6ff;
    color: #1e40af;
    transform: translateX(2px);
    outline: none;
  }

  .header-cart-link,
  .cart a {
    position: relative;
    overflow: visible;
  }

  .cart-count-badge {
    position: absolute;
    top: -0.55rem;
    right: -0.35rem;
    min-width: 1.9rem;
    height: 1.9rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: #121212;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(18, 18, 18, 0.22);
    pointer-events: none;
    z-index: 2;
  }

  .header-cart-link .cart-count-badge {
    top: -0.7rem;
    right: -0.55rem;
  }

  .cart a .cart-count-badge {
    top: -0.3rem;
    right: -0.2rem;
  }

  .cart-count-badge[hidden] {
    display: none !important;
  }

  /* The search belongs to the sticky header on every public page. */
  .home-search-section:not(.global-header-search) {
    display: none !important;
  }

  header .global-header-search:not(.search-panel-open):not(.mobile-search-open) {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.7rem var(--page-gutter, clamp(16px, 2.4vw, 28px));
    background: #fff;
    border-top: 1px solid rgba(17, 17, 17, 0.06);
    box-shadow: 0 1px 0 rgba(17, 17, 17, 0.06);
  }

  header .global-header-search:not(.search-panel-open):not(.mobile-search-open) > .global-header-search__inner {
    display: block;
    width: 100%;
    max-width: 52rem;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    overflow: visible;
  }

  header .global-header-search .home-search-form {
    position: relative;
    z-index: 2;
    overflow: visible;
  }

  header .global-header-search .home-search-input-wrap {
    position: relative;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
    padding: 0 1.8rem 0 5.4rem;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 999px;
    overflow: hidden;
  }

  header .global-header-search .home-search-input-wrap > i {
    position: absolute;
    left: 0.7rem;
    width: 3.6rem;
    height: 3.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent, #2347bc);
    color: #fff;
    font-size: 1.45rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
  }

  header .global-header-search #home-search-input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    color: #222;
    font-size: 16px;
    line-height: 1.35;
    -webkit-text-size-adjust: 100%;
  }

  header .global-header-search #home-search-input::placeholder {
    color: #737373;
    opacity: 1;
  }

  header .global-header-search .home-search-results {
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 0;
    right: 0;
    display: none;
    max-height: min(58vh, 36rem);
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 1.2rem;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
    z-index: 1400;
  }

  header .global-header-search .home-search-results.active {
    display: block;
  }

  @media (max-width: 1080px) {
    body header .fa-bars {
      border-radius: 0 !important;
    }

    body header .navbar {
      top: 100%;
      left: 0;
      right: 0;
      width: 100%;
      border-left: 0;
      border-right: 0;
      z-index: 1500;
    }

    body header .header-actions {
      position: static;
      transform: none;
      display: flex;
      align-items: center;
      margin-left: auto;
      gap: 0.8rem;
    }

    body header .header-actions .header-cart-link {
      display: none;
    }

    body header .header-locale-switcher {
      display: inline-flex;
    }

    .header-locale-button {
      min-width: 6.8rem;
      min-height: 4.2rem;
      padding: 0.55rem 1rem;
    }

    .header-locale-menu {
      right: 0;
      min-width: 16.5rem;
    }
  }

  @media (max-width: 520px) {
    body header .container {
      gap: 0.8rem;
    }

    body header .logo img {
      width: clamp(104px, 30vw, 128px);
    }

    .header-locale-button {
      min-width: 5.8rem;
      min-height: 3.8rem;
      padding: 0.45rem 0.78rem;
      gap: 0.55rem;
      font-size: 1.12rem;
    }

    .header-locale-button span {
      display: none;
    }

    body header .fa-bars {
      min-width: 7.8rem;
      min-height: 3.8rem;
      padding: 0 1.25rem;
    }

    .header-locale-menu {
      right: -0.15rem;
    }
  }

.header-locale-switcher:not(.is-open) .header-locale-option img[loading="lazy"] { display: none; }
