/*
Theme Name: Bonsai Arbeitskreis Türkheim
Theme URI: https://example.org/
Author: Bonsai Arbeitskreis Türkheim
Description: Freundliches, naturnahes WordPress-Theme für den Bonsai Arbeitskreis Türkheim (Bayern). Großformatiges Titelbild auf der Startseite, Naturfarben, Terminbox, Aktuelles und anpassbare Inhalte über den Customizer. Ohne externe Schriften (DSGVO-freundlich).
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bonsai-tuerkheim
Tags: one-column, custom-menu, custom-logo, featured-images, translation-ready, blog
*/

/* ---------- Farbwelt ---------- */
:root {
	--washi: #f5f0e6;      /* Reispapier – Hintergrund */
	--sand: #ebe3d3;       /* helle Fläche */
	--stone: #d6ccb8;      /* Linien */
	--moss: #5b7543;       /* Moos – Akzent */
	--moss-dark: #3f5530;
	--pine: #2e3b29;       /* Kiefer – dunkle Flächen */
	--bark: #6b4c35;       /* Rinde */
	--clay: #9a5136;       /* Schalenton – Hervorhebung */
	--ink: #2b2a26;        /* Text */
	--ink-soft: #5c584f;
	--white: #fffdf8;

	--font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--radius: 14px;
	--shadow: 0 10px 30px rgba(46, 59, 41, .10);
	--wrap: 1160px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--washi);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--moss-dark); text-underline-offset: 3px; }
a:hover { color: var(--clay); }
h1, h2, h3, h4 {
	font-family: var(--font-serif);
	font-weight: 600;
	line-height: 1.2;
	color: var(--pine);
	margin: 0 0 .6em;
	letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 10px; left: 10px;
	background: var(--white); padding: 10px 16px; border-radius: 8px;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	padding: .85em 1.6em;
	border-radius: 999px;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	transition: background .2s, color .2s, transform .2s;
	border: 2px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--moss); color: var(--white); }
.btn-primary:hover { background: var(--moss-dark); color: var(--white); }
.btn-ghost { border-color: currentColor; color: var(--pine); }
.btn-ghost:hover { background: var(--pine); color: var(--white); border-color: var(--pine); }

/* ---------- Kopfbereich ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(245, 240, 230, .92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--stone);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.branding { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--pine); }
.branding .custom-logo { max-height: 52px; width: auto; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.site-title { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; }
.site-tagline { font-size: .8rem; color: var(--ink-soft); letter-spacing: .06em; text-transform: uppercase; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a {
	display: block; padding: .5em .9em; border-radius: 999px;
	text-decoration: none; color: var(--ink); font-weight: 500;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { background: var(--sand); color: var(--pine); }
.main-nav .sub-menu { display: none; }

.nav-toggle {
	display: none; background: none; border: 1px solid var(--stone); border-radius: 10px;
	padding: 8px 10px; cursor: pointer; color: var(--pine);
}
.nav-toggle svg { display: block; }

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.main-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--washi); border-bottom: 1px solid var(--stone);
		display: none; padding: 10px 20px 20px;
	}
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; }
	.main-nav .sub-menu { display: block; padding-left: 14px; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: clamp(520px, 86vh, 900px);
	display: flex; align-items: center;
	background-color: var(--sand);
	background-size: cover;
	background-position: 70% center;
	overflow: hidden;
}
.hero::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(245,240,230,.94) 0%, rgba(245,240,230,.78) 34%, rgba(245,240,230,0) 62%);
}
.hero.is-dark::before {
	background: linear-gradient(90deg, rgba(30,38,27,.78) 0%, rgba(30,38,27,.45) 45%, rgba(30,38,27,0) 70%);
}
.hero-content { position: relative; max-width: 560px; padding: 60px 0; }
.hero .eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--clay); font-weight: 600; margin-bottom: 18px;
}
.hero .eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero h1 { margin-bottom: .4em; }
.hero-lead { font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero.is-dark h1, .hero.is-dark .hero-lead { color: var(--white); }
.hero.is-dark .btn-ghost { color: var(--white); }

@media (max-width: 760px) {
	.hero { align-items: flex-end; background-position: 72% center; }
	.hero::before { background: linear-gradient(0deg, rgba(245,240,230,.96) 0%, rgba(245,240,230,.85) 45%, rgba(245,240,230,.1) 80%); }
	.hero.is-dark::before { background: linear-gradient(0deg, rgba(30,38,27,.88) 0%, rgba(30,38,27,.6) 50%, rgba(30,38,27,.1) 85%); }
	.hero-content { padding: 40px 0; }
}

/* ---------- Sektionen ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--sand); }
.section-dark { background: var(--pine); color: #e8e3d6; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
	font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
	color: var(--clay); font-weight: 700; display: block; margin-bottom: 10px;
}
.section-dark .kicker { color: #d9a487; }

/* Willkommen */
.intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.intro-text { font-size: 1.1rem; }
.intro-quote {
	background: var(--white); border-radius: var(--radius); padding: 36px 34px;
	box-shadow: var(--shadow); border-left: 4px solid var(--moss); position: relative;
}
.intro-quote p { font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.5; color: var(--pine); font-style: italic; }
.intro-quote cite { font-style: normal; font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }

/* Karten */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
	background: var(--white); border-radius: var(--radius); padding: 34px 30px;
	box-shadow: var(--shadow); border: 1px solid rgba(214,204,184,.6);
	transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(46,59,41,.14); }
.card-icon {
	width: 56px; height: 56px; border-radius: 16px; background: #e6ecdc;
	display: grid; place-items: center; color: var(--moss-dark); margin-bottom: 20px;
}
.card p { color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* Treffen */
.meet { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 70px); align-items: center; }
.meet-list { list-style: none; margin: 0 0 30px; padding: 0; }
.meet-list li {
	display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0;
	border-bottom: 1px solid rgba(232,227,214,.15);
}
.meet-list svg { color: #b6c99a; }
.meet-list strong { display: block; color: var(--white); font-weight: 600; }
.meet-panel {
	background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
	border-radius: var(--radius); padding: 38px;
}
.meet-panel h3 { margin-bottom: .5em; }
.section-dark .btn-ghost { color: var(--white); }
.section-dark .btn-ghost:hover { background: var(--white); color: var(--pine); border-color: var(--white); }
@media (max-width: 860px) { .meet { grid-template-columns: 1fr; } }

/* Beiträge */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
	background: var(--white); border-radius: var(--radius); overflow: hidden;
	box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.post-card-media { aspect-ratio: 16/10; background: var(--sand); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-media.placeholder { display: grid; place-items: center; color: var(--stone); }
.post-card-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.post-meta { font-size: .85rem; color: var(--clay); font-weight: 600; margin-bottom: 8px; }
.post-card h3 a { color: var(--pine); text-decoration: none; }
.post-card h3 a:hover { color: var(--clay); }
.post-card p { color: var(--ink-soft); font-size: .98rem; }
.read-more { margin-top: auto; font-weight: 600; text-decoration: none; }
.empty-note { text-align: center; color: var(--ink-soft); }
@media (max-width: 900px) { .posts-grid { grid-template-columns: 1fr; } }

/* CTA */
.cta {
	background: var(--white); border-radius: calc(var(--radius) * 1.5);
	padding: clamp(36px, 6vw, 64px); box-shadow: var(--shadow);
	display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
	border: 1px solid var(--stone);
}
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; color: var(--ink-soft); max-width: 560px; }

/* ---------- Inhaltsseiten ---------- */
.page-hero {
	background: var(--sand); padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px);
	border-bottom: 1px solid var(--stone);
}
.page-hero h1 { margin: 0; }
.page-hero .post-meta { margin-top: 12px; }
.content-area { padding: clamp(48px, 7vw, 84px) 0; }
.entry { max-width: 760px; margin-inline: auto; }
.entry-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; box-shadow: var(--shadow); }
.entry-content > * { margin-bottom: 1.2em; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content img { border-radius: 10px; }
.entry-content blockquote {
	margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--moss);
	background: var(--sand); border-radius: 0 10px 10px 0; font-family: var(--font-serif); font-size: 1.15rem;
}
.entry-content .wp-block-button__link { background: var(--moss); border-radius: 999px; }
.alignwide { max-width: 1000px; margin-inline: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption-text, figcaption { font-size: .9rem; color: var(--ink-soft); text-align: center; }
.archive-list { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.pagination { margin-top: 48px; text-align: center; }
.pagination .page-numbers {
	display: inline-block; padding: .4em .9em; margin: 0 3px; border-radius: 999px;
	text-decoration: none; background: var(--white); border: 1px solid var(--stone);
}
.pagination .current { background: var(--moss); color: var(--white); border-color: var(--moss); }

/* ---------- Fußbereich ---------- */
.site-footer { background: #24301f; color: #cfc8b8; padding: 64px 0 28px; font-size: .97rem; }
.site-footer a { color: #e8e3d6; }
.site-footer a:hover { color: #d9a487; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.site-footer h4 { color: var(--white); font-size: 1.1rem; margin-bottom: .8em; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--white); font-family: var(--font-serif); font-size: 1.2rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 6px; }
.footer-bottom {
	border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px;
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem;
}
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.widget { margin-bottom: 24px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Kommentare / Formulare ---------- */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
	width: 100%; padding: .75em 1em; border: 1px solid var(--stone); border-radius: 10px;
	background: var(--white); font: inherit; color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--moss); outline-offset: 1px; }
button, input[type="submit"] {
	background: var(--moss); color: var(--white); border: 0; border-radius: 999px;
	padding: .8em 1.5em; font: inherit; font-weight: 600; cursor: pointer;
}
button:hover, input[type="submit"]:hover { background: var(--moss-dark); }
.comments-area { max-width: 760px; margin: 60px auto 0; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--white); padding: 20px 24px; border-radius: 12px; margin-bottom: 16px; }

/* Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
.placeholder-mark { width: 72px; height: 72px; opacity: .55; }
.section-dark a:not(.btn) { color: #cfe0b2; }
.section-dark a:not(.btn):hover { color: #e8b99d; }
.site-footer h2, .site-footer h3, .site-footer .wp-block-heading { color: var(--white); font-size: 1.1rem; margin-bottom: .8em; }
.site-footer ul { padding-left: 0; list-style: none; }

/* Mobil: Bild oben, Text darunter – der Baum bleibt sichtbar */
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { background: var(--sand); color: var(--pine); }
@media (max-width: 760px) {
	.site-tagline { display: none; }
	.site-title { font-size: 1.1rem; }
	.hero {
		display: block; min-height: 0;
		background-size: 150% auto; background-position: 72% top; background-repeat: no-repeat;
		background-color: var(--washi);
		padding-top: 84vw;
	}
	.hero::before, .hero.is-dark::before {
		background: linear-gradient(180deg, rgba(245,240,230,0) 0, rgba(245,240,230,0) 66vw, var(--washi) 96vw);
	}
	.hero.is-dark h1 { color: var(--pine); }
	.hero.is-dark .hero-lead { color: var(--ink-soft); }
	.hero.is-dark .btn-ghost { color: var(--pine); }
	.hero-content { padding: 0 0 48px; }
	.hero-lead { font-size: 1.08rem; }
}

/* Stärkere Abdunklung für farbintensive Fotos */
.hero.is-dark::before {
	background: linear-gradient(90deg, rgba(22,29,19,.88) 0%, rgba(22,29,19,.72) 36%, rgba(22,29,19,.28) 62%, rgba(22,29,19,0) 78%);
}
.hero.is-dark .eyebrow { color: #f2c6a8; }
.hero.is-dark h1, .hero.is-dark .hero-lead { text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero.is-dark .hero-lead { color: #efeadf; }
@media (max-width: 760px) {
	.hero { padding-top: 100vw; }
	.hero::before, .hero.is-dark::before {
		background: linear-gradient(180deg, rgba(245,240,230,0) 0, rgba(245,240,230,0) 78vw, var(--washi) 100vw);
	}
	.hero.is-dark .eyebrow { color: var(--clay); }
	.hero.is-dark h1, .hero.is-dark .hero-lead { text-shadow: none; }
	.hero.is-dark .hero-lead { color: var(--ink-soft); }
}
