:root {
  --white: #FFFFFF;
  --black: #181818;
  --primary: #1289d4;
  --secondary: #8967b1;
  --cardBg: #F3F3F3;
}

body {
  background: var(--bg);
  color: var(--fontColor);
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  margin: 0;
  transition: background 0.3s, color 0.3s;
}

.header {
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  animation: fadeInDown 1s;
}

.hero-img {
  width: 100%;
  max-width: 900px;
  height: 220px;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  margin-top: 0.5rem;
  letter-spacing: 1px;
}

.card-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background: var(--cardBg);
  margin: 2rem auto;
  padding: 2rem;
  flex: 1 1 320px;
  max-width: 400px;
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  animation: fadeInUp 1.2s;
}

.card h2 {
  margin-top: 0;
  color: var(--primary);
}
.card h3 {
  margin-top: 0;
  color: var(--primary);
}

ul {
  padding-left: 1.2rem;
}

.btn {
  position: fixed;
  top: 24px;
  right: 40px;
  height: 56px;
  width: 56px;
  border-radius: 50%;
  border: none;
  color: var(--white);
  background: var(--primary);
  font-size: 1.1rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  z-index: 10;
}
.btn:hover {
  background: var(--secondary);
  transform: scale(1.1);
}

.light-theme {
  --bg: var(--white);
  --fontColor: var(--black);
  --btnBg: var(--primary);
  --btnFontColor: var(--white);
  --cardBg: #F3F3F3;
  --navBg: var(--white);
}

.dark-theme {
  --bg: #23272F;
  --fontColor: var(--white);
  --btnBg: var(--secondary);
  --btnFontColor: var(--white);
  --cardBg: #2C2F36;
  --navBg: #181c22;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px);}
  to { opacity: 1; transform: translateY(0);}
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px);}
  to { opacity: 1; transform: translateY(0);}
}

.problem-full {
  max-width: 900px;
  margin: 2rem auto 0 auto;
  padding: 2rem 2rem 1rem 2rem;
  background: none;
  box-shadow: none;
  border-radius: 0;
  color: var(--fontColor);
}
.problem-full h2 {
  color: var(--primary);
  margin-top: 0;
}

.accordion {
  max-width: 400px;
  margin: 2rem auto;
}

.accordion-btn {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.3s;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-btn.active,
.accordion-btn:hover {
  background: var(--primary);
}

.accordion-arrow {
  transition: transform 0.3s;
  margin-left: 8px;
  font-size: 1.2em;
}

.accordion-btn.active .accordion-arrow {
  transform: rotate(90deg);
}

.accordion-content {
  background: var(--cardBg);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
  border-radius: 0 0 8px 8px;
  padding: 0 1rem;
}

.ideas-full {
  max-width: 900px;
  margin: 2rem auto 0 auto;
  padding: 2rem 2rem 1rem 2rem;
}

.ideas-full h2 {
  color: var(--primary);
  margin-top: 0;
}

.accordion-full {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2rem auto;
}

.solution-full {
  max-width: 900px;
  margin: 2rem auto 0 auto;
  padding: 2rem 2rem 1rem 2rem;
}

.solution-full h2 {
  color: var(--primary);
  margin-top: 0;
}

.main-nav {
  background: var(--navBg, var(--white));
  margin: 0 auto;
  max-width: 900px;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  position: relative;
  top: -18px;
  z-index: 2;
  animation: fadeInDown 1.2s;
}
.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0.5rem 0;
  gap: 2.5rem;
}
.main-nav li {
  margin: 0;
}
.main-nav a,
.main-nav a:visited,
.main-nav a:active,
.main-nav a:focus,
.main-nav a:hover {
  text-decoration: none !important;
  color: var(--primary);
}
.main-nav a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--primary);
  color: var(--white);
}
@media (max-width: 600px) {
  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  .main-nav {
    max-width: 100%;
    border-radius: 0 0 16px 16px;
  }
}

.team-section {
  max-width: 1200px;
  margin: 2rem auto 0 auto;
  padding: 2rem 1rem 1rem 1rem;
  text-align: center;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem 2rem;
  justify-items: center;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 1000px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-member {
  background: var(--cardBg);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 2rem 1.2rem 1.5rem 1.2rem;
  width: 100%;
  max-width: 260px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
}
.team-member:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
}
.team-img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1.1rem;
  background: #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.team-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.5rem 0 0.3rem 0;
  color: var(--primary);
}
.team-desc {
  font-size: 1.05rem;
  color: var(--fontColor);
  margin: 0;
  text-align: center;
  max-width: 90%;
  line-height: 1.6;
  white-space: normal;
}
.team-role {
  font-size: 1.05rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.team-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
}
.team-link:visited,
.team-link:active,
.team-link:focus,
.team-link:hover {
  text-decoration: none !important;
  color: inherit;
}
.team-link h2,
.team-link .team-role,
.team-link .team-desc {
  text-decoration: none !important;
}
@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem 1rem;
  }
  .team-member {
    max-width: 95vw;
    min-height: 300px;
  }
}
@media (max-width: 800px) {
  .team-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .team-member {
    width: 90%;
    max-width: 350px;
  }
}
@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem 0;
  }
  .team-member {
    max-width: 98vw;
    min-height: 220px;
    padding: 1.2rem 0.5rem 1rem 0.5rem;
  }
  .team-img {
    width: 80px;
    height: 80px;
  }
}

.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 2rem auto 4rem auto; 
  padding: 0 1rem; 
}

.team-desc {
  font-size: 1.1rem;
  max-width: 500px;
  line-height: 1.7; 
  white-space: pre-line; 
}

.logboek-section {
  max-width: 900px;
  margin: 2.5rem auto 0 auto;
  padding: 2.5rem 2rem 2rem 2rem;
  background: var(--cardBg);
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  animation: fadeInUp 1.2s;
}
.logboek-section h1 {
  color: var(--primary);
  text-align: center;
  margin-top: 0;
  margin-bottom: 2.5rem;
  font-size: 2.2rem;
  letter-spacing: 1px;
}
.logboek-section section {
  margin-bottom: 2.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #e0e0e0;
}
.logboek-section section:last-child {
  border-bottom: none;
}
.logboek-section h2 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
  margin-top: 0;
}
.logboek-section ul {
  margin: 0 0 0.5rem 0;
  padding-left: 1.2rem;
  font-size: 1.08rem;
  line-height: 1.7;
}
.logboek-section li {
  margin-bottom: 0.4rem;
}
@media (max-width: 700px) {
  .logboek-section {
    padding: 1.2rem 0.5rem;
    border-radius: 12px;
  }
  .logboek-section h1 {
    font-size: 1.3rem;
  }
}

.card-style {
  background: var(--cardBg);
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 2.5rem 2rem 2rem 2rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1.2s;
}
@media (max-width: 700px) {
  .card-style {
    padding: 1.2rem 0.5rem;
    border-radius: 12px;
  }
}

.video-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}
.carousel-img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
  max-width: 600px;
  justify-content: center;
}
.carousel-video {
  display: none;
  width: 340px;
  height: 220px;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  background: #222;
}
.carousel-video.active {
  display: block;
}
.carousel-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.7rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.carousel-btn:hover {
  background: var(--secondary);
  transform: scale(1.1);
}
@media (max-width: 700px) {
  .carousel-img {
    width: 120px;
    height: 120px;
  }
  .carousel-video {
    width: 98vw;
    height: 180px;
  }
  .carousel-wrapper {
    max-width: 98vw;
  }
}

.rectangle-img {
  width: 320px;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
@media (max-width: 700px) {
  .rectangle-img {
    width: 98vw;
    height: 120px;
  }
}

.rotate-left {
  transform: rotate(-90deg);
}

.high-quality-img {
  image-rendering: auto;
  filter: none;
  width: 480px;
  height: auto;
  max-width: 98vw;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
@media (max-width: 700px) {
  .high-quality-img {
    width: 98vw;
    height: auto;
  }
}

.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}
.photo-gallery img {
  max-width: 200px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  object-fit: cover;
}

/* Speciaal voor de eerste foto: altijd landscape verhouding */
.photo-gallery img:first-child {
  transform: rotate(90deg);
  aspect-ratio: unset; /* Optioneel: voorkomt rare verhoudingen */
  width: 320px;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  background: #eee;
  display: block;
}

.slideshow-container {
  position: relative;
  max-width: 400px;
  margin: 2rem auto 1rem auto;
  background: #f8f8fa;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  overflow: hidden;
}

.slide {
  display: none;
  text-align: center;
}

.slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.caption {
  padding: 0.7rem 1rem;
  background: #f0f4ff;
  font-size: 1rem;
  color: #222;
  border-radius: 0 0 12px 12px;
}

.slide-arrow {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  color: #333;
  font-weight: bold;
  font-size: 2rem;
  border: none;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  z-index: 2;
  transition: background 0.2s;
}
.slide-arrow.left { left: 10px; }
.slide-arrow.right { right: 10px; }
.slide-arrow:hover { background: #e0eaff; }

.dots {
  margin-top: 0.5rem;
}
.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 3px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background 0.3s;
}
.dot.active, .dot:hover {
  background-color: #1289d4;
}

.focus-ear {
  object-position: 85% 40%; /* schuift het beeld verder naar rechts en iets naar boven */
  object-fit: cover;
  scale: 1.25;
}
@media (max-width: 700px) {
  .focus-ear {
    object-position: 85% 40%;
    scale: 1.12;
  }
}
