/* =========================================================
   THINK3DDD – PROJEKTE
   Nur für projekte.html
   ========================================================= */

#projects {
    background: #f8fafc;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.project-card {
    padding: 0;
}

.project-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    transition: transform .4s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card h3,
.project-card p {
    padding-left: 32px;
    padding-right: 32px;
}

.project-card h3 {
    margin-top: 25px;
}

.project-card p {
    padding-bottom: 32px;
}

.project-detail {
    background: #fff;
}

.project-detail:nth-of-type(even) {
    background: #f8fafc;
}

.project-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 35px;
    position: relative;
}

.project-process-grid::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: #dbeafe;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
}

.process-number {
    width: 56px;
    height: 56px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0,153,204,.25);
}

.step h3 {
    margin-bottom: 12px;
    color: #111827;
}

.step p {
    color: #64748b;
    font-size: .95rem;
}

#contact {
    background: #f8fafc;
}

@media (max-width: 900px) {
    .project-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .project-grid,
    .project-process-grid {
        grid-template-columns: 1fr;
    }

    .project-process-grid::before {
        display: none;
    }

    .step {
        text-align: left;
    }

    .process-number {
        margin: 0 0 18px;
    }

    .project-card img {
        height: 240px;
    }
}


/* Zielanker aus der Startseite bleiben unter dem Sticky-Header sichtbar. */
.project-card[id] {
    scroll-margin-top: 120px;
}
