/**
 * customers_grid.css
 * Branchen/Kunden Grid mit Hintergrundbildern
 * Upload nach: /media/css/customers_grid.css
 */

.customers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.customer-card {
  position: relative;
  padding: 3rem 2rem;
  border: 2px solid var(--line);
  border-radius: 15px;
  text-align: center;
  transition: all 0.4s;
  overflow: hidden;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.customer-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.12;
  z-index: 0;
  transition: opacity 0.4s, transform 0.4s;
}

.customer-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.customer-card:hover .customer-card-bg {
  opacity: 0.20;
  transform: scale(1.1);
}

.customer-card-content {
  position: relative;
  z-index: 2;
}

.customer-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s;
  filter: drop-shadow(0 4px 12px rgba(23, 86, 140, 0.3));
}

.customer-card:hover .customer-icon {
  transform: scale(1.15);
}

.customer-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.customer-detail {
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.customer-card:hover {
  border-color: var(--gold);
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(23,86,140,0.15);
}

.customer-card:hover .customer-detail {
  max-height: 200px;
}

@media (max-width: 1200px) {
  .customers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .customers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .customers-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .customer-card {
    padding: 2.5rem 2rem;
    min-height: 220px;
  }

  .customer-icon {
    display: none;
  }

  .customer-title {
    font-size: 1.2rem;
  }

  .customer-detail {
    max-height: none;
  }
}
