/* ========================= */
/*        HEADER & MENU      */
/* ========================= */

/* voorkom layout shift als body lockt (waar ondersteund) */
html { scrollbar-gutter: stable; }

/* MENU ICON rechtsboven */
#menu-icon {
  position: fixed;
  top: 35px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 10000;                 /* boven slideout */
  color: #760101;
  font-size: 22px;
  background: transparent;
  padding: 0;
  border: none;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Hamburger strepen */
#menu-icon .bars div {
  width: 25px;
  height: 3px;
  background: #004d26;
  margin: 3px 0;
  border-radius: 2px;
}

/* UITKLAP MENU (klik-only) */
#slideout-menu {
  position: fixed;
  top: 0;
  right: -300px;          /* standaard verborgen */
  width: 130px;
  background-color: rgba(84, 131, 91, 0.664);
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.3);
  transition: right 0.4s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  border-radius: 20px 0 0 20px;   /* alleen linkerzijde afgerond */
  padding: 40px 0;
}

#slideout-menu.open { right: 0; }

/* BODY LOCK bij open menu */
body.menu-open { overflow: hidden; }

/* MENU ITEMS */
#slideout-menu ul {
  list-style: none;
  padding: 0;
  margin: 50px 0 0 0;  /* extra ruimte boven de lijst */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#slideout-menu li a {
  display: block;
  width: 100%;
  text-decoration: none;
  font-size: 20px;
  color: #fff;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding: 12px 0;
  text-align: center;
}

#slideout-menu li a:hover {
  color: #c84040;
  font-weight: bold;
}

#slideout-menu li a.active {
  background-color: rgba(255, 255, 255, 0.3);
  color: rgb(225, 35, 35);
  font-weight: bold;
}

/* Divider + Close button */
.menu-divider {
  width: 80%;
  margin: 20px auto 10px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  margin-top: 6px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  text-align: center;
}
.menu-close:hover { opacity: 0.8; }