* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #D4AF37;
    --gold-light: #F4E4C1;
    --lavender: #C8B4D6;
    --lavender-light: #E8DFF5;
    --lavender-dark: #9F8FAF;
    --white: #FFFFFF;
    --text-dark: #3D3D3D;
    --text-light: #6B6B6B;
    --shadow-light: rgba(200, 180, 214, 0.15);
    --shadow-medium: rgba(200, 180, 214, 0.25);
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #FDFBFF 0%, #F8F4FF 100%);
    color: var(--text-dark);
    line-height: 1.7;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--lavender) 0%, var(--lavender-dark) 100%);
    color: var(--white);
    padding: 80px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(212, 175, 55, 0.1) 100%);
    pointer-events: none;
}

header .container {
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.95;
}

/* Upload Section */
.upload-section {
    background: var(--white);
    border-radius: 20px;
    padding: 50px 40px;
    margin: 60px auto;
    max-width: 700px;
    box-shadow: 0 8px 30px var(--shadow-light);
    text-align: center;
    border: 1px solid var(--lavender-light);
}

.upload-container {
    margin-bottom: 20px;
}

.upload-btn {
    background: linear-gradient(135deg, var(--gold) 0%, #C9A540 100%);
    color: var(--white);
    border: none;
    padding: 18px 50px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
}

.upload-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.upload-btn:active {
    transform: translateY(-1px);
}

.upload-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.upload-info {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 300;
}

/* Privacy Notice */
.privacy-notice {
    margin-top: 15px;
    font-size: 0.75rem;
    color: #888;
    font-weight: 300;
    line-height: 1.4;
}

.privacy-notice a {
    color: var(--lavender-dark);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.privacy-notice a:hover {
    color: var(--gold);
}

/* Upload Progress */
.upload-progress {
    display: none;
    margin-top: 25px;
    padding: 20px;
    background: var(--lavender-light);
    border-radius: 12px;
    animation: fadeIn 0.3s ease;
}

.upload-progress.active {
    display: block;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--lavender-dark);
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--lavender));
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.upload-status {
    margin-top: 20px;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 400;
    font-size: 0.95rem;
    display: none;
}

.upload-status.success {
    background: var(--lavender-light);
    color: var(--lavender-dark);
    border: 1px solid var(--lavender);
}

.upload-status.error {
    background: #FFE8E8;
    color: #C53030;
    border: 1px solid #FFC2C2;
}

/* Privacy Modal */
.privacy-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(61, 61, 61, 0.95);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 20px;
}

.privacy-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.privacy-modal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    margin: auto;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.privacy-modal-content h2 {
    color: var(--lavender-dark);
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 20px;
    text-align: center;
}

.privacy-text {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.8;
}

.privacy-text p {
    margin-bottom: 12px;
}

.privacy-text ul {
    margin: 15px 0;
    padding-left: 20px;
}

.privacy-text ul li {
    margin-bottom: 10px;
}

.privacy-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--lavender-light);
    text-align: center;
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9rem;
}

.privacy-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-light);
    font-size: 30px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.privacy-close:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

/* Gallery Section */
.gallery-section {
    padding: 40px 0 80px;
}

.gallery-section h2 {
    text-align: center;
    margin: 0 0 50px;
    color: var(--lavender-dark);
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--lavender-light);
    cursor: pointer;
    border: 1px solid var(--lavender-light);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(200, 180, 214, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px var(--shadow-medium);
    z-index: 10;
}

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

.lazy-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.lazy-img.loaded {
    opacity: 1;
}

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

/* Video Overlay - Kleiner und weiß */
.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
    transition: transform 0.3s ease;
}

.gallery-item:hover .video-overlay {
    transform: translate(-50%, -50%) scale(1.15);
}

.play-icon {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

/* Modal/Lightbox - Verbessert für Mobile */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(61, 61, 61, 0.97);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-media-container {
    position: relative;
    width: 95vw;
    height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: zoomIn 0.3s ease forwards;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close:hover {
    color: var(--gold);
    background: rgba(0, 0, 0, 0.5);
}

/* Navigation Arrows */
.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 50px;
    cursor: pointer;
    user-select: none;
    z-index: 2001;
    padding: 15px;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav:hover {
    color: var(--gold);
    background: rgba(0, 0, 0, 0.5);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: 0.5px;
    border-top: 1px solid var(--lavender-light);
}

footer a {
    color: var(--lavender-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--gold);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    header {
        padding: 60px 20px;
    }
    
    header h1 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .lazy-img {
        height: 180px;
    }
    
    .upload-section {
        padding: 35px 25px;
        margin: 40px 20px;
        border-radius: 15px;
    }
    
    .upload-btn {
        padding: 15px 40px;
        font-size: 0.9rem;
    }
    
    .gallery-section h2 {
        font-size: 1.6rem;
        margin-bottom: 35px;
    }
    
    .privacy-modal {
        padding: 15px;
    }
    
    .privacy-modal-content {
        padding: 30px 20px;
        max-height: 85vh;
    }
    
    .privacy-modal-content h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .privacy-text {
        font-size: 0.9rem;
    }
    
    .privacy-text ul {
        padding-left: 18px;
    }
    
    .privacy-close {
        top: 12px;
        right: 15px;
        font-size: 26px;
    }
    
    /* Video Icon auf Mobile */
    .play-icon {
        width: 45px;
        height: 45px;
    }
    
    .upload-progress {
        padding: 15px;
    }
    
    .progress-info {
        font-size: 0.85rem;
    }
    
    /* Modal Mobile */
    .modal-media-container {
        width: 100vw;
        height: 100vh;
        padding: 10px;
    }
    
    .modal-content {
        max-width: 100%;
        max-height: 100%;
        border-radius: 4px;
    }
    
    .modal-nav {
        font-size: 30px;
        padding: 10px;
        width: 45px;
        height: 45px;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
    
    .close {
        top: 10px;
        right: 10px;
        font-size: 35px;
        width: 45px;
        height: 45px;
    }
}

@media screen and (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .lazy-img {
        height: 150px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .upload-section {
        padding: 25px 15px;
        margin: 30px 15px;
    }
    
    .privacy-notice {
        font-size: 0.7rem;
    }
    
    .privacy-modal {
        padding: 10px;
    }
    
    .privacy-modal-content {
        padding: 25px 18px;
        border-radius: 15px;
        max-height: 80vh;
    }
    
    .privacy-modal-content h2 {
        font-size: 1.3rem;
    }
    
    .privacy-text {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .privacy-text p {
        margin-bottom: 10px;
    }
    
    .privacy-text ul {
        margin: 12px 0;
        padding-left: 16px;
    }
    
    .privacy-text ul li {
        margin-bottom: 8px;
    }
    
    .privacy-footer {
        font-size: 0.85rem;
        margin-top: 15px;
        padding-top: 12px;
    }
    
    /* Video Icon kleiner auf kleinen Screens */
    .play-icon {
        width: 40px;
        height: 40px;
    }
    
    /* Modal Mobile Small */
    .modal-media-container {
        padding: 5px;
    }
    
    .modal-nav {
        font-size: 25px;
        width: 40px;
        height: 40px;
        padding: 8px;
    }
    
    .close {
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
}

/* Animation für neue Bilder */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-item.new {
    animation: slideIn 0.6s ease-out;
}
