/* ========================================
   OTHER.CSS - PHOTOGRAPHY & LEGAL PAGES
   ======================================== */

/* Import base styles */
@import url('./base.css');

/* ========================================
   PHOTOGRAPHY GALLERY PAGE
   ======================================== */
.gallery-page {
    min-height: 100vh;
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.gallery-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.gallery-intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.gallery-grid {
    columns: 3;
    column-gap: 1.5rem;
    margin-bottom: 4rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--card-radius);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-secondary);
    margin-bottom: 1.5rem;
    break-inside: avoid;
    display: inline-block;
    width: 100%;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom {
    color: var(--accent-color);
    font-size: 2rem;
    font-weight: bold;
}

.gallery-back {
    text-align: center;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   LIGHTBOX STYLES
   ======================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 60px;
    box-sizing: border-box;
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: -45px;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-close:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.2);
}

#lightbox-image {
    display: block;
    border-radius: var(--card-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% + 160px);
    left: -80px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10000;
}

.lightbox-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox-btn:hover {
    background: var(--accent-color);
    color: var(--bg-primary);
    transform: scale(1.1);
}

#lightbox-prev {
    margin-left: 0;
}

#lightbox-next {
    margin-right: 0;
}

/* ========================================
   IMPRESSUM & DATENSCHUTZ PAGES
   ======================================== */
.impressum-page,
.datenschutz-page {
    min-height: 100vh;
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.impressum-header,
.datenschutz-header {
    text-align: center;
    margin-bottom: 4rem;
}

.impressum-header h1,
.datenschutz-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.impressum-subtitle,
.datenschutz-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.impressum-content,
.datenschutz-content {
    max-width: 800px;
    margin: 0 auto;
}

.impressum-section,
.datenschutz-section {
    background: var(--bg-secondary);
    border-radius: var(--card-radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.impressum-section:hover,
.datenschutz-section:hover {
    border-color: rgba(224, 0, 168, 0.3);
}

.impressum-section h2,
.datenschutz-section h2 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.impressum-section h3,
.datenschutz-section h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.impressum-section h3:first-of-type,
.datenschutz-section h3:first-of-type {
    margin-top: 0;
}

.impressum-details p,
.datenschutz-details p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.impressum-details p:last-child,
.datenschutz-details p:last-child {
    margin-bottom: 0;
}

.impressum-details strong,
.datenschutz-details strong {
    color: var(--text-primary);
    font-weight: 600;
}

.impressum-details a,
.datenschutz-details a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.impressum-details a:hover,
.datenschutz-details a:hover {
    color: var(--text-primary);
    border-bottom-color: var(--accent-color);
}

.impressum-details ul,
.datenschutz-details ul {
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.impressum-details li,
.datenschutz-details li {
    margin-bottom: 0.5rem;
}

.impressum-back,
.datenschutz-back {
    text-align: center;
    margin-top: 3rem;
}

/* ========================================
   RESPONSIVE DESIGN FOR GALLERIES
   ======================================== */
@media (max-width: 768px) {
    .gallery-grid {
        columns: 2;
        column-gap: 1rem;
    }
    
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    .lightbox {
        padding: 20px;
    }
    
    .lightbox-nav {
        display: none;
    }
    
    .lightbox-close {
        top: -35px;
        right: -35px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        columns: 1;
    }
    
    .gallery-page {
        padding-top: 6rem;
    }
    
    .impressum-page,
    .datenschutz-page {
        padding-top: 6rem;
    }
    
    .impressum-section,
    .datenschutz-section {
        padding: 2rem;
    }
    
    .lightbox {
        padding: 15px;
    }
    
    #lightbox-image {
        max-width: 95vw;
        max-height: 85vh;
    }
}

/* ========================================
   GALLERY RESPONSIVE GRID
   ======================================== */
@media (max-width: 1200px) {
    .gallery-grid {
        columns: 2;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        columns: 1;
    }
}

/* ========================================
   ACCESSIBILITY FOR GALLERIES
   ======================================== */
.gallery-item:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.lightbox:focus-within .lightbox-close:focus,
.lightbox:focus-within .lightbox-btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Screen reader only content */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ========================================
   PRINT STYLES FOR LEGAL PAGES
   ======================================== */
@media print {
    .impressum-page,
    .datenschutz-page {
        padding-top: 2rem;
    }
    
    .navbar {
        display: none;
    }
    
    .impressum-back,
    .datenschutz-back {
        display: none;
    }
    
    .impressum-section,
    .datenschutz-section {
        break-inside: avoid;
        border: 1px solid #ccc;
        background: white;
        color: black;
    }
    
    .impressum-section h2,
    .datenschutz-section h2 {
        color: black;
    }
    
    .impressum-details p,
    .datenschutz-details p,
    .impressum-details li,
    .datenschutz-details li {
        color: black;
    }
}

/* ========================================
   ANIMATIONS FOR GALLERIES
   ======================================== */
@keyframes galleryFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item {
    animation: galleryFadeIn 0.6s ease forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

/* Disable animations for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .gallery-item {
        animation: none;
    }
    
    .gallery-item:hover {
        transform: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
}