* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #f8f9fc;
  color: #1a1a2e;
  line-height: 1.6;
  font-size: 1.05rem;
}

/* ------------------ Header ------------------ */
.site-header {
  background: linear-gradient(135deg, #0f4c75 0%, #1e90ff 100%);
  color: white;
  padding: 3rem 1rem 2rem;
  text-align: center;
}

.header-content h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.header-content p {
  font-size: 1.1rem;
  opacity: 0.92;
}

/* ------------------ Navigatie ------------------ */
.main-nav {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: #0f4c75;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0.5rem 0.9rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: #1e90ff;
  border-bottom: 3px solid #1e90ff;
}

/* ------------------ Main content ------------------ */
.main-content {
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

.section {
  margin-bottom: 3.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  overflow: hidden;
}

.section-inner {
  padding: 2.2rem;
  overflow: hidden;          /* voorkomt uitsteken van afbeeldingen */
}

/* Beperk alle afbeeldingen in de content */
.section-inner img,
.card img,
.gallery img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin: 1rem auto;         /* centreren + wat ruimte */
  object-fit: contain;       /* voorkomt vervorming */
}

/* Gallery specifieke aanpassingen */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin: 1.8rem 0;
  justify-content: center;   /* mooier centreren */
}

.gallery img {
  flex: 1 1 280px;           /* iets kleiner minimum */
  max-width: 420px;          /* voorkomt dat ze té groot worden op grote schermen */
  max-height: 320px;         /* optioneel: hoogte beperken */
  object-fit: contain;       /* of probeer 'cover' als je wilt bijsnijden */
}

/* Full-width afbeeldingen (schema's, grote foto's) */
.full-width-img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  margin: 1.5rem 0;
  display: block;
}

/* Cards */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  margin: 1.8rem 0;
}

.card {
  background: #f9fcff;
  border: 1px solid #e0e8f0;
  border-radius: 10px;
  padding: 1.6rem;
  transition: all 0.25s;
  overflow: hidden;          /* belangrijk: voorkomt uitsteken in cards */
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(30,144,255,0.14);
}

/* Price grid */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.4rem;
  margin-top: 1.8rem;
}

.price-item {
  display: flex;
  flex-direction: column;
}

.price-item label {
  font-weight: 600;
  color: #0f4c75;
  margin-bottom: 0.4rem;
}

.price-input {
  font-size: 1.7rem;
  font-weight: bold;
  text-align: right;
  border: none;
  border-bottom: 2px solid #e0e8f0;
  background: transparent;
  padding: 0.4rem 0;
}

.price-item.total {
  grid-column: 1 / -1;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 3px solid #1e90ff;
}

.price-item.total .price-input {
  font-size: 2.2rem;
  border: none;
}

/* Footer */
.site-footer {
  background: #0f4c75;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 4rem;
  font-size: 0.95rem;
}

/* Responsive aanpassingen */
@media (max-width: 768px) {
  .header-content h1 { font-size: 1.8rem; }
  .nav-container {
    gap: 1.2rem;
    padding: 0.8rem 1rem;
  }
  .main-nav a {
    font-size: 0.97rem;
    padding: 0.45rem 0.7rem;
  }
  .section-inner { padding: 1.6rem 1.2rem; }

  .gallery img {
    flex: 1 1 100%;          /* op mobiel full-width */
    max-width: none;
    max-height: 280px;
  }

  .full-width-img {
    margin: 1rem 0;
  }
}