/* Grundlayout der Produktseite */
.product-page {
  max-width: var(--maxw, 1280px);
  margin: 0 auto;
  padding: 1rem;
  color: var(--text);
}

/* HERO */
.product-hero h1 {
  text-align: center;
  margin: var(--header-h) 0 1rem;
  color: var(--primary-dark);
}

.hero-content {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap; /* untereinander auf kleinen Screens */
}

.product-img {
  width: min(100%, 480px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius, 12px);
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
  background: var(--panel-2);
  display: block;
}

.product-img-full {
  width: min(100%, 480px);
  object-fit: cover;
  border-radius: var(--radius, 12px);
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
  background: var(--panel-2);
  display: block;
}

.media-gallery-product {
  width: min(100%, 480px);
}

.product-summary {
  flex: 1 1 320px;
  max-width: 520px;
  background: var(--panel);
  padding: 1rem;
  border-radius: var(--radius, 12px);
  box-shadow: 0 6px 16px rgba(0,0,0,.05);
}

.price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 .5rem;
}

.short-desc {
  margin: 0 0 .75rem;
  color: var(--muted);
}

.bullets {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  margin: .75rem 0 1rem;
}
.bullets span {
  padding: .35rem .6rem;
  border: 1px solid var(--panel-2);
  border-radius: 999px;
  font-size: .9rem;
  color: var(--primary-dark);
  background: var(--panel-2);
}

/* Button */
.btn-primary {
  display: inline-block;
  padding: .75rem 1.1rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius, 12px);
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

/* DETAILS */
.product-details {
  margin-top: 2rem;
}

.product-details h2 {
  color: var(--primary-dark);
}

/* Specs-Tabelle */
.specs {
    display: grid;
    gap: 12px;
    margin-top: 12px;
    padding: 8px;
}
.specs-row {
  display: grid; gap: 12px;
  grid-template-columns: 220px 1fr;
  border: 1px solid var(--panel-2);
  border-radius: 14px;
  background: var(--panel);
  position: relative;
  border: 1px solid var(--panel-2);
  padding: 14px 16px 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,.05);
  grid-template-columns: 1fr;           /* mobile: einspaltig */
  row-gap: 8px;
}
.specs-row p { margin: 0; }
.specs-row * { hyphens: auto; }

.specs-row > div:first-child {
  font-weight: 500;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 0;
  display: flex;
  align-items: center;
  column-gap: .5rem;
}
.specs-row > div:last-child{
  margin: 0;
  color: var(--text);
  line-height: 1.45;
}
.specs-row-space {
  margin-bottom: 1rem;
}
.product-details h3 {
  margin-top: 1.5rem;
  margin-bottom: .75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  border-bottom: 1px solid var(--panel-2);
  padding-bottom: .25rem;
}
/* Accordion-Container */
.specs-accordion {
  margin-top: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--panel-2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,.05);
}

/* Kopfzeile */
.specs-accordion > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  cursor: pointer;
  list-style: none;
  background: var(--panel-2);
  color: var(--primary-dark);
  font-weight: 600;
  user-select: none;
}
.specs-accordion > summary::-webkit-details-marker { display: none; }

/* Pfeil-Icon */
.specs-accordion > summary svg {
  width: 20px; height: 20px;
  fill: none; stroke: var(--primary-dark); stroke-width: 2; 
  transform: rotate(-90deg);
  transition: transform .2s ease;
}
.specs-accordion[open] > summary svg {
  transform: rotate(0deg);
}

/* Inhalt */
.specs-accordion .specs {
  padding: .75rem;
}
/* icon */
.tooltip {
  display: inline-block;
  cursor: pointer;
  margin-left: .4rem;
  position: absolute;
  top: 10px;
  right: 12px;
  margin: 0;     
}

.tooltip-icon {
  width: 16px;
  height: 16px;
  width: 16px; height: 16px;
  opacity: .75;
}
.tooltip:hover .tooltip-icon,
.tooltip:focus-within .tooltip-icon {
  opacity: 1;
}
.tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: 220px;
  background: var(--panel-2);
  color: var(--text);
  text-align: left;
  padding: .5rem;
  border-radius: 6px;
  position: absolute;
  z-index: 10;
  top: 50%;
  right: 150%;
  transform: translateZ(60%);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition: opacity .2s ease;
}
.tooltip:hover .tooltip-text,
.tooltip:focus-within .tooltip-text {
  visibility: visible;
  opacity: 1;
} 

@media (max-width: 640px){ .specs-row { grid-template-columns: 1fr; } }

/* GALLERY */
.product-gallery { margin-top: 2rem; }
.product-gallery h2 {
  color: var(--primary-dark);
}
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius, 12px);
  display: block;
  background: var(--panel-2);
}

/* kleine Feinanpassungen mobil */
@media (max-width: 420px){
  .product-page { padding: .75rem; }
}

/* Desktop zweispaltig anordnen */
@media (min-width: 860px){
  .specs { grid-template-columns: 1fr 1fr; }  /* zwei Karten pro Zeile */
}

/* Für einzelne Zeilen weiterhin „Label | Wert“ willst: */
.specs-row.inline{
  grid-template-columns: 220px 1fr;
  align-items: start;
}
@media (max-width: 640px){
  .specs-row.inline{ grid-template-columns: 1fr; }
}
