.produkt-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  padding: 20px;
  margin-left: 100px;
  margin-right: 100px;
  box-sizing: border-box;
}

.produkt{
  background: #f4f6f8;
  padding: 15px;
  padding-bottom: 40px;
  border-radius: 8px;
  border: 1px solid rgb(87, 87, 87);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  cursor: pointer;
  opacity: 0;
  animation: productFadeIn 0.35s ease forwards;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.produkt:hover{
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

@keyframes productFadeIn{
  from{
    opacity: 0;
    transform: translateY(6px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

.produkt-bild{
  position: relative;
  width: 100%;
  aspect-ratio: 62 / 88;
  height: auto;
  overflow: hidden;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.produkt-bild img{
  border-radius: 10px;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: auto;
  transition: transform 0.35s ease;
}

.produkt:hover .produkt-bild img{
  transform: scale(1.05);
}

.produkt-box{
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
  border-radius: 12px;
  padding: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
  will-change: transform;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.produkt-box:hover{
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.14);
}

@media (hover: none){
  .produkt-box:active{
    transform: scale(0.97);
    transition: transform 0.1s ease;
  }
}

.produkt-preis-badge{
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ffcc00;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.85rem;
}

.produkt-preis{
  font-weight: 600;
  font-size: 1.1rem;
  opacity: 0.8;
}

.lager-gruen{
  color: #1aa33c;
  font-weight: bold;
}

.lager-rot{
  color: #d43f3f;
  font-weight: bold;
}

.warenkorb-btn,
.merken-btn{
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.warenkorb-btn{
  background: #2e89ff;
  color: white;
}

.merken-btn{
  background: #eeeeee;
}

/* ===============================
   MODERNE PAGINATION
=============================== */

#pagination{
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

#pagination button{
  min-width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

#pagination button:hover:not(.active):not(:disabled){
  background: #f0f0f0;
}

#pagination button.active{
  background: orange;
  color: white;
  font-weight: bold;
  border-color: orange;
}

#pagination button:disabled{
  opacity: 0.4;
  cursor: default;
}

.pagination-ellipsis{
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn{
  from{ opacity: 0; }
  to{ opacity: 0.5; }
}

@media (max-width: 700px){
  #pagination{
    gap: 8px;
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 15%,
      black 85%,
      transparent 100%
    );
  }

  #pagination button{
    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      filter 0.25s ease;
  }

  #pagination button.active{
    opacity: 1;
    filter: none;
    transform: scale(1.05);
    z-index: 2;
  }

  #pagination .page-dist-1{
    opacity: 0.65;
    filter: blur(0.4px);
  }

  #pagination .page-dist-2{
    opacity: 0.35;
    filter: blur(0.8px);
  }

  #pagination .page-dist-3,
  #pagination .page-dist-4,
  #pagination .page-dist-5{
    opacity: 0.15;
    filter: blur(1.2px);
    transform: scale(0.9);
    pointer-events: none;
  }
}

@media (max-width: 600px){
  #pagination{
    max-width: 100%;
    overflow: hidden;
  }
}

.pagination-fade{
  position: relative;
}

.pagination-fade::before,
.pagination-fade::after{
  content: "";
  position: absolute;
  top: 0;
  width: 40px;
  height: 100%;
  pointer-events: none;
}

.pagination-fade::before{
  left: 0;
  background: linear-gradient(to right, white 0%, transparent 100%);
}

.pagination-fade::after{
  right: 0;
  background: linear-gradient(to left, white 0%, transparent 100%);
}

#filter-reset:hover{
  background: rgb(54, 245, 28);
  transform: translateY(-2px);
  text-decoration: underline;
  text-decoration: bold;
}

#filter-reset:active{
  transform: scale(0.96);
}

#filter-reset.clicked{
  background: rgb(102, 255, 82);
}

@media (max-width: 600px){
  .slide-left{
    animation: slideLeft 0.35s ease;
  }

  .slide-right{
    animation: slideRight 0.35s ease;
  }

  @keyframes slideLeft{
    from{
      opacity: 0;
      transform: translateX(-12px);
    }
    to{
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes slideRight{
    from{
      opacity: 0;
      transform: translateX(12px);
    }
    to{
      opacity: 1;
      transform: translateX(0);
    }
  }
}

/* ============================
   SKELETON LOADER
============================ */

.loading .produkt{
  background: linear-gradient(
    90deg,
    #eee 25%,
    #f5f5f5 37%,
    #eee 63%
  );
  animation: shimmer 1.4s infinite;
  min-height: 260px;
}

@keyframes shimmer{
  0%{ background-position: -400px 0; }
  100%{ background-position: 400px 0; }
}

@keyframes skeletonFadeIn{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

@keyframes skeletonShimmer{
  from{ background-position: 200% 0; }
  to{ background-position: -200% 0; }
}

.skeleton-box{
  background: #f2f2f2;
  border-radius: 12px;
  padding: 10px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  position: relative;
  animation: skeletonFadeIn 0.25s ease-out forwards;
}

.skeleton-img{
  height: 140px;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    #e6e6e6 0%,
    #f2f2f2 50%,
    #e6e6e6 100%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s infinite;
}

.skeleton-line{
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    #e6e6e6 0%,
    #f2f2f2 50%,
    #e6e6e6 100%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s infinite;
}

/* ============================
   SCROLL TOP BUTTON
============================ */

#scrollTopBtn{
  position: fixed;
  bottom: 80px;
  right: 30px;
  background: linear-gradient(45deg, #ff6600, #ff9900);
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 20px;
  cursor: pointer;
  display: none;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, background 0.3s ease, opacity 0.3s ease;
  z-index: 9;
  opacity: 0.9;
}

#scrollTopBtn:hover{
  transform: scale(1.15);
  background: linear-gradient(45deg, #ffaa00, #ff5500);
  opacity: 1;
}

.scroll-top-btn{
  position: fixed;
  right: 18px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7a18, #ffb347);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2000;
  box-shadow: 0 10px 22px rgba(0,0,0,0.20);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.scroll-top-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.25);
}

.scroll-top-btn:active{
  transform: translateY(1px);
}

.arrow-up{
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.arrow-up::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  transform: translate(-50%, -30%) rotate(45deg);
  box-sizing: border-box;
}

@media (max-width: 600px){
  .scroll-top-btn{
    width: 44px;
    height: 44px;
    right: 14px;
    bottom: 18px;
  }
}

/* ============================
   PREIS / LAGER / BADGES
============================ */

.produkt:hover .preis-badge{
  transform: scale(1.05);
}

.lager{
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.lager-ok{
  color: #2e7d32;
}

.lager-out{
  color: #c62828;
}

.lager-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.preis-badge{
  position: absolute;
  top: 1px;
  right: 10px;
  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 5px 9px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  z-index: 30005 !important;
  transform: translateY(4px);
  align-self: flex-start;
}

.produkt-box:hover .preis-badge{
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.rarity-badge{
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
  z-index: 30005 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s ease;
}

.produkt-box:hover .rarity-badge{
  transform: translateY(-1px) scale(1.03);
}

.rarity-common{
  background: linear-gradient(45deg, #b0b0b0, #d6d6d6);
  color: #333;
}

.rarity-rare{
  background: linear-gradient(45deg, #3b82f6, #60a5fa);
}

.rarity-ultra{
  background: linear-gradient(45deg, #8b5cf6, #c084fc);
}

.rarity-legendary{
  background: linear-gradient(45deg, #f59e0b, #facc15);
  animation: glow 1.8s infinite alternate;
}

@keyframes glow{
  from{
    box-shadow: 0 0 8px rgba(250,204,21,0.6);
  }
  to{
    box-shadow: 0 0 16px rgba(250,204,21,1);
  }
}

.rarity-platin{
  background: linear-gradient(
    135deg,
    #8f9aa3 0%,
    #dfe6eb 25%,
    #ffffff 40%,
    #c9d3da 55%,
    #a8b4be 70%,
    #eef3f7 85%,
    #8f9aa3 100%
  );
  color: #2a2a2a;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.25),
    inset 0 1px 1px rgba(255,255,255,0.9),
    inset 0 -1px 2px rgba(0,0,0,0.15);
}

.rarity-platin::after{
  content: "";
  position: absolute;
  inset: -10% -30%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.8) 50%,
    transparent 100%
  );
  transform: rotate(20deg) translateX(-40%);
  animation: platinShine 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes platinShine{
  0%{ transform: rotate(20deg) translateX(-45%); opacity: 0; }
  20%{ opacity: 0.65; }
  55%{ opacity: 0.75; }
  100%{ transform: rotate(20deg) translateX(45%); opacity: 0; }
}

.produkt:has(.rarity-platin) .produkt-box{
  box-shadow:
    0 0 18px rgba(210,220,230,0.45),
    0 8px 24px rgba(0,0,0,0.35);
}

.produkt:has(.rarity-platin) .produkt-box:hover{
  box-shadow:
    0 0 30px rgba(235,242,248,0.9),
    0 14px 36px rgba(0,0,0,0.5);
}

.produkt:has(.rarity-legendary) .produkt-box{
  box-shadow:
    0 0 18px rgba(250,204,21,0.35),
    0 8px 24px rgba(0,0,0,0.35);
}

.produkt:has(.rarity-legendary) .produkt-box:hover{
  box-shadow:
    0 0 30px rgba(250,204,21,0.65),
    0 14px 36px rgba(0,0,0,0.5);
}

/* ============================
   ADD TO CART / FAVORITE
============================ */

.add-cart-btn{
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  color: #111;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 30010 !important;
  transition: transform .16s ease, background .18s ease, box-shadow .18s ease;
}

@media (min-width: 601px){
  .add-cart-btn:hover{
    transform: scale(1.06);
    background: rgba(255,255,255,0.98);
  }
}

.add-cart-btn.added{
  background: #2ecc71 !important;
  color: #fff;
  animation: cartPop 0.35s ease;
  box-shadow: 0 10px 20px rgba(46,204,113,0.28);
}

.add-cart-btn .icon-cart,
.add-cart-btn .icon-check{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.add-cart-btn .icon-check{
  display: none;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
}

.add-cart-btn .icon-disabled{
  display: none;
}

.add-cart-btn.added .icon-cart{
  display: none;
}

.add-cart-btn.added .icon-check{
  display: inline-flex;
}

.add-cart-btn.is-disabled{
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.6);
  background: rgba(255,255,255,0.95);
  color: #e53935;
  transform: none !important;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  border: 2px solid rgba(229,57,53,0.25);
}

.add-cart-btn.is-disabled:hover{
  transform: none !important;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.95);
}

.add-cart-btn.is-disabled .icon-cart,
.add-cart-btn.is-disabled .icon-check{
  display: none;
}

.add-cart-btn.is-disabled .icon-disabled{
  display: inline-flex;
  animation: disabledPop .35s ease;
}

@keyframes cartPop{
  0%{ transform: scale(1); }
  40%{ transform: scale(1.35) rotate(-10deg); }
  70%{ transform: scale(0.95); }
  100%{ transform: scale(1); }
}

@keyframes disabledPop{
  from{ transform: scale(.7); opacity: 0; }
  to{ transform: scale(1); opacity: 1; }
}

.lager-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.fav-btn{
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.fav-icon{
  font-size: 32px;
  color: #bbb;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.fav-btn:hover .fav-icon{
  transform: scale(1.25);
}

.fav-btn.active .fav-icon{
  color: #ff4d6d;
  animation: heartPop 0.25s ease;
}

@keyframes heartPop{
  0%{ transform: scale(1); }
  50%{ transform: scale(1.4); }
  100%{ transform: scale(1); }
}

/* ============================
   SERIEN / HEADER
============================ */

.serie-nav{
  width: 90%;
  margin-left: 5%;
  margin-top: -6px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 10px;
  align-items: center;
}

.serie-nav-btn{
  height: 38px;
  width: 38px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.7);
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  padding: 0;

  transform: translateX(-1px);

  transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
}

.serie-nav-btn:hover{
  background: rgba(255,255,255,0.95);
  box-shadow: 0 10px 18px rgba(0,0,0,0.10);
  transform: translateY(-1px);
}

.serie-nav-btn:disabled{
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.serie-nav-center{
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
}

.serie-nav-current{
  font-weight: 900;
  letter-spacing: 0.2px;
  background-image: linear-gradient(45deg, #ff7a18, #ffb347);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.serien-header{
  position: relative;
  width: 90%;
  margin-left: 5%;
  margin-top: 20px;
  margin-bottom: 5px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.serientitel{
  position: relative;
  left: 5%;
  margin: 0;
  line-height: 1.1;
  text-align: left;
}

.serie-nav-inline{
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.trennstrich{
  width: 90%;
  position: relative;
  left: 0;
  top: 0;
  margin-top: 3px;
  border: 0;
  border-top: 1px solid rgba(0,0,0,0.35);
}

.active-search-badge{
  font-size: 0.9rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  white-space: nowrap;
}

@media (max-width: 600px){
  .active-search-badge{
    display: none;
  }
}

/* ============================
   SEARCH
============================ */

.search-container{
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 90%;
  margin-left: 5%;
  margin-top: 10px;
}

.search-container label{
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}

.search-container input{
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #dcdcdc;
  background: rgba(255,255,255,0.8);
  font-weight: 650;
  outline: none;
}

.search-container input:focus{
  border-color: rgba(255,122,24,0.75);
  box-shadow: 0 0 0 3px rgba(255,122,24,0.15);
}

@media (max-width: 900px){
  .search-container{
    width: 100%;
  }
}

.search-wrap{
  position: relative;
  width: 100%;
  max-width: 520px;
}

.search-wrap input{
  width: 100%;
  height: 44px;
  padding: 0 44px 0 12px;
  border-radius: 12px;
  border: 1px solid #dcdcdc;
  background: rgba(255,255,255,0.8);
  font-weight: 650;
  box-sizing: border-box;
}

.search-clear{
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #444;
  display: none;
}

.search-clear:hover{
  background: rgba(0,0,0,0.06);
}

.search-wrap.has-text .search-clear{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================
   CONTROLS / FILTER
============================ */

.controls-section{
  position: relative;
  z-index: 5;
  width: 80%;
  margin: 18px 0 10px;
  margin-left: 10%;
}

.controls-toggle{
  position: relative;
  z-index: 6;
  width: 100%;
  border: 1px solid #dcdcdc;
  border-radius: 14px;
  background: transparent;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.08s ease, background 0.2s ease;
  touch-action: manipulation;
}

.controls-toggle:hover{
  background: rgba(255,255,255,0.6);
}

.controls-toggle:active{
  transform: translateY(1px);
}

.controls-chevron{
  font-weight: 900;
  opacity: 0.8;
}

.controls-panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.controls-panel[hidden]{
  display: none !important;
}

.controls-section.open .controls-panel{
  max-height: 600px;
}

.controls-section.open{
  border: 1px solid black;
  padding: 10px;
}

.controls-row{
  margin-top: 10px;
  padding: 12px 0;
  display: grid !important;
  grid-template-columns: 1fr 260px !important;
  gap: 14px !important;
  align-items: start !important;
}

.filter-container{
  min-width: 0;
  position: relative;
  left: 0 !important;
  width: auto !important;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  z-index: 1;
}

.filter-box{
  width: 170px !important;
  margin-bottom: 10px;
  z-index: 1;
}

.filter-toggle{
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #dcdcdc;
  background: rgba(255,255,255,0.7);
  font-weight: 800;
  cursor: pointer;
  z-index: 1;
}

.filter-toggle:hover{
  background: #e5e5e5;
}

.filter-content{
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: white;
  border: 1px solid #ccc;
  border-top: none;
  z-index: 1;
}

.filter-box.active .filter-content{
  display: flex;
}

.filter-box.active .filter-toggle{
  background: #e5e5e5;
}

.sort-container{
  grid-column: 2 !important;
  width: 260px !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 0;
  justify-self: start !important;
}

.sort-container label{
  font-weight: 800;
}

.sort-container select{
  width: 100% !important;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #dcdcdc;
  background: rgba(255,255,255,0.8);
  font-weight: 650;
  cursor: pointer;
  box-sizing: border-box !important;
}

.controls-reset-row{
  grid-column: 2 !important;
  width: 260px !important;
  justify-self: start !important;
}

.filter-reset-btn{
  width: 100% !important;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #cfcfcf;
  background: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  box-sizing: border-box !important;
}

.filter-reset-btn:hover{
  background: #f5f5f5;
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

.filter-reset-btn:active{
  transform: translateY(1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.controls-section #filter-reset{
  margin: 0 !important;
}

.controls-reset-row{
  justify-self: start;
}

.nummer-badge{
  display: none;
}

/* ===============================
   PRODUKTE MAIN
=============================== */

body.produkte-page{
  background:
    radial-gradient(circle at 20% 20%, rgba(255,140,0,0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0,120,255,0.08), transparent 45%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.produkte-main{
  box-sizing: border-box;
  color: #1a1a1a;
  background: transparent;
}

.produkt-grid,
.controls-section,
#pagination,
.serien-header{
  position: relative;
  z-index: 1;
}

/* ===============================
   RESPONSIVE
=============================== */

@media (max-width: 1000px){
  .produkt-grid{
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 900px){
  .controls-row{
    grid-template-columns: 1fr !important;
  }

  .sort-container,
  .controls-reset-row{
    grid-column: 1 !important;
    width: 100% !important;
  }

  .filter-box{
    width: 160px !important;
  }
}

@media (max-width: 600px){
  .produkt-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 10px !important;
  }

  .produkt{
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 8px;
    padding-bottom: 8px;
    border-radius: 10px;
  }

  .produkt-box{
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 8px;
    border-radius: 10px;
  }

  .produkt-bild{
    width: 100%;
    aspect-ratio: 62 / 88;
    border-radius: 10px;
    overflow: hidden;
  }

  .produkt-bild img,
  .produkt-img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .produkt-info{
    padding-top: 8px;
  }

  .produkt-info h3{
    margin: 0 0 6px;
    font-size: 0.92rem;
    line-height: 1.2;
    font-weight: 700;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .lager-row{
    margin-top: 0;
    gap: 6px;
    align-items: center;
  }

  .lager{
    font-size: 0.78rem;
    gap: 5px;
    margin: 0;
    line-height: 1.2;
  }

  .lager-dot{
    width: 7px;
    height: 7px;
  }

  .fav-icon{
    font-size: 26px !important;
  }

  .preis-badge{
    top: 6px;
    right: 6px;
    font-size: 0.72rem;
    padding: 4px 7px;
    transform: none;
  }

.nummer-badge{
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 5;

  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.92);
  color: #1f2937;
  border: 1px solid rgba(0,0,0,0.10);

  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;

  box-shadow: 0 5px 12px rgba(0,0,0,0.14);
}

.add-cart-btn{
  width: 34px;
  height: 34px;
  bottom: 8px;
  right: 8px;

  font-size: 15px;

  background: rgba(255,255,255,0.94);
  color: #1f2937;

  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 6px 14px rgba(0,0,0,0.14);
}

.add-cart-btn:hover,
.add-cart-btn:active{
  background: rgba(255,255,255,1) !important;
}

.add-cart-btn.added{
  background: #22c55e !important;
  color: #fff;
  box-shadow: 0 8px 18px rgba(34,197,94,0.30);
}

.add-cart-btn .icon-check{
  font-size: 15px;
  font-weight: 600;
}

  .rarity-badge{
    display: none !important;
  }

  .produkt-nummer-zeile,
  .produkt-meta,
  .steuer-hinweis{
    display: none !important;
  }

  .controls-section{
    width: calc(100% - 24px);
    margin: 14px auto 10px;
    box-sizing: border-box;
  }

  .controls-section.open{
    box-sizing: border-box;
  }

  .controls-section .controls-row{
    grid-template-columns: 1fr !important;
  }

  .controls-section .sort-container,
  .controls-section .controls-reset-row{
    grid-column: 1 !important;
    width: 100% !important;
    justify-self: stretch !important;
  }

  .controls-section .filter-box{
    width: 100% !important;
    left: 0 !important;
  }

  .controls-section,
  .controls-panel,
  .controls-row,
  .filter-container,
  .sort-container,
  .controls-reset-row{
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

@media (max-width: 520px){
  .controls-section{
    width: 94%;
  }

  .filter-box{
    width: 100% !important;
  }
}

/* ===============================
   STATES / MESSAGES
=============================== */

.load-error{
  text-align: center;
  padding: 24px;
}

.load-error p{
  margin-bottom: 8px;
  font-weight: 700;
}

.load-error small{
  display: block;
  margin-bottom: 12px;
  color: #666;
}

.retry-btn{
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.empty-stock-message{
  grid-column: 1 / -1;
  max-width: 900px;
  margin: 60px auto;
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.6;
  color: #333;
  font-weight: 700;
}

.steuer-hinweis{
  font-size: 0.75rem;
  color: #777;
  line-height: 1.2;
}

.fly-img{
  position: fixed;
  z-index: 20000;
  pointer-events: none;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  object-fit: contain;
  transform: translate3d(0,0,0) scale(1);
  transition: transform 650ms cubic-bezier(.2,.9,.2,1), opacity 650ms ease;
  opacity: 1;
  will-change: transform, opacity;
}

.produkt-mobile-legal{
  display: none;
}

@media (max-width: 600px){
  .produkt-mobile-legal{
    display: block;
    margin: 5px 0 0;
    padding-right: 28px;
    font-size: 0.66rem;
    line-height: 1.15;
    color: #6b7280;
    text-align: left;
    font-weight: 600;
  }

  .produkt-mobile-legal a{
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
  }
}

@media (max-width: 600px){
  .search-container{
    width: 100% !important;
    margin-left: 0 !important;
    box-sizing: border-box;
  }

  .search-wrap{
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .search-wrap input{
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
}

.seo-divider{
  width:min(1220px, 92vw);
  margin:42px auto 24px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:22px;
}

.seo-divider span{
  height:1px;
  background:rgba(0,0,0,0.16);
}

.seo-divider i{
  font-style:normal;
  color:#c7923e;
  font-size:0.85rem;
  opacity:0.9;
}

.seo-text{
  width:min(1220px, 92vw);
  margin:0 auto 48px;
  padding:34px clamp(24px, 7vw, 86px);
  box-shadow:0 18px 42px rgba(0,0,0,0.035);
  color:#172033;
}

.seo-text h2{
  margin:0 0 16px;
  font-size:clamp(1.45rem, 2vw, 2rem);
  line-height:1.15;
  letter-spacing:-0.03em;
  font-weight:900;
}

.seo-text p{
  max-width:82ch;
  margin:0 0 14px;
  color:rgba(23,32,51,0.82);
  font-size:1rem;
  line-height:1.7;
}

.seo-text p:last-child{
  margin-bottom:0;
}

@media (max-width:700px){
  .seo-divider{
    margin:32px auto 18px;
    gap:14px;
  }

  .seo-text{
    width:min(100vw - 24px, 1000px);
    margin-bottom:36px;
    padding:24px 18px;
    border-radius:18px;
  }

  .seo-text p{
    font-size:0.95rem;
  }
}

@media (max-width: 600px) {
  .filter-toggle,
  #sortierung,
  #liveSearch,
  .filter-reset-btn,
  .empty-reset-btn,
  .pagination button {
    min-height: 44px;
  }

  .controls-row {
    gap: 14px;
  }

  .filter-content label {
    padding: 10px 4px;
  }

  .produkt-box {
    touch-action: manipulation;
  }

  .add-cart-btn,
  .fav-btn {
    min-width: 44px;
    min-height: 44px;
  }
}

.seo-internal-links {
  margin-top: 12px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.seo-internal-links a {
  text-decoration: none;
  margin: 0 4px;
}

.seo-internal-links a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {

  .seo-internal-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0;
    margin-top: 16px;
  }

  .seo-internal-links a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    font-size: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    text-decoration: none;
  }

  /* Erstes Element = Zurück */
  .seo-internal-links a:first-child::before {
    content: "‹";
    font-size: 1.6rem;
  }

  /* Letztes Element = Weiter */
  .seo-internal-links a:last-child::before {
    content: "›";
    font-size: 1.6rem;
  }

  /* Alle anderen verstecken */
  .seo-internal-links a:not(:first-child):not(:last-child) {
    display: none;
  }
}

.extra-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 6px;
  color: white;
  z-index: 2;
}

.badge-low {
  background: #e74c3c;
}

.badge-deal {
  background: #27ae60;
}