/* ===== PROJECT DETAIL (universell) ===== */

.project {
    background: #002b27;
    color: #ffffff;
}

/* Hero / Header */
.project-hero {
    padding: calc(clamp(3.5rem, 8vw, 7rem) + var(--nav-h, 96px)) 5vw clamp(2rem, 5vw, 3rem);
    background:
            radial-gradient(60% 80% at 18% 0%, rgba(208,255,146,0.12) 0%, rgba(208,255,146,0) 60%),
            #002b27;
}
.project-hero__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 1.2rem;
    align-items: center;
}
.project-hero__icon {
    width: clamp(58px, 7vw, 82px);
    height: clamp(58px, 7vw, 82px);
    margin-right: 15px;
    display: block;
}
.project-hero__title {
    font-family: InterTight, sans-serif;
    font-weight: 900;
    letter-spacing: -0.02em;
    font-size: clamp(2rem, 5.8vw, 3.6rem);
    margin: 0;
}

/* ===== PROJECT BODY (2-Spalten-Layout) ===== */
.project-body {
    max-width: 1400px;
    margin: 0 auto;
    /* oben & unten mehr Abstand zum Grid, nicht nur seitlich */
    padding: clamp(2rem, 5vw, 3rem) 5vw clamp(2rem, 6vw, 3rem);
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: clamp(1.2rem, 3vw, 2rem);
    align-items: start;
}

/* ===== LINKSSPALTE: Projektinfos (eigene Karte, kein legal.css) ===== */
.project-aside__title {
    font-family: InterTight, sans-serif;
    font-weight: 900;
    letter-spacing: -0.02em;
    font-size: clamp(1.4rem, 3.6vw, 2rem);
    color: #D0FF92;
    margin: 0 0 .8rem 0;
}
.project-info {
    background: #00231f;
    border: 2px solid #0f3c37;
    padding: clamp(1rem, 3vw, 1.4rem);
    display: grid;
    gap: .5rem;
}
.info-row {
    display: grid;
    grid-template-columns: minmax(120px, 140px) 1fr;
    gap: .6rem;
    padding: .5rem 0;
    border-top: 1px solid rgba(208,255,146,0.12);
}
.info-row:first-child { border-top: 0; }
.info-key {
    color: #bfeccd;
    font-weight: 800;
    margin: 0;
}
.info-val {
    margin: 0;
    color: #e9fdf0;
}
.info-val a {
    color: #D0FF92;
    text-decoration: none;
    border-bottom: 1px solid rgba(208,255,146,0.4);
}
.info-val a:hover { border-bottom-color: transparent; text-decoration: underline; }

/* Neue Textbereiche */
.project-texts {
    display: grid;
    grid-template-rows: auto auto;
    gap: clamp(1.2rem, 3vw, 2rem);
}

/* Nur für den ersten Textabschnitt (neben der Box) */
.project-text--main {
    align-self: start;
}

/* Styling der Textabschnitte */
.project-text h2 {
    color: #D0FF92;
    font-weight: 900;
    font-family: InterTight, sans-serif;
    margin-bottom: .4rem;
    letter-spacing: -0.02em;
}

.project-text p {
    color: #e9fdf0;
    line-height: 1.7;
    font-size: 1.05rem;
    margin: 0;
}

/* Abstand zum Grid-Rand */
.project-body > * {
    padding: 0.5rem;
}

/* Mobile Anpassung */
@media (max-width: 900px) {
    .project-body {
        grid-template-columns: 1fr;
    }

    .project-texts {
        grid-template-rows: auto;
    }
}

/* Galerie – 2 Spalten (für lange Screenshots) */
.project-gallery {
    max-width: 1600px;
    margin: 0 auto;
    padding: clamp(1rem, 4vw, 2rem) 5vw clamp(3rem, 7vw, 5rem);
}
.gallery-2 {
    display: flex;
    gap: clamp(.8rem, 2vw, 1.2rem);
    align-items: flex-start;
    flex-wrap: wrap;
}

.gallery-2 figure {
    flex: 1 1 48%;
    margin: 0;
    border: 2px solid #0f3c37;
    background: #001f1c;
    padding: .5rem;
    display: inline-block;
}

.gallery-2 img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile Stack */
@media (max-width: 900px) {
    .project-hero__inner { grid-template-columns: 1fr; }
    .gallery-2 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .gallery-2 figure { flex: 1 1 100%; }
}

/* Buttons – reuse global .btn */
.project .btn--ghost {
    background: transparent;
    color: #D0FF92;
    border-color: #D0FF92;
}
.project .btn--ghost:hover {
    background: #D0FF92;
    color: #002b27;
}

.longURL {
    word-break: break-all;
}
