:root {
  --huisstijl: rgb(130, 0, 150);
  --huisstijl-licht: rgb(200, 70, 255);
}

/* Basis / globales */
html {
  height: 100%;
  scrollbar-gutter: stable;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: 'Rockwell', 'Arial', 'Helvetica', 'sans-serif';
  color: #eee;
  background-color: #222;
  overflow-x: hidden;
  overflow-y: auto;
}

/* typografie */
b, strong {
  font-weight: 900;
  font-size: 1.3em;
}

i {
  font-weight: 100;
}

a {
  color: var(--huisstijl-licht);
  text-decoration: none;
}

a:hover {
  color: var(--huisstijl);
}

h1, h2, h3, p {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
}

h1 {
  overflow-wrap: break-word;
  hyphens: auto;
  color: #ccc;
  font-weight: 600;
  font-size: 3.5em;
}

h2 {
  overflow-wrap: break-word;
  hyphens: auto;
  color: #ccc;
  font-weight: 600;
  margin: 0.5rem auto;
}

p {
  color: #ccc;
  font-size: 1.2em;
}

/* forms */
form {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  width: 300px;
}

form label {
  color: #222;
}

form input,
form textarea {
  color: #222;
}

/* agenda container */
.agenda-container {
  max-width: 500px;
  margin: 40px auto;
  padding: 20px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.18);
}

.footer {
  margin-top: auto;          /* duwt footer naar de onderkant */
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: #ccc;
  background-color: #111;

  /* centreren van de inhoud */
  display: flex;
  justify-content: center;   /* horizontaal centreren */
  align-items: center;       /* verticaal centreren binnen de footer */
  text-align: center;        /* tekst inlines centreren */
}

/* overschrijft de globale h1,h2,h3,p-regel binnen de footer */
.footer p {
  margin: 0;        /* geen extra auto-margins */
  max-width: none;  /* niet beperken tot 800px */
}

/* agenda form rows */
.agenda-form .form-row {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.agenda-form label {
  font-weight: bold;
  margin-bottom: 6px;
}

.agenda-form input,
.agenda-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  background-color: #f7f7f7;
}

.agenda-form textarea {
  height: 100px;
  resize: vertical;
}

/* buttons */
.btn-primary {
  width: 100%;
  padding: 12px;
  background-color: var(--huisstijl);
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: rgb(110, 0, 130);
}

.back-link {
  display: block;
  text-align: center;
  margin-top: 18px;
  color: var(--huisstijl);
  text-decoration: none;
  font-weight: bold;
}

/* Login pagina */
.login-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(to bottom right, var(--huisstijl-licht), var(--huisstijl));
  margin: 0;
}

.login-container {
  background-color: #222;
  color: #eee;
  padding: 2rem 3rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-container h1 {
  color: var(--huisstijl-licht);
  font-size: 1.8em;
  margin-bottom: 1.5rem;
}

.login-container label {
  display: block;
  text-align: left;
  margin-top: 1rem;
  font-weight: bold;
  color: #ccc;
}

.login-container input {
  display: block;
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border-radius: 8px;
  border: none;
  outline: none;
  background-color: #222;
  color: #fff;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.login-container input:focus {
  background-color: #444;
}

.login-container button {
  margin-top: 1.5rem;
  padding: 0.6rem 1rem;
  width: 100%;
  background-color: var(--huisstijl);
  border: none;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
}

.login-container button:hover {
  background-color: var(--huisstijl-licht);
  transform: scale(1.02);
}

.login-container p,
.login-container a {
  margin-top: 1rem;
  color: var(--huisstijl-licht);
}

.login-container a:hover {
  color: var(--huisstijl);
  text-decoration: underline;
}

.melding {
  color: #ff6666;
  background-color: rgba(255, 0, 0, 0.1);
  border: 1px solid #ff6666;
  padding: 0.5rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* Page layout */
.page-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  background-color: #222;
  color: #eee;
  overflow-x: hidden;
}

.page-section .side {
  flex: 1;
  min-width: 0;
}

/* side gradients */
.page-section .side.left {
  background: linear-gradient(to left, rgba(34,34,34,1) 0%, rgba(130,0,150,0.25) 12%, rgba(130,0,150,0.12) 35%, transparent 100%);
}

.page-section .side.right {
  background: linear-gradient(to right, rgba(34,34,34,1) 0%, rgba(130,0,150,0.25) 12%, rgba(130,0,150,0.12) 35%, transparent 100%);
}

.page-section .content {
  flex: 4;
  padding: 1rem 0rem;
  background-color: #222;
  width: 100%;
  margin-bottom: 2rem;
}

.content .banner {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  opacity: 0.4;
  object-fit: cover;
  border: none;
  border-radius: 0;
}

.page-section .content .tekst {
  padding: 2rem 3rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 120px;
  width: auto;
  display: block;
}

/* NAVBAR DESKTOP */
.navbar {
  width: 100%;
  background-color: #111;
  padding: 10px 20px;
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* hamburger – desktop verborgen, mobiel in @media */
.hamburger {
  display: none;
  font-size: 2rem;
  color: #eee;
  cursor: pointer;
  padding: 10px;
  background: transparent;
  border: none;
}

/* nav-links desktop */
.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 16px;
  align-items: center;
  margin-left: auto;    /* menu rechts van het logo */
  flex-wrap: wrap;      /* knoppen mogen naar een 2e regel */
}

/* items */
.nav-links li {
  position: relative;
}

/* Links en dropdown-knoppen */
.nav-links li a,
.nav-links li button.dropdown-btn {
  color: #eee;
  text-decoration: none;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  background: transparent;
  border: none;
  cursor: pointer;

  /* override globale button-regel */
  width: auto;
  margin-bottom: 0;
}

/* Hover desktop */
.nav-links li:hover > a,
.nav-links li:hover > button.dropdown-btn {
  background-color: var(--huisstijl);
  color: #fff;
  box-shadow: inset 0 0 12px 2px var(--huisstijl);
}

/* Active staat */
.nav-links li a.active,
.nav-links li button.active {
  background-color: var(--huisstijl);
  color: #fff;
  box-shadow: inset 0 0 14px 3px var(--huisstijl);
}

/* Dropdown container */
.dropdown {
  position: relative;
}

/* Dropdown menu desktop */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% - 4px); /* licht omhoog zodat hij mooi aansluit */
  left: 0;
  min-width: 220px;
  background-color: #111;
  padding: 0.5rem 0;
  list-style: none;
  margin: 0;
  border-radius: 8px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    inset 0 0 20px 2px var(--huisstijl-licht);
  z-index: 999;
}

/* dropdown items */
.dropdown-menu li a {
  display: block;
  padding: 10px 14px;
  color: #eee;
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
}

/* hover sublinks desktop */
.dropdown-menu li a:hover {
  background-color: var(--huisstijl);
  color: #fff;
  box-shadow: inset 0 0 12px 2px var(--huisstijl-licht);
}

/* fallback tekstkleur */
.dropdown-menu a {
  color: #eee;
}

/* Desktop: open dropdown bij hover */
@media (min-width: 776px) {
  .dropdown:hover > .dropdown-menu {
    display: block;
  }

  .dropdown:last-child .dropdown-menu {
    right: 0;
    left: auto;
  }
}

/* Tabellen */
.my-table {
  max-width: 800px;
  margin: 2rem auto;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  font-family: 'Rockwell', 'Arial', sans-serif;
  background-color: #fff;
}

.my-table th,
.my-table td {
  padding: 12px 16px;
  text-align: left;
}

.my-table th {
  background-color: var(--huisstijl);
  color: #fff;
  font-size: 1rem;
  border-right: 1px solid #222;
}

.my-table td {
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ddd;
  font-size: 0.95rem;
  color: #222;
}

.my-table tr:last-child td {
  border-bottom: none;
}

.my-table tr:hover {
  background-color: #f2f7ff;
}

.eerste_rij {
  font-weight: bold;
}

.kop {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.standaard-lijst {
  color: #ccc;
  list-style-position: outside;
  max-width: 800px;
  margin: 1rem auto;
  padding-left: 1.2em;
  font-family: inherit;
}

/* Kalender styling */
.calendar {
  background-color: #ddd;
  color: #222;
  border: 10px solid #ddd;
  border-radius: 10px;
}

.calendar a {
  color: inherit;
}

/* Fullcalendar overrides */
.fc-theme-standard td,
.fc-theme-standard th,
.fc-theme-standard .fc-scrollgrid,
.fc .fc-daygrid-day-frame {
  border-color: #444;
}

.fc .fc-event-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-toolbar-chunk {
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.fc-toolbar {
  flex-wrap: nowrap;
}

.fc-toolbar-title {
  text-align: center;
  font-size: 1.2em;
  color: #222;
}

/* inputs, textarea, buttons algemene breedte (behalve navbar-knoppen, die overriden we) */
input,
textarea,
button {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.4rem;
}

/* Sub links */
.sub-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 8px 0;
  margin: 0 0 1.5rem 0;
}

.sub-links li {
  margin: 6px 10px;
}

.sub-links a {
  text-decoration: none;
  color: white;
  font-family: 'Rockwell', 'sans-serif';
  font-size: 0.95rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background-color 0.3s, color 0.3s;
}

.sub-links a:hover,
.sub-links a.active {
  background-color: var(--huisstijl);
  color: white;
}

/* Agenda lijst */
ul.agenda {
  list-style-type: disc;
  background: none;
  border: none;
  margin-top: 1rem;
  padding-left: 1.5rem;
}

ul.agenda li {
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn-verwijder {
  font-size: 1em;
  padding: 2px 4px;
  cursor: pointer;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 3px;
  display: inline-block;
}

.btn-verwijder:hover {
  background-color: #d32f2f;
}

/* Calendar container */
#calendar {
  max-width: 900px;
  margin: 20px auto;
}

/* Sponsor carousel */
.sponsor-carousel-js {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 200px;
  margin: 2rem auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sponsor-carousel-js img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
  opacity: 0;
  background-color: #fff;
  transition: opacity 1s;
  padding: 10px;
  border-radius: 15px;
}

/* RESPONSIVE / MOBIEL SPECIFIEK */
@media (max-width: 775px) {

  html {
    scrollbar-gutter: auto;
  }

  p {
    font-size: 0.8rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  /* mobile navbar: toon hamburger en zet nav-links in kolom */
  .hamburger {
    display: block;
    margin-left: auto;
  }

  ul.nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: none;
    background-color: #222;
    flex-direction: column;
    max-height: none;
    overflow: visible;
    z-index: 1000;
    padding: 10px 0;
    gap: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    border-top: 1px solid rgba(255,255,255,0.03);
    font-family: inherit;
  }

  /* wanneer body.nav-open is toegevoegd door JS, toon menu */
  body.nav-open ul.nav-links {
    display: flex;
  }

  ul.nav-links li {
    position: relative;
    width: 100%;
  }

  ul.nav-links li a,
  ul.nav-links li button.dropdown-btn {
    text-align: center;
    width: 100%;
    font-size: 0.95rem;
    margin: 2px 0;
    padding: 12px 18px;
  }

  /* dropdown knop zichtbaar op mobiel en vervangt hover */
  .dropdown-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: transparent;
    color: #eee;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 600;
    border-radius: 8px;
    font-family: inherit;
  }

  /* mobiele dropdown menu: statisch binnen de flow */
  .dropdown-menu {
    font-family: inherit;
    display: none;
    position: static;
    background-color: #222;
    padding-left: 0.6rem;
    padding-top: 6px;
    padding-bottom: 6px;
    margin: 0;
    min-width: 100%;
    box-shadow:
      0 8px 16px rgba(0, 0, 0, 0.25),
      inset 0 0 20px 2px var(--huisstijl-licht);
    border-radius: 0;
  }

  .dropdown-menu li a:hover {
    background-color: var(--huisstijl);
    color: #fff;
    box-shadow: inset 0 0 12px 2px var(--huisstijl-licht);
  }

  /* wanneer dropdown parent heeft class open, toon submenu */
  .dropdown.open > .dropdown-menu {
    display: flex;
    flex-direction: column;
  }

  .dropdown-menu li a {
    padding: 10px 18px;
  }

  /* Maak logo kleiner op mobiel */
  .logo img {
    height: auto;
    max-height: 80px;
    width: auto;
  }

  .page-section {
    flex-direction: column;
  }

  .page-section .side {
    display: none;
  }

  .page-section .content .tekst {
    padding: 1rem;
  }

  .page-section .content {
    min-width: 0;
    width: 100%;
    padding: 0.8rem;
  }

  .sponsor-carousel-js {
    height: 70px;
  }

  .sponsor-carousel-js img {
    height: 70px;
  }

  table,
  th,
  td {
    font-size: 0.8rem;
    padding: 6px 8px;
  }
}
