/* ============================
   GRUNDLAYOUT
============================ */

.model-detail {
  display: grid;
  gap: 2.5rem;
}

/* ============================
   GALERIE
============================ */

.gallery {
  position: relative;
  background: var(--color-bg-secondary);
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--color-accent-primary);
  max-width: 100%;
  overflow: hidden;

}

/* Hauptbildrahmen */
.gallery-main {
  width: 100%;
  height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--color-bg-secondary);
  border-radius: 14px;
}

/* Hauptbild – skaliert, aber nie größer */
.gallery-main img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  cursor: pointer;
  filter: brightness(0.7);
}

/* Thumbnail-Leiste */
.thumbs {
  margin-top: 14px;
  display: flex;
  gap: 10px;

  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-behavior: smooth;
  padding-bottom: 6px;

  flex-wrap: nowrap;
}


.thumbs img {
  flex: 0 0 auto;

  width: 110px;
  height: 90px;

  object-fit: cover;
  object-position: center;

  border-radius: 10px;
  opacity: 0.8;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s;
}

.thumbs img.active {
  opacity: 1;
  border-color: var(--color-accent-primary);
}

.thumbs img:hover {
  opacity: 1;
  border-color: var(--color-accent-primary);
}

/* Galerie-Navigation (kleine Pfeile) */
.nav-btn {
  position: absolute;
  top: 45%;
  background: rgba(0, 0, 0, 0.6);
  color: var(--color-text-bright);
  border: none;
  padding: 10px 14px;
  font-size: var(--fs-medium);
  cursor: pointer;
  border-radius: 50%;
  z-index: 5;
}

.prev {
  left: 10px;
}
.next {
  right: 10px;
}

.nav-btn:hover {
  background: rgba(212, 175, 55, 0.7);
}

.back-button{
  margin-top: 15px;
  text-align: left;
}

/* ============================
   LIGHTBOX / VOLL BILD
============================ */

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
}

.lightbox.active {
  display: flex;
}

/* Bild im Vollbild */
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 18px;
  border: 2px solid var(--color-accent-primary);
  background: #000;
}

/* Lightbox – Buttons */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
  color: var(--color-text-bright);
  border: none;
  cursor: pointer;
  border-radius: 50%;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  font-size: var(--fs-medium);
  padding: 6px 10px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--fs-big);
  padding: 10px 14px;
}

.lightbox-prev {
  left: 25px;
}
.lightbox-next {
  right: 25px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(212, 175, 55, 0.75);
}

/* ============================
   INHALTSBOXEN / TEXTBEREICHE
============================ */

.section-title {
  color: var(--color-text-bright);
  margin-bottom: 10px;
}

/* Standard Info-Kacheln */
.info-box {
  background: #0f0f13;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  padding: 18px 18px 18px 18px;
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.08);
  margin-bottom: 18px;
}

.info-box h3 {
  color: var(--color-accent-primary);
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

/* Listen mit Icons */
.icon-list {
  list-style: none;
  padding-left: 0;
}

.icon-list li {
  margin: 6px 0;
}

.icon-list i {
  color: var(--color-accent-primary);
  margin-right: 6px;
}

/* Hinweistexte */
.note {
  opacity: 0.8;
  font-size: var(--fs-mini);
}

/* Warnbox */
.warning-box {
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--color-warning-dark);
  border: 1px solid var(--color-warning-bright);
  border-radius: 10px;
  color: var(--color-warning-text);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  text-align: left;
}

/* Preisbox */
.price-box {
  background: var(--color-surface-highlighted);
  border: 2px solid var(--color-accent-primary);
  padding: 18px;
  border-radius: 16px;
  margin-bottom: 18px;
}

.price-box h3 {
  color: var(--color-accent-primary);
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.highlight-price {
  font-size: var(--fs-small);
  color: var(--color-text-bright);
}

/* kein Umbruch in Beträgen */
.nowrap {
  white-space: nowrap;
}

/* ============================
   RESPONSIVE
============================ */

@media (max-width: 900px) {
  .gallery-main {
    height: 380px;
  }
}
