/* =========================================================
   Kleingärtner-Verein Oberlar – Website
   Farben ganz oben anpassen, der Rest richtet sich danach.
   Es werden keine externen Schriften geladen (Datenschutz).
   ========================================================= */
:root {
    --accent:       #0db8ca;   /* Türkis wie bisher: Zahlen, Überschriften */
    --accent-dark:  #07737f;   /* Für Buttons und Links (gut lesbar) */
    --text:         #4a4a4a;
    --heading:      #1f2a2c;
    --muted:        #7b8587;
    --bg:           #ffffff;
    --bg-alt:       #f6f8f7;
    --line:         #e4e9e8;
    --hero-fallback: linear-gradient(135deg, #2f5d3a 0%, #4f8a4c 45%, #0a8f9c 100%);
    --font: "Poppins", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-head: "Montserrat", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --radius: 10px;
    --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.25; margin: 1.6em 0 .6em; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1.1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }
.center-headings h2, .center-headings h3 { text-align: center; }
.small { font-size: .85rem; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Kopfleiste ---------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: #fff;
    box-shadow: 0 1px 0 var(--line);
    transition: background .25s, box-shadow .25s;
}
.topbar.over-hero { position: fixed; left: 0; right: 0; background: transparent; box-shadow: none; }
.topbar.over-hero.scrolled, .topbar.over-hero.open { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; white-space: nowrap; text-decoration: none; font-family: var(--font-head); font-weight: 800; letter-spacing: .02em; color: var(--heading); }
.over-hero:not(.scrolled):not(.open) .brand { color: #fff; }
.brand .logo { height: 44px; width: auto; max-width: 180px; object-fit: contain; }
.over-hero:not(.scrolled):not(.open) .brand .logo { filter: drop-shadow(0 1px 4px rgba(0,0,0,.35)); }
nav#hauptmenue ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
nav#hauptmenue a {
    display: block; padding: 8px 12px;
    font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    text-decoration: none; color: var(--heading); border-radius: 6px;
}
.over-hero:not(.scrolled):not(.open) nav#hauptmenue a { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
nav#hauptmenue a:hover, nav#hauptmenue a[aria-current="page"] { color: var(--accent) !important; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
    display: block; width: 24px; height: 2px; background: currentColor; position: relative; content: ""; transition: transform .2s;
}
.menu-toggle .bars::before { position: absolute; top: -7px; }
.menu-toggle .bars::after { position: absolute; top: 7px; }
.topbar.open .bars { background: transparent; }
.topbar.open .bars::before { transform: translateY(7px) rotate(45deg); }
.topbar.open .bars::after { transform: translateY(-7px) rotate(-45deg); }
.over-hero:not(.scrolled):not(.open) .menu-toggle { color: #fff; }

@media (max-width: 960px) {
    .menu-toggle { display: block; color: var(--heading); }
    nav#hauptmenue { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,.08); }
    .topbar.open nav#hauptmenue { display: block; }
    nav#hauptmenue ul { flex-direction: column; padding: 8px 16px 16px; }
    nav#hauptmenue a { font-size: .9rem; padding: 12px; color: var(--heading) !important; text-shadow: none !important; border-bottom: 1px solid var(--line); border-radius: 0; }
}

/* ---------- Titelbild ---------- */
.hero {
    position: relative;
    background: var(--hero-fallback);
    background-size: cover; background-position: center;
    color: #fff;
    display: flex; align-items: center;
}
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 50%, rgba(0,0,0,.35) 100%); }
.hero-content { position: relative; width: 100%; }
.hero h1 { color: #fff; margin: 0; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.hero-big { min-height: 100vh; min-height: 100svh; }
.hero-big h1 { font-size: clamp(2.6rem, 9vw, 7rem); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; text-align: center; }
.hero-small { min-height: 260px; padding-top: 20px; }
.hero-small h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; text-align: center; }
.hero-down {
    position: absolute; left: 50%; bottom: 28px; width: 34px; height: 34px; margin-left: -17px;
    border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(45deg);
    opacity: .85; animation: bob 2s infinite;
}
@keyframes bob { 50% { transform: translateY(8px) rotate(45deg); } }
@media (prefers-reduced-motion: reduce) { .hero-down { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Abschnitte ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; color: var(--heading); margin-top: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px auto 48px; text-align: center; }
.stat { padding: 18px 8px; }
.stat-num { display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; color: var(--accent); line-height: 1.1; }
.stat-label { display: block; margin-top: 6px; color: var(--muted); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.content h2, .content h3 { color: var(--heading); }
.content h3 { margin-top: 2em; }
.content img { border-radius: var(--radius); margin: 1.5em auto; }
.content blockquote { margin: 1.5em 0; padding: .5em 1.4em; border-left: 4px solid var(--accent); background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; }
.content ul { padding-left: 1.3em; }
.content li { margin-bottom: .4em; }
.content > :first-child, .content > div > :first-child { margin-top: 0; }
.page-image { border-radius: var(--radius); margin: 0 auto 2em; }

.with-aside { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.aside-image img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,.12); margin: 0; }
@media (max-width: 800px) { .with-aside { grid-template-columns: 1fr; } .aside-image { max-width: 240px; margin: 0 auto; } }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; padding: 13px 28px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--accent-dark); color: #fff !important; text-decoration: none;
    font: 700 .85rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase;
    transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent); transform: translateY(-1px); }

/* ---------- Neuigkeiten ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; margin-bottom: 36px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.1); }
.card-link { display: block; color: inherit; text-decoration: none; }
.card img, .card-noimg { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-noimg { background: var(--hero-fallback); opacity: .85; }
.card-body { padding: 20px 22px 24px; }
.card h3 { margin: .3em 0 .5em; font-size: 1.15rem; }
.card p { margin: 0; font-size: .95rem; }
time { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); }

.post-row { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.post-row:not(:has(.post-thumb)) { grid-template-columns: 1fr; }
.post-row h2 { margin: .2em 0 .4em; font-size: 1.45rem; }
.post-row h2 a { color: var(--heading); text-decoration: none; }
.post-row h2 a:hover { color: var(--accent); }
.post-thumb img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.more { font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
@media (max-width: 640px) { .post-row { grid-template-columns: 1fr; gap: 14px; } }
.post-title { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-top: .2em; }
.post-image { border-radius: var(--radius); margin: 0 0 2em; width: 100%; }
.meta { margin: 0; }
.back { margin-top: 3em; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.pager a { min-width: 40px; padding: 8px 12px; text-align: center; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; }
.pager a[aria-current] { background: var(--accent-dark); color: #fff; border-color: var(--accent-dark); }

/* ---------- Vorstand ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 28px; margin-top: 40px; }
.member { text-align: center; }
.member img, .member-initials { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.member-initials { display: flex; align-items: center; justify-content: center; background: var(--hero-fallback); color: #fff; font: 800 2.6rem var(--font-head); }
.member h3 { margin: 0; font-size: 1.2rem; }
.member .role { color: var(--accent-dark); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin: 4px 0 10px; }
.member p:last-child { font-size: .95rem; }

/* ---------- Kontakt ---------- */
.contact-form { margin-top: 32px; }
.contact-form label { display: block; font-weight: 600; color: var(--heading); margin-bottom: 18px; font-size: .95rem; }
.contact-form input:not([type=radio]):not([type=checkbox]), .contact-form textarea {
    display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
    font: inherit; font-weight: 400; color: var(--text);
    border: 1px solid #cfd8d7; border-radius: 8px; background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }
.topics { border: 0; padding: 0; margin: 0 0 22px; }
.topics legend { font-weight: 600; color: var(--heading); margin-bottom: 10px; }
.pill { display: inline-block !important; margin: 0 8px 8px 0 !important; }
.pill input { position: absolute; opacity: 0; }
.pill span { display: inline-block; padding: 9px 18px; border: 2px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; }
.pill input:checked + span { border-color: var(--accent-dark); background: var(--accent-dark); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; }
.check input { margin-top: 6px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute !important; left: -9999px; }
.notice { padding: 20px 24px; border-radius: var(--radius); margin: 24px 0; }
.notice.ok { background: #e6f6ef; border: 1px solid #a8dcc4; }
.notice.ok h2 { margin-top: 0; }
.notice.error { background: #fdecec; border: 1px solid #f2b8b8; color: #8a1f1f; }
.notice.error p { margin: .2em 0; }
.contact-info { display: flex; flex-wrap: wrap; gap: 24px 60px; justify-content: center; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); text-align: center; }

/* ---------- Fußzeile ---------- */
.site-footer { background: #f7f7f7; padding: 48px 0 24px; font-size: .95rem; color: #666; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer nav a { color: #555; text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { color: var(--accent-dark); }
.copyright { margin-top: 28px; padding-top: 18px; border-top: 1px solid #e6e6e6; font-size: .85rem; color: #888; }
