/* -----------------------------------------------------------
   BASIS
----------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}


body {
    background-color: #f5f5f5; /* fallbackkleur bij trage laadtijd */
    margin: 0;
    font-family: Montserrat;
    color: #333;
	font-size: 14px;
	line-height: 21px;
	z-index:0; /*foto op de achtergrond */
}

body.desktop {
    background: url('../pics/cuyperstoren2.jpg') no-repeat center center fixed; /*haven-bg.jpg*/
    background-size: cover;
}


body.mobiel {
    background: url('../pics/toren-bg.jpg') no-repeat center center fixed; /*haven-bg.jpg*/
    background-size: cover;
	padding: 1rem;
}

button {
	font-family: inherit;
}




.witvlak {
	/* width: 100%; */
	/* height: 100%; */
	background-color: #fff;
	opacity: 0.5; 
	inset: 0;
	/* border-radius: 20px; */
	/* position: absolute; */
	/* margin: 20px; */
	position: fixed;
	min-height: 100%;
	z-index: 1; /* witvlak over achtergrondfoto */
}

.page-wrapper {
    /* max-width: 1200px; */     /* totale breedte */
	width: min(1200px, 100%);
	min-width: 400px;
    margin: 0 auto;        /* centreert alles */
    display: flex;
    flex-direction: column; /* header bovenaan */

    gap: 2rem;
	position: relative;
	z-index: 2; /* content op witvlak */
	padding: 20px;

}


.layout-row {
    display: flex;
    gap: 2rem;
	width: 100%;
    align-items: flex-start;
}


/********************************/
/* icoontje achter externe link */
/********************************/

a[target="_blank"]::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px; 
    margin-left: 2px;
    background-image: url('../pics/external-link.svg');
    background-size: contain; 
    background-repeat: no-repeat;
	vertical-align: 2px;   /* pijltje iets omhoog */
}


/* -----------------------------------------------------------
   HEADER
----------------------------------------------------------- */

.site-header {
    width: 100%;
    max-width: 1200px;       /* of dezelfde waarde als jouw page-wrapper */
    margin: 0 auto;          /* centreert de header */
	min-width: 740px;
}


.site-header img {
    display: block;          /* haalt eventuele inline‑ruimte weg */
    width: 100%;             /* vult de hele breedte van de header */
    height: auto;            /* behoudt de verhoudingen van het logo */
    border-radius: 16px;     /* optioneel, zelfde stijl als menu-items */
    box-shadow: 0 10px 20px rgba(0,0,0,0.25); /* optioneel, visuele consistentie */
	background: #eee;
}

.site-header.mobiel {
	min-width: 300px;
}


/* -----------------------------------------------------------
   FLEX LAYOUT MET MIN/MAX BREEDTES
----------------------------------------------------------- */
.layout {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    padding-top: 2rem; 
}

.sidebar {
    flex: 0 0 260px;   /* vaste basisbreedte */
    max-width: 300px;  /* mag iets groeien */
    min-width: 200px;  /* mag iets krimpen */
}

.content {
    flex: 1 1 auto; /* flex-basis = ideale breedte */
    min-width: 400px; 
    box-sizing: border-box;  /* padding telt mee in de totale breedte */
}

.content h1 {
    margin-top: 0;
}

/* -----------------------------------------------------------
   MENU STYLING — hoofditem + submenu als één afgerond blok
----------------------------------------------------------- */

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Het hele menu-item vormt één visueel blok */
.menu > li {
    background: #21468C;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    margin-bottom: 14px;
    overflow: hidden; /* zorgt dat submenu-items binnen de radius vallen */
}

/* Hoofdmenu-knop */
.menu-toggle,
.menu-link {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: #21468C;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    border: none;
}

/* Actieve hoofdlink */
.menu-link.active {
    background: #eee;
	color: #21468C;
}


/*Actieve hoofdlink mobiel */
.menu-link.active.mobiel  {
    background: #21468C;
	color: #eee;
	border-bottom-right-radius: 0px;
	border-bottom-left-radius: 0px;
	margin-bottom: 0px !important; 
}


/* Icoon rechts */
.menu-toggle .icon {
    float: right;
}

/* Submenu-container: geen inspringing, geen extra marge */
.submenu {
    display: none;
    padding: 0;
    margin: 0;
}

/* Submenu-items sluiten strak op elkaar aan */
.submenu li {
    list-style: none;
    margin: 0; /* geen ruimte tussen items */
}

/* Submenu-links: géén border-radius, volledige breedte */
.submenu li a {  /*, .submenu */
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: #eee;
    color: #333;
    text-decoration: none;
    border-radius: 0; /* submenu-items zijn rechthoekig */
    border-top: 1px solid #ccc; /* subtiele scheiding tussen items */
}

/* Hover-effect submenu */
.submenu li a:hover {
    background: #ddd;
}

/* wanneer het menu-item “open” is (via JS) */
.menu > li.open .submenu {
    display: block;
}

/* Verwijder oude icon-opmaak */
.menu-toggle .icon {
    float: right;
}

/* Nieuwe icon-opmaak: + en - */
.menu-toggle .icon {
    font-weight: bold;
    font-size: 20px;
    line-height: 1;
    float: right;
    margin-left: 10px;
}

/* Actieve sublink */
.submenu.active  {
	background: #21468C;
    color: #fff;
}


/* -----------------------------------------------------------
   CONTENT TITLE
----------------------------------------------------------- */

/* H1 als blok boven de agenda-items */
h1 {
    display: block;
    width: 100%;                     /* meeschalend met agenda-items */
    background: #21468C;             /* zelfde kleur als reserveringsbutton */
    color: #fff;                     /* witte tekst */
    padding: 14px 20px;              /* zelfde padding-feel als buttons */
/*     margin: 0 0 20px 0;   */            /* ruimte onder de header */
	margin-bottom: 0px;
/*     border-radius: 16px;  */            /* zelfde radius als menu-items */
    border-radius: 16px 16px 0 0; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    font-size: 1.2rem;               /* mooie kopgrootte */
    text-align: center;              /* gecentreerde titel */
}


.regular-content,
li.regular-content {
    background: #eee;
    border-radius: 0 0 16px 16px;
    padding: 1rem;
	margin-top: 0;
	margin-bottom: 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    overflow: hidden;
}

.regular-content.submenu {
    background: #eee;
    border-radius: 0px;
    padding: 1rem;
	margin-top: 0px;
	margin-bottom: 0px;
    box-shadow: none;
    overflow: hidden;	
	
	
	
}


.mededeling {  /*algemene mededeling boven website*/
	background: #eee;
    border-radius: 16px;
    padding: 1.5rem;
	margin-top: 1rem;
	margin-bottom: 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    overflow: hidden;
	
}


img {
	margin-right: 5px;
	margin-bottom: 5px;
}

.letop {
	width: 15px;
	margin-bottom: 0px;
   flex-shrink: 0;          /* icoon krimpt nooit */
}


/* -----------------------------------------------------------
   AGENDA ITEMS — volledig vernieuwde sectie
----------------------------------------------------------- */

.agenda-list {
    margin-top: 1rem;
}


/* Het volledige agenda-item */
.agenda-item {
    background: #eee;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    overflow: hidden;
}

/* Agenda-item voor mobiel */
.agenda-item-mobiel {
	display: block;
    width: 100%;
    padding: 12px 16px;
    border-top: 2px solid #ccc; /* subtiele scheiding tussen items */	
}

.agenda-item-mobiel.eerste {
	border-top: 0px;
}


/* BOVENSTE RIJ: datum links, titel + characteristics rechts */
.agenda-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

/* Rechter kolom: titel + characteristics onder elkaar */
.agenda-header-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1 1 auto;
}

/* Titel rechts naast datum */
.agenda-title {
    margin: 0;
    padding: 0;
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
}

.agenda-title-mobiel {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}



/* Characteristics direct onder titel */
.agenda-characteristics {
    margin-top: 4px;
    font-size: 0.9rem;
    color: #333;
}

/* Datum voor mobiele weergave */
.agenda-date-mobiel {
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: bold;
    color: #21468C;
}

.agenda-date-mobiel::first-letter {
    text-transform: uppercase;
}


/* DATUMBLOK: weekday + day in één blok */
.agenda-date {
    width: 100px;
    flex: 0 0 100px;
    border: 2px solid #21468C;
    border-radius: 12px;
    overflow: hidden; /* binnenste delen geen radius */
    text-align: center;
    box-sizing: border-box;
}

/* Weekday (bovenste deel) */
.agenda-date .weekday {
    background: #21468C; /* volledig blauw */
    color: #eee;
    padding: 6px 0;
    font-weight: bold;
    font-size: 0.9rem;
    display: block;
}

/* Day (onderste deel) */
.agenda-date .day {
    background: #eee;
    color: #21468C;
    padding: 10px 0;
    font-size: 1rem;
    font-weight: bold;
    display: block;
}

/* De rest van de tekst begint links onder het hele blok */
.agenda-details {
    margin-top: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.agenda-details:not(.hidden) {
    opacity: 1;
}

/* Kaart / afbeelding */
.agenda-map {
/*    width: 50%;*/
    margin: 1rem 0;
}

.agenda-map img {
    display: block;
    width: 50%;
	height: auto;
    border-radius: 8px;
}

.agenda-map-mobiel img {
    display: block;
    width: 100%;
	height: auto;
    border-radius: 8px;
}



/* Actieknoppen onderaan */
.agenda-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: nowrap;
    margin-top: 5px;;
}

.btn-reserve,
.btn-info {
    padding: .5rem 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    flex-shrink: 0;

    background: #21468C;
    color: #eee;
	width: 120px;
}

/* .btn-reserve {
    background: #21468C;
    color: #eee;
	width: 100px;
}

.btn-info {
    background: #21468C;
	color: #eee;
	width: 100px;
}
 */

/* Toggle verbergen */
.agenda-details.hidden {
    display: none;
}


/* -----------------------------------------------------------
   Opmaak voor datums onder activiteit-info
----------------------------------------------------------- */
/* .datums {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
} */

.datums {
    display: inline-block;   /* blijft één blok */
}


/* .datums form {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
} */

/* .datums b {
    white-space: nowrap;
} */

/* .datumregel {
    display: flex;
    align-items: center;
    gap: 1rem;
	padding-bottom: 1rem;
}
 */
.datumregel {
    display: flex;
    justify-content: space-between;  /* datum links, button rechts */
    align-items: center;
    /* min-width: max-content;    */       /* breedte = langste regel */
    gap: 25px;                       /* minimaal 50px tussen datum en button */
}

.datum {
    display: inline-block;
    white-space: nowrap;
	font-weight: bold;
}


.datumblok {
    display: flex;
    flex-direction: column;   /* mededeling onder de datumregel */
    min-width: max-content;   /* breedte = langste regel */
    margin-bottom: 0.8rem;    /* ruimte tussen de blokken */
}

.activiteit-mededeling {
    margin-top: 0.3rem;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start; /*  icoon netjes bovenaan */
               /*     gap: 8px; ruimte tussen icoon en tekst */
}
/*
.activiteit-mededeling.belangrijk::before {
    content: "";
    width: 15px;
    height: 15px;
    background-image: url('../pics/letop.png');
    background-size: contain;
    background-repeat: no-repeat;
 
	margin-bottom: 0;
}
*/
.activiteit-mededeling.belangrijk {
    color: red;
}

/* -----------------------------------------------------------
   TOOLTIP
----------------------------------------------------------- */

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #21468C;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    top: 25px;
    left: 0;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

/* -----------------------------------------------------------
   FOOTER
----------------------------------------------------------- */

.site-footer {
    align-self: stretch;
	display: block;
	width: 100%;                     /* meeschalend met agenda-items */
    background: #21468C;             /* zelfde kleur als reserveringsbutton */
    color: #fff;                     /* witte tekst */
    border-radius: 16px;             /* zelfde radius als menu-items */
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    text-align: center;              /* gecentreerde titel */
	line-height: 1.2;
	margin: 0;
	min-width: 740px;
}




.site-footer a {
    color: #fff;
    text-decoration: none;
}

/* -----------------------------------------------------------
   RESPONSIVE (optioneel)
----------------------------------------------------------- */

@media (max-width: 900px) {
    /* layout blijft horizontaal, maar gebruiker kan scrollen */
    .layout {
        overflow-x: auto;
    }
}
