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

body, html {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #000;
    overflow: hidden;
}

/* Header & Navigation (Elegant & Transparent) */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 20px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

/* FIX FÜR DAS LOGO: Größe anpassen und Finder-Fehler umgehen */
.logo img {
    width: 125px; /* Drehe diesen Wert hoch oder runter, bis es dir gefällt! */
    height: auto;
    border: none;
    outline: none;
    display: block;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

/* 1. Die Navigationsleiste als Ganzes */
.main-nav {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000000; /* Setzt den Hintergrund auf sattes Schwarz */
    z-index: 9999;
    padding: 15px 0;
}

/* 2. Die Liste komplett bereinigen (Punkte weg, nebeneinander) */
.main-nav ul {
    display: flex;
    justify-content: center; /* Zentriert die Punkte HOME, ABOUT etc. nebeneinander */
    align-items: center;
    list-style: none; /* Macht die hässlichen Punkte links komplett unsichtbar */
    padding: 0;
    margin: 0;
}

/* 3. Die Haupt-Menüpunkte nebeneinander auf Abstand halten */
.main-nav > ul > li {
    position: relative;
    margin: 0 20px; /* Abstand zwischen HOME, ABOUT, GALLERIES, KONTAKT */
}

/* 4. Das Untermenü (Dropdown) wieder ordentlich unter GALLERIES verstecken */
.main-nav .submenu {
    display: none; /* Standardmäßig unsichtbar */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column; /* Die Galeriepunkte im Dropdown untereinander */
    padding: 10px;
    min-width: 200px;
}

/* Zeigt das Untermenü nur an, wenn man mit der Maus über GALLERIES fährt */
.main-nav .dropdown:hover .submenu {
    display: flex;
}

/* 5. Optimierung für das Smartphone */
@media (max-width: 768px) {
    .main-nav ul {
        justify-content: space-around; /* Verteilt die Punkte auf dem engen Handydisplay gleichmäßig */
        padding: 0 10px;
    }
    .main-nav > ul > li {
        margin: 0 5px; /* Weniger Abstand auf dem Handy, damit KONTAKT nicht rausfliegt */
    }
    .main-nav a {
        font-size: 11px; /* Schrift auf dem Handy minimal kleiner, damit alles nebeneinander passt */
    }
}
.submenu li {
    width: 100%;
}

.submenu a {
    display: block;
    padding: 8px 15px;
    font-size: 11px;
    letter-spacing: 1px;
}

/* Ken-Burns Diashow */
.slideshow-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
   /* animation: kenBurnsAnimation 24s infinite linear;*/
}

/* Timing für 3 Bilder 
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 8s; }
.slide:nth-child(3) { animation-delay: 16s; }
*/
@keyframes kenBurnsAnimation {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    4% {
        opacity: 1;
    }
    33% {
        opacity: 1;
    }
    37% {
        opacity: 0;
    }
    100% {
        opacity: 0;
        transform: scale(1.15);
    }
}

/* =======================================================
   BURGER-MENÜ & NAVIGATION (GANZ UNTEN IN STYLE.CSS)
   ======================================================= */

/* Das Hauptmenü bekommt die volle Breite */
.main-nav {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: #000000 !important; /* Sattes Schwarz */
    z-index: 99999 !important;
    padding: 10px 0 !important;
}

/* Wir brechen die 23%-Begrenzung aus deinem Screenshot auf */
.nav-list {
    display: flex !important;
    justify-content: center !important; /* Zentriert die Punkte auf dem Desktop */
    align-items: center !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important; /* Volle Breite statt 23% */
}

.nav-list > li {
    position: relative !important;
    margin: 0 20px !important; /* Schöner Abstand zwischen HOME, ABOUT etc. */
}

.nav-list a {
    color: #ffffff !important; /* Knallhart weiße Schrift */
    text-decoration: none !important;
    font-size: 13px !important;
    letter-spacing: 2px !important;
    padding: 10px 15px !important;
    display: block !important;
}

/* Das Untermenü (Dropdown) ordentlich stylen */
.submenu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background-color: #000000 !important;
    list-style: none !important;
    padding: 10px 0 !important;
    min-width: 200px !important;
    z-index: 999999 !important;
}

.dropdown:hover .submenu {
    display: block !important; /* Zeigt die Galerien beim Drüberfahren */
}

/* --- BURGER BUTTON (Auf Desktop unsichtbar) --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    width: 35px;
    margin-left: auto; /* Schiebt die 3 Striche auf dem Handy nach rechts */
    margin-right: 20px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 4px 0;
    transition: 0.3s;
}

/* =======================================================
   AB HIER: HANDY-ANSICHT (AUTOMATISCH BEI SCHMALEN BILDSCHIRMEN)
   ======================================================= */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important; /* Zeigt die 3 Striche auf dem Smartphone */
    }

    /* Versteckt die normale Menüleiste auf dem Handy standardmäßig */
    .nav-list {
        display: none !important;
        flex-direction: column !important;
        width: 100% !important;
        background-color: #000000 !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        padding: 20px 0 !important;
    }

    /* Blendet das Menü ein, wenn man auf die 3 Striche tippt */
    .nav-list.active {
        display: flex !important;
    }

    .nav-list > li {
        margin: 15px 0 !important;
        text-align: center !important;
        width: 100% !important;
    }

    /* Zeigt das Untermenü auf dem Handy übersichtlich unter GALLERIES an */
    .submenu {
        position: relative !important;
        display: block !important;
        background-color: #111111 !important;
        width: 100% !important;
        box-shadow: none !important;
    }
    
    /* Macht aus den 3 Strichen ein "X", wenn das Menü offen ist */
    .menu-toggle.is-open .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .menu-toggle.is-open .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-open .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
}

/* =======================================================
   REPARATUR FÜR DAS AUFGEKLAPPTE HANDY-MENÜ
   ======================================================= */

@media (max-width: 768px) {
    
    /* Zwingt die geöffnete Liste auf dem Handy in ein edles Design */
    .main-nav ul.nav-list.active {
        display: flex !important;
        flex-direction: column !important;
        background-color: #000000 !important; /* Macht den Hintergrund tiefschwarz */
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        padding: 20px 0 !important;
        margin: 0 !important;
        list-style: none !important; /* Löscht die Punkte links */
        z-index: 999999 !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    /* Löscht die Aufzählungspunkte für jeden einzelnen Eintrag */
    .main-nav ul.nav-list.active li {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin: 12px 0 !important;
        background: none !important;
    }

    /* Macht die Links im aufgeklappten Menü knallhart weiß und groß genug zum Tippen */
    .main-nav ul.nav-list.active a {
        color: #ffffff !important; /* Weiße Schrift */
        font-family: Arial, sans-serif !important; /* Schicke, saubere Schrift */
        font-size: 16px !important;
        text-decoration: none !important;
        letter-spacing: 2px !important;
        display: block !important;
        padding: 8px 0 !important;
    }

    /* Das Untermenü (deine Galerien) leicht einrücken und grau absetzen */
    .main-nav ul.nav-list.active .submenu {
        display: block !important;
        position: relative !important;
        background-color: #111111 !important; /* Etwas helleres Schwarz */
        padding: 10px 0 !important;
        margin-top: 10px !important;
    }

    .main-nav ul.nav-list.active .submenu a {
        color: #cccccc !important; /* Galerielinks in edlem Grau */
        font-size: 14px !important;
    }
}

/* =======================================================
   ZENTRALER FOOTER FÜR ALLE SEITEN
   ======================================================= */
.main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    padding: 25px 0;
    text-align: center;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #ffffff;
}