/* ===================== PROJEKT DETAIL ===================== */

/* ── GESAMTES LAYOUT ── */
.projekt-page {
    display: grid;
    grid-template-columns: 1fr 340px;
    align-items: stretch;
    min-height: calc(100vh - 64px);
    overflow: hidden;
}

/* ── LINKE SPALTE ── */
.projekt-left {
    padding: 3.5rem var(--pad);
}

/* Hero-Bereich links */
.hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.9rem;
}
.hero-badge::before {
    content: '';
    width: 24px;
    height: 1.5px;
    background: var(--accent);
}

.projekt-left h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.hero-laufzeit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(18,140,70,0.08);
    border: 1px solid rgba(18,140,70,0.2);
    border-radius: 6px;
    padding: 0.35rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    width: fit-content;
    margin-bottom: 2.5rem;
}

.projekt-divider {
    height: 1px;
    background: var(--gray-mid);
    margin-bottom: 2.5rem;
}

/* Eyebrow */
.projekt-eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
}
.projekt-eyebrow::before {
    content: '';
    width: 20px;
    height: 1.5px;
    background: var(--accent);
}

.projekt-left h2 {
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

/* Beschreibung */
.projekt-beschreibung {
    font-size: 0.93rem;
    line-height: 1.85;
    color: #333;
}
.projekt-beschreibung p { margin-bottom: 1.2rem; }
.projekt-beschreibung p:last-child { margin-bottom: 0; }

/* Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.65rem 1.4rem;
    background: var(--accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 1.75rem;
    transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-dark); }

/* ── BILDERCOLLAGE ── */
.collage-wrap {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--gray-mid);
}

.collage {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 100px;
    gap: 6px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1.25rem;
    max-width: 1000px;
}
.collage-img { overflow: hidden; background: #ccc; }
.collage-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.5s;
}
.collage-img:hover img { transform: scale(1.04); }
/* Back Button */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    transition: gap 0.2s;
    margin-top: 2.5rem;
}
.btn-back:hover { gap: 10px; }

/* ── RECHTE SPALTE: grüne Sidebar ── */
.projekt-right {
    background: var(--accent);
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
    padding: 3rem 2rem 3rem 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    top: 0;
    overflow: hidden;
}

.sidebar-logo {
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
}
.sidebar-logo img {
    filter: none;
    opacity: 1;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 80px;
    filter: brightness(0) invert(1);
}

.sidebar-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent2);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.5rem;
}
.sidebar-label::before {
    content: '';
    width: 16px;
    height: 1px;
    background: var(--accent2);
}

.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.15);
}

.sidebar-meta-row {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.sidebar-meta-row:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-meta-row:first-child { padding-top: 0; }

.sidebar-meta-l {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent2);
}
.sidebar-meta-v {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}

.sidebar-pub-text {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Veröffentlichungen */
.pub-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.pub-item:last-child { border-bottom: none; padding-bottom: 0; }
.pub-item:first-child { padding-top: 0; }

.pub-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}
.pub-sub {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.6);
}
.pub-link {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent2);
    text-decoration: none;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: gap 0.2s;
}
.pub-link:hover { gap: 6px; }

/* ── RESPONSIVE ── */
@media (max-width: 1400px) {
    .projekt-left { padding: 3.5rem 40px; }
}
 
@media (max-width: 1024px) {
    .projekt-page {
        grid-template-columns: 1fr;
    }
    .projekt-left { padding: 3rem 40px; }
    .projekt-right {
        clip-path: none;
        padding: 2.5rem 40px;
        min-height: auto;
        position: static;
    }
    .collage {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 120px;
        max-width: 100%;
    }
}
 
@media (max-width: 768px) {
    .projekt-left { padding: 2.5rem 20px; }
    .projekt-right { padding: 2rem 20px; }
    .collage {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 120px;
    }
}
 
@media (max-width: 480px) {
    .projekt-left { padding: 2rem 16px; }
    .projekt-right { padding: 1.5rem 16px; }
    .collage {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 100px;
    }
}