/* =========================================================
   ALGEMENE INSTELLINGEN
   ========================================================= */
body {
    margin-top: 60px;
    font-family: Arial, sans-serif;
    background-color: #fbf39e;
    color: #0056a6;
	padding-bottom: 60px;
}

/* =========================================================
   NAVIGATIEBALK
   ========================================================= */
.topnav {
    background-color: #ce3030;
    padding: 12px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    white-space: nowrap; /* BELANGRIJK */
}


.topnav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 6px 10px;
    transition: opacity 0.2s;
}

.topnav a:hover {
    opacity: 0.7;
}

.topnav a,
.dropdown {
    display: inline-block; /* BELANGRIJK */
    vertical-align: middle;
}


/* Zorgt dat elke sectie exact onder de menubalk stopt */
.content-section,
#info,
#Speelkalender,
#Toneelgroepen,
#Auteurs,
#Aanbod-Gezocht,
#Varia,
#contact {
    scroll-margin-top: 120px; /* hoogte van jouw topnav */
}
#info {
    margin-top: -60px;
}

/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* De knop (Auteurs) gedraagt zich als een normale link */
.dropbtn {
    color: white;
    padding: 14px 16px;
    text-decoration: none;
    display: inline-block;
}

/* Verborgen hoofdsubmenu */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0056a6;
    min-width: 180px;
    z-index: 9999;
    border-radius: 4px;
}

/* Links in hoofdsubmenu */
.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

/* Hover-effect links */
.dropdown-content a:hover {
    background-color: #003f7a;
}

/* Toon hoofdsubmenu bij hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Hover-effect hoofdlink */
.dropdown:hover .dropbtn {
    background-color: #003f7a;
}


/* ----------------------------- */
/* Tweede niveau: Huldiging etc. */
/* ----------------------------- */

/* Dit is de ouder van het tweede submenu */
.dropdown-sub {
    position: relative;
}

/* Verborgen tweede submenu */
.dropdown-sub-content {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #0056a6;
    min-width: 220px;
    z-index: 10000;
    border-radius: 4px;
}

/* Links in tweede submenu */
.dropdown-sub-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

/* Hover-effect tweede submenu */
.dropdown-sub-content a:hover {
    background-color: #003f7a;
}

/* BELANGRIJK:
   Toon het tweede submenu wanneer de ouder
   .dropdown-sub wordt aangewezen */
.dropdown-sub:hover .dropdown-sub-content {
    display: block;
}

/* Hover-effect op Huldiging / Aansluiting */
.dropdown-sub:hover > .subbtn {
    background-color: #003f7a;
}

/* Zorg dat de hoofdlink ook een hover‑effect krijgt */
.dropdown:hover .dropbtn {
    background-color: #003f7a;
}
html {
    scroll-behavior: smooth;
}
/* =========================================================
   LOGO
   ========================================================= */
.logo-container {
    text-align: center;
	margin-top: 110px; /* voorkomt dat logo onder menubalk schuift */
}

.logo-container img {
    width: 100%;
    max-width: 100px;
    height: auto;
    margin: 20px auto;
    display: block;
}


/* =========================================================
   SLIDESCHOW
   ========================================================= */
.slideshow-container {
    margin-top: 60px; /* hoogte van jouw topnav */
	position: relative;
    width: 100%;
    height: 800px; /* pas aan naar wens */
    overflow: hidden;
}

/* INDIVIDUELE SLIDES */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* AFBEELDINGEN */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow-header {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: clamp(30px, 11vw, 120px);
    font-weight: 900;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.7),
	             0px 0px 4px rgba(0,0,0,0.9);
    z-index: 10000;
    pointer-events: none; /* header blokkeert slideshow niet */
	white-space: nowrap;
}

/* =========================================================
   CONTENT SECTIES
   ========================================================= */
/* Content-box automatisch schalen afhankelijk van aantal items */
.content-section {
 	display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px;
    justify-content: center;
	align-items: flex-start;
}

/* Foto altijd binnen de box */
.content-box img {
    width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0; /* optioneel: mooie afgeronde bovenkant */
    display: block;
}

/* Automatische breedtes */
.content-box {
    background-color: #f7e9b8;
    color: #0056a6;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.2);

    /* Belangrijk: flex basis bepaalt automatische breedte */
    flex: 1 1 300px;  
    max-width: 380px; /* voorkomt dat ze te breed worden */
	box-sizing: border-box;
}
/* Zorg dat de link zich gedraagt als een blok */
.content-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Hover-effect voor de volledige box */
.content-box:hover {
    transform: scale(1.03);
    box-shadow: 0px 6px 16px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

/* =========================================================
SPEELKALENDER
========================================================= */
.maand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 blokken naast elkaar */
  gap: 20px; /* Ruimte tussen de blokken */
  max-width: 1000px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

.maand-kaart {
  background-color: #fff8d6; /* Lichtgrijze achtergrond */
  border: 1px solid #e0e0e0;
  border-radius: 12px; /* Mooie ronde hoeken */
  padding: 40px 20px;
  text-align: center;
  text-decoration: none; /* Haalt de standaard link-streep weg */
  color: #fbf39e;
  transition: all 0.3s ease; /* Zorgt voor een soepele animatie */
  box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* Subtiele schaduw */
}

.maand-kaart h3 {
  margin: 0 0 10px 0;
  font-size: 24px;
  color: #0056a6;;
}

.maand-kaart span {
  font-size: 14px;
  color: #0056a6;;
}

/* Wat er gebeurt als je er met de muis over gaat: */
.maand-kaart:hover {
  transform: translateY(-5px); /* Blokje gaat iets omhoog */
  box-shadow: 0 10px 20px rgba(0,0,0,0.15); /* Schaduw wordt groter */
  background-color: #f7e9b8; /* Verandert in een mooie blauwe kleur, pas aan naar jouw smaak! */
  color: #0056a6;
}
.maand-kaart:hover h3, .maand-kaart:hover span {
  color: #0056a6;
}

/* Voor mobiele telefoons (automatisch 1 blok onder elkaar) */
@media (max-width: 768px) {
  .maand-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* =========================================================
HULDIGINGEN
========================================================= */
.huldigingen-section {
width: 100%;
display: flex;
justify-content: center;
padding: 30px 20px;
box-sizing: border-box;
}

/* Link neemt de breedte van de container over */

.huldigingen-link {
display: block;
width: 80%;
max-width: 800px;
text-decoration: none;
color: inherit;
}

/* Grote container */

.huldigingen-box {
background-color: #f7e9b8;
color: #0056a6;

```
border-radius: 10px;
padding: 25px;

box-shadow: 0px 4px 10px rgba(0,0,0,0.2);

box-sizing: border-box;

overflow: hidden;

transition: transform 0.2s ease,
            box-shadow 0.2s ease;

}

/* Foto wordt NIET automatisch 100% breed */

.huldigingen-box img {
display: block;

width: auto;
max-width: 100%;

height: auto;

max-height: 500px;

object-fit: contain;

margin: 0 auto 25px auto;

border-radius: 10px;

}

/* Tekst */

.huldigingen-tekst {
width: 100%;
box-sizing: border-box;
line-height: 1.6;

}

/* Titels */

.huldigingen-tekst h2 {
text-align: center;
margin-top: 0;
}

/* Alinea's */

.huldigingen-tekst p {
margin-bottom: 20px;
}

/* Hover */

.huldigingen-box:hover {
transform: scale(1.01);
box-shadow: 0px 6px 16px rgba(0,0,0,0.3);
cursor: pointer;
}

/* =========================================================
TABLET / MOBIEL
========================================================= */

@media (max-width: 800px) {


.huldigingen-link {
    width: 95%;
}

.huldigingen-box {
    padding: 18px;
}

.huldigingen-box img {
    max-height: 400px;
}


}

/* Kleine smartphone */

@media (max-width: 500px) {


.huldigingen-section {
    padding: 20px 10px;
}

.huldigingen-link {
    width: 100%;
}

.huldigingen-box {
    padding: 15px;
}

.huldigingen-box img {
    max-height: 300px;
}
}

/* =========================================================
   TARIEF SECTIES
   ========================================================= */
/* Content-box automatisch schalen afhankelijk van aantal items */
.tarief-section {
	width: 60%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px;
    justify-content: center;
}

/* Foto altijd binnen de box */
.tarief-box img {
    width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0; /* optioneel: mooie afgeronde bovenkant */
    display: block;
}

/* Automatische breedtes */
.tarief-box {
	text-align: center;
    background-color: #f7e9b8;
    color: #0056a6;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.2);

    /* Belangrijk: flex basis bepaalt automatische breedte */
    flex: 1 1 300px;  
    max-width: 100%; /* voorkomt dat ze te breed worden */
}
/* Zorg dat de link zich gedraagt als een blok */
.tarief-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Hover-effect voor de volledige box */
.tarief-box:hover {
    transform: scale(1.03);
    box-shadow: 0px 6px 16px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.tarief-tabel {
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: #ffffff; /* Witte achtergrond voor de tabel zodat het contrast goed is */
    border-radius: 8px;
    overflow: hidden; /* Zorgt dat de border-radius ook op de tabel werkt */
}

.tarief-tabel th, 
.tarief-tabel td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #e0d0a0; /* Subtiele rand in de stijl van je gele box */
}

.tarief-tabel th {
    background-color: #0056a6; /* Gebruikt jouw blauwe kleur voor de hoofding */
    color: #ffffff;
    font-weight: bold;
}

/* Maakt de rijen om en om net iets leesbaarder (optioneel) */
.tarief-tabel tbody tr:nth-child(even) {
    background-color: #fcf9ee; 
}


/* Specifieke styling voor de uitlegblokken binnen de gele tarief-box */
.tarief-uitleg {
	text-align: center; /* Zorgt dat de tekst netjes links uitgelijnd leest i.p.v. gecentreerd */
    color: #0056a6;    /* Houdt dezelfde blauwe huiskleur aan */
    margin-top: 25px;
    margin-bottom: 25px;
    padding: 0 15px;
}

.tarief-uitleg h2 {
    text-align: center; /* Houdt de kopjes wel mooi in het midden */
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.tarief-uitleg p {
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* =========================================================
   PARALAX-PANELEN
   ========================================================= */
/* Sterke parallax met diepte */
.parallax-strong {
    position: relative;
    width: 100%;
    height: 500px; /* hoogte van het paneel */
    overflow: hidden;
    margin-top: 40px; /* compatibel met jouw scroll-margin-top */
    z-index: 1;
}

/* Achtergrondlaag die trager beweegt */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%; /* groter dan het paneel voor diepte */
    background-image: var(--parallax-image);
    background-size: cover;
    background-position: center;
    transform: translateY(-20%); /* startpositie */
    will-change: transform;
}

/* Voorgrondlaag (optioneel) */
.parallax-content {
    position: relative;
    z-index: 2;
    height: 100%;
}

/* Scroll button */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background-color: #0056a6;
    color: white;
    border: none;
	height: 40px;
	width: 40px;
    padding: 0;
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

#scrollTopBtn:hover {
    background-color: #003f7d;
}

/* =========================================================
   SPEELKALENDER (maandpagina)
   ========================================================= */

.maand-header {
    max-width: 900px;
    margin: 10px auto 10px auto;
    padding: 10px 20px;
    text-align: center;
}

.maand-header h1 {
    margin-bottom: 10px;
    font-size: 32px;
    color: #0056a6;
}


/* =========================================================
   CONTAINER PER VOORSTELLING
   ========================================================= */

.speelkalender-item {
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
    background: #fff8d6;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(0,0,0,0.12);

    display: flex;
    gap: 30px;
    align-items: flex-start;
}


/* =========================================================
   AFFICHE
   ========================================================= */

.affiche-container {
    flex: 0 0 45%;
    text-align: center;
}

.affiche-container img {
    width: 100%;
    height: auto;
    max-width: 900px;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
}


/* =========================================================
   TEKST
   ========================================================= */

.text-container-speelkalender {
    flex: 1;
    padding: 0;
}


/* =========================================================
   SCHEIDINGSLIJN
   ========================================================= */

.scheiding-lijn {
    max-width: 1100px;
    margin: 20px auto;
    border-bottom: 6px solid #0056a6;
}


/* =========================================================
   MOBIEL maanden speelkalender
   ========================================================= */

@media (max-width: 768px) {

    .speelkalender-item {
        flex-direction: column;
        padding: 15px;
        gap: 20px;
    }

    .affiche-container {
        flex: none;
        width: 100%;
    }

    .text-container-speelkalender {
        width: 100%;
    }

}

              /* Online Button */

.online-buttons {
    max-width: 900px;
    margin: 10px auto 20px auto;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.online-button {
    background-color: #0056a6;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 18px;
    box-shadow: 0 0 6px rgba(0,0,0,0.15);
    transition: background 0.2s, transform 0.2s;
}

.online-button:hover {
    background-color: #0288f5;
    transform: translateY(-2px);
}

/* =========================================================
   TELLER
   ========================================================= */
/* Teller onzichtbaar linksonder */
/* Teller standaard volledig onzichtbaar */
#counterBox {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background: transparent;
    color: transparent;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 16px;
    font-family: monospace;
    transition: all 0.3s ease;
    z-index: 10;
}

/* Teller zichtbaar bij hover, maar alleen als hij geactiveerd is */
#counterBox.active:hover {
    background: #fbf39e;
    color: #000;
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
    cursor: default;
}

/* Reset-knop standaard onzichtbaar */
/* Reset-knop standaard volledig onzichtbaar */
#resetCounter {
    position: fixed;
    bottom: 10px;
    left: 120px; /* naast de teller */
    background: transparent;
    color: transparent;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
    z-index: 10;
}

/* Reset zichtbaar bij hover, maar alleen als hij geactiveerd is */
#resetCounter.active:hover {
    background: #fbf39e;
    color: #000;
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
    cursor: pointer;
}
/* =========================================================
   MEDIA
   ========================================================= */  
   
@media (max-width: 600px) {
    .content-box {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .content-section {
        padding: 20px;
    }
	
	.logo-container {
        margin-top: 90px; /* extra ruimte voor GSM */
    }
}
/* =========================================================
   DEFINITIEVE MOBIELE FIX VOOR MENUBALK 
   ========================================================= */
@media screen and (max-width: 900px) {
    /* Dwing de navigatiebalk open op mobiel zodat het niet afsnijdt */
    nav.topnav, 
    div.topnav {
        position: relative !important; /* Zet hem eventueel op relative of fixed met auto hoogte */
        height: auto !important;
        max-height: none !important;
        white-space: normal !important;
        padding: 10px 5px !important;
        display: block !important;
        text-align: center !important;
    }

    /* Laat alle links en dropdowns netjes onder/naast elkaar breken */
    nav.topnav a, 
    div.topnav a,
    nav.topnav .dropdown,
    div.topnav .dropdown,
    nav.topnav .dropbtn,
    div.topnav .dropbtn {
        display: inline-block !important;
        white-space: normal !important;
        float: none !important;
        font-size: 14px !important;
        padding: 6px 10px !important;
        margin: 2px !important;
    }

    /* Zorg dat de dropdown inhouden op mobiel niet wegvallen */
    .dropdown-content, 
    .dropdown-sub-content {
        position: relative !important;
        display: none; /* Of pas aan naar wens voor mobiel klikgedrag */
        width: 100% !important;
        box-shadow: none !important;
    }

    /* Zorg dat de content eronder niet verschuilt */
    .content-section,
    #info,
    #Speelkalender,
    #Toneelgroepen,
    #Auteurs,
    #Aanbod-Gezocht,
    #Varia,
    #contact {
        scroll-margin-top: 200px !important; /* Ruimte zodat koppen niet achter de meerregelige balk vallen */
    }
}