body {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    color: #000000; /* Global text color white */
}

h1 {
    font-size: 3em; 
    position: relative;  
    z-index: 10;
}

.content {
    position: relative;
    z-index: 10;  
    padding-left: 50px; 
}

/* Nur auf der Hui-Seite */
body.exhibition-hui {
    font-family: 'VT323', monospace;
    text-shadow: 3px 3px 6px rgba(75, 0, 130, 0.7);
    color: #ffffff; /* Global text color white */
}

body.exhibition-hui a {
  color: white;          
  text-decoration: none;  
}

body.exhibition-hui a:hover {
  color: #8B0000; 
}

/* ~ ~ ~ GALLERIE ~ ~ ~ */
/* Gallerie-Container */
.gallery-container {
    display: flex;
    flex-wrap: wrap;         /* Zeilen umbrechen, wenn nicht genug Platz */
    gap: 10px;               /* Abstand zwischen den Bildern */
    justify-content: center; /* Zentriert die Bilder horizontal */
    padding: 20px;
}

/* Einzelne Galerie-Items */
div.gallery {
    border: 1px solid #ccc;
    flex: 1 1 200px;  /* Flex-Grow, Flex-Shrink, Basisbreite */
    max-width: 300px; /* optional: maximale Breite */
    box-sizing: border-box;
}

div.gallery:hover {
    border: 1px solid #777;
}

div.gallery img {
    width: 100%;
    height: auto;
}

div.desc {
    padding: 10px;
    text-align: center;
}

/* ~ ~ ~ GÄSTEBUCH ~ ~ ~ */
.entries {
    display: flex;
    flex-direction: column;
    align-items: center; /* horizontale Zentrierung */
    justify-content: center; /* vertikale Zentrierung */
    min-height: 50vh; /* damit es in der Mitte erscheint */
    gap: 20px; /* Abstand zwischen den Einträgen */
    margin-top: 20px;
}

.entry {
    background: rgba(0,0,0,0.4);
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.entry-date {
    font-size: 0.8em;
    color: #ccc;
    margin-bottom: 5px;
}

.entry-text {
    font-size: 1.2em;
}

/* ~ ~ ~ ZURÜCK LINK ~ ~ ~ */
.back-link {
    position: fixed;       /* immer sichtbar */
    bottom: 20px;          /* Abstand vom unteren Rand */
    left: 20px;            /* Abstand vom linken Rand */
    font-size: 2em;
    text-decoration: none;
    z-index: 10;           /* über Video/Overlay */
    transition: color 0.2s;
}

.back-link:hover {
    color: #8B0000;       /* dunkelrot beim Hover */
    cursor: pointer;
}

/* ~ ~ ~ VIDEO BACKGROUND ~ ~ ~ */
.video-background-static {
    width: 100%;
    height: 100%;
    background-image: url('exhibitions/hui.jpg'); 
    background-size: cover;
    background-position: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1; 
}

.video-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.video-wrapper video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

  /* Overlay für Flacker-Effekt */
.video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    animation: flicker 0.05s infinite; /* Dauerhaftes weißes Flackern */
    z-index: 1; 
}

/* Flacker-Animation */
@keyframes flicker {
    0% { opacity: 0; }
    25% { opacity: 0.1; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}

/* Glitch-Effekt */
.glitch {
    animation: glitch 0.3s;
}

@keyframes glitch {
    0% { transform: translate(0); }
    5% { transform: translate(4vw, 0); }
    10% { transform: translate(8vw, 0); }
    15% { transform: translate(0); }
    60% { transform: translate(4vw, 0); }
    65% { transform: translate(9vw, 0); }
    70% { transform: translate(16vw, 0); }
    75% { transform: translate(60vw, 0); }
    100% { transform: translate(0); }
}

/* ~ ~ ~ ~ ~ ~ ~ ~ MENU ~ ~ ~ ~ ~ ~ ~ ~ */
.menu {
    position: fixed;
    z-index: 10; /* Above all background layers */
    padding: 10px;
    box-sizing: border-box;
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.menu li {
    margin: 0 15px;
}

.menu a {
    text-decoration: none;
    font-weight: bold;
}

.menu a:hover {
    color: #8B0000; /* Dunkelrot beim Hovern */
}

/* ~ ~ ~ ~ ~ ~ ~ ~ LAYOUT ~ ~ ~ ~ ~ ~ ~ ~ */
/* Desktop view: Horizontal menu at bottom, in 2 rows */
@media (min-width: 769px) {
    .menu {
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        padding: 20px 60px;
    }
    .menu ul {
        flex-wrap: wrap;
        justify-content: space-between; /* Bessere Verteilung für 4-3 */
        max-width: 1200px;
        margin: 0 auto;
    }
    .menu li {
        margin: 10px 15px;
        flex: 0 0 calc(25% - 30px); /* 4 Elemente in der ersten Reihe */
        text-align: center;
    }
    .menu li:nth-child(n+5) {
        flex: 0 0 calc(33.33% - 30px); /* 3 Elemente in der zweiten Reihe */
    }
    .menu a {
        font-size: 3em; 
    }
}

/* Mobile view: Vertical menu on the left side, evenly distributed */
@media (max-width: 768px) {
    .menu {
        top: 0;
        right: 0;
        left: auto;
        width: auto;
        height: 100svh;
        padding: 60px 20px; /* Doppelter Abstand oben und unten (60px) im Vergleich zu zwischen den Punkten (30px) */
        display: flex;
        align-items: stretch; /* Streckt das Menü über die gesamte Höhe */
    }
    .menu ul {
        flex-direction: column;
        justify-content: space-between; /* Gleichmäßige Verteilung der Menüpunkte */
        height: 100%; /* Nutzt die gesamte Höhe des Containers */
    }
    .menu li {
        margin: 30px 0; /* Abstand zwischen den Punkten */
        text-align: right;
    }
    .menu a {
        font-size: 2em; 
    }
    h1 {
        font-size: 2em; 
    }
    body {
        padding-left: 0;    
        padding-right: 150px;
    }
}