/* ========================================
   RESET & BASISSTIJLEN
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Visually hidden voor accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Body */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  background: url('../images/achtergrond.webp') no-repeat center center fixed;
  background-size: cover;
  color: #333;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: -1;
}

/* ========================================
   TYPOGRAFIE
   ======================================== */
h1, h2, h3, h4 {
  color: #21406e;
  line-height: 1.3;
}

h1 {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.2rem;
}

/* ========================================
   HERO SECTIE - Blikvanger ✨
   ======================================== */
.hero {
  position: relative;
  text-align: center;
  padding: 4rem 2rem 5rem;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid #eee;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(33,64,110,0.9) 0%, rgba(26,50,80,0.95) 100%);
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(100,180,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,150,100,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255,255,255,0.03) 10px,
      rgba(255,255,255,0.03) 20px
    );
  animation: scanline 8s linear infinite;
  pointer-events: none;
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

.hero h1 {
  position: relative;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-text {
  position: relative;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.95);
  margin: 1.5rem auto 2rem;
  max-width: 700px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero-cta {
  position: relative;
  display: inline-block;
  padding: 0.8rem 2rem;
  background: rgba(255,255,255,0.15);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.3);
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.hero-cta:hover,
.hero-cta:focus {
  background: rgba(255,255,255,0.25);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  outline: none;
}

.hero-cta:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 3px;
}

/* ========================================
   NAVIGATIE
   ======================================== */
nav {
  position: sticky;
  top: 0;
  width: 100%;
  background: white;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
  z-index: 1000;
}

.logo img.logo-img {
  height: 44px;
  transition: transform 0.3s ease;
}

.logo img.logo-img:hover {
  transform: scale(1.05);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links li a {
  color: #21406e;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #21406e;
  transition: width 0.35s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.nav-links li a:focus-visible {
  outline: 2px solid #21406e;
  outline-offset: 4px;
  border-radius: 4px;
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #21406e;
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger:focus-visible {
  outline: 2px solid #21406e;
  outline-offset: 4px;
  border-radius: 4px;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
main {
  background: #ffffff;
  max-width: 1200px;
  width: calc(100% - 4rem);
  margin: 2rem auto;
  padding: 3rem 4rem;
  border-radius: 16px;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.35);
  flex: 1;
}

.content-section {
  margin-bottom: 2.5rem;
}

.content-section:last-child {
  margin-bottom: 0;
}

main h2 {
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
  text-align: justify;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eee;
}

main p,
main ol,
main ul,
main h3,
main h4 {
  max-width: 900px;
  margin: 0 auto 1.2rem auto;
  text-align: justify;
}

/* ========================================
   DROPDOWN ARCADEKAST
   ======================================== */
.arcade-dropdown {
  margin: 2.5rem auto;
  max-width: 900px;
  text-align: center;
}

.dropdown-btn {
  background: linear-gradient(135deg, #21406e, #1a3250);
  color: #fff;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(33,64,110,0.3);
}

.dropdown-btn:hover,
.dropdown-btn:focus {
  background: linear-gradient(135deg, #1a3250, #152840);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33,64,110,0.4);
  outline: none;
}

.dropdown-btn:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 3px;
}

.dropdown-btn[aria-expanded="true"] {
  transform: translateY(0);
}

.dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0;
}

.dropdown-content[style*="max-height"] {
  margin-top: 1.5rem;
}

.dropdown-content img {
  width: 100%;
  max-width: 500px;
  display: block;
  margin: 0 auto;
  border-radius: 20px;
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.dropdown-content img:hover,
.dropdown-content img:focus {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(33,64,110,0.4);
  outline: none;
}

.dropdown-content img:focus-visible {
  outline: 3px solid #21406e;
  outline-offset: 4px;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: linear-gradient(135deg, #21406e, #1a3250);
  color: #ffffff;
  padding: 1.5rem;
  text-align: center;
  margin-top: auto;
}

.site-footer a {
  color: #ffd700;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ========================================
   IMAGE MODAL
   ======================================== */
.img-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 1rem;
}

.img-modal[hidden] {
  display: none;
}

.img-modal[style*="flex"] {
  display: flex;
}

.img-modal-inner {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.img-modal-content {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  object-fit: contain;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.img-close {
  position: absolute;
  top: -45px;
  right: 0;
  font-size: 2.5rem;
  color: white;
  background: rgba(0,0,0,0.5);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.img-close:hover,
.img-close:focus {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
  outline: none;
}

.img-close:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 3px;
}

.img-modal-caption {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: center;
}

.img-modal-caption kbd {
  background: rgba(255,255,255,0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
}

/* ========================================
   GALLERY (voor multimedia.html)
   ======================================== */
.gallery-section {
  margin-top: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.gallery-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  margin: 0;
}

.gallery-item:hover,
.gallery-item:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(33, 64, 110, 0.4);
}

.gallery-img,
.gallery-video video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  background: #000;
  image-orientation: from-image;
}

/* Video groter maken op desktop */
.gallery-video {
  grid-column: 1 / -1;
  max-width: 900px;
  width: 100%;
  margin: 2rem auto 0;
}

.gallery-video video {
  height: 500px;
  object-fit: contain;
  background: #000;
}

.gallery-item:hover .gallery-img,
.gallery-item:hover .gallery-video video {
  transform: scale(1.05);
}

.gallery-caption {
  padding: 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: #444;
  background: #f8f9fa;
  border-top: 1px solid #eee;
  margin: 0;
}

/* Video controls styling */
.gallery-video video::-webkit-media-controls {
  border-radius: 0 0 12px 12px;
}

.gallery-video:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(33, 64, 110, 0.4);
}

/* ========================================
   LINKS PAGINA (voor links.html)
   ======================================== */
.intro-text {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.links-category {
  margin-bottom: 3rem;
}

.links-category h2 {
  color: #21406e;
  margin: 0 auto 1.2rem auto;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eee;
  font-size: 1.4rem;
  max-width: 900px;
  text-align: justify;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.link-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  background: #fff;
  border: 2px solid #e0e7ff;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
}

.link-card:hover,
.link-card:focus {
  border-color: #21406e;
  box-shadow: 0 8px 25px rgba(33, 64, 110, 0.15);
  transform: translateY(-3px);
  outline: none;
}

.link-card:focus-visible {
  outline: 3px solid #21406e;
  outline-offset: 3px;
}

.link-icon {
  font-size: 1.8rem;
  min-width: 40px;
  text-align: center;
}

.link-info {
  flex: 1;
  min-width: 0;
}

.link-info h3 {
  color: #21406e;
  margin: 0 0 0.3rem 0;
  font-size: 1.1rem;
}

.link-info p {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

.link-url {
  display: inline-block;
  font-size: 0.85rem;
  color: #21406e;
  background: #eef2f7;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 500;
}

.link-arrow {
  font-size: 1.2rem;
  color: #21406e;
  opacity: 0;
  transition: opacity 0.3s ease;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.link-card:hover .link-arrow {
  opacity: 1;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 850px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    gap: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  main {
    margin: 1.5rem;
    padding: 2rem;
    width: calc(100% - 3rem);
  }

  .link-card {
    flex-direction: column;
    text-align: center;
  }

  .link-arrow {
    position: static;
    transform: none;
    margin-top: 0.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-img {
    height: 180px;
  }

  .gallery-video video {
    height: 300px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 3rem 1.5rem 4rem;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  .hero-text {
    font-size: 1.1rem;
  }
  
  main {
    padding: 1.5rem;
  }
  
  .gallery-img {
    height: 160px;
  }

  .gallery-video video {
    height: 220px;
  }
  
  .img-close {
    top: -40px;
    font-size: 2rem;
    width: 40px;
    height: 40px;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  body::before,
  .hero-overlay,
  nav,
  .hamburger,
  .site-footer,
  .dropdown-btn,
  .img-modal {
    display: none !important;
  }
  
  main {
    box-shadow: none;
    margin: 0;
    padding: 1rem;
    width: 100%;
  }
  
  .hero {
    background: #21406e !important;
    color: white !important;
    padding: 2rem 1rem;
    border-bottom: none;
  }
  
  .hero h1,
  .hero .hero-text {
    color: white !important;
    text-shadow: none;
    animation: none;
  }
  
  .dropdown-content {
    max-height: none !important;
    overflow: visible;
  }
  
  .dropdown-content img {
    max-width: 300px;
    box-shadow: none;
  }
  
  a {
    text-decoration: none;
    color: #21406e;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.85rem;
    color: #666;
  }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero h1 {
    animation: none;
  }
  
  .hero-overlay {
    display: none;
  }
}

/* ========================================
   FOCUS VISIBLE GLOBAL
   ======================================== */
:focus-visible {
  outline: 3px solid #21406e;
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 3px;
}

/* ========================================
   SCHEMA PAGINA SPECIFIEK
   ======================================== */
.schema-section {
  margin-bottom: 2rem;
}

.schema-section article.content-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.schema-section article.content-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Heading spacing consistent maken met paragrafen */
.schema-section h2,
.schema-section h3 {
  max-width: 900px;
  margin: 0 auto 1rem auto;
  text-align: justify;
}

.schema-section h2 {
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eee;
  margin-top: 2rem;
}

.schema-section h2:first-of-type {
  margin-top: 0;
}

.schema-section h3 {
  margin-top: 1.8rem;
  font-size: 1.25rem;
}

.schema-section p,
.schema-section ol {
  max-width: 900px;
  margin: 0 auto 1.2rem auto;
  text-align: justify;
}

.schema-section ol {
  padding-left: 1.5rem;
  margin-left: auto;
  margin-right: auto;
}

.schema-section ol li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

/* Schema CTA button */
.schema-cta {
  text-align: center;
  margin: 2.5rem auto 3rem;
  max-width: 900px;
}

.btn-schema {
  background: linear-gradient(135deg, #21406e, #1a3250);
  color: #fff;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(33,64,110,0.3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-schema:hover,
.btn-schema:focus {
  background: linear-gradient(135deg, #1a3250, #152840);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33,64,110,0.4);
  outline: none;
}

.btn-schema:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 3px;
}

.schema-hint {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.8rem;
  font-style: italic;
}

/* Responsive aanpassingen voor schema */
@media (max-width: 850px) {
  .schema-section h2,
  .schema-section h3,
  .schema-section p,
  .schema-section ol {
    margin-left: auto;
    margin-right: auto;
  }
  
  .schema-cta {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}