@charset "utf-8";
/* Erlaufsee — static site stylesheet */

:root {
	--blue: #34a4dc;
	--green: #8aa426;
	--lime: #bdcb13;
	--bg: #c7e9f1;
	--text: #222;
	--content-bg: rgba(255, 255, 255, 0.85);
	--max-width: 1080px;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	width: 100%;
	min-height: 100%;
}

body {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--text);
	background: url(../images/background_top.png) top center repeat-x, var(--bg);
}

@media (max-width: 767px) {
	body { background: var(--bg); }
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6, b, strong { color: var(--green); }
h1 { font-size: 2em; margin: 0.4em 0; }
h2 { font-size: 1.3em; margin: 0.8em 0 0.4em; }
h3 { font-size: 1.15em; }

.wrap {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 15px;
}

/* ---------- Header ---------- */
header.site-header {
	min-height: 100px;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: var(--max-width);
	width: 100%;
	margin: 0 auto;
	padding-top: 10px;
	box-sizing: border-box;
}

.logo-mobile { display: none; }

.social a img {
	max-width: 25px;
	border-radius: 5px;
	display: block;
}

/* ---------- Navigation ---------- */
nav.main-nav {
	max-width: var(--max-width);
	width: 100%;
	margin: 0 auto;
	text-transform: uppercase;
}

.nav-inner {
	background-color: rgba(255, 255, 255, 0.75);
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
	position: relative;
}

.hamburger {
	display: none;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 14px 16px;
	position: relative;
	z-index: 20;
}

.hamburger span {
	display: block;
	width: 24px;
	height: 3px;
	margin: 5px 0;
	background: var(--green);
	border-radius: 2px;
}

.menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: table;
	width: 100%;
}

.menu > li {
	display: table-cell;
	width: 1%;
	position: relative;
	text-align: center;
}

.menu > li > a {
	display: block;
	padding: 10px 10px;
	color: #000;
	font-weight: normal;
}

.menu > li > a:hover,
.menu > li > a:focus,
.menu > li.active > a {
	color: var(--green);
	text-decoration: none;
}

.submenu {
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background-color: var(--blue);
	display: none;
	z-index: 30;
	text-align: left;
}

.menu > li:hover > .submenu,
.menu > li.submenu-open > .submenu {
	display: block;
}

.submenu li a {
	display: block;
	padding: 6px 16px;
	color: #fff;
	font-size: 0.82em;
	font-weight: normal;
	white-space: nowrap;
}

.submenu li a:hover {
	background: var(--lime);
	text-decoration: none;
}

.menu > li.has-children > a::after {
	content: " \25BE";
	font-size: 0.7em;
}

/* Mobile nav */
@media (max-width: 900px) {
	.hamburger { display: block; }

	.nav-inner { border-radius: 10px; }

	.menu {
		display: none;
		width: 100%;
	}

	.menu.open {
		display: block;
	}

	.menu > li {
		display: block;
		width: 100%;
		text-align: left;
		border-top: 1px solid rgba(0,0,0,0.08);
	}

	.menu > li > a {
		padding: 12px 16px;
	}

	.menu > li.has-children > a::after {
		float: right;
	}

	.submenu {
		display: none;
		position: static;
		width: 100%;
		min-width: 0;
	}

	.menu > li:hover > .submenu {
		display: none;
	}

	.menu > li.submenu-open > .submenu {
		display: block;
	}
}

/* ---------- Hero / slider ---------- */
/* Mirrors the original 2/8/2 column layout: left gutter (logo), center (slider), right gutter (empty) */
.hero {
	max-width: var(--max-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 16.6667% 1fr 16.6667%;
	align-items: center;
	background-color: rgba(255, 255, 255, 0.75);
	padding: 15px 0;
}

.hero .logo-desktop {
	grid-column: 1;
	align-self: start;
	justify-self: stretch;
	max-width: 100%;
	padding: 40px 10px 0;
	box-sizing: border-box;
}

.slider {
	position: relative;
	grid-column: 2;
	overflow: hidden;
	border-radius: 4px;
	aspect-ratio: 16 / 9;
	background: #000;
}

.slider .slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1s ease-in-out;
}

.slider .slide.active {
	opacity: 1;
}

.slider .slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.slider .caption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0,0,0,0.55);
	color: #fff;
	padding: 6px 12px;
	font-size: 0.85em;
	text-align: right;
	margin: 0;
}

@media (max-width: 767px) {
	.hero {
		display: flex;
		flex-direction: column;
		background: transparent;
		padding: 0;
	}
	.hero .logo-desktop {
		max-width: 65%;
		margin: 15px 0;
	}
	.slider { width: 100%; }
}

/* ---------- Content ---------- */
main.content-back {
	max-width: var(--max-width);
	margin: 0 auto;
}

.content {
	background-color: var(--content-bg);
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
	/* left/right gutters match the hero's logo/empty columns so text aligns with the slider */
	padding: 20px 16.6667%;
	padding-bottom: 40px;
}

@media (max-width: 767px) {
	.content { padding: 15px; }
}

.page-title {
	font-size: 1.6em;
	margin: 0 0 15px;
	padding-bottom: 8px;
}

.home-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 20px;
}

.home-grid figure {
	margin: 0;
}

.home-grid img {
	border-radius: 6px;
	display: block;
}

.home-grid figcaption h2 {
	margin-top: 8px;
}

@media (max-width: 600px) {
	.home-grid { grid-template-columns: 1fr; }
}

/* Section landing pages: list of teaser cards */
.card-list {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.card {
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(0,0,0,0.1);
}

.card:last-child {
	border-bottom: none;
}

.card h2 {
	margin-top: 0;
}

.card .btn {
	display: inline-block;
	padding: 7px 16px;
	background-color: var(--blue);
	color: #fff !important;
	border-radius: 10px;
	text-decoration: none;
	font-size: 0.85em;
	margin-top: 8px;
}

.card .btn:hover {
	background-color: var(--lime);
	text-decoration: none;
}

/* Image gallery grid (replaces sigplus) */
.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 8px;
	margin: 15px 0;
	clear: both;
}

.gallery a {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 6px;
	border: 1px solid var(--blue);
}

.gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.gallery a:hover img {
	transform: scale(1.08);
}

/* Lightbox */
.lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.85);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	padding: 30px;
}

.lightbox.open { display: flex; }

.lightbox img {
	max-width: 100%;
	max-height: 80vh;
	border-radius: 4px;
}

.lightbox figcaption {
	color: #fff;
	text-align: center;
	margin-top: 10px;
	font-size: 0.9em;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
	position: absolute;
	background: rgba(255,255,255,0.15);
	border: none;
	color: #fff;
	font-size: 1.8em;
	cursor: pointer;
	padding: 8px 16px;
	border-radius: 4px;
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Footer ---------- */
footer.site-footer {
	max-width: var(--max-width);
	margin: 0 auto;
	min-height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 0.8em;
	padding: 15px;
}

/* misc content elements coming from the original articles */
.item-page p { margin: 0.6em 0; }
