/* Projekte Page Styles */

.portfolio-page {
    padding: var(--spacing-xl) 0;
    background-color: var(--surface);
    min-height: calc(100vh - 64px);
    padding-top: calc(64px + var(--spacing-xl));
}

.portfolio-page h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.portfolio-intro {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.portfolio-item {
    background-color: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(3, 155, 158, 0.15);
    display: flex;
    flex-direction: column;
}

/* Portfolio Slider */
.portfolio-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background-color: var(--background);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.slider-img.active {
    opacity: 1;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(3, 155, 158, 0.8);
}

.slider-prev {
    left: 12px;
}

.slider-next {
    right: 12px;
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.slider-dot.active,
.slider-dot:hover {
    background: #fff;
}

/* Portfolio Info */
.portfolio-info {
    padding: var(--spacing-md);
}

.portfolio-info h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.portfolio-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portfolio-features li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    line-height: 1.5;
}

.portfolio-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #039B9E;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Portfolio Repo Link */
.portfolio-repo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: var(--spacing-md);
    padding: 0.75rem 1.25rem;
    background-color: transparent;
    color: var(--primary);
    text-decoration: none;
    border: 2px solid var(--primary);
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.portfolio-repo-link:hover {
    background-color: var(--primary);
    color: #fff;
}

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

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: #039B9E;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px;
    transition: color 0.2s ease;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #039B9E;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .portfolio-page h1 {
        font-size: 2.5rem;
    }

    .portfolio-gallery {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}
