
section, .flex-row {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.8s cubic-bezier(.77,0,.18,1), transform 0.8s cubic-bezier(.77,0,.18,1);
}
section.active, .flex-row.active {
	opacity: 1;
	transform: none;
}

p {
    margin: 0 0 1rem;
}

.banner {
	position: relative;
	height: 100vh;
	max-height: 2873px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 2rem;
}
.banner-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* filter: brightness(0.6) blur(1px); */
	position: absolute;
	top: 0; left: 0;
	z-index: 1;
}
.banner-overlay {
	position: relative;
	z-index: 2;
	color: #fff;
	text-align: center;
	width: 100%;
    max-width: 540px;
	background: rgba(0, 0, 0, .2);
    padding: 0 16px;
    border-radius: 16px;
}
.banner-overlay h1 {
	font-size: 2.8rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.banner-overlay h2 {
	font-size: 1.5rem;
	font-weight: 400;
	text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.flex-row {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	margin: 2rem 0;
}
.flex-row.reverse {
	flex-direction: row-reverse;
}
.flex-img {
	flex: 1 1 300px;
	max-width: 350px;
	text-align: center;
}
.flex-img img {
	width: auto;
    height: 200px;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.10);
	background: #f5f5f5;
}
.flex-img figcaption {
	font-size: 1rem;
	color: #555;
	margin-top: 0.5rem;
}
.flex-text {
	flex: 2 1 400px;
	min-width: 220px;
}

@media (max-width: 900px) {
	.flex-row, .flex-row.reverse {
		flex-direction: column;
		gap: 1rem;
	}
	.flex-img, .flex-text {
		max-width: 100%;
		min-width: 0;
	}
	.banner {
		height: 180px;
	}
	.banner-overlay {
		max-width: 364px;

	}
	.banner-overlay h1 {
		font-size: 1.5rem;
	}
	.banner-overlay h2 {
		font-size: 1rem;
	}
}
body {
	margin: 0;
	font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
	background: linear-gradient(135deg, #f5f5f5 0%, #e2d6c2 100%);
	color: #222;
}

.kerner-header {
	background: linear-gradient(90deg, #b71c1c 0%, #fbc02d 100%);
	color: #fff;
	text-align: center;
	padding: 2rem 1rem 1rem 1rem;
	position: relative;
}

.coat-of-arms {
	width: 120px;
	height: auto;
	margin-bottom: 1rem;
	box-shadow: 0 4px 16px rgba(0,0,0,0.15);
	border-radius: 12px;
	background: #fff;
}

h1 {
	font-size: 2.5rem;
	margin: 0.5rem 0 0 0;
	font-weight: 700;
}
h2 {
	font-size: 1.5rem;
	font-weight: 400;
	margin: 0.5rem 0 1rem 0;
}
h3 {
	font-size: 1.2rem;
	margin-top: 2rem;
	color: #b71c1c;
}

main {
	max-width: 900px;
	margin: 2rem auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 2px 16px rgba(0,0,0,0.08);
	padding: 2rem;
}

section {
	margin-bottom: 2.5rem;
}

.img-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	justify-content: center;
	margin: 1.5rem 0;
}
.img-row.fixed-height figure {
	flex: 1 1 180px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.img-row.fixed-height img {
	height: 260px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.10);
	background: #f5f5f5;
}
.img-row.fixed-height figcaption {
	font-size: 0.95rem;
	color: #555;
	margin-top: 0.5rem;
}
.lightbox-modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0,0,0,0.85);
	align-items: center;
	justify-content: center;
	flex-direction: column;
}
.lightbox-modal.active {
	display: flex;
}
.lightbox-content {
	max-width: 90vw;
	max-height: 80vh;
	border-radius: 10px;
	box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
.lightbox-caption {
	color: #fff;
	margin-top: 1rem;
	font-size: 1.1rem;
	text-align: center;
}
.lightbox-close {
	position: absolute;
	top: 2rem;
	right: 2rem;
	color: #fff;
	font-size: 2.5rem;
	cursor: pointer;
	z-index: 10001;
	transition: color 0.2s;
}
.lightbox-close:hover {
	color: #fbc02d;
}

a {
	color: #b71c1c;
	text-decoration: underline;
	transition: color 0.2s;
}
a:hover {
	color: #fbc02d;
}

footer {
	text-align: center;
	padding: 1.5rem 0;
	background: #b71c1c;
	color: #fff;
	margin-top: 2rem;
	border-radius: 0 0 8px 8px;
}

@media (max-width: 700px) {
	main {
		padding: 1rem;
	}
	.img-row {
		flex-direction: column;
		gap: 1rem;
	}
	.img-row figure {
		max-width: 100%;
	}
}
