/* ===== MOBILE-FIRST VARIABLES ===== */
:root {
    --green-dark: #1a3a2a;
    --green-mid: #2d6a4f;
    --green-light: #52b788;
    --gold: #c9a84c;
    --gold-light: #f0d080;
    --cream: #faf7f0;
    --text-dark: #1a1a1a;
    --text-light: #6b6b6b;
    --white: #ffffff;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --nav-h: 64px;
    --section-pad: 3rem 1rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== NAVIGATION (Mobile optimiert) ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: rgba(250, 247, 240, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201,168,76,0.2);
    z-index: 1000;
}

.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo-emblem {
    width: 40px;
    height: 40px;
    background: var(--green-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--gold);
}

.nav-logo-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--green-dark);
}

.nav-links { display: none; }

.nav-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.nav-burger span {
    width: 24px;
    height: 2px;
    background: var(--green-dark);
    transition: 0.3s;
}

.nav-mobile {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--cream);
    padding: 1rem;
    z-index: 999;
}

.nav-mobile.open { display: flex; flex-direction: column; gap: 0.5rem; }

.nav-mobile a {
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: 8px;
}

.nav-mobile a:hover { background: rgba(201,168,76,0.1); }

/* ===== HERO (Mobile optimiert) ===== */
.hero {
    min-height: 100vh;
    padding-top: var(--nav-h);
    position: relative;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(26,58,42,0.92) 0%, rgba(26,58,42,0.75) 55%),
                url('https://images.unsplash.com/photo-1571902943202-507ec2618e8f?w=1600&q=80') center/cover no-repeat;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 3rem 1rem 4rem;
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.4);
    border-radius: 100px;
    padding: 0.3rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 1rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero h1 em { color: var(--gold-light); display: block; }

.hero p {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    border: none;
}

.btn-primary { background: var(--gold); color: var(--green-dark); }
.btn-outline { background: transparent; border: 2px solid rgba(255,255,255,0.5); color: white; }
.btn-green { background: var(--green-dark); color: white; }

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stat strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold-light);
}

/* ===== SECTIONS ===== */
.section { padding: var(--section-pad); }

.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green-mid);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ===== ABTEILUNGEN ===== */
.abt-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.abt-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(201,168,76,0.12);
    transition: transform 0.3s;
}

.abt-card-top {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.abt-turnen .abt-card-top { background: linear-gradient(135deg, #1a3a2a, #2d6a4f); }
.abt-badminton .abt-card-top { background: linear-gradient(135deg, #2d5a1a, #52b788); }
.abt-fitness .abt-card-top { background: linear-gradient(135deg, #3a2a1a, #c9a84c); }
.abt-kinder .abt-card-top { background: linear-gradient(135deg, #1a2a3a, #4a7ab5); }
.abt-gesundheit .abt-card-top { background: linear-gradient(135deg, #2a1a3a, #7a4ab5); }
.abt-tanzen .abt-card-top { background: linear-gradient(135deg, #3a1a2a, #b54a7a); }

.abt-icon-bg {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.abt-card-body { padding: 1rem; }
.abt-card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.abt-card p { font-size: 0.85rem; color: var(--text-light); }

.abt-tag {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    background: rgba(45,106,79,0.1);
    color: var(--green-mid);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ===== FILTER (Mobile optimiert) ===== */
.filter-container {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.filter-group { margin-bottom: 1rem; }
.filter-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 100px;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.filter-btn.active {
    background: var(--gold);
    color: var(--green-dark);
    font-weight: 600;
}

/* ===== ACCORDION (Mobile optimiert) ===== */
.training-item {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.training-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    transition: 0.2s;
}

.training-header:hover { background: rgba(255,255,255,0.08); }

.training-info { flex: 1; }
.training-time {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gold-light);
}
.training-title {
    font-size: 0.9rem;
    color: white;
}
.training-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.training-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0,0,0,0.2);
    padding: 0 1rem;
}

.training-item.open .training-details {
    max-height: 200px;
    padding: 1rem;
}

.training-item.open .training-arrow { transform: rotate(180deg); }

.detail-row {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.detail-label { font-weight: 600; color: var(--gold-light); min-width: 90px; }
.detail-value { color: rgba(255,255,255,0.8); }

/* ===== SKELETON LOADER ===== */
.skeleton-loader {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
}

.skeleton-loader.active { display: flex; }

.skeleton-item {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1rem;
}

.skeleton-line {
    height: 20px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    animation: pulse 1.5s infinite;
}

.skeleton-line.short { width: 60%; }

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.loading-message, .error-message, .empty-message {
    text-align: center;
    padding: 2rem;
    color: rgba(255,255,255,0.6);
}

/* ===== TRAININGSZEITEN SECTION ===== */
#trainingszeiten {
    background: var(--green-dark);
    color: white;
}
#trainingszeiten .section-label { color: var(--gold-light); }
#trainingszeiten .section-title { color: white; }

.trainings-hinweis {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    text-align: center;
    margin-top: 1rem;
}

/* ===== AKTUELLES ===== */
#aktuelles { background: var(--cream-dark); background: #f0ead8; }
.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.event-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.event-date-col {
    width: 65px;
    background: var(--green-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0;
}

.event-day {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-light);
}

.event-month {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.65);
}

.event-body { padding: 0.75rem; flex: 1; }
.event-body h3 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.event-body p { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.5rem; }
.event-meta { font-size: 0.7rem; color: var(--green-mid); }

/* ===== ÜBER UNS ===== */
#ueber-uns { background: var(--white); }
.ueber-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.ueber-text { color: var(--text-light); margin-bottom: 1.5rem; }

.ueber-timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.2rem;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
}

.timeline-year {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.timeline-text { font-size: 0.85rem; color: var(--text-mid); }

.ueber-img-main {
    border-radius: 16px;
    overflow: hidden;
}

.ueber-img-main img {
    width: 100%;
    height: auto;
    display: block;
}

.ueber-quote-block {
    background: var(--gold);
    color: var(--green-dark);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.ueber-quote-block blockquote {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
}

/* ===== MITGLIEDSCHAFT ===== */
#mitgliedschaft { background: #f0ead8; }
.mitglied-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.mitglied-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(201,168,76,0.15);
    position: relative;
}

.mitglied-card.featured {
    border-color: var(--green-dark);
    background: var(--green-dark);
    color: white;
}

.mitglied-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--green-dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: 100px;
    white-space: nowrap;
}

.price {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold);
    margin: 0.75rem 0;
}

.mitglied-features {
    margin: 1rem 0;
}

.mitglied-feature {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.mitglied-feature::before {
    content: '✓';
    color: var(--gold);
}

/* ===== KONTAKT ===== */
#kontakt { background: var(--white); }
.kontakt-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.kontakt-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.kontakt-icon {
    width: 44px;
    height: 44px;
    background: rgba(45,106,79,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.kontakt-item h4 { font-size: 0.8rem; color: var(--green-mid); margin-bottom: 0.2rem; }
.kontakt-item p { font-size: 0.9rem; }

.kontakt-form {
    background: var(--cream);
    border-radius: 16px;
    padding: 1.5rem;
}

.form-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.25rem; }
.form-group label { font-size: 0.75rem; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select {
    padding: 0.7rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-family: inherit;
}

.form-submit {
    width: 100%;
    padding: 0.8rem;
    background: var(--green-dark);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* ===== FOOTER ===== */
footer {
    background: var(--green-dark);
    color: rgba(255,255,255,0.8);
    padding: 2rem 1rem;
}
.footer-grid {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.footer-brand .nav-logo-name {
    font-size: 1.2rem;
    color: var(--gold-light);
    display: block;
    margin-bottom: 0.5rem;
}
.footer-brand p { font-size: 0.8rem; line-height: 1.5; max-width: 300px; }
.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}
.footer-col ul li { margin-bottom: 0.25rem; }
.footer-col ul li a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
}
.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.7rem;
}

/* ===== BACK TO TOP ===== */
.back-top {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: var(--gold);
    color: var(--green-dark);
    border-radius: 50%;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transition: 0.3s;
    z-index: 500;
}
.back-top.visible { opacity: 1; }

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: none; }

/* ===== DESKTOP UPGRADES ===== */
@media (min-width: 768px) {
    :root { --section-pad: 4rem 2rem; }
    .nav-links { display: flex; gap: 0.5rem; }
    .nav-burger { display: none; }
    .hero h1 { font-size: 3rem; }
    .abt-grid { grid-template-columns: repeat(2, 1fr); }
    .events-grid { grid-template-columns: repeat(2, 1fr); }
    .mitglied-grid { grid-template-columns: repeat(2, 1fr); }
    .kontakt-grid { grid-template-columns: 1fr 1.5fr; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (min-width: 1024px) {
    .abt-grid { grid-template-columns: repeat(3, 1fr); }
    .events-grid { grid-template-columns: repeat(4, 1fr); }
    .mitglied-grid { grid-template-columns: repeat(4, 1fr); }
}