body {
    font-family: Arial, sans-serif;
    /* Alter Hintergrund: background-image: url('snoopy.jpg'); */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #333;
    margin: 0;
    padding: 0;
    display: block;
    min-height: 100vh;
}

/* NEU: Taj Mahal Hintergrund für die Startseite (index.php) */
.taj-hintergrund {
    background-image: url('Taj.jpg'); 
}

/* NEU: Klasse für die Galerieansicht (Tagesordner) - bleibt erhalten */
.holz-hintergrund {
    background-image: url('holz.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Anpassungen für alle Haupt-Container (Login, Hauptordner, Tagesordner) */
.login-container,
.container {
    background-color: rgba(255, 255, 255, 0.3); /* Milchglaseffekt */
    backdrop-filter: blur(10px); /* Moderner Milchglaseffekt */
    color: #FF0000; /* Rote Schriftfarbe für alle Container */
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
    box-sizing: border-box;
    /* Standard-Schriftfarbe für Inhalte innerhalb des Containers */
    color: #333; 
}

/* NEUES STYLING FÜR DEN DISCLAIMER */
.album-disclaimer {
    color: #FF0000; /* Rote Schriftfarbe */
    font-size: 1.2rem; /* Gleiche Größe wie .timeshift-info */
    margin-bottom: 20px;
    font-weight: bold;
    /* Weißer Rand (Outline) um die rote Schrift */
    text-shadow: 
        -1px -1px 0 #FFF,  
         1px -1px 0 #FFF,
        -1px  1px 0 #FFF,
         1px  1px 0 #FFF;
}

/* Styling für die Hauptüberschrift mit Effekt */
h1.main-heading-effect {
    color: #FFF;
    font-size: 3.5rem;
    text-shadow: 
        3px 3px 0 #000, 
        -3px -3px 0 #000, 
        -3px 3px 0 #000, 
        3px -3px 0 #000; /* Schwarzer Schatten für Outline-Effekt */
    margin-top: 0;
    margin-bottom: 10px;
}

/* Info zur Zeitverschiebung */
.timeshift-info {
    font-size: 1.2rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 30px;
}

/* ******************************************************* */
/* NEUES STYLING FÜR ORDNER-LINKS (TAGES-BUTTONS) */
/* ******************************************************* */

/* Gitter-Layout für Ordner/Tage (Angepasst für 4-6 Spalten auf Desktop) */
.folder-grid {
    display: grid;
    /* Angepasst: minmax auf 150px (von stylealt.css) */
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Styling für jeden Tages-Link (Der a-Tag selbst) */
.folder-link {
    text-decoration: none;
    color: #333; /* Die Standard-Schriftfarbe für Links in diesem Bereich */
}

/* NEU: Styling für den Inhalt des Links (Der eigentliche Button-Container) */
.folder-link div {
    /* Übernommen aus stylealt.css */
    background-color: rgba(255, 255, 255, 0.5); /* Leichter Milchglaseffekt für Ordner */
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2em; /* Angepasste Größe */
    font-weight: bold;
    transition: transform 0.2s, background-color 0.2s; /* Hover-Effekt */
    display: flex; 
    align-items: center;
    justify-content: center;
    /* **WICHTIGSTE ÄNDERUNG: Feste Höhe entfernt, wird nun durch Padding bestimmt** */
    /* height: 100px; */ 
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); /* Leichter Schatten */
}

/* NEU: Hover-Effekt (Anhebung) */
.folder-link:hover div {
    transform: translateY(-5px); /* Anhebung */
    background-color: rgba(255, 255, 255, 0.7); /* Heller bei Hover */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Stärkerer Schatten */
}

/* NEU: Active-Effekt (Eindrücken) */
.folder-link:active div {
    transform: translateY(-2px); /* Button wird leicht eingedrückt */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); 
}

/* ******************************************************* */
/* NEU: STYLING FÜR DEN VIDEO-BUTTON */
/* ******************************************************* */

/* Lindgrüner Stil für den Video-Button (Milchglas) */
.video-folder-link div {
    /* Lindgrüne Farbe, halbtransparent (PaleGreen: 152, 251, 152) */
    background-color: rgba(152, 251, 152, 0.5); 
}

/* Hover-Effekt für den Video-Button */
.video-folder-link:hover div {
    /* Helleres Lindgrün bei Hover */
    background-color: rgba(152, 251, 152, 0.7); 
}

/* ******************************************************* */

/* Allgemeines Galerie-Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    padding: 20px 0;
}
/* ... (Restlicher Code bleibt unverändert) ... */


/* Thumbnail-Links */
.thumbnail-link {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    position: relative;
    line-height: 0;
}

.thumbnail-link img,
.thumbnail-link .video-placeholder {
    width: 100%;
    height: 120px; /* Einheitliche Höhe für Thumbnails */
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.thumbnail-link:hover img,
.thumbnail-link:hover .video-placeholder {
    transform: scale(1.05);
}

/* Video-Overlay-Symbol */
.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
    pointer-events: none; /* Klicks gehen durch das Overlay */
}


/* ******************************************************* */
/* LIGHTBOX STYLING */
/* ******************************************************* */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: none; /* Standardmäßig versteckt */
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.lightbox-content-wrapper {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content-wrapper img,
.lightbox-content-wrapper video {
    max-width: 100%;
    max-height: 100vh;
    display: block;
    /* Optional: Fügt eine weiche Animation beim Laden hinzu */
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Steuerelemente: Schließen, Vor, Zurück */

.close-btn, .nav-btn {
    position: absolute;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    text-decoration: none;
    background-color: #CC0000;
    border-radius: 8px;
    padding: 10px 20px;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
    font-weight: bold;
    border: none;
    user-select: none;
    z-index: 1010;
}

/* Schließen-Button */
.close-btn {
    top: 20px;
    right: 20px;
    box-shadow: 0 4px 0 #990000; /* 3D-Effekt */
    font-size: 1.2rem;
}

.close-btn:hover {
    background-color: #FF0000;
}

.close-btn:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #990000;
}

/* "Zurück zum Hauptmenü" Button in der Lightbox */
.main-menu-btn {
    top: 20px;
    right: 150px; /* Positioniert neben dem Schließen-Button */
}

/* Navigationsbuttons (Vor/Zurück) */
.nav-btn {
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent schwarz */
    color: white;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 2.5rem;
    box-shadow: none;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.nav-btn:active {
    transform: scale(0.9);
}


/* Impressum Button */
.imprint-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: #333; /* Dunkler Hintergrund */
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 3px 0 #111;
    z-index: 990; /* Unter Lightbox, aber über allem anderen */
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
}

.imprint-btn:hover {
    background-color: #555;
}

.imprint-btn:active {
    transform: translateY(3px);
    box-shadow: 0 0 0 #111;
}

/* "Zurück zur Tagesübersicht" Button */
.back-link {
    display: inline-block;
    background-color: #CC0000;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 5px 0 #990000;
    transition: all 0.1s;
}

/* *** NEUE REGEL ZUR BEHEBUNG DES SCHRIFTFARBEN-PROBLEMS *** */
/* Stellt sicher, dass die Schriftfarbe des Zurück-Links im Impressum weiß ist */
.imprint-content .back-link {
    color: white; /* Erhöht die Spezifität, um die weiße Farbe zu erzwingen */
}
/* ************************************************************ */

.back-link:hover {
    background-color: #FF0000;
}

.back-link:active {
    transform: translateY(5px);
    box-shadow: 0 0 0 #990000;
}

/* Impressum Seiteninhalte */
.imprint-content {
    background-color: white;
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.imprint-content h1, .imprint-content h2 {
    color: #333;
}

.imprint-content a {
    color: #CC0000;
    text-decoration: none;
}

.imprint-content a:hover {
    text-decoration: underline;
}

/* ******************************************************* */
/* Media Queries für mobile Geräte */
/* ******************************************************* */

@media (max-width: 768px) {
    
    .container, .login-container {
        padding: 20px;
        margin: 10px auto;
        width: 95%;
    }

    h1.main-heading-effect {
        font-size: 2.5rem;
    }
    
    /* NEU: Disclaimer auf Mobile etwas kleiner */
    .album-disclaimer {
        font-size: 1rem;
    }

    .timeshift-info {
        font-size: 1rem;
    }
    
    /* NEU: Erzwinge 3 Spalten für Ordner auf Mobile (übernommen aus stylealt.css) */
    .folder-grid {
        grid-template-columns: repeat(3, 1fr); 
    }
    
    /* NEU: Passt die Schriftgröße des <div> in .folder-link an */
    .folder-link div {
        font-size: 1.1rem;
        /* **WICHTIGSTE ÄNDERUNG: Feste Höhe entfernt** */
        /* height: 80px; */
    }

    /* Lightbox Anpassungen */
    .prev-btn, .next-btn {
        font-size: 2rem;
        padding: 5px 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* ******************************************************* */
    /* MAXIMIERT: Buttons für kleine mobile Geräte */
    /* ******************************************************* */

    /* Anpassung der mobilen Ansicht für den Schließen-Button (.close-btn) */
    .close-btn {
        font-size: 1.2rem; /* KLEINER */
        padding: 10px 20px; /* KLEINER */
        right: 10px; /* ETWAS NACH INNEN */
        top: 10px; /* ETWAS NACH INNEN */
        box-shadow: 0 4px 0 #CC0000; 
    }

    .close-btn:active {
        transform: translateY(4px); 
    }
    
    /* KORRIGIERTE POSITION: "Zurück zum Hauptmenü" für Mobile */
    .main-menu-btn {
        top: 60px; /* HÖHER positioniert, unter den Schließen-Button */
        right: 10px; /* GLEICHE AUSRICHTUNG WIE SCHLIESSEN */
        font-size: 1rem; /* NOCH KLEINER */
        padding: 8px 15px; /* KLEINERES PADDING */
        box-shadow: 0 4px 0 #990000;
    }
    
    .main-menu-btn:active {
         transform: translateY(4px);
         box-shadow: 0 0 0 #990000;
    }
    
    /* NEU: Impressum-Button für Mobile */
    .imprint-btn {
        font-size: 1.2rem; /* KLEINER */
        padding: 10px 20px; /* KLEINER */
        left: 10px; /* ETWAS NACH INNEN */
        top: 10px; /* ETWAS NACH INNEN */
        box-shadow: 0 4px 0 #111;
        background-color: #333;
    }

    /* Impressum-Button-Position in Lightbox für Mobile */
    .lightbox .imprint-btn {
        top: 60px; /* HÖHER positioniert */
        left: 10px; /* GLEICHE AUSRICHTUNG WIE IMPRESSUM-BUTTON */
        background-color: #CC0000;
        box-shadow: 0 4px 0 #990000;
        padding: 8px 15px; /* GLEICHES PADDING WIE HAUPTMENÜ-LINK */
        font-size: 1rem;
    }
    
    /* Anpassung für mobile Geräte (Zurück-Button - .back-link auf gallery.php) */
    .back-link {
        padding: 10px 20px; /* KLEINER */
        font-size: 1.2rem; /* KLEINER */
        box-shadow: 0 5px 0 #990000; /* Leichte Anpassung für die Größe */
    }
}