.gallery {
  padding: 60px 20px;
}

.gallery h2 {
  text-align: center;
  margin-bottom: 10px;
}

.gallery .subtitle {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  display: block;
  border-radius: 14px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* ===== Sonderanfertigungen: Layout & Typo Konsistenz ===== */

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Page Header */
.page-head {
  max-width: 900px;
  margin: 0 auto 26px;
  text-align: center;
}

.page-title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #05234b;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 1.1rem;
  color: #5b6777;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 780px;
}

/* Hero Bild (falls du’s einheitlich willst) */
.hero-image img {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  height: 420px;
}

/* Intro als ruhige Card */
.service-intro {
  max-width: 900px;
  margin: 26px auto 0;
  padding: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(5, 35, 75, 0.10);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.service-intro p {
  margin: 0;
  color: #475569;
  line-height: 1.75;
  font-size: 1.05rem;
}

/* Galerie-Überschrift konsistent */
.gallery h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: #0b2f5b;
  letter-spacing: -0.2px;
}

.gallery .subtitle {
  color: #5b6777;
  line-height: 1.7;
}

/* Mobile */
@media (max-width: 700px) {
  .page {
    padding: 3.2rem 1rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .hero-image img {
    height: 260px;
  }

  .service-intro {
    padding: 18px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-media img {
    width: 100%;
    height: auto;
  }

  .page .gallery-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px;
  }

  .page .gallery-item {
    width: 100% !important;
  }

  .page .gallery-item img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
  }

}