@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Lato', Arial, sans-serif;
  background: linear-gradient(135deg, rgba(224,247,250,0.92) 0%, rgba(255,253,228,0.92) 100%), url('../afbeeldingen/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.fredoka-header {
  font-family: 'Fredoka One', cursive, sans-serif;
  letter-spacing: 1px;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5em;
}
header {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0 0 32px 32px;
  justify-content: center;
  min-height: 180px;
  color: white;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  margin-bottom: 24px;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,180,80,0.45) 0%, rgba(80,156,255,0.55) 80%), url('../afbeeldingen/header-img.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(5px) brightness(0.92);
  z-index: 0;
}

header > * {
  position: relative;
  z-index: 1;
  color: inherit;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
}

li {
    display: inline;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 5px;
    position: relative;
        
}


.nav {
  background: #fff;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 2px 12px rgba(26,156,184,0.08);
  margin-bottom: 32px;
  padding: 0 16px;
  position: relative;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #1a9cb8;
  position: absolute;
  top: 12px;
  right: 18px;
  z-index: 20;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav {
    padding: 0;
    margin-bottom: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 20;
  }
  .nav-toggle {
    display: block;
    margin: 0 auto;
    position: relative;
    top: 0;
    right: 0;
    z-index: 22;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(26,156,184,0.10);
    padding: 4px 16px;
    border: 1px solid #e0e0e0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #1a9cb8;
  }
  .nav nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .nav nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: #fff;
    position: static;
    margin: 0 auto;
    width: 90vw;
    max-width: 400px;
    box-shadow: 0 4px 16px rgba(26,156,184,0.10);
    border-radius: 0 0 16px 16px;
    padding: 0;
    z-index: 21;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.45s cubic-bezier(.4,0,.2,1), opacity 0.3s;
    margin-bottom: 0;
    margin-top: 0;
  }
  .nav nav ul.open {
    max-height: 600px;
    opacity: 1;
    pointer-events: auto;
    margin-top: 8px;
    margin-bottom: 16px;
    transition: max-height 0.55s cubic-bezier(.4,0,.2,1), opacity 0.3s;
  }
  .nav nav ul li {
    display: block;
    margin: 0;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    padding: 16px 0;
    background: none;
    width: 100%;
    text-align: center;
  }
  .nav nav ul li:last-child {
    border-bottom: none;
  }
}



.nav ul {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav li {
  display: inline-block;
}

.nav a {
  display: block;
  color: #1a9cb8;
  background: none;
  text-align: center;
  padding: 10px 18px;
  text-decoration: none;
  font-size: 1.1rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover {
  background: #1a9cb8;
  color: #fff;
}

.nav a.active {
  background: #22b4e1;
  color: #fff;
}

.nav ul li a.active,
.nav ul li a.active:visited {
  background: #22b4e1;
  color: #fff !important;
  border-radius: 6px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(34,180,225,0.10);
}

.subtext {
    font-size: 1rem;
    color: #f0f0f0;
    margin-top: -10px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.ticker-container {
width: 100%;
overflow: hidden;
background: linear-gradient(120deg, rgba(255,180,80,0.45) 0%, rgba(80,156,255,0.55) 80%);
margin-bottom: 5px;
margin-top: 5px;
min-height: 40px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
}

.ticker-wrapper {
  width: 100%;
  background-color: transparent;
  overflow: hidden;
}

@keyframes ticker {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.ticker-transition {
  display: flex;
  white-space: nowrap;
  animation: ticker 15s linear infinite;
}

.ticker-transition:hover {
animation-play-state: paused;
cursor: pointer;
}

.ticker-item {
display: inline-block;
padding: 0 2rem;
color: #fff;
position: relative;
}

.language-switch {
  position: absolute;
  top: 16px;
  right: 24px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.flag {
  width: 32px;
  height: 22px;
  object-fit: cover;
  display: inline-block;
  cursor: pointer;
  border-radius: 3px;
  border: 1px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: transform 0.1s;
}
.flag:hover {
  transform: scale(1.1);
}

.inleiding {
flex: 2;
  max-width: 800px;
  margin: 20px auto 100px auto;
  padding: 100px 206px;
  background: #f5f5f5;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(34,180,225,0.08);
  text-align: center;
}

.header-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}
.intro {
  flex: 1;
}

.intro-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  max-width: 1200px;
  margin: 40px auto 0 auto;
}
.intro {
  flex: 2;
}
.openingstijden-box {
  flex: 1;
  background: #fff;
  color: #222;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(34,180,225,0.10);
  padding: 8px 18px;
  min-width: 260px;
  max-width: 370px;
  margin-top: 0;
  text-align: left;
}
.openingstijden-box h2 {
  margin-top: 0;
  color: #1a9cb8;
}
.openingstijden-box ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 0;
  margin: 0;
  list-style: none;
}
.openingstijden-box li {
  display: block;
  padding: 2px 6px;
  border-radius: 5px;
  position: relative;
  line-height: 1.25;
  font-size: 1em;
}

.openingstijden-box .subtext {
  font-size: 0.9em;
  color: #888;
  margin-top: 10px;
  margin-bottom: 0;
}

.kosten-box {
  background: #fff;
  color: #222;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(34,180,225,0.10);
  padding: 24px 32px;
  min-width: 180px;
  max-width: 220px;
  margin-top: 0;
  text-align: left;
  margin-left: 24px;
  font-size: 1em;
}
.kosten-box h2 {
  margin-top: 0;
  color: #1a9cb8;
  font-size: 1.2em;
}
.kosten-box ul {
  padding-left: 0;
  margin: 0;
  list-style: none;
}
.kosten-box li {
  margin-bottom: 6px;
  display: block;
}

.sidebar-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1;
  min-width: 220px;
  max-width: 320px;
  gap: 24px;
}
@media (max-width: 900px) {
  .intro-row {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    max-width: 100vw;
    margin: 18px auto 0 auto;
  }
  .inleiding {
    max-width: 100vw;
    padding: 18px 4vw;
    margin: 16px auto 18px auto;
    font-size: 1.04em;
  }
  .sidebar-col {
    max-width: 100vw;
    min-width: 0;
    gap: 14px;
    align-items: stretch;
  }
  .openingstijden-box,
  .nieuws-box,
  .kosten-box {
    max-width: 100vw;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 12px 4vw;
    font-size: 1em;
  }
  .snelle-navigatie-box {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100vw;
    padding: 0;
  }
  .nav {
    padding: 0;
    margin-bottom: 18px;
    border-radius: 0 0 10px 10px;
  }
  .nav ul {
    flex-wrap: wrap;
    gap: 2px;
    padding: 0 1vw;
    justify-content: flex-start;
  }
  .nav a {
    font-size: 0.98em;
    padding: 8px 6px;
    min-width: 90px;
  }
  .ticker-container {
    min-height: 28px;
    font-size: 0.93em;
    margin-bottom: 2px;
    margin-top: 2px;
    border-radius: 6px;
  }
  header {
    min-height: 90px;
    border-radius: 0 0 18px 18px;
    margin-bottom: 12px;
    padding-bottom: 0;
  }
  .fredoka-header {
    font-size: 1.5rem;
    margin-bottom: 0.2em;
    margin-top: 0.2em;
  }
  .adres-link {
    font-size: 0.98em;
  }
  .flag {
    width: 24px;
    height: 16px;
  }
  .media-row {
    gap: 14px;
    margin: 18px 0 0 0;
  }
  .video-embed {
    max-width: 100vw;
    height: 160px;
  }
  .video-embed iframe {
    height: 160px;
  }
  .fotocollage-groot {
    max-width: 100vw;
    min-height: 110px;
    border-radius: 8px;
    margin: 24px auto 18px auto;
  }
  .fotocollage-slider-groot,
  .collage-foto-groot {
    height: 110px;
  }
  footer {
    max-width: 100vw;
    padding: 12px 0 8px 0;
    font-size: 0.97em;
    border-radius: 10px;
    margin: 18px auto 8px auto;
  }
}

@media (max-width: 600px) {
  .inleiding {
    padding: 10px 2vw;
    font-size: 0.98em;
  }
  .openingstijden-box,
  .nieuws-box,
  .kosten-box {
    padding: 7px 2vw;
    font-size: 0.97em;
  }
  .nav ul {
    gap: 0;
    padding: 0 0.5vw;
  }
  .nav a {
    font-size: 0.95em;
    padding: 7px 2px;
    min-width: 80px;
  }
  .fotocollage-groot {
    min-height: 70px;
  }
  .fotocollage-slider-groot,
  .collage-foto-groot {
    height: 70px;
  }
  .fredoka-header {
    font-size: 1.1rem;
  }
}

.snelle-navigatie {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: -25px;
  align-items: center;
  width: 100%;
}
.nav-btn {
  background: #1a9cb8;
  color: #fff;
  padding: 14px 0;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(26,156,184,0.08);
  transition: background 0.2s, transform 0.2s;
  text-align: center;
  border: none;
  outline: none;
  cursor: pointer;
}
.nav-btn:hover {
  background: #22b4e1;
  transform: translateY(-2px) scale(1.04);
}

.nav-btn-school {
  background: #22b4e1;
  color: #fff;
  border: 2px solid #1a9cb8;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 18px;
  font-size: 1.08em;
  border-radius: 8px;
  min-width: 260px;
  max-width: 370px;
  width: 100%;
  box-shadow: 0 2px 8px rgba(26,156,184,0.08);
  margin: 0 auto;
}
.nav-btn-school:hover {
  background: #1a9cb8;
  color: #fff;
}

.adres-link {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.adres-link:hover {
  text-decoration: underline;
}

.media-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin: 32px 0 0 0;
}
.video-embed {
  width: 100%;
  max-width: 700px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(34,180,225,0.10);
}
.facebook-link {
  color: #1877f3;
  border-radius: 8px;
  padding: 0;
  display: inline-block;
  margin-bottom: 0;
  transition: color 0.2s;
  background: none;
}
.facebook-link:hover {
  color: #145db2;
  background: none;
}

footer {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(34,180,225,0.10);
  margin: 48px auto 24px auto;
  max-width: 700px;
  padding: 24px 0 18px 0;
  text-align: center;
  color: #222;
  font-size: 1.05em;
}

footer p {
  margin: 0;
  margin-bottom: 20px;
}

.nieuws-box {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(34,180,225,0.10);
  max-width: 370px;
  min-width: 260px;
  width: 100%;
  margin-top: -20px;
  margin: 32px auto 0 auto;
  padding: 24px 18px;
  text-align: left;
}
.nieuws-box h2 {
  color: #1a9cb8;
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.5em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nieuws-artikel {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e0f7fa;
}
.nieuws-artikel:last-child {
  border-bottom: none;
}
.nieuws-artikel h3 {
  margin: 0 0 6px 0;
  font-size: 1.08em;
  color: #1877f3;
}
.nieuws-artikel .datum {
  font-size: 0.97em;
  color: #888;
  margin-bottom: 8px;
  display: block;
}

.nieuws-fotocollage {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 18px auto;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(34,180,225,0.10);
}
.fotocollage-slider {
  width: 100%;
  height: 180px;
  position: relative;
}
.collage-foto {
  width: 100%;
  height: 180px;
  object-fit: cover;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 1;
}
.collage-foto.active {
  opacity: 1;
  z-index: 2;
}
.collage-controls {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
}
.collage-controls button {
  background: rgba(34,180,225,0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.3em;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 2px 8px rgba(34,180,225,0.10);
  transition: background 0.2s;
}
.collage-controls button:hover {
  background: #1a9cb8;
}

.fotocollage-groot {
  width: 100%;
  max-width: 900px;
  margin: 48px auto 32px auto;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(34,180,225,0.12);
  background: #fff;
  padding: 0;
  min-height: 340px;
}
.fotocollage-slider-groot {
  width: 100%;
  height: 340px;
  position: relative;
}
.collage-foto-groot {
  width: 100%;
  height: 340px;
  object-fit: cover;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 0.6s;
  z-index: 1;
}
.collage-foto-groot.active {
  opacity: 1;
  z-index: 2;
}
.collage-controls-groot {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
}
.collage-controls-groot button {
  background: rgba(34,180,225,0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2em;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 2px 8px rgba(34,180,225,0.10);
  transition: background 0.2s;
}
.collage-controls-groot button:hover {
  background: #1a9cb8;
}