/* =========================
   SEITEN CONTAINER
========================= */
.site-content {
    max-width: 1000px;
    margin: 60px auto 40px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: visible;
}

/* =========================
   GLOBAL IMAGE FIXES
========================= */
img {
    display: block;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* =========================
   TEXT
========================= */
.site-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.site-content p {
    line-height: 1.7;
    color: #444;
}

/* =========================
   NAV WRAPPER
========================= */
.year-nav-wrapper,
.month-nav-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 18px;
}

.year-nav,
.month-menu {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: max-content;
    min-width: 100%;
    padding: 6px 4px;
}

/* =========================
   BUTTONS
========================= */
.year-btn,
.month-menu a {
    flex: 0 0 auto;
    padding: 10px 16px;
    border-radius: 999px;
    background: #222;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: 0.2s ease;
}

.year-btn:hover,
.month-menu a:hover {
    background: #444;
    transform: translateY(-1px);
}

.year-btn.active {
    background: #b38b59;
}

/* =========================
   GALLERY
========================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 15px;
}

.gallery-card {
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.25s ease;
    will-change: transform;
}

.gallery-card img:hover {
    transform: scale(1.03);
}

.card-info {
    padding: 10px;
    font-size: 14px;
    color: #333;
}

/* =========================
   MITGLIEDER GALERIE
========================= */

.member-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 15px;
}

.gallery-item {
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;

    display: block;

    cursor: pointer;
    transition: transform 0.25s ease;
}

.gallery-thumb:hover {
    transform: scale(1.03);
}

.gallery-title {
    padding: 10px;
    font-size: 14px;
    color: #333;
}

/* MOBILE */
@media (max-width: 700px) {

    .member-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* =========================
   ABSTÄNDE
========================= */
.erfolge .entry {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.tour-card,
.about-panel .tour-card {
    margin-bottom: 40px;
}

.tour-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 10px;
}

/* =========================
   MITGLIEDER KARTE
========================= */

.member-card {
    margin-bottom: 40px;
}

/* =========================
   KEIN AVATAR
========================= */

.no-avatar {
    width: 140px;
    height: 140px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f1f1f1;
    color: #888;

    border-radius: 50%;

    font-size: 16px;
    font-weight: 600;
}

/* =========================
   ERFOLGE
========================= */
.erfolge img {
    width: 220px;
    height: auto;
    max-height: 260px;
    object-fit: contain;
    border-radius: 8px;
}

/* =========================
   TOUR THUMBS
========================= */
.tour-gallery img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

/* =========================
   ABOUT PANELS
========================= */
.about-panel {
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
}

.about-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.toggle-icon {
    transition: transform 0.25s ease;
    font-size: 18px;
}

.about-panel.active .toggle-icon {
    transform: rotate(180deg);
}

.about-content {
    padding: 20px;
}

.about-content h2 {
    margin-top: 0;
}

.about-hidden {
    display: none;
    padding: 0 20px 20px 20px;
}

.about-panel.active .about-hidden {
    display: block;
}

/* =========================
   THEMENBEREICH
========================= */
.themes-section {
    margin-top: 50px;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.theme-card {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.theme-card > div:first-child {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 16px;
}

.theme-text {
    color: #333;
    line-height: 1.5;
}

.theme-text.empty {
    color: #999;
    font-style: italic;
}

/* =========================
   KONTAKTSEITE
========================= */

.contact-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    margin-top: 24px;
}

.contact-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.6rem;
    color: #222;
}

.contact-card p {
    margin: 0 0 14px;
    line-height: 1.7;
    color: #444;
}

/* Kontaktdaten mittig */
.contact-name,
.contact-person,
.contact-email {
    text-align: center;
}

.contact-name {
    font-size: 1.2rem;
}

.contact-person,
.contact-email {
    font-size: 1rem;
}

.contact-email a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-email a:hover {
    color: #666;
    text-decoration: underline;
}

/* Einladungskarte */
.invitation-card {
    margin-top: 32px;
}

/* Oberer Einladungstext volle Breite */
.invitation-card h3,
.invitation-card > p,
.meeting-info > p:first-child {
    text-align: left;
    max-width: 100%;
}

/* Treffpunktdaten zentriert */
.meeting-info {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;

    text-align: center;
}

.meeting-info p:last-child {
    margin-bottom: 0;
}

/* =========================
   LIGHTBOX
========================= */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    flex-direction: column;
    background: rgba(0,0,0,0.92);
}

.lightbox.active {
    display: flex;
}

.lightbox button {
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox button:hover {
    background: rgba(255,255,255,0.18);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;

    width: 44px;
    height: 44px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,0.15);
    color: #fff;

    font-size: 26px;
    cursor: pointer;

    backdrop-filter: blur(4px);
    transition: 0.2s;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}

/* =========================
   LIGHTBOX HEADER
========================= */
.lightbox-header {
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    z-index: 999999;
    pointer-events: auto;
}

/* Monatsanzeige */
.lightbox-month {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    min-width: 220px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

/* Monats-Pfeile */
.month-up,
.month-down {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 34px;
    font-weight: bold;
    line-height: 1;

    color: #fff;

    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;

    cursor: pointer;

    z-index: 1000000;
}

/* =========================
   LIGHTBOX CONTENT
========================= */
.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;

    padding-top: 180px;
    padding-left: 80px;
    padding-right: 80px;
    padding-bottom: 80px;

    box-sizing: border-box;
}

/* GROSSES BILD */
#lightboxImg {
    max-width: 76vw;
    max-height: 60vh;

    width: auto;
    height: auto;

    object-fit: contain;

    margin: auto;

    border-radius: 10px;

    image-rendering: auto;
}

/* =========================
   NAV BUTTONS
========================= */
.prev,
.next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);

    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 42px;

    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);

    border-radius: 12px;

    z-index: 999999;
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

/* =========================
   FOOTER
========================= */
.lightbox-footer {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 18px;

    color: rgba(255,255,255,0.75);
    font-size: 14px;

    position: relative;
    z-index: 999999;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 700px) {

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .themes-grid {
        grid-template-columns: 1fr;
    }

    .erfolge img {
        width: 100%;
        height: auto;
    }

    .tour-gallery img {
        width: 140px;
        height: 95px;
    }

    .prev,
    .next {
        width: 52px;
        height: 52px;
        font-size: 34px;
    }

    .lightbox-header {
        top: 60px;
        gap: 10px;
    }

    .lightbox-month {
        font-size: 18px;
        min-width: auto;
    }

    .lightbox-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .lightbox-content {
        padding-top: 150px;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 40px;
    }

    #lightboxImg {
        max-width: 92vw;
        max-height: 55vh;
    }
}