/* =========================
   RESET & BASIS
   ========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

}

/* =========================
   HEADER (OBERER BEREICH)
   ========================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(#111, #000);
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #000;
    color: #fff;
}


/* Titelbereich */
.header-title {
    text-align: center;
    padding: 30px 10px 20px;
}

.header-title h1 {
    font-size: 34px;
    font-weight: bold;
    margin-bottom: 8px;
}

.header-title p {
    font-size: 16px;
    color: #ddd;
}

/* =========================
   NAVIGATION
   ========================= */
.main-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: #000;
    border-top: 1px solid #222;
    border-bottom: 2px solid #900;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    padding: 14px 18px;
    font-size: 15px;
}

.main-nav a:hover {
    background: #900;
}

/* =========================
   SEITENINHALT
   ========================= */

main {
    max-width: 1100px;
    margin: auto;
    padding: 190px 15px 40px;
    text-align: center;
}


/* =========================
   STANDARD-ELEMENTE
   ========================= */
h1 {
    text-decoration: underline;
    margin-bottom: 30px;
}

h2 {
    color: #ff5555;
    margin-top: 30px;
}

section {
    background: rgba(0,0,0,0.7);
    padding: 20px;
    border-left: 4px solid #900;
    margin-bottom: 25px;
    text-align: left;
}

section p {
    margin-bottom: 18px;
}




/* =========================
   BILDER & GALERIEN
   ========================= */
img {
    max-width: 100%;
    height: auto;
}

.viewer img {
    border: 3px solid #900;
}

.controls button {
    padding: 10px 20px;
    margin: 5px;
    background: #900;
    color: #fff;
    border: none;
    cursor: pointer;
}

.controls button:hover {
    background: #c00;
}

/* =========================
   FOOTER
   ========================= */
footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 13px;
    color: #aaa;
    text-align: center;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 700px) {
    .header-title h1 {
        font-size: 24px;
    }

    .main-nav a {
        padding: 10px 12px;
        font-size: 14px;
    }

    main {
        padding-top: 220px;
    }
}

/* =========================
   MITGLIEDER – VORSTAND
   ========================= */
.board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.member {
    text-align: center;
}

.member img {
    border: 3px solid #900;
    cursor: pointer;
}

/* =========================
   MITGLIEDER GALERIE
   ========================= */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 30px 0;

    justify-items: center;   /* ← DAS ist der Fix */
    align-items: center;     /* ← optional, aber sauber */
}


.gallery img {
    border: 2px solid #555;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* =========================
   LIGHTBOX (BILDER + VIDEOS)
   ========================= */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border: 4px solid #900;
}

.lightbox video {
    max-width: 90%;
    max-height: 70vh;
   /* border: 4px solid #900; */
}

.lightbox button {
    margin-top: 20px;
    padding: 10px 25px;
    font-size: 16px;
    background: #900;
    color: #fff;
    border: none;
    cursor: pointer;
}

.lightbox button:hover {
    background: #c00;
}

/* =========================
   VIDEOS (VORSCHAUBILDER)
   ========================= */
.videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    justify-items: center;
    gap: 25px;
    margin: 30px 0;
    text-align: center;
}

.videos img {
    width: 180px;
    height: 100px;
    object-fit: cover;
    border: 3px solid #900;
    cursor: pointer;
}

.video-item p {
    margin-top: 8px;
    font-size: 14px;
    color: #ddd;
}


/* =========================
   HEADLINE – In Memory
   ========================= */

.headline {
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    text-decoration: none;
}

.headline img {
    border: 2px solid black;
    vertical-align: middle;
}

.headline span {
    font-size: 1.4em;
    font-weight: 800;
    margin: 0 15px;
    display: inline-block;
}


.rip-image {
    height: 200px;
    width: auto;
    display: block;
    margin: 30px auto;
}

/* =====================================================
   GALERIE – GRUNDLAYOUT (DESKTOP / BROWSER)
   Bild links | Buttons Mitte | Bild rechts
   ===================================================== */

.year-wrapper {
    display: flex;                  /* horizontale Anordnung */
    align-items: center;            /* vertikal zentriert */
    justify-content: space-between; /* Abstand zwischen den Elementen */
    gap: 20px;

    margin: 40px auto;
    max-width: 1000px;
}

/* =====================================================
   GALERIE – BILDER LINKS & RECHTS
   ===================================================== */

.year-image {
    width: 220px;        /* feste Größe für Browser */
    height: auto;
}

/* =====================================================
   GALERIE – BUTTONS (MITTE)
   ===================================================== */

.year-buttons {
    display: flex;
    flex-wrap: wrap;     /* mehrere Zeilen möglich */
    justify-content: center;
    gap: 10px;

    max-width: 300px;
}


/* =====================================================
   GALERIE – BUTTONS (JAHRESAUSWAHL)
   ===================================================== */

.year-buttons a {
    display: inline-block;
    width: 100%;
    max-width: 120px;

    padding: 8px 14px;
    background: #222;
    border: 2px solid #900;
    border-radius: 6px;

    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    text-align: center;
}

.year-buttons a:hover {
    background: #900;
}

/* =====================================================
   GALERIE – MOBILE ANSICHT
   Bilder links/rechts ausblenden
   Buttons mittig + Hintergrundbild
   ===================================================== */

@media (max-width: 420px) {

    /* Galerie-Container */
    .year-wrapper {
        display: flex;
        flex-direction: column;     /* alles untereinander */
        align-items: center;

        /* Hintergrundbild nur für Mobile */
        background-image: url("Bilder/MFA6.jpg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;

        padding: 30px 15px;
        border-radius: 12px;
    }

    /* 🔥 WICHTIG: Bilder links & rechts entfernen */
    .year-image {
        display: none;
    }

    /* Buttons kompakter & besser klickbar */
    .year-buttons {
        max-width: 260px;
    }
}

/* Mobile: Headline kleiner skalieren */
@media (max-width: 480px) {

    .headline {
        font-size: 1.2em;
    }

    .headline span {
        font-size: 1.1em;
        margin: 0 8px;
    }

    .headline img {
        width: 70px;
        height: auto;
    }
}

/* =========================
   VIDEO LIGHTBOX – EINHEITLICHE GRÖSSE
   ========================= */

.lightbox .video-frame {
    width: 90vw;
    max-width: 900px;      /* entspricht Video10.mp4 */
    aspect-ratio: 16 / 9;  /* fixes Seitenverhältnis */
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video + YouTube exakt gleich */




