/* ==========================================
   PROJEKTE PAGE STYLES
   ========================================== */

.projekte-main {
    position: relative;
    z-index: 1;
    padding-top: 80px;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.projekte-hero {
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
}

.projekte-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.projekte-hero-kicker {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent, #B08D57);
    margin-bottom: 20px;
}

.projekte-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.projekte-hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================
   FILTER SECTION
   ========================================== */

.projekte-filter-section {
    padding: 40px 20px;
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.1));
}

.projekte-container {
    max-width: 1400px;
    margin: 0 auto;
}

.projekte-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--border-color, rgba(0,0,0,0.15));
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--accent, #B08D57);
    color: var(--accent, #B08D57);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--accent, #B08D57);
    border-color: var(--accent, #B08D57);
    color: white;
}

.projekte-count {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.projekte-count span {
    font-weight: 600;
    color: var(--text-primary);
}

/* ==========================================
   PROJECTS GRID
   ========================================== */

.projekte-grid-section {
    padding: 60px 20px 120px;
}

.projekte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .projekte-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 30px 20px;
    }
}

/* ==========================================
   PROJECT CARDS
   ========================================== */

.projekt-card {
    position: relative;
    opacity: 1;
    transform: scale(1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.projekt-card.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    position: absolute;
}

.projekt-cover {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: 8px;
    background: var(--surface, #f5f5f5);
    margin-bottom: 16px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.projekt-cover:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.projekt-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.projekt-cover:hover img {
    transform: scale(1.05);
}

.projekt-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0) 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.projekt-cover:hover .projekt-overlay {
    opacity: 1;
}

.projekt-view-btn {
    padding: 12px 24px;
    background: white;
    color: #000;
    border: none;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.projekt-cover:hover .projekt-view-btn {
    transform: translateY(0);
}

.projekt-view-btn:hover {
    background: var(--accent, #B08D57);
    color: white;
}

/* ==========================================
   PROJECT INFO
   ========================================== */

.projekt-info {
    text-align: left;
}

.projekt-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent, #B08D57);
    margin-bottom: 8px;
}

.projekt-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.projekt-author {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ==========================================
   CTA SECTION
   ========================================== */

.projekte-cta-section {
    padding: 100px 20px;
    background: var(--surface, #f9f9f9);
    text-align: center;
}

.projekte-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.projekte-cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.projekte-cta-content p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.projekte-cta-btn {
    display: inline-block;
    padding: 16px 48px;
    background: var(--accent, #B08D57);
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.projekte-cta-btn:hover {
    background: var(--accent-dark, #9A7A4A);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(176, 141, 87, 0.3);
}

/* ==========================================
   PROJECT MODAL
   ========================================== */

.projekt-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.projekt-modal.is-open {
    display: flex;
}

.projekt-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.projekt-modal-content {
    position: relative;
    background: var(--bg-primary, white);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 24px 80px rgba(0,0,0,0.3);
}

.projekt-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.projekt-modal-close:hover {
    background: rgba(0,0,0,0.8);
    transform: rotate(90deg);
}

.projekt-modal-body {
    padding: 60px 40px 40px;
}

@media (max-width: 768px) {
    .projekt-modal-body {
        padding: 60px 24px 24px;
    }
}

.modal-cover {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 32px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.modal-cover img {
    width: 100%;
    display: block;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.modal-author {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 32px;
    padding: 20px;
    background: var(--surface, #f9f9f9);
    border-radius: 8px;
}

.modal-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-meta-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.modal-meta-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 12px 32px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.modal-btn-primary {
    background: var(--accent, #B08D57);
    color: white;
}

.modal-btn-primary:hover {
    background: var(--accent-dark, #9A7A4A);
    transform: translateY(-2px);
}

.modal-btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color, rgba(0,0,0,0.15));
    color: var(--text-primary);
}

.modal-btn-secondary:hover {
    border-color: var(--accent, #B08D57);
    color: var(--accent, #B08D57);
}

/* ==========================================
   ANIMATIONS
   ========================================== */

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

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

/* ==========================================
   DARK MODE OVERRIDES
   ========================================== */

[data-theme="dim"] .filter-btn {
    border-color: rgba(255,255,255,0.15);
}

[data-theme="dim"] .projekt-cover {
    background: #2a2a2a;
}

[data-theme="dim"] .projekte-cta-section {
    background: #1a1a1a;
}

[data-theme="dim"] .modal-meta {
    background: #2a2a2a;
}

[data-theme="dim"] .modal-btn-secondary {
    border-color: rgba(255,255,255,0.15);
}