/* =========================
   ALGEMENE STIJLEN     Sluitknop kleur: background: linear-gradient(180deg, #006fe6, #004c99);  Hover:#0066cc;
========================= */

/* =========================
   ACHTERGROND & LOGO
========================= */


body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('/static/layout/achtergrond_desktop.png') no-repeat center top;
  background-size: cover;
  z-index: -10;
}


body {
  margin: 0;
  padding: 0;
  font-family: Calibri, sans-serif;
  color: #000;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 80px;
  
  
}

.hero-logo {
  position: fixed;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 410px;
  max-width: 90vw;
  height: auto;
  z-index: -1;
  pointer-events: none;
}



nav {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 30000;
}

.menu-toggle.left {
  font-size: 36px;
  font-weight: bold;
  font-family: sans-serif;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.75);
  padding: 5px 10px;
  border-radius: 6px;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
  z-index: 30000;
  position: relative;
}

#menu {
  display: none;
  background-color: rgba(255, 255, 255, 1.9);
  border-radius: 8px;
  padding: 16px;
  position: absolute;
  top: 50px;
  left: 0;
  list-style: none;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  min-width: 180px;
  font-family: Calibri, sans-serif;
  font-size: 18px;
  z-index: 30000;
}

#menu li {
  margin-bottom: 10px;
}

#menu li a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

main {
  text-align: center;
}

.hero {
  margin-top: 240px;
  position: fixed;
  width: 100%;
  left: 0;
  text-align: center;
}

/* ==============================
   HOMEPAGE TEKSTEN
============================== */

.hero {
    text-align: center;
}

.welkom-tekst {
    margin-top: 10px;
    color: white;
    text-shadow: 10px 0px 10px #000;
}

/* ruimte ONDER de welkomtekst */
.welkom-tekst p,
.welkom-tekst h1,
.welkom-tekst h2,
.welkom-tekst h3 {
    margin-bottom: 0px;
}

/* Auto text  */
.auto-tekst  {
    font-size: 4.5rem;
    font-weight: bold;
    color: white;
    margin-top: 0px;
    margin-bottom: 6px;
    text-shadow: 10px 0px 10px #000;
}

/* INFO LINK – subtiel uitgelicht */
.info-link a {
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    text-decoration: underline;
    text-shadow: 10px 0px 14px #000;
}

.info-link a:hover {
    opacity: 0.85;
}


.cta-button {
  display: inline-block;
  padding: 12px 24px;
  margin-top: 28px;
  background: linear-gradient(180deg, #006fe6, #004c99);
  color: white;
  border-radius: 10px;
  box-shadow: 2px 4px 18px rgba(0, 0, 0, 0.8);
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
}

.cta-button:hover {
  background-color: #0066cc;
}

.page-section {
  display: none;
  padding: 40px 20px;
}

.inschrijf-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  max-height: 80vh;     /* popup kan max 90% schermhoogte worden */
  overflow-y: auto;     /* interne scroll alleen in de popup */
  
  width: 90%;
  max-width: 600px;

  background: rgba(245, 222, 179, 0.95);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  z-index: 20000;
}


.page-wrapper {
  max-width: 720px;
  max-height: 70vh;                        /* Beperkt tot 80% van schermhoogte */
  margin: 40px auto;
  overflow-y: auto;                        /* Scroll binnen het blok */
  background: rgba(245, 222, 179, 0.95);   /* iets lichter voor duidelijkheid */
  padding: 10px;
  border-radius: 10px;
  color: #000;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  line-height: 1.6;
  z-index: 10001;
  box-sizing: border-box;
}


/* SLUITKNOP VOOR CONTACTPAGINA */

.sluitknop {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 36px;
  font-weight: bold;
  color: #2B75B4;
  cursor: pointer;
  z-index: 1001;
  user-select: none;
}

.sluitknop:hover {
  color: #333;
}


/* Popup-stijl voor INFO */
.info-container {
  background-color: #f6e9c5;
  padding: 40px 20px;
  font-family: Calibri, sans-serif;
  color: #000;
  text-align: center;
  overflow-y: auto;
  max-height: 100vh;
  box-sizing: border-box;
}

#info-tekstvak {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  font-size: 18px;
  line-height: 1.6;
  text-align: left;
  color: #000;
  overflow: hidden;
}


.info-tekst {
  text-align: left;
  font-size: 18px;
  line-height: 1.6;
  padding: 30px;
  max-width: 800px;
  margin: 0 auto;
}

#info-tekstvak p {
  margin: 0 0 10px 0;      /* minder witruimte onder paragrafen */
  margin-bottom: 6px;
  line-height: 1.6;
}

#info-tekstvak ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

#info-tekstvak li {
  margin-bottom: 6px;
}



.bullet-lijst {
  padding-left: 20px;
  margin-bottom: 20px;
}

.bullet-lijst li {
  margin-bottom: 10px;
  font-weight: normal;
  font-size: 17px;
}


.info-footer {
  text-align: center;
  padding: 10px;
  background: #f3dca0;
}

.info-footer button {
  padding: 10px 20px;
  border: none;
  background: #c89b3c;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}


/* ============================================
   VOORWAARDEN POPUP – CENTRALE DOOS
   (de zandkleurige popup die als venster dient)
============================================ */
.voorwaarden-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 90%;
  max-width: 800px;
  height: 85%;                 /* vaste hoogte → noodzakelijk */
  background-color: #fffbe8;
  border-radius: 16px;

  display: flex;               /* iframe + footer onder elkaar */
  flex-direction: column;

  overflow: hidden;            /* footer blijft netjes onderaan */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  z-index: 10000;
}


/* ============================================
   IFRAME – SCROLLT BINNEN DE POPUP
   (toont voorwaarden.html)
============================================ */
.voorwaarden-box iframe {
  flex: 1;                     /* neemt alle beschikbare ruimte */
  width: 100%;
  height: 100%;                /* zorgt dat scroll werkt in Chrome */
  border: none;
  background-color: #fffbe8;
  overflow-y: auto !important; /* wheel-scroll binnen iframe */
}




.voorwaarden-footer {
  text-align: center;
  padding: 10px;
  background: #f3dca0;
}

.voorwaarden-footer button {
  padding: 10px 20px;
  border: none;
  background: #c89b3c;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

/* Universele sluitknop voor popups */
.popup-close {
  background: linear-gradient(180deg, #006fe6, #004c99) !important;
  color: white !important;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
}

.popup-close:hover {
  background: #0066cc !important;
}



.sponsor-footer {
  position: fixed;  
  bottom: 20px;
  left: 0;
  width: 100%;
  background-color: rgba(60, 60, 60, 0.6);
  color: white;
  text-align: center;
  padding: 8px 8px 4px 0px;
  font-family: Calibri, sans-serif;
  z-index: 1;
}

.sponsor-footer .sponsor-text {
  font-size: 15px;
  font-weight: bold;
  color: #f1f1f1;
  margin-bottom: 8px;
}

.sponsor-footer .logos {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0px;
}

.sponsor-footer .logos a {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 0px;
  max-width: 25%;
  box-sizing: border-box;
}

.sponsor-footer .logos img {
  max-height: 90px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.sponsor-footer .logos img:hover {
  transform: scale(1.05);
}

.sponsor-footer .copyright {
  font-size: 11px;
  color: #ccc;
  margin-top: 2px;
}

.footer_copyright {
  position: fixed;
  bottom: 0;
  width: 100%;
  font-size: 10px;
  color: #fff;
  text-shadow: 1px 1px 4px #000;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 0px 0;
  text-align: center;
  z-index: 5;
}

/* Login popup overlay */
#login-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  margin-top: -80px;
}


/* Popup zelf */
#login-overlay .popup {
  background: #f3e5ab;
  padding: 20px 24px;
  border-radius: 14px;
  box-shadow: 0 0 18px rgba(0,0,0,0.25);
  width: 220px;
  max-width: 90%;
  font-family: Calibri, sans-serif;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Sluitknop */
#login-overlay .close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 24px;
  color: #2B75B4;
  cursor: pointer;
}

/* Invoervelden en knop */
#login-overlay input,
#login-overlay button {
  width: 100%;
  padding: 10px 12px;
  margin: 6px 0;
  font-size: 16px;
  font-family: Calibri, sans-serif;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

#login-overlay button {
  background-color: #0066cc;
  color: white;
  font-weight: bold;
  cursor: pointer;
  border: none;
}

#login-overlay button:hover {
  background-color: #004c99;
}


#login-overlay button {
  background-color: #444;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;

}

/* Wachtwoord instellen overlay */
#setpw-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#setpw-overlay .popup {
  background-color: rgba(245, 222, 179, 0.95);
  padding: 30px 25px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  width: calc(100% - 40px);
  max-width: 500px;
  font-family: Calibri, sans-serif;
  color: #000;
  font-size: 17px;
  text-align: left;
  box-sizing: border-box;
}
#setpw-overlay input,
#setpw-overlay button {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  font-family: Calibri, sans-serif;
}
#setpw-overlay button {
  background-color: #0066cc;
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
}
#setpw-overlay button:hover {
  background-color: #004c99;
}

/* ============================================================
   POPUPS — ALGEMENE BASIS
   (betaling, wijzig-overzicht, wijzig-formulier, wijzig-bevestiging)
============================================================ */

/* Overlay achtergrond */
#betalingOverlay,
#wijzigOverlay,
#emailWijzigOverlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.60);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Universele animatie */
@keyframes popupFadeIn {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.subpopup {
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 75%;            /* werkt NU wél! */
    max-width: 380px;      /* optioneel */
    background: #fae5b0;
    padding: 25px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 0 25px rgba(0,0,0,0.35);

    z-index: 999999;       /* boven alles binnen deze popup */
}


#nieuwEmail {
    width: 90%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid #777;
    font-size: 16px;
}

/* ============================================
   E-MAIL WIJZIGEN – TWEE IDENTIEKE VELDEN
============================================ */

.email-wijzig-input {
    width: 90%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 10px;
    border: 1px solid #777;
    font-size: 16px;
    box-sizing: border-box;
    background: white;
}

/* Extra spacing onder tweede veld */
.email-wijzig-input + .email-wijzig-input {
    margin-top: 8px;
}


.email-buttons {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 14px;               /* ruimte tussen knoppen */
}

.btn-klein {
    padding: 6px 14px;       /* kleiner */
    font-size: 14px;
    border-radius: 8px;
    background: #004c99;
    color: white;
}

.btn-klein:hover {
    background: #0066cc;
}

.btn-klein.groen {
    background: #2e7d32;
}

/* ============================================================
   1) BETALING POPUP (betaling_popup_content)
============================================================ */

.betalings-popup-box {
    background: #f0dba5;
    padding: 25px 30px;
    width: 70%;
    max-width: 360px;
    border-radius: 18px;
    box-shadow: 0 0 35px rgba(0,0,0,0.35);
    animation: popupFadeIn 0.25s ease-out;
    text-align: center;
}

/* Titel + check */
.betalings-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.betalings-title .check-icon {
    font-size: 36px;
    color: #1e8f3e;
}

/* =====================================================
   BETALING POPUP – LIJST MET DEELNEMERS
===================================================== */

.betaling-lijst {
    list-style: none;
    padding: 0;
    margin: 0 auto 25px auto;
    max-width: 450px;

}

.betaling-li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 0px 12px;       /* compact zoals gewenst */
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 500;
}

.betaling-afstand {
    font-weight: bold;
    color: #000;
}

.betaling-naam {
    color: #000;
}


/* Buttons (email wijzigen / download) */
.betalings-popup-box a.wijzig-email-btn,
.betalings-popup-box a.download-btn {
    display: block;
    width: 70%;
    margin: 10px auto 0 auto;
    padding: 12px;
    border-radius: 10px;
    background: #f8c15a;
    color: #000;
    font-weight: bold;
    cursor: pointer;
}
.betalings-popup-box a:hover {
    background: #e2ad48;
}

/* Sluitknop (blauw uniform) */
.btn-close-popup {
    background: linear-gradient(180deg, #006fe6, #004c99);
    color: white;
    margin: 20px auto 0 auto;
    width: 80%;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    border: none;
}
.btn-close-popup:hover {
    background: linear-gradient(180deg, #1a88ff, #005bbd);
}

/* ============================================================
   2) WIJZIG-OVERZICHT POPUP (popup vóór het formulier)
============================================================ */

.wijzig-popup-box {
    background: #f0dba5;
    padding: 25px 30px;
    width: 70%;
    max-width: 420px;       /* ⬅ BREEDTE PC */
    border-radius: 18px;
    box-shadow: 0 0 30px rgba(0,0,0,0.32);
    text-align: center;
    animation: popupFadeIn 0.25s ease-out;
}



.deelnemer-regel {
    background: #ffffff;
    padding: 8px 12px;
    margin: 6px auto;       /* auto → centreren */
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.12);
    width: 80%;             /* jouw wens */
}


.wijzig_popup_main_btn {
    background: linear-gradient(180deg, #ff9a2b, #cc6f00);
    width: 60%;
    padding: 8px;
    margin: 12px auto 0 auto;
    border-radius: 10px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    display: block;
    border: none;
    border-radius: 8px;
}
.wijzig_popup_main_btn:hover {
    background: linear-gradient(180deg, #ffb85a, #e68000);
}

/* Sluiten */
.wijzig_popup_sluiten_btn {
    background: linear-gradient(180deg, #006fe6, #004c99);
    color: #fff;
    width: 60%;
    padding: 12px;
    border-radius: 10px;
    margin: 12px auto;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    border: none;
}
.wijzig_popup_sluiten_btn:hover {
    background: linear-gradient(180deg, #1a88ff, #005bbd);
}

/* ============================================================
   3) WIJZIG-FORMULIER POPUP (wijzig_formulier.html)
============================================================ */

/* De grote popup (achtergrond + kader) */
.popup-box {
    width: 720px;                 /* ⬅️ breder zoals jij wilt */
    max-height: 85vh;
    overflow-y: auto;
    background: #f0dba5;
    padding: 25px 28px;
    border-radius: 18px;
    box-shadow: 0 0 28px rgba(0,0,0,0.30);
    margin: auto;
}

.wijzig-formulier-wrapper {
    width: 95%;
    margin: 0 auto;
}

/* Titel */
.wijzig-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

/* ============================================
   EMAILBALK — klein & grijzig
============================================ */
.wijzig-email-rij {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 15px;
}


.wijzig-email-tekst {
    font-weight: 700;              /* dik */
    font-style: italic;            /* schuin */
    color: #006fe6;                /* zelfde blauw als knoppen */
    font-size: 18px;               /* iets duidelijker */
}

/* Popup 1 — e-mail centreren */
.popup1-email {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.popup1-email .wijzig-email-tekst {
    text-align: center;
    font-weight: bold;
    font-style: italic;
    color: #006fe6; /* zelfde blauw als knoppen */
}


/* Email wijzig-knop */
.wijzig-btn-small {
    background: linear-gradient(180deg, #006fe6, #004c99);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
}

.wijzig-btn-small:hover {
    background: linear-gradient(180deg, #1a88ff, #005bbd);
}


/* ============================================
   LIJST MET DEELNEMERS
============================================ */
/* ================================
   WIJZIG FORMULIER – Desktop + Mobile
================================ */

/* Rij: horizontaal naast elkaar */
.wijzig-rij {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

/* Naamveld: moet ALLE ruimte krijgen */
.wijzig-rij input {
    flex: 1;
    min-width: 0;      /* voorkomt uitrekken */
}

/* Afstand dropdown: klein houden */
.wijzig-rij select {
    width: 60px;       /* kies 60 / 70 / 80 px wat jij mooi vindt */
    flex: 0 0 auto;    /* NIET meeschalen met de rij */
}



/* Blauwe wijzigknop (bestaand) */
.wijzig-btn-klein {
    background: linear-gradient(180deg, #006fe6, #004c99);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    width: 60px; /* hou hem mooi compact */
    text-align: center;
}

/* Groen voor OPSLAAN */
.wijzig-btn-klein.opslaan-modus {
    background: linear-gradient(180deg, #2e7d32, #1e5c24);
    text-align: center;
}

.wijzig-btn-klein:hover {
    background: linear-gradient(180deg, #005cd1, #003b85) !important;
}

.wijzig-btn-klein {
    transform: scale(0.90);   /* ↙️ knop 15% kleiner */
}

.opslaan-modus {
    background: #2e7d32 !important;
}
.opslaan-modus:hover {
    background: #1e5c24 !important;
}

/* Check */
.wijzig-check {
    margin: 14px 0;
    text-align: center;
    font-size: 14px;
}

.wijzig-check input {
    transform: scale(1.2);
    margin-right: 6px;
}

/* Onderknoppen */
.wijzig-btn-annuleer,
.wijzig-btn-opslaan {
    width: 70%;
    padding: 12px;
    font-size: 16px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    margin: 10px auto;
    display: block;
    cursor: pointer;
}

.wijzig-btn-annuleer {
    background: linear-gradient(180deg, #006fe6, #004c99);
    color: #fff;
}
.wijzig-btn-annuleer:hover {
    background: linear-gradient(180deg, #1a88ff, #005bbd);
}

.wijzig-btn-opslaan {
    background: linear-gradient(180deg, #2e7d32, #1e5c24);
    color: #fff;
}
.wijzig-btn-opslaan:hover {
    background: #1e5c24;
}


/* ============================================================
   4) WIJZIG-BEVESTIGING POPUP (wijzig_bevestiging)
============================================================ */

.wijzig-bevestiging-popup-box {
    background: #f0dba5;
    padding: 25px 30px;
    width: 70%;
    max-width: 360px;
    border-radius: 18px;
    box-shadow: 0 0 32px rgba(0,0,0,0.35);
    animation: popupFadeIn 0.25s ease-out;
    text-align: center;
}

.wijzig-bevestiging-popup-box ul {
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    margin: 15px 0;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.14);
    font-size: 15px;
    text-align: left;
}

/* ============================================
   LIJST MET DEELNEMERS → NAAM LINKS, AFSTAND RECHTS
=============================================== */

.wijzig-ul {
    list-style: none;
    padding: 0;
    margin: 0 auto 25px auto;
    max-width: 450px;
}

.wijzig-li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 0px 15px;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 15px;
}

.wijzig-naam {
    font-weight: 500;
}

.wijzig-afstand {
    font-weight: bold;
    min-width: 60px;
    text-align: right;
}


/* ============================================================
   GELE KNOPPEN IN WIJZIG-BEVESTIGING POPUP
   (E-mail wijzigen / Download inschrijving)
============================================================ */

.wijzig-bevestiging-popup-box a.wijzig-email-btn,
.wijzig-bevestiging-popup-box a.download-btn {
    display: block;
    width: 70%;
    margin: 10px auto 0 auto;
    padding: 12px;
    border-radius: 10px;
    background: #f8c15a;
    color: #000;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}

.wijzig-bevestiging-popup-box a.wijzig-email-btn:hover,
.wijzig-bevestiging-popup-box a.download-btn:hover {
    background: #e2ad48;
}



/* =========================
   RESPONSIVE - TELEFOON
========================= */


/* ==============================================
   BLOKKEER LANDSCAPE OP MOBIELEN (< 768px)
   Tablets blijven WEL landscape toestaan
================================================= */

/* ==============================================
   BLOKKEER LANDSCAPE VOOR MOBIELE TELEFOONS
   (werkt wél op Android / Samsung / iPhone)
================================================= */

@media (orientation: landscape) and (max-width: 900px) {

  body {
    overflow-y: auto;
    overflow-x: hidden;
  }

  /* Verberg alle normale content */
  main,
  nav,
  .hero-logo,
  .sponsor-footer,
  footer {
    display: none !important;
  }

  /* Toon waarschuwing */
  .rotate-warning {
    display: flex !important;
  }
}

/* Standaard: waarschuwing uit */
.rotate-warning {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.65);
  color: white;
  z-index: 999999;
  font-size: 22px;
  font-family: Calibri, sans-serif;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}

/* ==============================================
   MOBIEL PORTRAIT (normale mobiele layout)
================================================= */

@media (max-width: 768px) {

 
  /* ==============================
     LOGO
  ============================== */
  .hero-logo {
    width: 390px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
  }

  /* ==============================
     HERO CONTAINER
     (zelfde principe als live)
  ============================== */
  .hero {
    margin-top: 300px;
    text-align: center;
  }

  /* ==============================
     WELKOMTEKST
  ============================== */
  .welkom-tekst {
    text-align: center;
    color: white;
    font-size: 0.9rem;
    width: 98vw;
  }

  .welkom-tekst h1,
  .welkom-tekst h2,
  .welkom-tekst h3,
  .welkom-tekst p {
    text-align: center;
    margin: 0 0 8px 0;
  }

  /* ==============================
     DATUM
  ============================== */
  .auto-tekst {
    font-size: 2.0rem;
    line-height: 1.1;
    margin: 0 0 8px 0;
    text-align: center;
    width: 96vw;
    color: white;
    text-shadow: 0px 4px 10px #000;
  }

  /* ==============================
     INFO LINK
  ============================== */
  .info-link a {
    font-size: 1.2rem;
    display: inline-block;
    margin-bottom: 38px;
    color: white;
    text-decoration: underline;
  }

  /* ==============================
     INSCHRIJVEN KNOP
  ============================== */
  .cta-button {
    font-size: 16px;
    padding: 10px 20px;
    margin-top: 10px;
  }

  /* ==============================
     MENU
  ============================== */
  #menu {
    font-size: 16px;
    padding: 12px;
    text-align: center;
  }

  /* ==============================
     SPONSORS
  ============================== */
  .sponsor-footer .logos img {
    max-height: 60px;
  }



  .inschrijf-wrapper {
    position: fixed;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    width: 90vw;
    max-width: 90vw;
    padding: 20px 15px;
    box-sizing: border-box;
  }

  /* Betalings-popup mobiel */
  #betaling-overlay .popup {
    max-width: 96vw;
  }

  /* Bevestiging-popup */
  #bevestiging-overlay .popup {
    max-width: 96vw;
  }

/* POPUPS 95% BREED */
    .betalings-popup-box,
    .wijzig-formulier-wrapper,
    .wijzig-bevestiging-popup-box,
    .wijzig-popup-box {
        width: 93% !important;
        max-width: none !important;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
    }


    /* ================================
       A. WIJZIG-PAGE (de regels)
       ================================ */

    /* De rijen zelf worden 90% breed */
    .wijzig-rij {
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        align-items: center;
    }

    /* Inputs en dropdown vullen de ruimte */
    .wijzig-rij {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Naamveld: groot */
.wijzig-rij input {
    flex: 1;        /* neemt ALLE vrije ruimte */
    min-width: 0;
}

/* Afstand dropdown: klein en vast */
.wijzig-rij select {
    width: 60px;    /* kies 70px / 80px / 90px wat jij mooi vindt */
    flex: 0 0 auto; /* zorgt dat 'ie NIET meegroeit */
}



    /* =======================================
       B. BEVESTIGINGSPOPUP (alleen witte box)
       ======================================= */

    /* Deze UL-box maken we 90% */
    #betalingsPopupContent ul,
    #wijzigPopupContent ul {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    /* Namen en afstanden op één regel houden */
    #betalingsPopupContent ul li,
    #wijzigPopupContent ul li {
        white-space: nowrap;
        display: flex;
        justify-content: space-between;
        gap: 10px;
        font-size: 14px;
    }

    /* Afstand NOOIT afbreken */
    #betalingsPopupContent ul li span.afstand,
    #wijzigPopupContent ul li span.afstand {
        white-space: nowrap;
        margin-left: auto;
    }
}