/* Öffentliche Vereinswebseite */
/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
:root {
    --green-dark:   #1a4731;
    --green-mid:    #2d6a4f;
    --green-main:   #40916c;
    --green-light:  #74c69d;
    --green-pale:   #d8f3dc;
    --cream:        #f8f5f0;
    --brown:        #5c3d2e;
    --text-dark:    #1a2e1a;
    --text-body:    #3d4a3d;
    --text-light:   #6b7b6b;
    --border:       #d0e6d0;
    --shadow-sm:    0 2px 8px rgba(26,71,49,0.08);
    --shadow-md:    0 8px 24px rgba(26,71,49,0.12);
    --shadow-lg:    0 20px 50px rgba(26,71,49,0.18);
    --radius:       12px;
    --font-sans:    'Outfit', sans-serif;
    --font-serif:   'Lora', serif;
}
body {
    font-family: var(--font-sans);
    color: var(--text-body);
    background: #fff;
    margin: 0;
    padding: 0;
    line-height: 1.7;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; }

/* ── TOP BAR ──────────────────────────────────────────── */
.web-topbar {
    background: var(--green-dark);
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    padding: 6px 0;
}
.web-topbar a { color: rgba(255,255,255,0.7); }
.web-topbar a:hover { color: #fff; }

/* ── NAVBAR ───────────────────────────────────────────── */
.web-navbar {
    background: #fff;
    border-bottom: 3px solid var(--green-main);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.web-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 72px;
}
.web-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--green-dark);
    font-size: 1.1rem;
    line-height: 1.2;
}
.web-brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--green-main), var(--green-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.web-nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.web-nav-links a {
    display: block;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-body);
    transition: all 0.15s;
    white-space: nowrap;
}
.web-nav-links a:hover,
.web-nav-links a.active {
    background: var(--green-pale);
    color: var(--green-dark);
}
.web-nav-cta {
    background: var(--green-main) !important;
    color: #fff !important;
    border-radius: 8px !important;
}
.web-nav-cta:hover { background: var(--green-dark) !important; }

/* Mobile hamburger */
.web-hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--green-dark);
    cursor: pointer;
    padding: 8px;
}
@media (max-width: 1199.98px) {
    .web-nav-links { display: none; flex-direction: column; gap: 2px; }
    .web-nav-links.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 2px solid var(--border); padding: 0.75rem 1rem 1rem; box-shadow: var(--shadow-md); z-index: 999; max-height: calc(100vh - 72px); overflow-y: auto; }
    .web-nav-links.open li { width: 100%; }
    .web-nav-links.open a { width: 100%; display: block; padding: 12px 15px; font-size: 1rem; }
    .web-hamburger { display: block; }
    .web-navbar .container { position: relative; }
}
@media (max-width: 480px) {
    .web-navbar .container { height: 64px; padding: 0 1rem; }
    .web-brand { font-size: 0.95rem; gap: 10px; }
    .web-brand-icon { width: 40px; height: 40px; font-size: 1.15rem; border-radius: 10px; }
    .web-nav-links.open { max-height: calc(100vh - 64px); }
}

/* ── COOKIE CONSENT BANNER ────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 420px;
    background: rgba(26, 71, 49, 0.98);
    backdrop-filter: blur(10px);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 9999;
    display: none;
    animation: slideUp 0.4s ease-out;
    border: 1px solid rgba(255,255,255,0.1);
    transition: opacity 0.4s ease;
}
@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-content {
    padding: 1.25rem;
}
.cookie-banner-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cookie-banner-text {
    font-size: 0.82rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1rem;
}
.cookie-banner-text a {
    color: #74c69d;
    text-decoration: underline;
}
.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.cookie-btn {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
}
.cookie-btn-allow {
    background: #74c69d;
    color: #1a4731;
}
.cookie-btn-allow:hover {
    background: #fff;
}
.cookie-btn-deny {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.cookie-btn-deny:hover {
    background: rgba(255,255,255,0.25);
}

@media (max-width: 576px) {
    .cookie-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
}

/* ── HERO ─────────────────────────────────────────────── */
.web-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.web-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.web-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,71,49,0.85) 0%, rgba(26,71,49,0.4) 60%, transparent 100%);
}
.web-hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 3rem 2rem;
}

/* ── SECTION ──────────────────────────────────────────── */
.web-section { padding: clamp(2.5rem, 7vw, 5rem) 0; }
.web-section-alt { background: var(--cream); }
.web-section-green { background: var(--green-dark); color: #fff; }
.web-section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.25;
}
.web-section-green .web-section-title { color: #fff; }
.web-section-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}
.web-section-green .web-section-subtitle { color: rgba(255,255,255,0.7); }
.web-divider {
    width: 50px;
    height: 3px;
    background: var(--green-main);
    border-radius: 2px;
    margin: 0.75rem 0 2rem;
}

/* ── NEWS CARD ────────────────────────────────────────── */
.news-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    overflow: hidden;
    transition: all 0.2s;
    height: 100%;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--green-light);
}
.news-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.news-card-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--green-pale), var(--green-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}
.news-card-body { padding: 1.5rem; }
.news-card-date {
    font-size: 0.78rem;
    color: var(--green-main);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.news-card-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.news-card-text {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── STAT CARDS ───────────────────────────────────────── */
.stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.15);
}
.stat-card-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--green-light);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-card-label { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* ── GALLERY GRID ─────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,71,49,0);
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    opacity: 0;
}
.gallery-item:hover .gallery-item-overlay {
    background: rgba(26,71,49,0.45);
    opacity: 1;
}

/* ── CONTACT CARD ─────────────────────────────────────── */
.contact-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}
.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 1.25rem;
}
.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--green-pale);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-main);
    flex-shrink: 0;
}
.contact-label { font-size: 0.75rem; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-value { font-weight: 600; color: var(--text-dark); }

/* ── FOOTER ───────────────────────────────────────────── */
.flash-area { padding-top: 1rem; padding-bottom: 0.25rem; }
.web-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, #143a28 0%, #102e20 100%);
    color: rgba(255,255,255,0.72);
    padding: clamp(2.5rem, 6vw, 4rem) 0 0;
    font-size: 0.92rem;
    margin-top: auto;
}
.web-footer a { color: rgba(255,255,255,0.72); transition: color 0.15s; }
.web-footer a:hover, .web-footer a:focus { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.footer-brand .web-brand-icon { width: 44px; height: 44px; font-size: 1.3rem; background: rgba(255,255,255,0.12); }
.footer-brand-name { font-family: var(--font-serif); color: #fff; font-size: 1.1rem; font-weight: 600; line-height: 1.25; }
.footer-about { line-height: 1.7; margin-bottom: 1rem; }
.footer-quote { border-left: 3px solid var(--green-light); padding-left: 0.85rem; font-style: italic; font-size: 0.86rem; color: rgba(255,255,255,0.6); }
.web-footer h2 { color: #fff; font-family: var(--font-sans); font-weight: 700; margin: 0 0 1rem; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-links a i { width: 16px; color: var(--green-light); font-size: 0.8rem; }
.footer-contact li { display: flex; gap: 0.75rem; margin-bottom: 0.9rem; align-items: flex-start; line-height: 1.5; }
.footer-contact li i { color: var(--green-light); margin-top: 0.25rem; width: 16px; flex-shrink: 0; }
.footer-cta { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--green-light); color: var(--green-dark) !important; font-weight: 700; padding: 0.6rem 1.1rem; border-radius: 10px; margin-top: 0.25rem; }
.footer-cta:hover { background: #fff; }
.web-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: clamp(2rem, 5vw, 3rem);
    padding: 1.25rem 0;
    font-size: 0.82rem;
    display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; align-items: center;
}
.web-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer-association { color: rgba(255,255,255,0.5); }
@media (max-width: 991.98px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 575.98px) {
    .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .web-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── UTILITIES ────────────────────────────────────────── */
.btn-green {
    background: var(--green-main);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-green:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); }
.btn-green-outline {
    background: transparent;
    color: var(--green-main);
    border: 2px solid var(--green-main);
    border-radius: 10px;
    padding: 0.65rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-green-outline:hover { background: var(--green-main); color: #fff; }

.badge-green { background: var(--green-pale); color: var(--green-dark); padding: 4px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }

/* page-intro styling */
.page-intro {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
    color: #fff;
    padding: 4rem 0 3rem;
}

/* Lightbox simple */
#lightbox { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.9); z-index:9999; align-items:center; justify-content:center; }
#lightbox.open { display:flex; }
#lightbox img { max-height:90vh; max-width:90vw; border-radius:8px; }
#lightbox-close { position:absolute; top:20px; right:24px; color:#fff; font-size:2rem; cursor:pointer; background:none; border:none; }



/* ── LAYOUT-HELFER & ERGÄNZUNGEN ─────────────────────────── */
.web-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 575.98px) { .web-container { padding: 0 1rem; } }
.page-intro { padding: clamp(2.5rem, 7vw, 4rem) 0 clamp(2rem, 5vw, 3rem); }
.page-intro h1, .page-intro-title { font-family: var(--font-serif); color: #fff; margin-top: 0.75rem; font-size: clamp(1.6rem, 5vw, 2.2rem) !important; line-height: 1.25; }
.page-intro-text { color: rgba(255,255,255,0.78); max-width: 640px; line-height: 1.7; margin-bottom: 0; }
.page-intro .container { max-width: 1200px; }
@media (max-width: 575.98px) { .page-intro .container, .web-section > .container { padding-left: 1rem !important; padding-right: 1rem !important; } }

.btn-outline-green, .btn-green-outline {
    background: transparent; color: var(--green-main); border: 2px solid var(--green-main); border-radius: 10px;
    padding: 0.6rem 1.3rem; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: all 0.15s;
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.btn-outline-green:hover, .btn-green-outline:hover { background: var(--green-main); color: #fff; }
.btn-green:focus-visible, .btn-outline-green:focus-visible, .web-nav-links a:focus-visible { outline: 3px solid rgba(64,145,108,0.45); outline-offset: 2px; }
.w-100.btn-green, .w-100.btn-outline-green { justify-content: center; }

/* Kontaktformular */
.bew-label { display: block; font-weight: 600; font-size: 0.86rem; color: var(--text-dark); margin-bottom: 0.35rem; }
.bew-input { width: 100%; border: 1.5px solid var(--border); border-radius: 10px; padding: 0.7rem 0.9rem; font: inherit; color: var(--text-dark); background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.bew-input:focus { outline: none; border-color: var(--green-main); box-shadow: 0 0 0 4px rgba(64,145,108,0.15); }
textarea.bew-input { resize: vertical; min-height: 120px; }
.reply-option { display: inline-flex; align-items: center; gap: 0.45rem; border: 1.5px solid var(--border); border-radius: 999px; padding: 0.45rem 0.95rem; cursor: pointer; font-weight: 600; font-size: 0.9rem; }
.reply-option:has(input:checked) { border-color: var(--green-main); background: var(--green-pale); color: var(--green-dark); }
.reply-option input { accent-color: var(--green-main); }
.consent-box { display: flex; gap: 0.75rem; align-items: flex-start; background: #f8fbf8; border: 1.5px solid var(--border); border-radius: 10px; padding: 0.85rem 1rem; font-size: 0.86rem; cursor: pointer; }
.consent-box input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green-main); flex-shrink: 0; }
.consent-box a { color: var(--green-main); text-decoration: underline; }
.contact-success-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--green-pale); color: var(--green-main); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 1rem; }
.form-text { font-size: 0.82rem; color: var(--text-light); }
@media (max-width: 575.98px) { .contact-card { padding: 1.25rem !important; } }

/* News-Anhänge */
.news-attachments { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.news-attachments img { border-radius: var(--radius); max-height: 520px; object-fit: contain; }

/* Topbar auf kleinen Bildschirmen */
@media (max-width: 575.98px) {
    .web-topbar .container { flex-direction: column; gap: 2px; text-align: center; }
    .web-topbar { font-size: 0.74rem; }
}

/* Hero auf dem Handy */
@media (max-width: 767.98px) {
    .web-hero { min-height: 440px; }
    .web-hero-content { padding: 2.5rem 1.25rem !important; }
    .web-hero-overlay { background: linear-gradient(180deg, rgba(26,71,49,0.75) 0%, rgba(26,71,49,0.85) 100%); }
    .stat-card { padding: 1.25rem 0.75rem; }
    .stat-card-number { font-size: 2rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
}
@media (max-width: 380px) { .gallery-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
    .news-card:hover, .btn-green:hover { transform: none; }
    .gallery-item:hover img { transform: none; }
}

/* Große Bootstrap-Gutter auf Smartphones verkleinern (verhindert horizontales Scrollen) */
@media (max-width: 575.98px) {
    .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
    .row.g-5, .row.gy-5 { --bs-gutter-y: 2rem; }
}
