/* ALLGEMEINE GRUNDLAGEN */
body {
    background-color: rgb(0, 0, 0);
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
}

*{
    color: rgb(210, 210, 210);
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    margin: 0;
}

/* --- HEADER & NAVIGATION (DESKTOP DEFAULT) --- */

/* 1. Haupt-Header-Container (Wrapper für das Menü) */
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;
    /* Für Desktop: Menü in die Mitte setzen */
    display: flex; 
    justify-content: center; 
    align-items: center;
    height: auto;
}

/* 2. Hamburger Icon und Checkbox auf Desktop verbergen */
.menu-toggle,
.menu-icon {
    display: none;
}

/* 3. Navigationsleiste (Desktop Default: Links nebeneinander) - ANPASSUNG AUF .main-nav */
header .main-nav { 
    display: flex; 
    justify-content: center; 
    gap: 14px; 
    width: auto;
    /* Stellt sicher, dass keine ungewollten mobilen Positionierungen greifen */
    position: static; 
    transform: none;
    padding: 0;
    height: auto;
}

/* 4. Desktop: Visuelle Reihenfolge (Home in der Mitte) */
header .main-nav a {
    order: 2; /* Standard-Reihenfolge */
    justify-content: center; /* Text/Icon zentrieren */
    padding: 4px 6px;
    width: 100px;
}

.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 */
}

/* --- Allgemeine Header/Link Styles --- */
header a {
    display: flex;
    align-items: center;
    gap: 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;
    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);
}

/* --- HERO & INHALT --- */

.startbild{
    position: absolute;
    text-align: center;
    color: rgb(210, 210, 210);
    height: 100%;
    width: 100vmax;
    object-fit: cover;
    display: block;
    z-index: -5; 
}

header ul {
    list-style: none;
    padding: 0;
}

.hero{
    position: relative;
    width: 100%;
    /* DESKTOP DEFAULT: Füllt den gesamten Viewport aus */
    height: 100vh;
    overflow: hidden;
    /* ----------------------------------------------- */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.DJ-Text, .Event-Text, .Technik-Text, .Set-Text {
    background: rgba(35, 35, 35, 0.25);
    backdrop-filter: blur(10px);
    box-shadow: 0px 5px 25px rgba(0,0,0,0.75);
    z-index: 10;
    display: inline-block; 
    text-align: left;
    border-radius: 10px;
    padding: 10px;
    width: min(30rem, 80%);
    text-shadow: 0 0 8px black;
    line-height: 1.1;
    font-size: clamp(1rem, 1.4vw, 1.2rem); 
    margin: 1rem;
    margin-top: 1,5rem;
    transition: transform 0.3s ease;
}

.DJ-Text:hover, .Event-Text:hover, .Technik-Text:hover, .Set-Text:hover {
    transform: scale(1.05);
}

.DJ, .Event, .Technik, .Set {
    text-align: center;
}

.DJ-Text li, .Event-Text li, .Technik-Text li{
    margin: 0.4rem;
}

.Set-Text h3{
    margin: 0.4rem 0;
}

.leistungen-grid li{
    padding-left: 1.5em;
    text-indent: -1.4em;
}

.leistungen-grid{
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    justify-items: center;
    z-index: 1;
    padding-bottom: 50px; 
}


/* --- FOOTER/BOTTOM LINKS (DESKTOP) --- */

.bottom-links a {
    color: rgb(210, 210, 210);
    text-decoration: none;
    text-shadow: 0 0 8px black;
    font-size: clamp(0.6rem, 1.3vw, 1rem);
}

.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);
}

.bottom-links{
    /* DESKTOP: Absolute Positionierung relativ zum .hero Container */
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    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;
}

/* --- RESPONSIVE ANPASSUNG (MOBILE: <= 768px) --- */
/* --- RESPONSIVE ANPASSUNG (MOBILE: <= 768px) --- */
@media (max-width: 768px) {
    
    /* *************************************** */
    /* *** HEADER & NAV ANPASSUNG MOBILE *** */
    /* *************************************** */
    
    /* 1. Haupt-Header-Container für Mobile (wird klein und linksbündig) */
    header {
        width: 60px; 
        padding: 1.5rem 0; 
        height: auto; 
        left: 0;
        right: auto;
        display: block; 
        justify-content: unset; 
    }
    
    /* 2. Hamburger Icon anzeigen und innerhalb des kleinen Header-Containers zentrieren */
    .menu-icon {
        display: flex; 
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        /* 💥 KORREKTUR: Z-Index erhöhen, damit das Icon ÜBER dem aufklappenden Menü liegt */
        z-index: 30; 
        
        position: absolute; 
        left: 50%;
        top: 50%; 
        transform: translate(-50%, -50%); 
    }
    
    /* 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;
    }

    /* 3. Vertikales, ausgeblendetes Menü für Mobile */
    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);
        
        /* Vertikale Anordnung der Links */
        flex-direction: column;
        justify-content: flex-start; 
        padding-top: 60px; 
        gap: 0;
        display: flex; 
        
        /* Menü Z-Index (sollte unter dem Icon liegen) */
        z-index: 20; 

        /* Verstecke das Menü */
        transform: translateX(-100%);
        transition: transform 0.4s ease-in-out;

        pointer-events: none;
    }

    /* Hover-Effekt auf Mobile deaktivieren, um zufälliges Zoomen/Verschieben zu verhindern */
    .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 --- */
    
    /* KORREKTUR: Scrollen in der mobilen Ansicht ermöglichen */
    .hero {
        padding-top: 0;
        width: calc(100%); 
        margin-left: 0; 
        
        height: auto;
        overflow: visible;
    }
    
    .leistungen-grid {
        margin-top: 3rem;
        grid-template-columns: 1fr; 
        grid-template-rows: auto;
    }
    
    .DJ-Text, .Event-Text, .Technik-Text, .Set-Text {
        width: min(90vw, 350px);
        font-size: 1rem; 
        line-height: 1.4; 
    }

    .DJ-Text h2, .Event-Text h2, .Technik-Text h2, .Set-Text h2 {
        font-size: 1.4rem; 
        margin-bottom: 0.5rem;
    }

    .DJ-Text h3, .Event-Text h3, .Technik-Text h3, .Set-Text h3 {
        font-size: 1.1rem; 
        margin: 0.8rem 0 0.4rem 0;
    }

    .DJ-Text li, .Event-Text li, .Technik-Text li{
        margin: 0.6rem 0; 
    }

    /* --- FOOTER/BOTTOM LINKS (MOBILE KORREKTUR) --- */
    
    .bottom-links {
        position: relative; 
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 20px;
        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; 
    }

    .link-row a {
        white-space: nowrap; 
    }
}