/* Algemene reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  margin: 0;
  padding: 0;
}

header {
  background: #f4f4f4;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 400px) {
  nav ul {
    align-items: center;
  }

  nav a {
    padding: 8px 10px;
    font-size: 18px;
  }
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
  background-color: #333;
  color: #fff;
}

nav a.active {
  background-color: #333;
  color: #fff;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo {
  width: 300px;
  height: auto;
  margin-bottom: 20px;
}

h1 {
  font-size: 28px;
  margin-bottom: 20px;
}

p {
  max-width: 600px;
  margin-bottom: 30px;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

@media (max-width: 450px) {
  .buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .button {
    width: 80%;
    text-align: center;
  }
}

.button {
  text-decoration: none;
  padding: 10px 20px;
  border: 2px solid #333;
  color: #333;
  font-weight: bold;
  border-radius: 5px;
  transition: 0.3s;
}

.button:hover {
  background: #333;
  color: #fff;
}

/* Formulier styling */
form {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  text-align: left;
}

form input[type="text"],
form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  color: #333;
}

form textarea {
  resize: vertical;
}

form input[type="submit"] {
  background-color: black;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  max-width: 100px;
  align-self: flex-end;
}

form input[type="submit"]:hover {
  background: #333;
  color: #fff;
}

/* Footer */
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  background-color: #f4f4f4;
  border-top: 1px solid #333;
  font-size: 14px;
  color: #333;
  padding: 0 20px;
}

/* Diensten-sectie */
.services {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  margin: 20px auto;
  max-width: 600px;
  transition: all 1s ease;
}

.service-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
}

.service-item p {
  margin: 0 10px;
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
}

.service-item,
.tooltip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #333;
  padding: 15px;
  width: 90%;
  max-width: 500px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9;
}

.service-item {
  border-radius: 8px;
  height: 120px;
  transition: margin-bottom 0.3s ease;
  cursor: pointer;
}

.tooltip {
  height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  padding: 0.6rem;
  transition: all 0.3s ease;
  font-weight: bold;
  text-align: center;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
}

.tooltip p {
  margin: 0 10px;
  flex: 1;
  text-align: center;
  font-size: 12px;
}

.service-item:hover {
  border-bottom-right-radius: 0px;
  border-bottom-left-radius: 0px;
  border-bottom: none;
}

.service-item:hover + .tooltip {
  height: 60px;
  opacity: 1;
  margin-bottom: 1rem;
  margin-top: 0rem;
}

@keyframes yo {
  0% {
  }
  30% {
    transform: rotate3D(-1, 1, 0.1, 10deg) scale(1.05);
  }
  50% {
    transform: rotate3D(1, -1, 0.1, 10deg) scale(1.05);
  }
  100% {
  }
}
