/* Base Styles */
:root {
    --bg-dark: #121212;
    --bg-light: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent-yellow: #ffb300;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Styles */
.section {
    padding: 40px 0;
    background-color: var(--bg-dark);
    animation: fadeIn 0.8s ease-out;
}

.header {
    background-color: var(--bg-light);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--accent-yellow);
    position: relative;
    overflow: hidden;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-yellow), transparent);
    animation: glow 2s infinite;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: bold;
    animation: slideIn 0.8s ease-out;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: slideIn 0.8s ease-out 0.2s backwards;
    opacity: 0.9;
}

/* Navbar Styles */
.navbar {
    background-color: var(--bg-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--accent-yellow);
    backdrop-filter: blur(10px);
    background-color: rgba(26, 26, 26, 0.95);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    background-color: rgba(18, 18, 18, 0.98);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-brand {
    color: var(--text-primary);
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: bold;
}

.navbar-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-yellow);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Footer Styles */
.footer {
    background-color: var(--bg-light);
    padding: 2rem 0;
    margin-top: auto;
    border-top: 1px solid var(--accent-yellow);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-yellow), transparent);
    animation: glow 2s infinite;
}

.footer-content {
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-yellow);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* Gallery Container Layout */
.gallery-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    min-height: 600px;
    background-color: var(--bg-light);
    border-radius: 15px;
    padding: 30px;
    border: 2px solid var(--accent-yellow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    animation: scaleIn 0.8s ease-out;
    transition: all 0.3s ease;
}

.gallery-container:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Folder Structure Styles */
.folder-structure {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid var(--accent-yellow);
    height: fit-content;
    min-height: 200px;
}

.folder {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    cursor: pointer;
    background-color: #333333;
    border: 1px solid var(--accent-yellow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.folder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 179, 0, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.folder:hover::before {
    transform: translateX(100%);
}

.folder:hover {
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.folder.active {
    animation: pulse 0.5s ease-out;
    border-color: var(--accent-yellow);
    box-shadow: 0 0 15px rgba(255, 179, 0, 0.3);
}

.folder-icon {
    font-size: 1.8rem;
    margin-right: 15px;
    color: var(--accent-yellow);
    animation: float 3s ease-in-out infinite;
}

.folder-name {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: bold;
}

/* Gallery View Styles */
.gallery-view {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid var(--accent-yellow);
    min-height: 400px;
    animation: fadeIn 0.8s ease-out 0.2s backwards;
    transition: all 0.3s ease;
}

.gallery-view:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--accent-yellow);
}

.breadcrumb {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: bold;
}

.view-options {
    display: flex;
    gap: 10px;
}

.view-btn {
    background-color: #333333;
    border: 1px solid var(--accent-yellow);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.view-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 179, 0, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.view-btn:hover::before {
    width: 200%;
    height: 200%;
}

.view-btn.active {
    animation: pulse 0.5s ease-out;
    box-shadow: 0 0 15px rgba(255, 179, 0, 0.3);
}

/* Gallery Content Styles */
.gallery-content {
    display: grid;
    gap: 20px;
    min-height: 300px;
}

.gallery-content.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.gallery-content.list-view {
    grid-template-columns: 1fr;
}

/* Initial State - Zeige einen Platzhalter an */
.gallery-content:empty::before {
    content: 'Wählen Sie einen Ordner aus, um Bilder anzuzeigen';
    display: block;
    text-align: center;
    padding: 40px;
    color: var(--text-primary);
    font-size: 1.4rem;
    background-color: #333333;
    border-radius: 10px;
    border: 2px dashed var(--accent-yellow);
    margin: 20px 0;
}

/* Gallery Item Styles */
.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    background-color: #333333;
    border: 1px solid var(--accent-yellow);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: scaleIn 0.5s ease-out backwards;
    animation-delay: calc(var(--item-index, 0) * 0.1s);
}

.gallery-item:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        transparent 100%);
    backdrop-filter: blur(5px);
    color: var(--text-primary);
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.gallery-item:hover .item-info {
    transform: translateY(0);
}

/* Empty State */
.gallery-empty {
    text-align: center;
    padding: 60px 40px;
    color: var(--text-primary);
    background-color: #333333;
    border-radius: 10px;
    border: 2px dashed var(--accent-yellow);
    margin: 20px 0;
    animation: fadeIn 0.8s ease-out;
}

.gallery-empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--accent-yellow);
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 179, 0, 0.3));
}

.gallery-empty h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.gallery-empty p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Loading State */
.gallery-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background-color: #333333;
    border-radius: 10px;
    border: 2px dashed var(--accent-yellow);
    margin: 20px 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 179, 0, 0.1);
    border-left-color: var(--accent-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite, glow 2s infinite;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: scaleIn 0.3s ease-out;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 179, 0, 0.3);
    transition: transform 0.3s ease;
}

.lightbox-content img:hover {
    transform: scale(1.02);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 179, 0, 0.2);
    border: none;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-close {
    top: -50px;
    right: 0;
}

.lightbox-prev {
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 179, 0, 0.4);
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--text-primary);
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(255, 179, 0, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 179, 0, 0.4); }
    100% { box-shadow: 0 0 5px rgba(255, 179, 0, 0.2); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-light);
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        border-bottom: 1px solid var(--accent-yellow);
    }

    .navbar-links.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.8rem;
    }

    .gallery-container {
        grid-template-columns: 1fr;
    }

    .folder-structure {
        margin-bottom: 20px;
    }

    .gallery-content.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .lightbox-prev,
    .lightbox-next {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }

    .gallery-item {
        animation-delay: calc(var(--item-index, 0) * 0.05s);
    }

    .folder:hover {
        transform: translateX(3px) scale(1.01);
    }

    .gallery-item:hover {
        transform: scale(1.03) translateY(-3px);
    }
}

/* Scroll Animations */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add smooth scrolling to the whole page */
html {
    scroll-behavior: smooth;
}

/* Add a subtle hover effect to all interactive elements */
button, 
a, 
.folder, 
.gallery-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Add a subtle focus effect for accessibility */
button:focus-visible,
a:focus-visible,
.folder:focus-visible,
.gallery-item:focus-visible {
    outline: 2px solid var(--accent-yellow);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 179, 0, 0.2);
} 