.product-section {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  width: min(96vw, 2100px);
  margin: 110px auto 80px;
  justify-content: center;
  align-items: stretch;
  transition: all 0.6s ease;
}

/* Expanded */
.product-section.expanded {
  width: 100%;
  max-width: none;
  margin: 110px 0 80px;
  min-height: calc(100vh - 180px);
  flex-wrap: nowrap;
  padding: 0 5%;
  box-sizing: border-box;
}

/* Produkt */
.product {
  flex: 1 1 calc(25% - 15px);
  min-width: 0;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.6s ease;
}

/* Aktiv / Inaktiv (werden von JS gesetzt) */
.product.inactive {
  opacity: 0.15;
  pointer-events: none;
}

/* Expanded sizing (1/3 Produkt links + 2/3 Infobox rechts) */
.product-section.expanded .product.inactive {
  display: none;
}

/* Verhältnis über flex-grow (stabil trotz gap) */
.product-section.expanded .product.active {
  flex: 1 1 0;
  min-width: 0;
}

.product-section.expanded .info-box {
  flex: 2 1 0;
  min-width: 0;
}

/* Bild */
.product img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Overlay */
.product-overlay {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 5;
  width: calc(100% - 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-overlay h2 {
  margin: 0 0 10px;
  background: rgba(255,255,255,0.85);
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
  max-width: 100%;
}

.product-overlay a {
  background: var(--brand-green);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
}

.product-overlay a:focus-visible {
  outline: 3px solid rgba(76,175,80,0.6);
  outline-offset: 3px;
}

/* Infobox */
.info-box {
  flex: 1 1 100%;
  background: rgba(255,255,255,0.88);
  padding: 30px;
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: slideIn 0.6s ease forwards;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  min-width: 0;
}

.info-box video {
  width: 100%;
  height: auto;
  max-width: 640px;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

/* Text */
#infoText {
  font-size: 1.1rem;
  line-height: 1.5;
}

#infoText p {
  margin-top: 0;
}

.center-link {
  display: block;
  width: fit-content;
  margin: 10px auto 0;
  text-align: center;
  background: var(--brand-green);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.center-link:focus-visible {
  outline: 3px solid rgba(76,175,80,0.6);
  outline-offset: 3px;
}

/* Spec grid (used by injected text) */
.spec-grid {
  max-width: 100%;
  overflow-wrap: break-word;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 30px;
  margin-bottom: 30px;
  box-sizing: border-box;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.two-col h3 {
  margin-top: 0;
}

/* Animation */
@keyframes slideIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 900px) {
  .product-section,
  .product-section.expanded {
    flex-direction: column;
    flex-wrap: nowrap;
    width: 95%;
    margin: 110px auto 80px;
  }

  .product-section.expanded .product.inactive {
    display: none;
  }

  .info-box {
    padding: 18px;
  }

  #infoText {
    font-size: 1.02rem;
  }
}

@media (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .product-overlay h2 {
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .info-box {
    animation: none;
  }
}

/* ===== Imknet Infobox: scanbare Karten & Icon-Listen ===== */
#infoText .info-lead {
  margin-bottom: 6px;
}

#infoText .info-lead .lead {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.25;
}

#infoText .info-lead .sub {
  margin: 0 0 14px;
  opacity: 0.95;
}

#infoText .cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

#infoText .card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

#infoText .card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

#infoText .icon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

#infoText .icon-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

#infoText .icon-list .i {
  width: 1.4em;
  flex: 0 0 1.4em;
  line-height: 1.2;
}

#infoText .card.span-2 {
  grid-column: 1 / -1;
}

@media (max-width: 800px) {
  #infoText .cards {
    grid-template-columns: 1fr;
  }

  #infoText .card.span-2 {
    grid-column: auto;
  }
}