main {
  max-width: 980px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem 2.5rem;
}

/* Backlink & Breadcrumb */

.backlink {
  display:inline-block;
  margin:0 0 .5rem 0;
  font-size:.9rem;
  color:#e5e7eb;
  text-decoration:none;
}
.backlink:hover {
  text-decoration:underline;
}

.breadcrumb {
  font-size:.85rem;
  color:#9ca3af;
  margin-bottom:1.2rem;
}
.breadcrumb a {
  color:#e5e7eb;
  text-decoration:none;
}
.breadcrumb a:hover {
  text-decoration:underline;
}
.breadcrumb span {
  margin-right:.2rem;
}
.breadcrumb .active {
  color:#facc15;
}

/* Messages */

.msg {
  border-radius:.7rem;
  padding:.7rem 1rem;
  font-size:.9rem;
  margin-bottom:1rem;
}
.msg-success {
  background:#022c22;
  color:#bbf7d0;
  border:1px solid #15803d;
}
.msg-error {
  background:#450a0a;
  color:#fecaca;
  border:1px solid #b91c1c;
}
.msg-link {
  color:#bbf7d0;
  text-decoration:underline;
}

/* Produkt-Karte */

.product-card {
  background:#020617;
  border-radius:1.5rem;
  box-shadow:0 18px 50px rgba(0,0,0,.65);
  padding:1.5rem 1.5rem 1.8rem;
  margin-top:1rem;
}

/* Layout */

.product-layout {
  display:flex;
  flex-direction:column;
  gap:2rem;
}

@media (min-width: 900px) {
  .product-layout {
    flex-direction:row;
    align-items:flex-start;
  }
  .product-media {
    flex:0 0 48%;
  }
  .product-info {
    flex:1;
  }
}

/* Bildbereich */

.product-media {
  text-align:center;
}

.product-image {
  background:#020617;
  border-radius:1.5rem;
  padding:1rem;
  box-shadow:0 12px 35px rgba(0,0,0,.45);
  max-width:640px;
  margin:0 auto;
}

.product-image img {
  display:block;
  width:100%;
  max-height:380px;
  object-fit:contain;
  border-radius:1.2rem;
  cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

/* Hover-Effekt: leicht größer & „geht mit“ */

.product-image img:hover {
  transform: scale(1.03) translateY(-3px);
  box-shadow:0 18px 55px rgba(0,0,0,.7);
}

.image-hint {
  font-size:.8rem;
  color:#9ca3af;
  margin-top:.5rem;
}

/* Produktinfos */

.product-info h1 {
  margin:0 0 .7rem 0;
  font-size:1.8rem;
}

.long-desc {
  font-size:.98rem;
  line-height:1.6;
  color:#e5e7eb;
  margin-bottom:1.2rem;
}

/* Preisblock */

.price-block {
  margin:1rem 0 .75rem 0;
}

.price {
  font-size:1.6rem;
  font-weight:700;
  color:#facc15;
}

.price-note {
  font-size:.85rem;
  color:#9ca3af;
  margin-top:.15rem;
}

/* Lieferzeit */

.delivery {
  font-size:.85rem;
  color:#e5e7eb;
  margin:.3rem 0 1rem 0;
}

/* Lizenzbox – hübscher */

.license-box {
  margin:1rem 0 1.5rem 0;
  padding:.9rem 1rem;
  border-radius:.9rem;
  background: radial-gradient(circle at top left, #0b1120, #020617);
  border:1px solid #1d283a;
  font-size:.9rem;
  box-shadow:0 10px 30px rgba(15,23,42,.6);
}

.license-header {
  display:flex;
  align-items:flex-start;
  gap:.6rem;
  margin-bottom:.6rem;
}

.license-icon {
  font-size:1.2rem;
  margin-top:.05rem;
}

.license-label {
  font-weight:600;
  color:#e5e7eb;
}

.license-sub {
  font-size:.8rem;
  color:#9ca3af;
}

.license-links {
  margin-top:.25rem;
}

.license-pill {
  display:inline-flex;
  align-items:center;
  padding:.35rem .85rem;
  border-radius:999px;
  border:1px solid #334155;
  background:rgba(15,23,42,.85);
  color:#e5e7eb;
  text-decoration:none;
  font-size:.85rem;
}
.license-pill:hover {
  background:#0f172a;
  border-color:#475569;
}

/* Add-to-cart */

.add-to-cart-form {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.6rem;
  margin-top:.5rem;
}

.qty-label {
  font-size:.9rem;
}

.qty-input {
  width:70px;
  padding:.3rem .4rem;
  border-radius:.4rem;
  border:1px solid #374151;
  background:#020617;
  color:#f9fafb;
  font-size:.9rem;
}

.btn {
  padding:.55rem 1.2rem;
  border-radius:.7rem;
  border:none;
  background:#facc15;
  color:#111827;
  font-weight:600;
  font-size:.95rem;
  cursor:pointer;
}
.btn:hover {
  background:#fde047;
}

/* Bild-Overlay (Lightbox) */

.image-overlay {
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.image-overlay.active {
  display:flex;
}

.image-overlay-backdrop {
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.8);
}

.image-overlay-content {
  position:relative;
  max-width:90vw;
  max-height:90vh;
  z-index:1;
}

.image-overlay-content img {
  display:block;
  max-width:100%;
  max-height:90vh;
  border-radius:1rem;
  box-shadow:0 20px 60px rgba(0,0,0,.7);
}

/* Close-Button im Overlay */

.image-overlay-close {
  position:absolute;
  top:-12px;
  right:-12px;
  width:32px;
  height:32px;
  border-radius:999px;
  border:none;
  background:#facc15;
  color:#111827;
  font-size:1.4rem;
  line-height:1;
  cursor:pointer;
  box-shadow:0 10px 25px rgba(0,0,0,.6);
}
.image-overlay-close:hover {
  background:#fde047;
}
