* { box-sizing: border-box; }
body { 
    font-family: Arial, sans-serif; 
    margin: 0; 
    padding: 0; 
    background: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: #2e7d32;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    color: #2e7d32;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 0;
    margin-bottom: 15px;
}

header {
    background: #2e7d32;
    color: #fff;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: 8vw;
    margin-right: 8vw;
}
.header-logo {
    height: 70px;
    margin-left: 30px;
    background: #fff;
    border-radius: 10px;
    padding: 8px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.header-text {
    flex: 1;
    text-align: right;
    margin-right: 30px;
    font-size: 1.3em;
    font-weight: 500;
}
nav { background: #388e3c; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; }
nav ul li { margin: 0 15px; }
nav ul li a { color: #fff; text-decoration: none; font-weight: bold; padding: 10px; display: block; }
nav ul li a:hover { background: #43a047; border-radius: 4px; }
main { 
    max-width: 900px; 
    width: 100%; /* Ensure it takes width in flex container */
    margin: 30px auto; 
    background: #fff; 
    padding: 30px; 
    border-radius: 8px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
    flex: 1; /* Pushes footer down */
}
footer { background: #2e7d32; color: #fff; text-align: center; padding: 15px 0; position: relative; bottom: 0; width: 100%; }

/* Burger-Menü Styles */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin: 0 20px;
    padding: 10px; /* Klickfläche vergrößern */
}
.burger span {
    height: 4px;
    width: 28px;
    background: #fff;
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}

.nav-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

@media (max-width: 800px) {
    #sticky-wrapper {
        position: sticky;
        top: 0;
        z-index: 1000;
        width: 100%;
    }
    header {
        margin-left: 0;
        margin-right: 0;
        padding: 10px;
        flex-direction: row; /* Logo links, Text rechts/daneben */
        align-items: center;
    }
    .header-logo {
        height: 50px; /* Kleineres Logo */
        margin-left: 10px; /* Ganz links */
        padding: 2px; /* Weniger Umriss */
        border-radius: 4px;
    }
    .header-text {
        font-size: 0.9em; /* Kleinerer Text */
        margin-right: 10px;
        text-align: right;
    }
    
    .nav-links {
        display: flex; /* Flexbox beibehalten für Zentrierung */
        flex-direction: column;
        justify-content: flex-start;
        background: #388e3c;
        position: absolute;
        top: 100%; /* Unterhalb der Nav-Leiste */
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden; /* Verstecken wenn zu */
        z-index: 100;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        max-height: calc(100vh - 130px);
        overflow-y: auto;
        opacity: 1;
        visibility: visible;
        padding: 20px 0;
    }
    nav ul li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    .burger {
        display: flex;
    }
    nav {
        position: relative;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: flex-start; /* Burger links oder rechts? Standard ist links im Flow */
    }
}

/* Member Table Styles */
/* Member List Styles (New Layout) */
.member-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}
.member-entry {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.member-name {
    font-size: 1.3em;
    color: #2e7d32;
    border-bottom: 2px solid #2e7d32;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.member-details {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr; /* Address, Contact, Offer (wider) */
    gap: 20px;
}
.member-col {
    font-size: 0.95em;
    overflow-wrap: break-word;
}
.col-label {
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
    font-size: 0.9em;
    text-transform: uppercase;
}
.member-col a {
    color: #2e7d32;
    text-decoration: none;
}
.member-col a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .member-details {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        gap: 15px;
    }
    .member-col {
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }
    .member-col:last-child {
        border-bottom: none;
    }
}

/* Firma des Monats Styles */
.fdm-current {
    margin-bottom: 40px;
}
.fdm-poster {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.fdm-downloads {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #2e7d32;
}
.fdm-downloads ul {
    list-style: none;
    padding: 0;
}
.fdm-downloads li {
    margin-bottom: 10px;
}
.fdm-downloads a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: bold;
}
.fdm-downloads a:hover {
    text-decoration: underline;
}

.fdm-archive {
    margin-top: 50px;
    border-top: 2px solid #eee;
    padding-top: 20px;
}
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.archive-item {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.archive-item h4 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #2e7d32;
}
.archive-item a {
    color: #2e7d32;
    text-decoration: none;
    font-size: 0.9em;
}


/* Vorstand Grid */
.vorstand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.vorstand-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #2e7d32;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.vorstand-item strong {
    color: #2e7d32;
    display: block;
    margin-bottom: 5px;
}

/* Satzung Styling */
.satzung-content h4 {
    margin-top: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}


/* Tab Styling */
.tab-container {
    overflow: hidden;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
}

.tab-button {
    background-color: #f1f1f1;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 17px;
    color: #333;
    flex-grow: 1;
    text-align: center;
}

.tab-button:hover {
    background-color: #ddd;
}

.tab-button.active {
    background-color: #2e7d32;
    color: white;
}

.tab-content {
    display: none;
    padding: 6px 12px;
    border-top: none;
    animation: fadeEffect 1s;
}

@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}


/* Dashboard Grid on Homepage */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.dashboard-tile {
    border: 1px solid #2e7d32; /* D�nner gr�ner Rand */
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.dashboard-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dashboard-tile h3 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.tile-content {
    flex-grow: 1;
    margin-bottom: 15px;
    font-size: 0.95em;
    color: #555;
}

.tile-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.more-btn {
    align-self: flex-start;
    background-color: #2e7d32;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background 0.3s;
}

.more-btn:hover {
    background-color: #1b5e20;
}

/* Neuigkeiten List Styling */
.news-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.news-item:last-child {
    border-bottom: none;
}
.news-item .date {
    font-size: 0.85em;
    color: #888;
    display: block;
    margin-bottom: 10px;
}

/* Gallery Styles */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}
.gallery img {
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}
.gallery img:hover {
    transform: scale(1.05);
}

footer a {
    color: #fff;
    text-decoration: underline;
}
footer a:hover {
    color: #ddd;
}

