/* Heilig Bloedprocessie Boxtel - Fris en modern, responsive */

/* Google Fonts - historisch maar goed leesbaar */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@400;600;700&display=swap");

* {
	box-sizing: border-box;
}
:root {
	--rood: #8b0000;
	--rood-donker: #6b0000;
	--rood-lijn: #a52a2a;
	--rood-licht: #a52a2a;
	--wit: #fff;
	--achtergrond: #faf9f6;
	--header-achtergrond: #fefcf9;
	--tekst: #2c2c2c;
	--font-historie: "Cormorant Garamond", "Times New Roman", Georgia, serif;
	--font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
	--header-img-hoogte: 80px;
}

html {
	scroll-behavior: smooth;
}
body {
	font-family: var(--font-body);
	margin: 0;
	background: var(--achtergrond);
	color: var(--tekst);
	line-height: 1.6;
	font-size: 1rem;
}

/* Double red line: 2px line, 5px gap, 2px line */
.lijn-dubbel {
	height: 9px;
	background: linear-gradient(
		to bottom,
		var(--rood-lijn) 0 2px,
		transparent 2px 7px,
		var(--rood-lijn) 7px 9px
	);
	background-size: 100% 9px;
	flex-shrink: 0;
}
.lijn-dubbel-vertikaal {
	width: 9px;
	min-width: 9px;
	background: linear-gradient(
		to right,
		var(--rood-lijn) 0 2px,
		transparent 2px 7px,
		var(--rood-lijn) 7px 9px
	);
	background-size: 9px 100%;
}

/* Header: logo links, slogan onder logo, nav rechts, plaatje rechtsboven */
.site-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem 2rem;
	padding: 1.25rem 1.5rem 1.5rem;
	background: var(--header-achtergrond);
	position: relative;
	border-bottom: 1px solid rgba(139, 0, 0, 0.08);
}
.header-logo-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}
.header-logo-block .logo {
	max-height: var(--header-img-hoogte);
	height: var(--header-img-hoogte);
	width: auto;
	display: block;
	object-fit: contain;
}
.header-logo-block .slogan {
	font-family: var(--font-historie);
	font-size: 0.95rem;
	color: var(--rood);
	margin: 0;
	text-align: center;
	max-width: 220px;
}
.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 0.6rem;
	align-items: center;
	justify-content: flex-end;
}
.site-nav a {
	color: var(--rood-licht);
	text-decoration: none;
	font-size: 1rem;
	font-weight: 600;
	padding: 0.35rem 0.5rem;
	border-radius: 4px;
}
.site-nav a:hover {
	color: var(--rood);
	background: rgba(139, 0, 0, 0.06);
}
.header-rechts {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin-left: auto;
}
.header-rechts img {
	max-height: calc(var(--header-img-hoogte) * 1.8);
	height: calc(var(--header-img-hoogte) * 1.8);
	width: auto;
	object-fit: contain;
}

/* Smalle nav-balk bovenin + logo + titel + plaatjes (alle pagina's) */
.nav-balk {
	background: var(--header-achtergrond);
	padding: 0.5rem 1.5rem;
	border-bottom: 1px solid rgba(139, 0, 0, 0.08);
}
.nav-balk .site-nav {
	justify-content: flex-end;
}

.header-titel-rij {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 900px) minmax(0, 1fr);
	align-items: center;
	gap: 1rem 1.5rem;
	padding: 1rem 1.5rem;
	background: var(--header-achtergrond);
}
.header-titel-rij .logo-wrap {
	grid-column: 1;
	justify-self: start;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}
.header-titel-rij .logo-wrap .logo {
	height: var(--header-img-hoogte);
	width: auto;
	display: block;
	object-fit: contain;
}
/* Hoofdpagina: titel + logo + plaatjes op 2/3 formaat, titel over 3 regels */
.header-titel-rij:has(.pagina-titel) {
	gap: 0.75rem 1.75rem;
}
.header-titel-rij:has(.pagina-titel) .titel-blok {
	text-align: center;
	padding-right: 5.5rem;
}
.header-titel-rij:has(.pagina-titel) .pagina-titel,
.header-titel-rij:has(.pagina-titel) .titel-blok h1 {
	text-align: center;
	font-size: clamp(2rem, 5.5vw, 2.9rem);
}
.header-titel-rij:has(.pagina-titel) .logo-wrap .logo {
	height: calc(var(--header-img-hoogte) * 1.87);
}
.header-titel-rij:has(.pagina-titel) .header-plaatjes img {
	max-height: calc(var(--header-img-hoogte) * 2.4);
	height: calc(var(--header-img-hoogte) * 2.4);
}
.header-titel-rij:has(.pagina-titel) .logo-wrap .slogan {
	font-size: 0.75rem;
}
.header-titel-rij .logo-wrap .slogan {
	font-family: var(--font-historie);
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--rood);
	margin: 0;
	text-align: center;
	max-width: 220px;
}
.header-titel-rij .titel-blok {
	grid-column: 2;
	min-width: 0;
}
/* Subpagina's: titel uitlijnen met content (hoofdpagina met .pagina-titel blijft centraal) */
.header-titel-rij .titel-blok:not(:has(.pagina-titel)) {
	padding-left: 1.5rem;
}
.header-titel-rij .pagina-titel,
.header-titel-rij .titel-blok h1 {
	text-align: left;
	font-size: clamp(2.25rem, 6vw, 3.3rem);
	font-weight: 600;
	color: var(--rood);
	margin: 0;
	padding: 0;
}
.header-titel-rij .header-plaatjes {
	grid-column: 3;
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-shrink: 0;
}
.header-titel-rij .header-plaatjes img {
	max-height: calc(var(--header-img-hoogte) * 1.2);
	height: calc(var(--header-img-hoogte) * 1.2);
	width: auto;
	object-fit: contain;
}

/* Paginatitel (algemeen, o.a. subpagina's) */
.pagina-titel {
	text-align: center;
	font-size: clamp(2.25rem, 6vw, 3.3rem);
	font-weight: 600;
	color: var(--rood);
	margin: 0;
	padding: 1rem 1.5rem;
}

/* Main hero: links = wisselfotos (5s), rechts = flyer (50/50) */
.hero-wrap {
	display: flex;
	flex-wrap: nowrap;
	min-height: 320px;
	width: 100%;
	overflow: visible;
	position: relative;
}
.hero-links {
	flex: 0 0 50%;
	width: 50%;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: #eee;
	box-sizing: border-box;
	overflow: visible;
}
.hero-links .wissel-foto {
	width: 100%;
	max-width: 100%;
	height: auto;
	max-height: 70vh;
	object-fit: contain;
	border: 10px solid var(--wit);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* Carousel: alles IN de foto – pijlen links/rechts, bolletjes onderin (zoals referentie) */
.hero-carousel {
	position: relative;
}
.carousel-pijl {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.7);
	color: #333;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.2s;
	z-index: 10;
}
.carousel-pijl:hover {
	background: rgba(255, 255, 255, 0.95);
}
.carousel-pijl:focus {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
.carousel-pijl-links {
	left: 1rem;
}
.carousel-pijl-rechts {
	right: 1rem;
}

/* Bolletjes onderin de foto – kleine witte cirkels, actieve vol, rest outline */
.carousel-bolletjes {
	position: absolute;
	bottom: calc(1.5rem + 20px);
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	align-items: center;
	z-index: 10;
}
.carousel-bol {
	width: 8px;
	height: 8px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
	transition: background 0.2s;
}
.carousel-bol:hover {
	background: rgba(255, 255, 255, 0.8);
}
.carousel-bol-actief {
	background: #fff;
}
.carousel-bol:focus {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
.lijn-dubbel-vertikaal {
	flex: 0 0 auto;
}
.hero-rechts {
	flex: 0 0 50%;
	width: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: #e8e6e2;
	box-sizing: border-box;
}
.hero-flyer {
	max-height: 70vh;
	width: auto;
	object-fit: contain;
	display: block;
}

/* Scroll hint */
.scroll-hint {
	text-align: center;
	padding: 1rem 1.5rem;
	margin: 0;
}
.scroll-hint a {
	color: var(--rood);
	text-decoration: none;
	font-size: 0.95rem;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}
.scroll-hint a:hover {
	text-decoration: underline;
}
.scroll-hint .pijl {
	font-size: 1.2rem;
}

/* Poster sectie (na scroll) */
.poster-sectie {
	max-width: 800px;
	margin: 0 auto;
	padding: 2rem 1.5rem;
	text-align: center;
}
.poster-sectie img {
	width: 100%;
	max-width: 768px;
	height: auto;
	aspect-ratio: 768/1024;
	object-fit: contain;
	display: block;
	margin: 0 auto 1rem;
}
.poster-sectie .datum-tekst {
	font-family: var(--font-historie);
	font-size: 24px;
	color: var(--tekst);
}

/* Page content (subpages) */
.main-wrap {
	max-width: 900px;
	margin: 0 auto;
	padding: 1.5rem;
}
.page-content h1 {
	font-family: var(--font-historie);
	color: var(--rood);
	font-size: 1.75rem;
}
.page-content .artikel-img {
	max-width: 100%;
	height: auto;
	margin: 1rem 0;
	border-radius: 4px;
}
.page-content .artikel-img-200 {
	width: 200px;
	height: auto;
}

/* Historie overzicht: thumbnail + titel per artikel */
.historie-artikelen {
	list-style: none;
	padding: 0;
	margin: 0;
}
.historie-item {
	margin-bottom: 1.5rem;
}
.historie-link {
	display: flex;
	align-items: center;
	gap: 1rem;
	text-decoration: none;
	color: inherit;
	padding: 0.5rem 0;
	border-radius: 6px;
}
.historie-link:hover {
	background: rgba(139, 0, 0, 0.05);
}
.historie-thumb {
	width: 128px;
	height: 96px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
	border: 1px solid #ddd;
}
.historie-thumb-groot {
	width: 256px;
	height: 192px;
}
.historie-titel {
	font-weight: 600;
	color: var(--rood);
}
.historie-link:hover .historie-titel {
	text-decoration: underline;
}
.film-row {
	display: flex;
	gap: 1.5rem;
	align-items: flex-start;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}
.page-content .film-plaatje {
	margin: 0;
	flex: 0 0 25%;
	max-width: 280px;
}
.page-content .film-plaatje a {
	display: block;
}
.page-content .film-plaatje img {
	width: 100%;
	height: auto;
	display: block;
}
.film-tekst {
	flex: 1;
	min-width: 200px;
}
.film-tekst p {
	margin: 0 0 0.75rem;
}
.film-tekst p:last-child {
	margin-bottom: 0;
}
@media (max-width: 600px) {
	.film-row {
		flex-direction: column;
	}
	.page-content .film-plaatje {
		max-width: 100%;
	}
}
.page-content .film-link {
	color: var(--rood);
	font-weight: 600;
}
.page-content .film-link:hover {
	text-decoration: underline;
}
.font-historie {
	font-family: var(--font-historie);
}

/* Contactpagina */
.contact-intro {
	font-size: 1.35rem;
	color: var(--rood);
	margin: 0 0 1.5rem;
	line-height: 1.4;
}
.contact-melding {
	margin-bottom: 1rem;
	padding: 0.75rem 1rem;
	border-radius: 4px;
	font-weight: 600;
}
.contact-success {
	color: #2d7a2d;
	background: rgba(45, 122, 45, 0.1);
	border: 1px solid #2d7a2d;
}
.contact-fout {
	color: #b00;
	background: rgba(187, 0, 0, 0.08);
	border: 1px solid #b00;
}
.contact-form {
	max-width: 500px;
}
.contact-form p {
	margin-bottom: 1rem;
}
.contact-form label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
	color: var(--tekst);
}
.contact-form .verplicht {
	color: var(--rood);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
	width: 100%;
	padding: 0.5rem 0.65rem;
	font-family: var(--font-body);
	font-size: 1rem;
	border: 1px solid #bbb;
	border-radius: 4px;
	box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--rood);
	box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.15);
}
.contact-form textarea {
	resize: vertical;
	min-height: 120px;
}
.contact-form .tekst-teller {
	display: block;
	font-size: 0.85rem;
	color: #666;
	margin-top: 0.25rem;
}
.contact-form .form-submit {
	margin-top: 1.5rem;
	margin-bottom: 0;
}
.btn-verzenden {
	display: inline-block;
	padding: 0.5rem 1.25rem;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	color: var(--wit);
	background: var(--rood);
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
}
.btn-verzenden:hover {
	background: var(--rood-donker);
}

.nav-knop {
	display: inline-block;
	padding: 0.35rem 0.5rem;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	color: var(--rood-licht);
	background: transparent;
	border: 2px solid var(--rood-licht);
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
}
.nav-knop:hover {
	background: rgba(139, 0, 0, 0.06);
	color: var(--rood);
	border-color: var(--rood);
}

/* Footer: Erfgoed logo linksonder */
.site-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.5rem;
	background: #f0eeea;
	border-top: 1px solid #ddd;
}
.site-footer .erfgoed-logo {
	max-height: 60px;
	order: -1;
}
.site-footer .footer-copyright {
	max-height: 50px;
	order: -1;
}
.site-footer p {
	margin: 0.25rem 0;
	font-size: 0.9rem;
	color: #555;
	flex: 1;
	text-align: center;
}

/* Responsive: tablet – nog compacter op hoofdpagina */
@media (max-width: 1024px) {
	.header-titel-rij:has(.pagina-titel) .titel-blok {
		padding-right: 2rem;
	}
	.header-titel-rij:has(.pagina-titel) .logo-wrap .logo {
		height: calc(var(--header-img-hoogte) * 1.3);
	}
	.header-titel-rij:has(.pagina-titel) .header-plaatjes img {
		max-height: calc(var(--header-img-hoogte) * 1.6);
		height: calc(var(--header-img-hoogte) * 1.6);
	}
}

/* Responsive: mobiel */
@media (max-width: 768px) {
	.site-header {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.header-rechts {
		flex-direction: column;
		align-items: center;
	}
	.site-nav {
		justify-content: center;
	}
	.hero-wrap {
		flex-direction: column;
		flex-wrap: wrap;
	}
	.hero-links,
	.hero-rechts {
		flex: 0 0 auto;
		width: 100%;
		min-height: 280px;
	}
	.carousel-pijl {
		width: 40px;
		height: 40px;
		font-size: 1.6rem;
	}
	.carousel-pijl-links {
		left: 0.25rem;
	}
	.carousel-pijl-rechts {
		right: 0.25rem;
	}
	.nav-balk .site-nav {
		justify-content: center;
		flex-wrap: wrap;
	}
	.header-titel-rij {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto;
		gap: 1rem;
	}
	.header-titel-rij .logo-wrap,
	.header-titel-rij .titel-blok,
	.header-titel-rij .header-plaatjes {
		grid-column: 1;
		justify-self: center;
		max-width: 100%;
	}
	.header-titel-rij .titel-blok:not(:has(.pagina-titel)) {
		padding-left: 0;
	}
	.header-titel-rij .titel-blok {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	.header-titel-rij .pagina-titel,
	.header-titel-rij .titel-blok h1 {
		text-align: center;
	}
	.header-titel-rij .header-plaatjes {
		flex-wrap: wrap;
		justify-content: center;
	}
	/* Hoofdpagina mobiel: logo en plaatjes kleiner, geen overlap */
	.header-titel-rij:has(.pagina-titel) .logo-wrap .logo {
		height: calc(var(--header-img-hoogte) * 1.2);
		max-height: 100px;
	}
	.header-titel-rij:has(.pagina-titel) .header-plaatjes img {
		max-height: 80px;
		height: 80px;
		width: auto;
	}
	.header-titel-rij:has(.pagina-titel) .titel-blok h1 {
		font-size: clamp(1.75rem, 5vw, 2.5rem);
	}
}
