/* ==========================================================================
   Schmelter-Farbenfroh – mobile-first Grundstyles
   ========================================================================== */

:root {
	--color-bg: #fdfcfb;
	--color-text: #2b2b2b;
	--color-muted: #6b6b6b;
	--color-accent: #d9542a;
	--color-accent-dark: #b5401d;
	--color-border: #e6e1db;
	--color-card-bg: #ffffff;
	--font-heading: Georgia, 'Times New Roman', serif;
	--font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--container-width: 1100px;
	--radius: 10px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
	font-family: var(--font-body);
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-accent-dark); }
a:hover { color: var(--color-accent); }

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.wide-container {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 1.1rem;
}

/* ---------- Header / Navigation ---------- */

.site-header {
	background: var(--color-card-bg);
	border-bottom: 1px solid var(--color-border);
	position: sticky;
	top: 0;
	z-index: 50;
}

.site-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 64px;
	position: relative;
}

.site-branding {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: var(--color-text);
}
.site-branding__title { font-family: var(--font-heading); font-size: 1.25rem; font-weight: bold; }
.site-branding__tagline { font-size: 0.72rem; color: var(--color-muted); }

.nav-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	background: none;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	cursor: pointer;
}
.nav-toggle__bar {
	display: block;
	width: 22px;
	height: 2px;
	margin: 0 auto;
	background: var(--color-text);
}

.main-navigation {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--color-card-bg);
	border-bottom: 1px solid var(--color-border);
}
.main-navigation.is-open { display: block; }
.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0.5rem 1.1rem 1rem;
}
.main-navigation a {
	display: block;
	padding: 0.7rem 0;
	text-decoration: none;
	color: var(--color-text);
	border-bottom: 1px solid var(--color-border);
	min-height: 44px;
}
.main-navigation a.is-active { color: var(--color-accent-dark); font-weight: bold; }

@media (min-width: 820px) {
	.nav-toggle { display: none; }
	.main-navigation {
		display: block;
		position: static;
		background: none;
		border: 0;
	}
	.main-navigation ul {
		display: flex;
		gap: 1.6rem;
		padding: 0;
	}
	.main-navigation a {
		border-bottom: 2px solid transparent;
		padding: 0.4rem 0;
		min-height: auto;
	}
	.main-navigation a.is-active,
	.main-navigation a:hover { border-bottom-color: var(--color-accent); }
}

/* ---------- Content ---------- */

.site-content { padding: 2rem 0 3rem; }
.content-block { padding: 0 1.1rem; max-width: 760px; margin: 0 auto; }
.content-block--wide { max-width: var(--container-width); }

.hero {
	padding: 0 1.1rem 1rem;
	max-width: var(--container-width);
	margin: 0 auto;
}
.hero__image { border-radius: var(--radius); overflow: hidden; margin-bottom: 1.2rem; }

.teaser-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	max-width: var(--container-width);
	margin: 2rem auto 0;
	padding: 0 1.1rem;
}
@media (min-width: 700px) {
	.teaser-grid { grid-template-columns: 1fr 1fr; }
}
.teaser-card {
	background: var(--color-card-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 1.2rem;
}
.teaser-card h3 { margin-top: 0; }

/* ---------- Galerie ---------- */

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.6rem;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 1.1rem;
}
@media (min-width: 600px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 0.8rem; } }
@media (min-width: 900px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
	display: block;
	border-radius: 8px;
	overflow: hidden;
	background: var(--color-border);
	aspect-ratio: 1 / 1;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.home-gallery {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--color-border);
}
.home-gallery__header { text-align: center; margin-bottom: 1.5rem; }
.home-gallery__header p { color: var(--color-muted); margin-bottom: 0; }
.home-gallery__footer { text-align: center; margin-top: 1.5rem; }

.empty-hint {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 1.1rem;
	color: var(--color-muted);
}

/* ---------- Lightbox ---------- */

.lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(20, 18, 16, 0.92);
	z-index: 100;
	align-items: center;
	justify-content: center;
	padding: 1.2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 85vh; margin: 0 auto; border-radius: 4px; }
.lightbox__caption { color: #fff; text-align: center; margin-top: 0.8rem; font-size: 0.9rem; }
.lightbox__close, .lightbox__prev, .lightbox__next {
	position: absolute;
	background: rgba(255,255,255,0.12);
	color: #fff;
	border: 0;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	font-size: 1.3rem;
	cursor: pointer;
}
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Flyer / Ausstellungen ---------- */

.flyer-section { max-width: var(--container-width); margin: 0 auto 2.5rem; padding: 0 1.1rem; }
.flyer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.1rem;
}
@media (min-width: 600px) { .flyer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .flyer-grid { grid-template-columns: repeat(3, 1fr); } }

.flyer-card {
	background: var(--color-card-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
	text-decoration: none;
	color: var(--color-text);
	display: block;
}
.flyer-card__preview {
	aspect-ratio: 3 / 4;
	background: var(--color-border);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.flyer-card__preview img { width: 100%; height: 100%; object-fit: contain; }
.flyer-card__body { padding: 0.9rem 1rem; }
.flyer-card__title { font-weight: bold; margin-bottom: 0.25rem; }
.flyer-card__meta { font-size: 0.85rem; color: var(--color-muted); }

/* ---------- Formulare ---------- */

.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: bold; margin-bottom: 0.3rem; }
.form-field input,
.form-field textarea {
	width: 100%;
	padding: 0.7rem;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	font: inherit;
	background: #fff;
}
.form-field textarea { min-height: 140px; resize: vertical; }

.btn {
	display: inline-block;
	background: var(--color-accent);
	color: #fff;
	border: 0;
	padding: 0.8rem 1.6rem;
	border-radius: 999px;
	font-size: 1rem;
	cursor: pointer;
	text-decoration: none;
	min-height: 44px;
}
.btn:hover { background: var(--color-accent-dark); color: #fff; }

.recaptcha-note { font-size: 0.8rem; color: var(--color-muted); margin-top: 1rem; }

/* Honeypot-Feld: fuer Menschen unsichtbar, fuer Bots technisch trotzdem ausfuellbar */
.hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.alert { padding: 0.9rem 1rem; border-radius: 8px; margin-bottom: 1.2rem; }
.alert--success { background: #e5f4e6; color: #23582a; }
.alert--error { background: #fbe7e5; color: #7c2318; }

.portrait {
	width: 200px;
	height: 200px;
	object-fit: cover;
	border-radius: 12px;
	margin: 0 auto 1.5rem;
}
@media (min-width: 700px) {
	.portrait { float: right; margin: 0 0 1rem 1.75rem; }
}

.info-box {
	background: var(--color-card-bg);
	border-left: 4px solid var(--color-accent);
	border-radius: 4px;
	padding: 1rem 1.2rem;
	margin: 1.2rem 0;
}

/* ---------- Footer ---------- */

.site-footer {
	border-top: 1px solid var(--color-border);
	padding: 1.4rem 0;
	color: var(--color-muted);
	font-size: 0.85rem;
}
.site-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	align-items: center;
	text-align: center;
}
.footer-nav a { margin: 0 0.5rem; color: var(--color-muted); }

@media (min-width: 600px) {
	.site-footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
