.tab-gallery {
  max-width: 900px;
  margin: auto;
}

.gallery-main img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 Spalten */
  gap: 12px;
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
}

.thumb:hover,
.thumb.active {
  opacity: 1;
  border: 2px solid #95c11e;
}

@media (max-width: 992px) {
  .gallery-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .gallery-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* 🔲 Grid Container */
.reference-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* 🔳 Einzelkarte */
.reference-card {
  position: relative;
  flex: 1 1 calc(50% - 10px); /* 2 Spalten */
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
}

/* 📱 Mobile: 1 Spalte */
@media (max-width: 768px) {
  .reference-card {
    flex: 1 1 100%;
  }
}

/* 🖼️ Bild */
.reference-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* 🔍 Hover Zoom */
.reference-card:hover img {
  transform: scale(1.05);
}

/* 🌑 Overlay */
.reference-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: 0.3s;
}

.reference-card:hover::after {
  opacity: 1;
}

/* 🏷️ Label */
.reference-label {
  position: absolute;
  bottom: 10px;
  left: 15px;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  z-index: 2;
}

.reference-text {
  border-top: 1px solid #eee;
  padding-top: 20px;
  font-size: 15px;
  line-height: 1.6;
}

.reference-text ul {
  padding-left: 20px;
  margin-top: 10px;
}