/* ============================================================
   1) GLOBAL STYLES
   ============================================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #111;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ============================================================
   2) HEADER / NAVIGATION (STICKY)
   ============================================================ */

.main-nav-bar {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(17, 17, 17, 0.85);
    padding: 10px 40px;
    backdrop-filter: blur(4px);
}

/* horizontales Menü */
.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

/* Hauptpunkte */
.main-menu > li > a {
    text-decoration: none;
    color: #D01919;
    font-weight: 900;
    text-transform: uppercase;
    font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
    font-size: 1rem;
    padding: 6px 0;
    display: block;
    letter-spacing: 2px;
    transition: color 0.2s, border-bottom 0.2s;
}

/* aktiver Menüpunkt (HOME) */
.main-menu > li > a.active {
    color: #ffc800;
}

/* Hover */
.main-menu > li > a:hover {
    border-bottom: 2px solid #ffc800;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0,0,0,0.9);
    min-width: 180px;
    display: none;
}

.has-dropdown:hover .dropdown {
    display: block;
}

/* Öffnen über JS-Klasse (für Handy) */
.has-dropdown.open .dropdown {
    display: block;
}

.dropdown li a {
    padding: 6px 14px;
    display: block;
    color: #ff4444;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9rem;
}

.dropdown li a:hover {
    background: rgba(255,255,255,0.08);
    color: #ffc800;
}


/* ============================================================
   3) HERO BEREICH + LOGO
   ============================================================ */

.hero {
    height: 100vh;
    background-image: url("images/Homebackround01.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 80px 20px 40px; /* mehr Abstand zum Menü */
}

/* Großes Startseiten-Logo */
.home-logo-big {
    display: block;
    margin: 0 auto 20px;
    width: min(60vw, 380px);
    height: auto;
    filter: drop-shadow(0 0 14px rgba(0,0,0,0.85));
    pointer-events: none;
}

/* Container für Countdown etc */
.container {
    text-align: center;
    margin-top: 0;
}

/* Titel */
.gugge-title {
    font-size: 5rem;
    font-weight: 900;
    text-align: center;
    letter-spacing: 4px;
    margin-bottom: 30px;
    color: #D01919;
    font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
    text-shadow:
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        -3px 0px 0 #000,
        3px 0px 0 #000,
        0px -3px 0 #000,
        0px 3px 0 #000,
        0 0 10px rgba(255, 0, 0, 0.5);
}

h1 {
    font-size: 2.8rem;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

/* Countdown – Desktop: 4 Boxen nebeneinander */
#countdown {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-top: 20px;
}

.timebox {
    background: #111;
    padding: 18px 20px;
    border-radius: 18px;
    width: 140px;
    box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

.timebox span {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
}

.timebox p {
    margin: 0;
    font-size: 1rem;
    color: #bbb;
}


/* ============================================================
   4) SCROLL SECTION (Übergang zur nächsten Sektion)
   ============================================================ */

.scroll-section {
    background: #111;
    padding: 80px 40px;
    text-align: center;
    color: white;
    margin-top: -80px;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
}


/* ============================================================
   5) GESCHICHTE-SEITE
   ============================================================ */

.geschichte-bild {
    display: block;
    margin: 30px auto;
    max-width: 800px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.geschichte-text {
    max-width: 800px;
    margin: 25px auto;
    line-height: 1.7;
    font-size: 1.05rem;
}


/* ============================================================
   6) KACHEL-GRID FÜR ÜBER UNS
   ============================================================ */

.kachel-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.kachel {
    background: #181818;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.kachel:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255,0,0,0.3);
}

.kachel img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}


/* ============================================================
   7) AHNEN (Bilder + Lightbox)
   ============================================================ */

.ahnen-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.ahnen-item {
    background: #1b1b1b;
    border-radius: 10px;
    padding: 8px 8px 12px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transition: transform 0.15s, box-shadow 0.15s;
}

.ahnen-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(208,25,25,0.5);
}

.ahnen-item img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 6px;
}

.ahnen-item span {
    display: block;
    margin-top: 8px;
    font-weight: 700;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.8);
}

.lightbox-caption {
    position: absolute;
    bottom: 40px;
    width: 100%;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px 16px;
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

.lightbox-arrow:hover,
.lightbox-close:hover { color: #D01919; }


/* ============================================================
   8) MITGLIEDER-SEITE
   ============================================================ */

.page-main-title {
    font-size: 3.5rem;
    text-align: center;
    font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
    color: #D01919;
    text-shadow: 0 4px 6px rgba(0,0,0,0.9);
    margin-bottom: 20px;
}

.instrument-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 10px auto 40px;
}

.instrument-nav a {
    background: #D01919;
    color: #111;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: 0.15s;
}

.instrument-nav a:hover {
    transform: translateY(-2px);
    background: #ff3b3b;
}

.mitglieder-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.mitglied-card {
    background: #f3f3f3;
    color: #111;
    width: 300px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    overflow: hidden;
    transition: transform 0.15s;
}

.mitglied-card:hover {
    transform: scale(1.03);
}

.mitglied-card img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    object-position: top;
}

.mitglied-info {
    padding: 14px 16px 18px;
    text-align: center;
}

.mitglied-info h3 {
    margin: 0 0 4px;
    text-transform: uppercase;
    text-decoration: underline;
    font-size: 1.15rem;
    font-weight: 900;
}

.mitglied-info .rolle {
    margin-bottom: 4px;
    font-weight: 700;
    font-size: 0.9rem;
}

.mitglied-info p {
    margin: 2px 0;
    font-size: 0.85rem;
}


/* ============================================================
   9) VORSTAND-SEITE
   ============================================================ */

.vorstand-wrapper {
    max-width: 900px;
    margin: 40px auto 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.vorstand-row {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.vorstand-card {
    text-align: center;
    color: #fff;
}

.vorstand-main img {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #D01919;
    box-shadow: 0 8px 24px rgba(0,0,0,0.7);
}

.vorstand-small img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #D01919;
    box-shadow: 0 6px 20px rgba(0,0,0,0.7);
}


/* ============================================================
   10) FORMULAR – MITGLIED WERDEN
   ============================================================ */

.mitglied-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mitglied-form label {
    font-weight: bold;
}

.mitglied-form input,
.mitglied-form select,
.mitglied-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: #222;
    color: white;
    font-size: 1rem;
}

/* Button */
.btn-form {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #D01919;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.btn-form:hover {
    background: #b41616;
}


/* ============================================================
   11) INTERN SEITE
   ============================================================ */

.intern-buttons {
    max-width: 420px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.intern-btn {
    display: block;
    text-align: center;
    padding: 14px 20px;
    border-radius: 10px;
    border: 2px solid #D01919;
    background: #1b1b1b;
    color: #fff;
    text-decoration: none;
    font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
    letter-spacing: 2px;
    font-size: 1rem;
    text-transform: uppercase;
    transition: 0.15s;
}

.intern-btn:hover {
    background: #D01919;
    color: #111;
}


/* ============================================================
   12) SONGS
   ============================================================ */

.songs-grid {
    max-width: 800px;
    margin: 10px auto 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px 40px;
}

.song-btn {
    display: block;
    text-align: center;
    padding: 8px 12px;
    background: #D01919;
    color: #111;
    text-decoration: none;
    font-family: "Times New Roman", Georgia, serif;
    font-weight: 700;
    font-size: 1rem;
    transition: 0.15s;
}

.song-btn:hover {
    background: #ff3b3b;
    transform: translateY(-2px);
}

/* Song Detail */
.song-detail {
    max-width: 1100px;
    margin: 10px auto 40px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.song-tracks,
.song-sheets {
    background: #222;
    padding: 20px 25px;
    border-radius: 14px;
    box-shadow: 0 0 18px rgba(0,0,0,0.7);
}

.song-tracks {
    flex: 1 1 500px;
}

.song-sheets {
    flex: 0 0 260px;
}

.track-item {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.track-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.track-item audio {
    width: 100%;
}

.track-download {
    display: block;
    color: #fff;
    margin-bottom: 6px;
    font-weight: 700;
    text-decoration: none;
}

.track-download:hover {
    color: #ffc800;
    text-decoration: underline;
}


/* ============================================================
   13) AGENDA
   ============================================================ */

.agenda-grid {
    max-width: 1100px;
    margin: 20px auto 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.agenda-item {
    background: #1b1b1b;
    border-radius: 12px;
    padding: 16px 18px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.7);
    transition: 0.15s;
}

.agenda-item:hover {
    transform: translateY(-3px);
    background: #222;
}

.agenda-date {
    color: #ffc800;
    font-size: 1.1rem;
    font-weight: 800;
}

.agenda-name {
    font-size: 1rem;
    font-weight: 700;
}

.agenda-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.agenda-modal.open {
    display: flex;
}

.agenda-modal-inner {
    background: #181818;
    padding: 20px 24px;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
}

.agenda-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #fff;
}

.agenda-modal-close:hover {
    color: #D01919;
}


/* ============================================================
   14) FOOTER
   ============================================================ */

.fgs-footer {
    background: #111;
    padding: 25px 0;
    margin-top: 40px;
    border-top: 2px solid #D01919;
    backdrop-filter: blur(4px);
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.footer-logo {
    height: 60px;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.7));
}

.footer-link {
    color: #D01919;
    font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
    letter-spacing: 1px;
    font-size: 1.2rem;
    text-decoration: none;
}

.footer-link:hover {
    color: #ff3b3b;
    text-shadow: 0 0 10px rgba(255,50,50,0.8);
}

.footer-copy {
    color: #bbb;
    font-size: 1rem;
    font-weight: bold;
}


/* ============================================================
   15) RESPONSIVE – MOBILE ANPASSUNGEN
   ============================================================ */

@media (max-width: 900px) {
    .kachel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .home-logo-big {
        width: 70vw;
        max-width: 320px;
        margin-top: 10px;
        margin-bottom: 15px;
    }

    .gugge-title {
        font-size: 3rem;
        margin-bottom: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    /* Countdown auf Handy: untereinander & schön breit */
    #countdown {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        margin-top: 14px;
    }

    .timebox {
        width: 80vw;
        max-width: 320px;
        padding: 12px 16px;
        border-radius: 14px;
    }

    .timebox span {
        font-size: 1.9rem;
    }

    .timebox p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {

    /* Navigation kompakter, einzeilig */
    .main-nav-bar {
        padding: 4px 10px;
    }

    .main-menu {
        flex-wrap: wrap;     /* Erlaubt wieder zwei Zeilen → Dropdown sichtbar */
        gap: 10px;
        white-space: normal; /* Normaler Zeilenumbruch */
        overflow-x: visible; /* Nichts wird mehr abgeschnitten */
    }

    .main-menu > li > a {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
        padding: 4px 0;
    }

    /* Hero auf Handy: nicht gequetscht, unter Menü */
    .hero {
        height: auto;            /* nicht fix 100vh */
        padding: 100px 20px 40px;
        justify-content: flex-start;
    }

    /* Scroll-Section soll nicht in den Hero "reinziehen" */
    .scroll-section {
        margin-top: 20px;        /* statt -80px */
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
    }

    /* Kacheln: 1 Spalte auf Handy */
    .kachel-grid {
        grid-template-columns: 1fr;
    }
}
