body {
    margin: 0;
    overflow-x: hidden;
    font-family: "SF Pro Display", -apple-system, system-ui, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    overflow-x: hidden;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 4rem auto 0;
}

.portfolio-title {
    text-align: center;
    margin: 4rem 0 2rem 0;
}

.portfolio-title h2 {
    color: var(--text-color);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0;
}

.portfolio-item {
    position: relative;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.portfolio-item img, 
.portfolio-item video {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: #1a1a1a;
}

/* Spezifisch für das Elvis-Projekt Vorschaubild */
.portfolio-item[data-project="elvis"] img {
    display: none;
}

.portfolio-item-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
}

.portfolio-item h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.portfolio-item p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.view-project {
    background: var(--accent-color);
    color: var(--text-color);
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    font-weight: 700;
    text-transform: uppercase;
}

.view-project:hover {
    background: #7c6239;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.view-project:active {
    transform: translateY(0);
    box-shadow: none;
}

.project-section {
    max-width: 1200px;
    margin: 2rem auto;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.project-section.hidden {
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    opacity: 0;
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

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

.project-header h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.close-project {
    background: var(--accent-color);
    color: var(--text-color);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-project:hover {
    background: #7c6239;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.close-project:active {
    transform: translateY(0);
    box-shadow: none;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
}

/* Bilder im 9:16 Format */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

/* Videos im 9:16 Format */
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.gallery-item:nth-child(2) {
    animation-delay: 0.1s;
}

.gallery-item:nth-child(3) {
    animation-delay: 0.2s;
}

.gallery-item:nth-child(4) {
    animation-delay: 0.3s;
}

.gallery-item:nth-child(5) {
    animation-delay: 0.4s;
}

.gallery-item:nth-child(6) {
    animation-delay: 0.5s;
}

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

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

.gallery-item:hover video {
    transform: none;
}

/* Mobile Styles */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        padding: 1rem;
    }

    .portfolio-item {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .portfolio-title {
        grid-column: 1;
    }

    .portfolio-title h2 {
        font-size: 1.5rem;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .view-project {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        padding: 0.5rem;
    }

    .portfolio-item {
        width: 90%;
        margin: 0 auto;
    }

    .portfolio-title {
        margin-left: 0.5rem;
    }

    .portfolio-title h2 {
        font-size: 1.3rem;
    }

    .gallery {
        grid-template-columns: repeat(1, 1fr);
    }

    .gallery-item {
        max-width: 270px;
        margin: 0 auto;
    }

    .project-header {
        padding: 1rem 1.5rem;
    }

    .project-header h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 900px) {
    .portfolio-grid {
        flex-direction: column;
        padding: 1rem;
    }

    .portfolio-item {
        width: 100%;
        max-width: 400px;
    }
}

.hero-section {
    display: none;
}

.gallery-item {
    cursor: zoom-in;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 2rem;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    display: none;
}

#lightbox-img {
    border-radius: 8px;
}

#lightbox-video {
    width: 90%;
    max-height: 90vh;
    border-radius: 8px;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: var(--text-color);
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(44, 44, 44, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.portfolio-video-container {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    background: #1a1a1a;
    overflow: hidden;
}

.portfolio-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Klasse für ausgeblendeten Titel */
.portfolio-title.hidden {
    display: none;
}

/* Reduzierte Animationen */
@media (prefers-reduced-motion: no-preference) {
    .portfolio-item {
        transition: opacity 0.2s ease-out;
    }
}

.shortform-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1rem;
    padding: 1rem;
    max-width: 100%;
    margin: 0 auto;
}

.shortform-gallery .gallery-item {
    aspect-ratio: 9/16;
    width: 100%;
    min-width: 200px;
}

.shortform-gallery video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    background: var(--primary);
}

/* Horizontales Scrollen bei kleinen Bildschirmen */
@media (max-width: 1200px) {
    .shortform-gallery {
        grid-template-columns: repeat(4, 1fr) !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 1rem;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
    }

    .shortform-gallery .gallery-item {
        scroll-snap-align: start;
    }
}

/* Entferne die alten Media Queries */
/*
@media (max-width: 768px) {
    .shortform-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Footer Zentrierung */
footer {
    text-align: center;
    padding: 2rem 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.copyright {
    margin-bottom: 1rem;
    text-align: center;
} 