/* =========================================================
   Kleingarten Verein Theme - Design Tokens
   ========================================================= */
:root {
	--color-cream: #F6F3EA;
	--color-cream-alt: #FBF9F3;
	--color-pine: #24382C;
	--color-pine-light: #33513F;
	--color-moss: #7A9B57;
	--color-gold: #C9963E;
	--color-soil: #3E3226;
	--color-border: #E1DACB;

	--font-display: 'Fraunces', Georgia, serif;
	--font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

	--container-width: 1140px;
	--radius-md: 10px;
	--radius-lg: 18px;
	--shadow-card: 0 8px 24px rgba(36, 56, 44, 0.08);
}

/* =========================================================
   Reset & Basics
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--color-cream);
	color: var(--color-soil);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-pine); text-decoration: none; }
a:hover { color: var(--color-moss); }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--color-pine);
	line-height: 1.15;
	margin: 0 0 0.5em;
	font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 24px;
}

.eyebrow {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-moss);
	margin: 0 0 0.6em;
}

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}
.skip-link:focus {
	position: fixed;
	top: 10px; left: 10px;
	width: auto; height: auto;
	background: var(--color-pine);
	color: #fff;
	padding: 12px 18px;
	border-radius: var(--radius-md);
	z-index: 999;
}

*:focus-visible {
	outline: 3px solid var(--color-gold);
	outline-offset: 2px;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
	background: var(--color-gold);
	color: var(--color-pine);
}
.btn-primary:hover { background: #dba951; color: var(--color-pine); }

.btn-ghost {
	background: transparent;
	border-color: var(--color-pine);
	color: var(--color-pine);
}
.btn-ghost:hover { background: var(--color-pine); color: #fff; }

.link-arrow {
	font-weight: 600;
	color: var(--color-pine);
	white-space: nowrap;
}
.link-arrow::after { content: ' \2192'; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
	background: var(--color-cream-alt);
	border-bottom: 1px solid var(--color-border);
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 16px;
	padding-bottom: 16px;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--color-pine);
}

.site-branding-mark { flex-shrink: 0; line-height: 0; }
.site-branding-mark img,
.site-branding-mark .custom-logo {
	height: 58px;
	width: auto;
	display: block;
}

.site-branding-text { display: flex; flex-direction: column; line-height: 1.25; }

.site-title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.25rem;
	color: var(--color-pine);
}
.site-tagline { font-size: 0.78rem; color: var(--color-soil); opacity: 0.75; }

.nav-menu {
	display: flex;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav-menu a {
	font-weight: 500;
	color: var(--color-soil);
	padding: 6px 0;
	border-bottom: 2px solid transparent;
}
.nav-menu a:hover,
.nav-menu li.current-menu-item > a {
	color: var(--color-pine);
	border-bottom-color: var(--color-gold);
}

.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}
.menu-toggle span {
	width: 24px; height: 2px;
	background: var(--color-pine);
	border-radius: 2px;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
	padding: 90px 0 70px;
	background:
		radial-gradient(circle at 85% 20%, rgba(122, 155, 87, 0.16), transparent 55%),
		radial-gradient(circle at 10% 90%, rgba(201, 150, 62, 0.14), transparent 50%);
}
.hero-inner { max-width: 720px; }
.hero-lead { font-size: 1.15rem; color: var(--color-soil); opacity: 0.85; }
.hero-actions { display: flex; gap: 14px; margin-top: 1.6em; flex-wrap: wrap; }

/* =========================================================
   Saison-Leiste (Signatur-Element)
   ========================================================= */
.season-strip {
	background: var(--color-pine);
	color: var(--color-cream);
}
.season-strip-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px 24px;
	flex-wrap: wrap;
}
.season-strip .eyebrow { color: var(--color-gold); }
.season-strip-label strong {
	font-family: var(--font-display);
	font-size: 1.1rem;
	font-weight: 500;
}
.season-strip-list {
	display: flex;
	gap: 10px;
	list-style: none;
	margin: 0; padding: 0;
	flex-wrap: wrap;
	transition: opacity 0.28s ease;
}
.season-strip-list.is-fading { opacity: 0; }
.season-strip-list li {
	background: rgba(246, 243, 234, 0.12);
	border: 1px solid rgba(246, 243, 234, 0.25);
	border-radius: 999px;
	padding: 6px 16px;
	font-size: 0.88rem;
}

/* =========================================================
   Sections
   ========================================================= */
.section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 2.2em;
	flex-wrap: wrap;
}
.section-heading h2 { margin: 0; }

.news-section, .archive-header { padding: 70px 0; }
.archive-header { padding-bottom: 30px; }

/* =========================================================
   News Cards / Grid
   ========================================================= */
.card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.news-card {
	background: var(--color-cream-alt);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	border: 1px solid var(--color-border);
}
.news-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(36, 56, 44, 0.14);
}
.news-card-link { color: inherit; display: block; }
.news-card-link:hover { color: inherit; }

.news-card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--color-border); }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; }
.news-card-media-placeholder {
	width: 100%; height: 100%;
	background: linear-gradient(135deg, var(--color-moss), var(--color-pine-light));
}

.news-card-body { padding: 22px; }
.news-card-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.78rem;
	color: var(--color-moss);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 0.6em;
	font-weight: 600;
}
.news-card-category {
	background: rgba(122, 155, 87, 0.14);
	padding: 3px 10px;
	border-radius: 999px;
}
.news-card-title { margin-bottom: 0.4em; font-size: 1.15rem; }
.news-card-excerpt { color: var(--color-soil); opacity: 0.85; font-size: 0.95rem; margin: 0; }

/* =========================================================
   Split Section (Ueber uns Teaser)
   ========================================================= */
.split-section { padding: 60px 0 90px; }
.split-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}
.split-image-frame {
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-lg);
	background: linear-gradient(160deg, rgba(201, 150, 62, 0.16) 0%, rgba(122, 155, 87, 0.16) 55%, rgba(36, 56, 44, 0.12) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
}
.split-image-frame img,
.split-image-frame .custom-logo {
	max-width: 260px;
	width: 100%;
	height: auto;
}

/* =========================================================
   CTA Section
   ========================================================= */
.cta-section {
	background: var(--color-pine);
	color: var(--color-cream);
	padding: 70px 0;
	text-align: center;
}
.cta-inner { max-width: 560px; margin: 0 auto; }
.cta-section h2 { color: var(--color-cream); }
.cta-section p { opacity: 0.85; margin-bottom: 1.6em; }

/* =========================================================
   Single News & Pages
   ========================================================= */
.page-header, .single-news-header {
	padding: 60px 0 30px;
	text-align: center;
	background: var(--color-cream-alt);
	border-bottom: 1px solid var(--color-border);
}
.single-news-meta {
	display: flex;
	justify-content: center;
	gap: 14px;
	font-size: 0.9rem;
	color: var(--color-soil);
	opacity: 0.75;
	margin-top: 0.6em;
}
.single-news-media, .page-media { margin-top: 40px; border-radius: var(--radius-lg); overflow: hidden; }
.single-news-body, .page-body {
	max-width: 760px;
	margin: 50px auto;
	font-size: 1.05rem;
}
.single-news-body h2, .page-body h2 { margin-top: 1.4em; }
.single-news-body img, .page-body img { border-radius: var(--radius-md); }

.single-news-nav {
	max-width: 760px;
	margin: 0 auto 60px;
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding-top: 24px;
	border-top: 1px solid var(--color-border);
	font-weight: 600;
}

.pagination { display: flex; justify-content: center; gap: 16px; margin-top: 3em; }
.pagination .page-numbers {
	padding: 8px 14px;
	border-radius: var(--radius-md);
	background: var(--color-cream-alt);
	border: 1px solid var(--color-border);
}
.pagination .current { background: var(--color-pine); color: #fff; }

/* =========================================================
   Kontaktformular
   ========================================================= */
.contact-layout {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 60px;
	align-items: start;
}
.contact-form {
	background: var(--color-cream-alt);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.form-row input, .form-row textarea {
	width: 100%;
	padding: 12px 14px;
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border);
	font-family: var(--font-body);
	font-size: 1rem;
	background: #fff;
}
.form-row input:focus, .form-row textarea:focus {
	border-color: var(--color-moss);
	outline: none;
	box-shadow: 0 0 0 3px rgba(122, 155, 87, 0.2);
}
.form-notice { padding: 12px 16px; border-radius: var(--radius-md); margin-bottom: 20px; font-weight: 600; }
.form-notice-success { background: rgba(122, 155, 87, 0.18); color: var(--color-pine); }
.form-notice-error { background: rgba(201, 100, 62, 0.15); color: #8a3b1f; }

/* =========================================================
   Galerie (WP Gallery Block)
   ========================================================= */
.gallery-body { max-width: 960px; margin: 50px auto; }
.gallery-body .wp-block-gallery { margin-top: 1em; }
.gallery-body figure img { border-radius: var(--radius-md); }

/* =========================================================
   Footer
   ========================================================= */
.footer-divider { color: var(--color-moss); background: var(--color-cream-alt); }
.footer-divider svg { width: 100%; height: 24px; display: block; }

.site-footer { background: var(--color-cream-alt); border-top: 1px solid var(--color-border); }
.footer-inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
	padding: 50px 0;
}
.footer-about p { opacity: 0.8; }
.footer-menu { list-style: none; margin: 1em 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-widget-title { font-size: 1rem; }

.footer-bottom {
	border-top: 1px solid var(--color-border);
	padding: 18px 0;
	font-size: 0.85rem;
	opacity: 0.7;
}
.footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.footer-bottom-inner p { margin: 0; }
.legal-menu {
	display: flex;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
	.card-grid { grid-template-columns: repeat(2, 1fr); }
	.split-inner { grid-template-columns: 1fr; gap: 30px; }
	.contact-layout { grid-template-columns: 1fr; }
	.footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
	.menu-toggle { display: flex; }
	.primary-navigation {
		display: none;
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: var(--color-cream-alt);
		border-bottom: 1px solid var(--color-border);
		padding: 10px 24px 20px;
	}
	.primary-navigation.is-open { display: block; }
	.nav-menu { flex-direction: column; gap: 4px; }

	.card-grid { grid-template-columns: 1fr; }
	.season-strip-inner { flex-direction: column; align-items: flex-start; }
	.footer-inner { grid-template-columns: 1fr; }
	.hero { padding: 60px 0 40px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
