/* Fotos Seite Spezifische Styles */

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-light);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Gallery Filter */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-light);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Album Cards */
.album-card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.album-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
    aspect-ratio: 1 / 1;
    background: var(--bg-gray);
}

.album-preview-item {
    overflow: hidden;
    background: var(--bg-gray);
}

.album-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.album-card:hover .album-preview-item img {
    transform: scale(1.05);
}

.album-preview-empty {
    background: linear-gradient(135deg, var(--bg-gray) 0%, #e0e0e0 100%);
}

.album-info {
    padding: 20px;
    text-align: center;
    background: var(--bg-light);
}

.album-info h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.3;
}

.album-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Back Button */
.back-btn {
    display: none;
    margin: 20px 0 10px 0;
    align-items: center;
    gap: 8px;
}

/* Album Title */
.album-title {
    display: none;
    text-align: center;
    color: var(--text-dark);
    margin: 15px 0 25px 0;
    font-size: 1.8rem;
}

/* Gallery Items (Einzelbilder) */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    background: var(--bg-gray);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--bg-light);
    padding: 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.loading {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 40px;
    grid-column: 1 / -1;
}

.no-photos {
    text-align: center;
    color: var(--text-light);
    padding: 40px;
    background: var(--bg-gray);
    border-radius: 8px;
    grid-column: 1 / -1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 80px;
    box-sizing: border-box;
}

.lightbox-content img {
    max-height: 95vh;
    width: auto;
    max-width: calc(100vw - 160px);
    object-fit: contain;
}

.lightbox-caption {
    background: transparent;
    padding: 8px 0 0 0;
    text-align: center;
}

.lightbox-caption h3 {
    color: #ffffff;
    margin-bottom: 8px;
}

.lightbox-caption p {
    color: rgba(255, 255, 255, 0.8);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(255, 255, 255, 0.2);
    color: var(--bg-light);
    border: none;
    font-size: 3rem;
    cursor: pointer;
    padding: 10px 20px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 8px;
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .album-info h3 {
        font-size: 1rem;
    }

    .album-title {
        font-size: 1.4rem;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        padding: 5px 15px;
    }

    .lightbox-close {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .album-card {
        max-width: 350px;
        margin: 0 auto;
    }
}
