/* ============ Kaufprozess Layout ============ */

/* Hauptbereich */
main {
  width: 100%;
  margin: 0 auto;
  text-align: left;
  padding: 13px;
}

.einzelbild {
  margin-top: 30px;
}
.einzelbild img {
  width: 300px;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 10px;
}

.zurueck-link {
  margin: 20px 0;
  font-size: 1.1em;
}

.rot {
  color: #d00000;
  font-weight: bold;
}

/* Header mit Produktbild-Overlay */
.produkt-header {
  position: relative;
  text-align: center;
}
.produkt-header .header-image {
  width: 100%;
  display: block;
}
.produkt-header .slideshow-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.produkt-header .slideshow-overlay img {
  max-height: 80%;
  max-width: 80%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.produkt-header::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Dialog Overlay */
.dialog-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.dialog-box {
  background: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-align: center;
  max-width: 90%;
  box-sizing: border-box;
}
.dialog-box p { margin-bottom: 15px; }
.dialog-box button {
  padding: 8px 16px;
  border: none;
  background: #d00000;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}
.dialog-box button:hover { background: #a00000; }

/* Alternative Zahlung Hinweis */
#alternative-zahlung {
  margin-top: 20px;
  padding: 15px;
  border: 1px dashed #aaa;
  border-radius: 8px;
  background: #f9f9f9;
}
#alternative-zahlung .kontakt-link {
  color: #aa0000;
  font-weight: bold;
  text-decoration: none;
}
#alternative-zahlung .kontakt-link:hover {
  text-decoration: underline;
}

/* ---- Mini-Produkt neben den Buttons ---- */
.purchase-wrap {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.mini-product {
  width: 50%;
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.mini-product .mini-thumb {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #f7f6f4;
}
.mini-product .mini-thumb img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}
.mini-product .mini-meta {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #333;
}
.mini-product .mini-title {
  font-weight: 700;
  margin-bottom: 2px;
}
.mini-product .mini-sub {
  font-size: 0.86rem;
  color: #666;
}
.mini-product .mini-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 1.2rem;
  text-decoration: underline;
  font-weight: bold;
}

/* Amazon-Style Mini-Galerie in der Karte */
.mini-gallery {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-top: 8px;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.mini-gallery img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
}
.mini-gallery img:hover {
  border-color: #d00000;
}

/* Mobile: untereinander */
@media (max-width: 640px) {
  .mini-product { width: 80%; min-width: 150px; }
  #kaufen-section { flex: 1 1 300px; }
}

/* Buttons */
.buy-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:12px; }
.btn { padding:.65rem 1rem; border:none; border-radius:10px; cursor:pointer; font-weight:600; }
.btn-paypal { background:#0070ba !important;padding: 5px !important;font-size: 1.3rem !important;color:#ffffff !important;}
.btn-invoice { background:#ffd140 !important;padding: 5px !important;font-size: 1.3rem !important;}; }
.info-note { font-size:0.9em; color:#555; margin:10px 0 0; }

/* Artikelinfos sichtbar halten */
.artikel-info { display: block !important; }

/* ---------------- LIGHTBOX ---------------- */
.lb {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  display: none;
  z-index: 9999;
  padding: 4vh 3vw;
}
.lb.open { display: block; }

.lb-dialog {
  background: #fff;
  border-radius: 12px;
  max-width: 1100px;
  margin: 0 auto;
  height: 92vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  overflow: hidden;
}

.lb-close {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 28px;
  line-height: 1;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  z-index: 10;
}

/* Hauptbereich (Bild/Video/Iframe) */
.lb-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  margin: 0;
  padding: 10px;
}
.lb-main img,
.lb-main video,
.lb-main iframe {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  object-fit: contain;
}
.lb-cap {
  text-align: center;
  color: #555;
  font-size: .9rem;
  margin: 6px 0;
}

/* Thumbnails horizontal unten */
.lb-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
  border-top: 1px solid #eee;
  justify-content: flex-start;
  background: #fafafa;
}
.lb-thumbs img {
  height: 100px;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 8px;
  flex-shrink: 0;
}
.lb-thumbs img.active {
  border-color: #d00000;
}

/* Scrollbar Styling */
.lb-thumbs::-webkit-scrollbar {
  height: 8px;
}
.lb-thumbs::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}


.mini-video {
  margin-top: 10px;
  border-radius: 8px;
  overflow: hidden;
}
.mini-video iframe {
  width: 100%;
  height: 230px;
  border: none;
  border-radius: 8px;
}
 
#artikel-hinweis{
  color: #d00000;
}

.mini-product .mini-link {
  color: #555;  /* Standardfarbe */
  text-decoration: none;  /* Verhindert die Unterstreichung */
  position: relative; /* Benötigt für das Positionieren des zusätzlichen Textes */
  transition: color 0.3s ease;
   padding-bottom:20px;
}

.mini-product .mini-link:hover {
  color: #aa00aa;  /* Farbe beim Hover */
}

.mini-product .mini-link::after {
  content: "Mehr Infos";  /* Der Text, der angezeigt werden soll */
  position: absolute;
  top: 100%;  /* Positioniert den Text unterhalb des Links */
  left: 0;
  width: 100%;
  color: #aa00aa;
  font-size: 1em;
  visibility: hidden;  /* Der Text ist standardmäßig unsichtbar */
  opacity: 0;
  transition: visibility 0s, opacity 0.3s ease-in-out;  /* Sanfte Anzeige des Textes */
}

.mini-product .mini-link:hover::after {
  visibility: visible;  /* Zeigt den Text beim Hover an */
  opacity: 1;  /* Macht den Text sichtbar */
}