/* =========================
   ÜBERSCHRIFT & LAYOUT
========================= */
.titel {
  position: sticky;
  top: calc(6vh + 13px);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  padding: 8px 0;
  margin: 0;
  z-index: 1;
  text-align: center;
}

.detail-section {
  max-width: 1200px;
  margin: 64px auto;
  padding: 0 24px;
  
  /* WICHTIG: Damit beim Klick auf den Link der Text nicht unter der Nav klebt */
  scroll-margin-top: calc(6vh + 80px); 
}

/* =========================
   KUNDEN KOPFZEILE & TEXT
========================= */
.detail-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.detail-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  border-radius: 8px; /* Falls Logos einen Hintergrund haben */
}

.detail-header h2 {
  margin: 0;
  font-size: 2.2rem;
}

.detail-info {
  background: white;
  padding: 24px 32px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  margin-bottom: 32px;
}

.detail-info p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

/* =========================
   BILDERGALERIE (PRO KUNDE)
========================= */
.detail-galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.detail-galerie img {
  width: 100%;
  height: 35vh;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.detail-galerie img:hover {
  transform: scale(1.02);
}

/* Trennlinie zwischen Kunden */
.detail-trenner {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(210, 105, 30, 0.3), transparent);
  margin: 80px auto;
  max-width: 800px;
}

/* =========================
   MOBILE ANSICHT
========================= */
@media (max-width: 768px) {
  .titel {
    top: 87px;
  }
  
  .detail-section {
    scroll-margin-top: 110px; /* Mobiler Abstand für Sprungmarken */
    margin: 40px auto;
    padding: 0 16px;
  }

  .detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .detail-header h2 {
    font-size: 1.8rem;
  }

  .detail-info {
    padding: 20px;
  }
  
  .detail-galerie img {
    height: auto; /* Bilder behalten am Handy ihre Proportionen */
  }
}