.product-flex {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.slideshow {
  width: 50%;
  flex-shrink: 0;
}

.slideshow-main {
  width: 45vw;
  max-width: 600px;
  height: 45vw;
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
  overflow: visible; /* Damit Caption unter Hochformatbilder sichtbar ist */
  margin-bottom: 60px; /* Platz für Caption unter Hochformatbildern */
}

.slideshow-main .slide-container {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slideshow-main .slide-container.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.slide-info {
  position: absolute;
  top: 100%; /* Direkt unter dem Bildbereich */
  left: 0;
  right: 0;
  text-align: center;
  padding: 10px;
  margin-top: 10px;
  background: transparent; /* Kein Hintergrund */
}

.slide-caption, .slide-colors {
  margin: 0; /* Kein Margin */
}


/* Abstand nur zwischen Caption und Colors wenn beide vorhanden */
.slide-caption + .slide-colors {
  margin-top: -12px;
}

.slideshow-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 80px; /* Mehr Abstand für Caption */
  min-height: 62px;
  flex-wrap: wrap; /* Umbruch bei zu vielen Thumbs */
  justify-content: flex-start; /* Links ausrichten */
}

.slideshow-thumbs img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 1px solid #ccc;
  border-radius: 0;
  opacity: 0.7;
  transition: opacity 0.2s, border 0.2s;
  flex-shrink: 0; /* Verhindert Verkleinerung der Thumbs */
}

.slideshow-thumbs img:hover,
.slideshow-thumbs img:focus {
  opacity: 1;
  border: 1px solid #000;
}
.slideshow-thumbs img.active {
  opacity: 1;
  border: 1px solid #000;
}

.product-info {
  flex: 1;
}

/* Responsive: untereinander auf kleinen Bildschirmen */
@media (max-width: 800px) {
  .product-flex {
    flex-direction: column;
    gap: 1.5rem;
  }
  .slideshow {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .slideshow-main {
    width: 100%;
    height: 90vw;
    max-height: 400px;
    margin-bottom: 60px; /* Gleich viel Platz wie auf Desktop */
  }
  
  .slideshow-thumbs {
    margin-top: 80px; /* Gleicher Abstand wie auf Desktop */
  }
}

.color-combos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.combo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.combo-colors {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 8px;
}

.color-name {
  display: inline-block;
}

.color-preview-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
}

.color-preview {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100px;
  height: 100px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 1;
  display: block;
  background: #f5f5f5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin: 0 auto 16px auto;
  object-fit: cover;
}

.color-names-svg {
  position: absolute;
  top: 0; left: 0;
  width: 140px;
  height: 140px;
  pointer-events: none;
  z-index: 2;
}

.combo-info, .button-info {
  margin-top: 3rem;
}

button,
.personalize-link {
  display: block;
  margin: 0 auto;
}

/* Button standardmäßig ausblenden */
.combo-block button {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -75%); /* über dem Canvas, mittig */
  z-index: 3;
  opacity: 1;
}

/* Button bei Hover auf Combo-Block anzeigen */
.combo-block:hover button,
.combo-block:focus-within button {
  display: block;
}

.button {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 1rem;
  border: 1px solid #ccc;
  background-color: white;
}

.extra {
  margin-top: 40px;
}

.extra h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

.extra h3 {
  margin-top: 20px;
}

div.size-selector, div.niete-selector {
  margin-top: 20px;
}