/* Omnipack parity override: loaded last on purpose. */

/* ===============================
   Mobile menu overlay hard fix
   =============================== */
.mobile-menu-overlay-wrapper {
  display: none !important;
}

@media screen and (max-width: 1199px) {
  .mobile-menu-overlay-wrapper {
    display: block !important;
  }

  /* Keep mobile/tablet navbar controls aligned up to 1199px */
  .head {
    display: none !important;
  }

  .top-header .container,
  .navbar .container {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 8px !important;
    padding-right: 4px !important;
  }

  .navbar {
    height: 76px !important;
  }

  .navbar-brand {
    min-height: 60px !important;
  }

  .navbar-brand > img,
  .navbar-brand .navbar-logo {
    height: 40px !important;
  }

  .navbar-header {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 60px !important;
    width: 100% !important;
  }

  .navbar-brand {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 0 0 15px !important;
    margin-right: 0 !important;
  }

  .navbar-toggle {
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-left: auto !important;
    float: right !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 44px !important;
    padding: 8px 6px !important;
  }

  #menu-toggle-button {
    margin-right: 0 !important;
  }

  #menu-toggle-button .hamburger-title {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #menu-toggle-button #menu-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 28px !important;
    min-height: 28px !important;
    vertical-align: middle !important;
  }

  #menu-toggle-button #menu-button::before {
    line-height: 1 !important;
    margin-top: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
  }

  .navbar-toggle {
    display: inline-flex !important;
  }

  /* Hide Bootstrap collapse below 1200, overlay handles mobile nav */
  .navbar-responsive-collapse,
  .navbar-responsive-collapse.in {
    display: none !important;
    visibility: hidden !important;
  }

  #topNav.navbar-fixed-top {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1030 !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
  }

  #topNav.navbar-fixed-top.navbar-transparent {
    background-color: transparent !important;
    box-shadow: none !important;
  }

  #topNav.navbar-fixed-top:not(.navbar-transparent) {
    background-color: #eef2f2 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  }
}

#mobile-menu-overlay {
  position: fixed !important;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  background-color: #eef2f2;
  display: none !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#mobile-menu-overlay.open {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 20px;
}

#mobile-menu-overlay .mobile-menu-nav > a:hover,
#mobile-menu-overlay .mobile-menu-nav > a:focus,
#mobile-menu-overlay .mobile-menu-nav > a.active,
#mobile-menu-overlay .mobile-menu-lang a:hover,
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #f18700 !important;
}

#mobile-menu-overlay .mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 320px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#mobile-menu-overlay .mobile-menu-nav > a {
  display: block;
  width: 100%;
  padding: clamp(12px, 2.3vh, 20px) 12px;
  font-size: clamp(1.02rem, 2.5vh, 1.32rem);
  line-height: 1.2;
  text-align: center;
}

#mobile-menu-overlay .mobile-menu-lang {
  gap: 12px;
  margin-top: 22px;
  font-size: clamp(0.9rem, 1.9vh, 1.05rem);
}

@media screen and (max-height: 760px) {
  #mobile-menu-overlay.open {
    padding-top: 64px;
    justify-content: flex-start;
  }

  #mobile-menu-overlay .mobile-menu-nav > a {
    padding: 11px 10px;
    font-size: 1rem;
  }

  #mobile-menu-overlay .mobile-menu-lang {
    margin-top: 12px;
  }
}

@media screen and (max-height: 640px) {
  #mobile-menu-overlay.open {
    padding-top: 56px;
  }

  #mobile-menu-overlay .mobile-menu-nav {
    max-height: calc(100vh - 86px);
  }

  #mobile-menu-overlay .mobile-menu-nav > a {
    padding: 9px 8px;
    font-size: 0.94rem;
    line-height: 1.15;
  }

  #mobile-menu-overlay .mobile-menu-lang {
    font-size: 0.86rem;
    margin-top: 8px;
  }
}

@media screen and (max-width: 430px) {
  #mobile-menu-overlay .mobile-menu-nav {
    max-width: 92vw;
  }

  #mobile-menu-overlay .mobile-menu-nav > a {
    padding: 12px 10px !important;
    font-size: 1.06rem !important;
    line-height: 1.22 !important;
  }

  #mobile-menu-overlay .mobile-menu-lang {
    font-size: 0.94rem !important;
  }
}

@media screen and (max-width: 600px), (hover: none) and (pointer: coarse) {
  #mobile-menu-overlay .mobile-menu-nav {
    max-width: 96vw !important;
  }

  #mobile-menu-overlay .mobile-menu-nav > a {
    padding: 14px 10px !important;
    font-size: 19px !important;
    line-height: 1.25 !important;
    letter-spacing: 0.2px;
  }

  #mobile-menu-overlay .mobile-menu-lang {
    font-size: 16px !important;
    margin-top: 14px !important;
  }
}

/* ===============================
   Hero carousel responsive parity
   =============================== */
.carousel-hero-wrapper {
  overflow: hidden;
  padding-bottom: 50px;
  margin-bottom: 30px;
}

.carousel-hero-wrapper .carousel {
  margin-bottom: 0 !important;
}

.carousel-hero-wrapper .carousel h3 {
  max-width: 400px;
  font-size: 1rem;
  font-weight: 600;
}

.carousel-hero-wrapper .carousel-caption {
  left: auto;
  right: auto;
  padding-bottom: 60px;
  padding-left: 65px;
  bottom: 20px;
  text-align: left;
  color: #292726;
  text-shadow: none;
}

.carousel-hero-wrapper .carousel .item {
  height: 576px !important;
  background-color: #e8ecf0;
}

/* Keep Bootstrap slide states intact so incoming slides animate correctly */
.carousel-hero-wrapper .carousel-inner > .item.next,
.carousel-hero-wrapper .carousel-inner > .item.prev {
  position: absolute;
  top: 0;
  width: 100%;
}

.carousel-hero-wrapper .carousel-inner > .item > img {
  position: absolute !important;
  top: 0;
  left: 0;
  min-width: 100%;
  max-width: none;
  width: auto;
  height: 576px !important;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .carousel-hero-wrapper .carousel-inner > .item > img {
    left: 50%;
    transform: translateX(-50%);
  }
}

.carousel-hero-wrapper .carousel .carousel-indicators {
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  margin-left: 0;
}

@media screen and (max-width: 991px) {
  .carousel-hero-wrapper .carousel {
    height: 730px !important;
  }

  .carousel-hero-wrapper .carousel .item {
    height: 728px !important;
    background-color: #fff;
  }

  .carousel-hero-wrapper .carousel .carousel-indicators {
    bottom: 300px;
  }

  .carousel-hero-wrapper .carousel-inner .item .carousel-caption {
    top: 420px;
    bottom: auto;
    padding: 0 15px 0 0;
  }

  .carousel-hero-wrapper .carousel h3 {
    max-width: 500px;
  }

  .carousel-hero-wrapper .carousel-inner > .item > img {
    height: 420px !important;
  }
}

@media screen and (max-width: 767px) {
  .carousel-hero-wrapper .carousel {
    height: 630px !important;
    overflow: visible;
  }

  .carousel-hero-wrapper .carousel .carousel-indicators {
    bottom: -45px;
  }

  .carousel-hero-wrapper .carousel-inner .item .carousel-caption {
    top: 360px;
    bottom: auto;
    padding: 0 15px 0 0;
  }

  .carousel-hero-wrapper .carousel-inner > .item > img {
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    height: 350px !important;
    min-width: 0 !important;
    object-fit: cover;
  }
}

@media screen and (max-width: 414px) {
  .carousel-hero-wrapper .carousel {
    height: 510px !important;
  }

  .carousel-hero-wrapper .carousel .item {
    background-color: #fff;
  }

  .carousel-hero-wrapper .carousel-inner .item .carousel-caption {
    top: 230px;
    bottom: auto;
  }

  .carousel-hero-wrapper .carousel-inner > .item > img {
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    height: 220px !important;
    min-width: 0 !important;
    object-fit: cover;
  }
}

/* ===============================
   Product header hotspot fixes
   =============================== */
@media screen and (max-width: 991px) {
  /* Keep both product hotspots independent and inside view on tablets */
  .header-objekte .btn-produkt-shoulder-boxes-pos {
    right: 34vw !important;
    z-index: 12;
  }

  .header-objekte .btn-produkt-shoulder-boxes {
    width: 31vw !important;
    height: 16vw !important;
    min-width: 120px;
    min-height: 62px;
    max-width: 205px;
    max-height: 110px;
  }

  .header-objekte .btn-produkt-folding-cartons-pos {
    right: 2vw !important;
    z-index: 11;
  }

  .header-objekte .btn-produkt-folding-cartons {
    width: 32vw !important;
    height: 27vw !important;
    min-width: 128px;
    min-height: 98px;
    max-width: 220px;
    max-height: 178px;
  }
}

@media screen and (max-width: 767px) {
  /* Mobile: enforce a visible gap so taps do not hit the wrong link */
  .header-objekte .btn-produkt-shoulder-boxes-pos {
    right: 44vw !important;
  }

  .header-objekte .btn-produkt-shoulder-boxes {
    width: 41vw !important;
    height: 20vw !important;
    min-width: 112px;
    min-height: 56px;
    max-width: 182px;
    max-height: 96px;
  }

  .header-objekte .btn-produkt-folding-cartons-pos {
    right: 2vw !important;
  }

  .header-objekte .btn-produkt-folding-cartons {
    width: 40vw !important;
    height: 34vw !important;
    min-width: 116px;
    min-height: 95px;
    max-width: 184px;
    max-height: 150px;
  }
}
