/* === Algemene opmaak === */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 40px;
  background-color: #628aba;
  color: #333;
}

/* === Welkomsttitel === */
.welkom-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin: 2rem auto;
  color: #0a0b0c;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  max-width: 800px;
}

/* === Introsectie === */
#intro {
  background-color: #fdfcf5;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#intro h1 {
  color: #005a9c;
  margin-bottom: 20px;
}

#intro h2 {
  color: #333;
  margin-top: 0;
}

/* === Introblokken per thema === */
.intro-block {
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 10px;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

/* === Scroll-triggered fade-in voor .kaart-segmenten === */
.kaart {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* === Hover-effect voor alle segmenten === */
.segment-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.segment-hover:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
  background-color: #fff8dc;
  z-index: 10;
  position: relative;
}

/* === Thema-kleuren + animatievertraging === */
.klimaattypes    { background-color: #d895e9; animation-delay: 0.2s; }
.seizoenen       { background-color: #eda4a4; animation-delay: 0.4s; }
.temperaturen    { background-color: #b6a4f7; animation-delay: 0.6s; }
.windinvloeden   { background-color: #cee879; animation-delay: 0.8s; }

/* === Tabelstijl === */
table {
  margin: 20px auto;
  border-collapse: collapse;
  width: 100%;
  max-width: 1000px;
  background-color: #ace9d6;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.seizoenen table td:first-child,
.seizoenen table th:first-child {
  width: 30%;
}

.seizoenen table th {
  background-color: #f7dede;
  color: #333;
  font-weight: 600;
  padding: 12px;
  text-align: left;
  border-bottom: 2px solid #cccccc;
}

.seizoenen table td {
  padding: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.seizoenen table tr:last-child td {
  border-bottom: none;
}

.seizoenen table tr:hover {
  background-color: #f0f8ff;
  transition: background-color 0.3s ease;
}

/* === Call-to-action === */
.highlight-call {
  margin-top: 30px;
  font-weight: bold;
  color: #b30000;
  background-color: #ffeaea;
  padding: 12px 20px;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* === Disclaimer boven de knoppen === */
.klimaat-disclaimer-inline {
  text-align: right;
  font-size: 0.85em;
  color: #a90404;
  font-style: italic;
  margin-top: 20px;
  margin-bottom: -10px;
  padding-right: 10px;
  opacity: 0;
  animation: fadeInDisclaimer 1.2s ease forwards;
  animation-delay: 0.5s;
}

@keyframes fadeInDisclaimer {
  to { opacity: 1; }
}

/* === Categorieën === */
#categories {
  text-align: center;
}

.button-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 30px;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 1s;
  opacity: 0;
}

/* === Visuele knoppen === */
.category-button {
  width: 280px;
  height: 180px;
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  overflow: hidden;
  display: inline-block;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 1;
}

.category-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(0, 90, 156, 0.3);
}

.category-button:hover span {
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.5));
  padding-bottom: 18px;
}

.category-button.active {
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.2);
  outline: 2px solid #005a9c;
}

/* === Titel-overlay op knoppen === */
.category-button span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.4));
  color: #ffffff;
  font-weight: bold;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.4;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
  z-index: 2;
  opacity: 1;
  transition: background 0.3s ease, padding 0.3s ease;
}

/* === Fade-in animatie === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Responsive layout === */
@media (max-width: 768px) {
  body {
    padding: 20px;
  }

  .button-grid {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .category-button {
    width: 100%;
    max-width: 320px;
    height: 160px;
  }

  .category-button span {
    font-size: 1.1rem;
    padding: 12px;
  }

  table {
    font-size: 0.95em;
  }

  th, td {
    padding: 8px;
  }

  .klimaat-disclaimer-inline {
    text-align: center;
    padding-right: 0;
    padding-left: 0;
    margin-bottom: 0;
  }
}