/* ---------------------------------------------------------------------------
   Stichting Boombehoud Vlaardingen — opmaak 2026

   Herschreven vanuit het oude template (PixelGreen, 2010). Doel: rustig en
   leesbaar op telefoon, tablet en papier, met behoud van het eigen gezicht
   (donkere balk, groen, banner, logo).

   Uitgangspunten:
     - systeemlettertypen, geen webfonts (snel, geen externe verbindingen)
     - vlakke warme achtergrond, geen gradient-afbeeldingen of gif-icoontjes
     - geen animaties, geen trackers
     - alles wat je ziet is met de hand te volgen

   De oude sheet stond op 760 px breed en 73 % lettergrootte (± 11,7 px).
   Dat is nu 1000 px en 17 px, met media queries voor kleinere schermen.
--------------------------------------------------------------------------- */

/* ---- basis ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font: 17px/1.65 "Trebuchet MS", "Segoe UI", Tahoma, Verdana, sans-serif;
	color: #333;
	background: #FBF9F5;			/* warm, vlak */
}

img { max-width: 100%; height: auto; border: 0; }

p, ul, ol, blockquote, table { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.3em; }

h1, h2, h3 {
	margin: 0 0 .5em;
	line-height: 1.25;
	color: #34531F;
	font-weight: bold;
}
h1 { font-size: 1.7em; }
h2 { font-size: 1.25em; }
h3 { font-size: 1.1em; }

a { color: #466C2B; text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #2A4517; }

blockquote {
	margin: 1.2em 0;
	padding: .6em 0 .6em 1em;
	background: #F4F1EA;
	border-left: 4px solid #8FB86C;
	color: #444;
}

code {
	display: block;
	overflow: auto;
	margin: 1em 0;
	padding: .8em;
	background: #F4F1EA;
	border-left: 3px solid #8FB86C;
	font: 15px/1.5 Consolas, "Lucida Console", monospace;
}

table { border-collapse: collapse; width: 100%; }
th, td { padding: .5em .7em; text-align: left; border-bottom: 1px solid #E4DFD5; }
th { background: #6D9147; color: #fff; font-weight: bold; }
tr:nth-child(even) { background: #F7F5F0; }

form { margin: 1em 0; }
label { display: block; font-weight: bold; margin: .4em 0; }
input, textarea {
	padding: .35em .5em;
	font: inherit;
	color: #333;
	background: #fff;
	border: 1px solid #CFC9BC;
	border-radius: 3px;
}
textarea { width: 100%; min-height: 120px; }
input.button, button {
	padding: .4em .9em;
	font: inherit;
	color: #fff;
	background: #6D9147;
	border: 0;
	border-radius: 3px;
	cursor: pointer;
}

/* ---- hulpklassen ---------------------------------------------------------- */

.clear { clear: both; }
.float-left { float: left; }
.float-right { float: right; }
.align-left { margin: .3em 1.2em 1em 0; float: left; }
.align-right { margin: .3em 0 1em 1.2em; float: right; }
.gray { color: #6C6659; }

/* ---- kop ---------------------------------------------------------------- */

#header {
	background: #262626;
	border-bottom: 4px solid #6A9C43;		/* het groene bandje uit het oude bg.jpg */
}
#header-content {
	max-width: 1000px;
	margin: 0 auto;
	padding: 22px 18px;
}
#header-content #logo {
	margin: 0;
	font-size: 2em;
	line-height: 1.2;
	letter-spacing: -0.5px;
	color: #fff;
}
#header-content #logo a { color: #fff; text-decoration: none; }
#header-content #slogan { margin: 4px 0 0; color: #C9D8BB; }

/* de banner: seizoensbeeld, zie assets/js/seizoenbanner.js */
.headerphoto {
	max-width: 1000px;
	height: 200px;
	margin: 0 auto;
	background: #FBF9F5 url(../img/banner.jpg) center / cover no-repeat;
}

/* ---- inhoud -------------------------------------------------------------- */

#wrap { width: 100%; }
#content-wrap { width: 100%; }

#content {
	display: flex;
	flex-wrap: wrap;
	gap: 34px;
	max-width: 1000px;
	margin: 0 auto;
	padding: 30px 18px 10px;
}

#main { flex: 1 1 480px; min-width: 0; order: 2; }
#sidebar { flex: 1 1 240px; max-width: 320px; order: 1; }

#main h1 {
	margin: 0 0 .6em;
	padding-bottom: .3em;
	border-bottom: 1px solid #E4DFD5;
}

/* tekstblokken */
.post {
	margin: 0 0 18px;
	padding: 20px 22px;
	background: #fff;
	border: 1px solid #E8E3D9;
	border-radius: 4px;
}
.post h2, .post h3 { margin-top: 1.2em; }
.post h2:first-child, .post h3:first-child { margin-top: 0; }
.post img { border-radius: 3px; }
/* de datum boven een nieuwsbericht */
.post .post-date {
	margin: -0.3em 0 0.9em;
	color: #6C6659;
	font-size: 0.95em;
}

.post .post-footer {
	margin-top: 1.4em;
	padding-top: .7em;
	border-top: 1px solid #EEE9DF;
	font-size: .9em;
	color: #6C6659;
}
.post .post-footer .date,
.post .post-footer .comments,
.post .post-footer .readmore { display: inline-block; margin-right: 1em; }

/* ---- zijbalk ------------------------------------------------------------- */

.sidebox {
	margin-bottom: 18px;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid #E8E3D9;
	border-radius: 4px;
}
.sidebox:empty { display: none; }
.sidebox-kop,
.sidebox h1 {
	margin: 0 0 .5em;
	font-size: 1.15em;
}
.sidebox p { margin-bottom: .5em; }
#sidebar .sidebox img { display: block; margin: 0 auto; }

#sidebar ul.sidemenu { list-style: none; margin: 0; padding: 0; }
#sidebar ul.sidemenu li { margin: 0; }
#sidebar ul.sidemenu a {
	display: block;
	padding: .55em .2em;
	color: #333;
	text-decoration: none;
	border-bottom: 1px solid #EFEBE2;
}
#sidebar ul.sidemenu li:last-child a { border-bottom: 0; }
#sidebar ul.sidemenu a:hover { color: #466C2B; background: #F7F5F0; }
#sidebar ul.sidemenu a#current { color: #34531F; font-weight: bold; }

/* ---- voettekst ----------------------------------------------------------- */

#footer {
	margin-top: 20px;
	padding: 22px 0;
	background: #F2EFE8;
	border-top: 1px solid #E4DFD5;
	font-size: .9em;
	color: #5F5A4E;
}
#footer-content {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 18px;
}
#footer-content p { margin: 0; }
#footer-content a { color: #466C2B; }
#footer-content .col2 { text-align: right; }
#footer-content ul.flist { list-style: none; margin: 0; padding: 0; }
#footer-content .space-sep { display: block; height: .6em; }

/* ---- kleinere schermen --------------------------------------------------- */

@media (max-width: 900px) {
	#content { gap: 22px; padding-top: 22px; }
	#main, #sidebar { flex: 1 1 100%; max-width: none; }
	/* op een telefoon eerst het logo en het menu, dan de inhoud */
	#sidebar { order: 1; }
	#main { order: 2; }
	#sidebar .sidebox { margin-bottom: 12px; }
	.headerphoto { height: 140px; }
}

@media (max-width: 560px) {
	body { font-size: 16.5px; }
	#header-content { padding: 16px 14px; }
	#header-content #logo { font-size: 1.5em; }
	#content { padding: 18px 14px 6px; }
	.post { padding: 16px 16px; }
	.sidebox { padding: 14px 16px; }
	.headerphoto { height: 110px; }
	h1 { font-size: 1.45em; }
}

/* grotere aanraakvlakken voor het menu op aanraakschermen */
@media (hover: none) {
	#sidebar ul.sidemenu a { padding-top: .7em; padding-bottom: .7em; }
}

/* ---- papier -------------------------------------------------------------- */

@media print {
	#header { background: #fff; border-bottom: 2px solid #333; }
	#header-content #logo, #header-content #logo a { color: #000; }
	.headerphoto, #sidebar, #footer { display: none; }
	#content { display: block; max-width: none; padding: 0; }
	#main { width: 100%; }
	.post { border: 0; padding: 0; margin-bottom: 1.4em; }
	body { font-size: 11pt; background: #fff; }
	a { color: #000; text-decoration: none; }
	/* laat bij een link zien waar hij heen gaat */
	#main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
