/* GLOBALE DEFINITIONEN */
body {
    background-color: rgb(0, 0, 0);
    margin: 0;
    min-height: 100vh;
    width: 100%;
}

* {
    color: rgb(210, 210, 210);
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    margin: 0;
}

/* 1. HEADER (DESKTOP DEFAULT) */
header {
    position: fixed; 	 
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    box-shadow: 0px 2px 20px rgba(0,0,0,0.75);
    z-index: 10;
    display: flex; 	 
    justify-content: center; /* Zentriert die Navigationsleiste */
}
/* Navigationscontainer (Header Nav) */
header nav {
    /* Stellt sicher, dass diese Regeln nur auf die Nav-Leiste innerhalb des Headers angewendet werden */
    position: static; 
    width: auto;
    padding: 0;
    display: flex;
    justify-content: center; 
    gap: 14px;
}

/* Platzhalter für Mobile Elemente (versteckt auf Desktop) */
.menu-toggle,
.menu-icon {
    display: none;
}
.icon-line {
    display: block;
    height: 3px;
    width: 100%;
    background-color: rgb(210, 210, 210);
    border-radius: 1px;
    transition: all 0.3s ease-in-out;
}
/* Ende Mobile Platzhalter */


header a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    text-decoration: none;
    color: rgb(210, 210, 210);
    font-size: clamp(0.7rem, 1vw, 1rem);
    text-shadow: 0 0 8px black;
    white-space: nowrap;
    justify-content: center;
    width: 100px;
    overflow: hidden;
}

header a span {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: max-width 0.6s ease-out, opacity 0.6s ease-out, color 0.2s linear;
}

header a:hover span {
    opacity: 1;
    max-width: 150px;
}

header img {
    width: 22px;
    height: 22px;
    filter: invert(1);
}

/* 4. Desktop: Visuelle Reihenfolge (Home in der Mitte) (FEHLTE ZUVOR) */
header .main-nav a {
    order: 2; /* Standard-Reihenfolge */
}

.home-link {
    order: 3; /* Home in die Mitte (3. von 5) */
}

header .main-nav a:nth-child(2), /* Leistungen */
header .main-nav a:nth-child(3)  /* Referenzen */
{
    order: 1; /* Links von Home */
}

header .main-nav a:nth-child(4), /* Über mich */
header .main-nav a:nth-child(5)  /* Kontakt */
{
    order: 4; /* Rechts von Home */
}



.startbild {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}


/* FOOTER STYLES */
.bottom-links {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}
.bottom-links a {
    text-shadow: 0 0 8px black;
    line-height: 1;
    font-size: clamp(0.6rem, 1.4vw, 1rem);
    text-decoration: none;
    color: rgb(210, 210, 210);
}
.bottom-links a:hover {
    color: rgb(170, 170, 170);
}
.bottom-links img {
    width: 18px;
    filter: invert(1);
    transition: transform 0.3s ease;
}
.bottom-links img:hover {
    transform: scale(1.15);
}

.link-row {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 10px;
}

.left-link {
    position: absolute;
    right: 50%; 
    transform: translateX(-10px); 
    text-align: right;
}

.right-link {
    position: absolute;
    left: 50%; 
    transform: translateX(10px); 
    text-align: left;
}

.separator {
    color: rgb(210, 210, 210);
    user-select: none;
    z-index: 1;
}

header ul {
    list-style: none;
    padding: 0;
}


/* HERO & IMPRESSUM STYLES */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.impressum-box {
    position: relative;
    z-index: 5;
    background: rgba(35, 35, 35, 0.25);
    box-shadow: 0px 5px 25px rgba(0,0,0,0.75);
    backdrop-filter: blur(10px);
    padding: 25px 35px;
    border-radius: 14px;
    width: 85%;
    max-width: 520px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impressum-box:hover {
    transform: scale(1.03);
}

.impressum-box h2 {
    font-size: 1.8rem;
    margin-bottom: 14px;
    text-align: center;
}

.impressum-box p {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}


@media (max-width: 768px) {
    
    /* *************************************** */
    /* *** HEADER & NAV ANPASSUNG MOBILE *** */
    /* *************************************** */
    
    /* 1. Haupt-Header-Container für Mobile (wird klein und oben links fixiert) */
    header {
        /* Fixierung und Z-Index sicherstellen */
        position: fixed;
        top: 0;
        z-index: 10; 
        
        width: 60px; 
        padding: 1.5rem 0; 
        height: auto; 
        left: 0;
        right: auto;
        display: block; 
        justify-content: unset; 
    }
    
    /* 2. Hamburger Icon anzeigen und linksbündig */
    .menu-icon {
        display: flex; 
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 50; 
        
        /* Korrektur: Positionierung im Flow des 60px Headers */
        position: static; 
        left: auto;
        top: auto; 
        transform: none; 
        margin: 0 auto; /* Zentriert es horizontal im 60px breiten Header */
    }
    
    /* Linien des Hamburger Icons */
    .icon-line {
        display: block;
        height: 3px;
        width: 100%;
        background-color: rgb(210, 210, 210);
        border-radius: 1px;
        transition: all 0.3s ease-in-out;
        z-index: 60;
    }

    /* 3. Vertikales, ausgeblendetes Menü für Mobile (Navigations-Links) */
    /* Hinweis: Verwendet den Abstammungs-Selektor (header .main-nav) */
    header .main-nav { 
        position: fixed; 
        top: 0;
        left: 0;
        height: 100vh;
        width: min(80vw, 300px); 
        background: rgba(35, 35, 35, 0.95);
        backdrop-filter: blur(8px);
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.8);
        
        flex-direction: column;
        justify-content: flex-start; 
        padding-top: 60px; 
        gap: 0;
        display: flex; 
        
        z-index: 20; 

        transform: translateX(-100%);
        transition: transform 0.4s ease-in-out;

        pointer-events: none;
    }

    /* Hover-Effekt auf Mobile deaktivieren (falls diese Klassen existieren) */
    .DJ-Text:hover, .Event-Text:hover, .Technik-Text:hover, .Set-Text:hover {
        transform: none;
    }
    
    /* Mobile: Links zurück auf HTML-Reihenfolge und linksbündig */
    header .main-nav a { 
        order: 0 !important; 
        justify-content: flex-start; 
        width: 100%;
        padding: 12px 20px;
        text-shadow: none;
        font-size: 1.1rem;
    }

    /* Mobile: Text ist IMMER sichtbar */
    header a span {
        opacity: 1; 
        max-width: none; 
        overflow: visible;
        transition: none; 
        margin-left: 10px; 
    }
    
    header a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    /* 4. Checkbox Funktionalität (Toggle) */
    .menu-toggle:checked ~ .main-nav {
        transform: translateX(0); 
        pointer-events: auto;
    }

    /* 5. Hamburger Icon Animation beim Öffnen */ 
    .menu-toggle:checked + .menu-icon .icon-line:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .menu-toggle:checked + .menu-icon .icon-line:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked + .menu-icon .icon-line:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    /* --- HERO/GRID Anpassung für Mobile --- */
    
    .hero {
        padding-top: 0;
        width: calc(100%); 
        margin-left: 0; 
        
        overflow: visible;
    }
    
    .impressum-box {
        width: 90vw; 
        max-width: none;
        margin: 0 auto; 
        padding: 20px;
        transform: none; 
    }
    
    .impressum-box:hover {
        transform: none;
    }
    
    .impressum-box h2 {
        font-size: 1.5rem;
    }

    .impressum-box p {
        font-size: 0.95rem;
        line-height: 1.5;
    }


    /* --- FOOTER/BOTTOM LINKS (MOBILE KORREKTUR) --- */
    
    .bottom-links {
        position: fixed;
        bottom: 10px;
        left: auto;
        transform: none;
        margin-top: 40px; 
        margin-bottom: 20px;
        padding-bottom: 15px; 
    }
    
    .bottom-links a {
        font-size: 0.9rem; 
    }

    .link-row {
        justify-content: center; 
        position: static;
    }

    .left-link, .right-link {
        position: static;
        transform: none;
        text-align: center; 
        padding: 0 5px; 
    }

    .link-row a {
        white-space: nowrap; 
    }
}