/* --- BASIS & TYPO --- */
body {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 20px;
    line-height: 1.4;
    background-color: black;
    color: white;
}

h1 {
    font-size: 32px;
    text-align: center;
    margin: 20px 0;
}

/* --- HEADER --- */
.header {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
}

#buehne {
    background-color: white;
    text-align: center;
    animation-delay: 2s;
    animation-duration: 30s;
    animation-name: color-change;
    animation-iteration-count: infinite;
}

@keyframes color-change {
    0% { background-color: #fff; }
    20% { background-color: #9800be; }
    25% { background-color: #9800be; }
    35% { background-color: #fffd0c; }
    40% { background-color: #fffd0c; }
    50% { background-color: #009900; }
    55% { background-color: #009900; }
    65% { background-color: #0021ff; }
    70% { background-color: #0021ff; }
    80% { background-color: #9800be; }
    85% { background-color: #9800be; }
    95% { background-color: #fffd0c; }
    100% { background-color: white; }
}

#main-image {
    width: 38%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    border: none;
    display: block;
    margin: 0 auto;
    animation: black-shadow-scan 4s ease-in-out infinite;
    will-change: filter, opacity;
}

@keyframes black-shadow-scan {
    0%, 100% { filter: drop-shadow(4px 2px 5px rgba(0, 0, 0, 0.5)); }
    10% { filter: drop-shadow(20px 5px 10px rgba(0, 0, 0, 0.5)); }
    20% { filter: drop-shadow(-10px 10px 5px rgba(0, 0, 0, 0.4)); }
    30% { filter: drop-shadow(3px 2px 3px rgba(0, 0, 0, 0.5)); }
    40% { filter: drop-shadow(-6px 0px 3px rgba(0, 0, 0, 0.4)); }
    50% { filter: drop-shadow(12px 5px 3px rgba(0, 0, 0, 0.4)); }
    55% { filter: drop-shadow(-3px 0px 2px rgba(0, 0, 0, 0.4)); }
    60% { filter: drop-shadow(4px 0px 5px rgba(0, 0, 0, 0.3)); }
    80% { filter: drop-shadow(-5px 3px 4px rgba(0, 0, 0, 0.5)); }
    90% { filter: drop-shadow(10px 7px 8px rgba(0, 0, 0, 0.5)); }
    95% { filter: drop-shadow(-2px 5px 4px rgba(0, 0, 0, 0.5)); }
}

#logo {
    position: absolute;
    left: 40px;
    bottom: 0;
    width: 12%;
    height: auto;
    z-index: 10;
}

/* --- BUTTONS --- */
.button-container { text-align: center; }

.button {
    display: inline-block;
    z-index: 9999 !important;
    margin: 0 auto;
    padding: 4px 25px;
    font-size: 28px;
    font-weight: bold;
    background-color: #000;
    color: white;
    border: 1px solid #660066;
    border-radius: 20px;
    transition: background-color 0.1s ease-in;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    text-decoration: none;
}

@media (hover: hover) {
    .button:hover {
        cursor: pointer;
        background-color: #660066;
    }
}

.button:active {
    background-color: #990099;
    transition: background-color 0.1s ease-out;
}

/* --- NAVIGATION & MENU --- */
.nav-menu {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin: 5px 10px 5px 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Nur die aktive Gruppe zeigen */
.nav-group {
    display: none;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.nav-group.active {
    display: flex;
    animation: fadeInMenu 0.2s ease-out;
}

@keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-items {
    grid-column: 2;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.menu-items a {
    color: white;
    font-size: 14px;
    font-weight: lighter;
    text-decoration: none;
    font-family: Verdana, sans-serif;
    margin-right: 20px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.menu-items a:hover { color: #660066; }
.menu-items a:active { color: #990099; transition: none; }

/* --- SOCIAL LINKS --- */
.social-links-container {
    grid-column: 3;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding-right: 20px;
}

.social-links-container a i {
    font-size: 14px;
    margin: 5px;
    color: white;
    transition: color 0.3s ease;
}

.social-links-container a:hover i {
    color: #990099; /* DEINE HOVER FARBE IST WIEDER DA */
}

/* --- DROPDOWN --- */
.dropdown { margin-top: -5px; }

.dropbtn {
    white-space: nowrap !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #000;
    min-width: 180px;
    z-index: 100;
}

.dropdown-content a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 10px;
}

.dropdown:hover .dropdown-content, 
.dropdown:has(.active) .dropdown-content { display: block; }

.dropdown-content a.active {
    color: #ff0000 !important;
    font-weight: bold;
}

/* --- GALERIE GRID --- */
.super-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(clamp(80px, 20%, 150px), 1fr)) !important;
    gap: 5px !important;
    background: #000;
    width: 100%;
}

.thumb-container {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    overflow: hidden !important;
    background: #000;
}

.thumb-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.1s ease-in-out !important;
}

.thumb-container:not(.active-thumb):hover img {
    transform: scale(1.2);
    filter: brightness(1.2);
}

.thumb-container.active-thumb {
    overflow: visible !important;
    z-index: 9999 !important;
}

.thumb-container.active-thumb img {
    box-shadow: 0px 0px 30px 10px rgba(0,0,0,1);
}

.thumb-container.span-2 { grid-column: span 2; }
.thumb-container.span-3 { grid-column: span 3; }

/* --- TEXT & CONTENT --- */
.text-container {
    display: grid;
    margin: 20px;
    text-align: justify;
    text-justify: inter-character;
    hyphens: auto;
    grid-template-columns: 2.5fr 5fr 2.5fr;
    gap: 30px;
}

.content-container {
    width: 100%;
    clear: both;
    padding-top: 20px;
}

.small-print {
    font-size: 10px;
    margin-top: 40px;
}

/* --- MOBILE (768px) --- */
@media (max-width: 768px) {
    h1 { font-size: 26px; }
    #logo { display: none; }

    /* Hamburger Button */
    .hamburger-menu {
        display: flex;
        position: fixed;
        top: 15px; 
        left: 15px;
        z-index: 1000; /* Ganz nach oben */
        flex-direction: column;
        justify-content: space-around;
        width: 35px; 
        height: 30px;
        cursor: pointer;
        background-color: white;
        padding: 5px;
        border-radius: 5px;
    }
    
    .bar { width: 100%; height: 3px; background-color: black; border-radius: 5px; }

    /* Das Nav-Panel (Sidebar) */
    .nav-menu {
        position: fixed;
        top: -5px; 
        left: -30px;
        height: 100vh; 
        width: 250px;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 900;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding-top: 80px; /* Platz für den Hamburger oben */
        transition: transform 0.3s ease-in-out;
        transform: translateX(-100%); /* Versteckt */
    }

    .nav-menu.active { 
        transform: translateX(0); /* Einblenden wenn Hamburger geklickt */
    }

    /* Die Gruppen im mobilen Menü untereinander statt nebeneinander */
    .menu-items {
        width: 100%;
        display: block; /* Container füllt Breite */
    }

    .nav-group {
        flex-direction: column !important; /* Items untereinander */
        align-items: flex-start !important;
        gap: 20px !important;
        padding-left: 30px;
        width: 100%;
    }

    .nav-group.active {
        display: flex !important;
    }

    /* Menü-Links Styling (Desktop-Look beibehalten) */
    .menu-items a {
        font-size: 20px !important;
        color: white !important;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 2px;
        display: block;
        width: 100%;
    }

    /* Social Media im Hamburger-Menü verstecken */
    .social-links-container {
        display: none !important; 
    }

    /* Grid & Text Anpassungen */
    .header #main-image { width: 100%; height: auto; }
    .super-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
        gap: 5px !important;
    }
    .text-container { grid-template-columns: 1fr; font-size: 18px; margin: 15px; }
    .column-text { display: none; }
}

/* --- FORM ELEMENTS --- */
select, input, textarea, button {
    font-family: monospace !important;
    font-size: 18px;
    padding: 5px;
    box-sizing: border-box;
}