* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #f6f8fb;
  color: #172033;
  line-height: 1.6;
}

/* Navigatie */

header {
  background: white;
  border-bottom: 1px solid #e6e9ef;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav {
  max-width: 1150px;
  margin: auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 800;
  color: #1677ff;
}

.logo img {
  width: 210px;
  height: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: #344054;
  font-weight: 600;
}

/* Hero */

.hero {
  text-align: center;
  padding: 90px 20px 75px;
  background: linear-gradient(135deg, #eef6ff, #f8fbff);
}

.hero h1 {
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero h1 span {
  color: #1677ff;
}

.hero p {
  max-width: 650px;
  margin: auto;
  color: #667085;
  font-size: 19px;
}

/* Tools */

.tools {
  max-width: 1150px;
  margin: auto;
  padding: 70px 24px;
}

.tools h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 10px;
}

.subtitle {
  text-align: center;
  color: #667085;
  margin-bottom: 40px;
}

/* Zoekveld */

.calculator-search {
  max-width: 500px;
  margin: 0 auto 35px;
}

.calculator-search input {
  width: 100%;
  padding: 15px 20px;
  font-size: 16px;
  border: 1px solid #d0d5dd;
  border-radius: 14px;
  background: white;
  color: #172033;
  outline: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: 0.2s ease;
}

.calculator-search input:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

#zoekStatus {
  text-align: center;
  margin-top: 10px;
  color: #667085;
  font-size: 14px;
  min-height: 1em;
}

/* Kaarten */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: white;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid #e6e9ef;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
  transition: 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.icon {
  font-size: 36px;
  margin-bottom: 14px;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.card p {
  color: #667085;
  font-size: 15px;
}

.coming {
  display: inline-block;
  margin-top: auto;
  padding: 6px 10px;
  border-radius: 20px;
  background: #eef6ff;
  color: #1677ff;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  align-self: flex-start;
}

.auto-knoppen {
  display: flex;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}

.auto-knoppen .coming {
  margin-top: 0;
}

/* Twee calculators naast elkaar */

.calculator-rij {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 25px;
  padding: 0 24px;
}

.calculator-rij .tools {
  max-width: none;
  margin: 0;
  padding: 40px 0 70px;
  width: 100%;
}

.calculator-rij .calculator {
  width: 100%;
}

/* Calculator */

.calculator {
  max-width: 650px;
  margin: 35px auto 0;
  padding: 35px;
  background: white;
  border: 1px solid #e6e9ef;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.calculator label {
  display: block;
  margin-top: 18px;
  margin-bottom: 7px;
  font-weight: 700;
  color: #344054;
}

.calculator input,
.calculator select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  transition: 0.2s ease;
}

.calculator input:focus,
.calculator select:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.checkbox-optie {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 5px;
  cursor: pointer;
}

.checkbox-optie input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
}

.calculator button {
  width: 100%;
  margin-top: 25px;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: #1677ff;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.calculator button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 119, 255, 0.25);
}

.resultaat {
  margin-top: 25px;
  padding: 20px;
  border-radius: 12px;
  background: #f6f8fb;
  text-align: center;
  color: #667085;
}

/* Deelknoppen */

.deel-knoppen {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.deel-knoppen button {
  padding: 13px 22px;
  border: none;
  border-radius: 10px;
  background: #1677ff;
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.deel-knoppen button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 119, 255, 0.25);
}

#deelMelding {
  text-align: center;
  margin-top: 15px;
  color: #667085;
  font-weight: 600;
}

footer {
  text-align: center;
  padding: 30px 20px;
  border-top: 1px solid #e6e9ef;
  color: #667085;
  background: white;
}

/* Naar boven knop */

#naarBoven {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #1677ff;
  color: white;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(22, 119, 255, 0.3);
  display: none;
  z-index: 100;
}

#naarBoven:hover {
  transform: translateY(-3px);
}

/* Mobiel */

@media (max-width: 850px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .calculator-rij {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 550px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 65px 20px;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}