/* ==========================================================
   Projekte
   ========================================================== */
.pj-status {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: 999px;
    font-size: 12px; font-weight: 700; letter-spacing: .02em;
    background: #fff; color: var(--text-muted);
    box-shadow: var(--shadow-sm);
}
.pj-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pj-status.is-active { color: #0f7a4a; }
.pj-status.is-paused { color: #8a5a0b; }
.pj-status.is-done   { color: var(--accent-ink); }
.progress--lg .progress__bar { height: 8px; }

/* ---------- Übersicht ---------- */
.pj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.pj-card {
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s var(--ease), box-shadow .2s;
}
.pj-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pj-card__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--accent-50), var(--accent-25)); }
.pj-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pj-card:hover .pj-card__img img { transform: scale(1.05); }
.pj-card__img .pj-status { position: absolute; top: 12px; left: 12px; }
.pj-card__icon { display: none; position: absolute; inset: 0; margin: auto; width: 1em; height: 1em; font-size: 42px; color: var(--accent); }
.pj-card__img.is-empty .pj-card__icon { display: block; }
.pj-card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
.pj-card__body > strong { font-size: 18px; line-height: 1.3; color: var(--navy); }
.pj-card__body .muted { font-size: 14px; }
.pj-card__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--border-soft); font-size: 13px; color: var(--text-muted); }
.pj-card__meta i { color: var(--accent); margin-right: 4px; }

/* ---------- Detail: Hero ---------- */
.pj-hero {
    position: relative; overflow: hidden;
    min-height: 360px; display: flex; align-items: flex-end;
    border-radius: var(--radius-lg);
    background: var(--navy);
    box-shadow: var(--shadow-md);
    color: #fff;
}
.pj-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pj-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(var(--deep-rgb), .9) 0%, rgba(var(--deep-rgb), .45) 55%, rgba(var(--deep-rgb), .15) 100%); }
.pj-hero--plain { min-height: 260px; background: linear-gradient(135deg, var(--navy), var(--accent-ink) 60%, var(--accent)); }
.pj-hero--plain::after { display: none; }
.pj-hero__content { position: relative; z-index: 1; padding: 32px 40px; max-width: 820px; }
.pj-hero__content .pj-status { margin: 14px 0 4px; }
.pj-hero h1 { margin: 8px 0 8px; font-size: 38px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.pj-hero p { margin: 0 0 14px; font-size: 16px; color: rgba(255, 255, 255, .88); }
.pj-hero__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.pj-hero__meta i { margin-right: 6px; opacity: .8; }

/* ---------- Detail: Layout ---------- */
.pj-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; margin-top: 32px; align-items: start; }
.pj-aside { position: sticky; top: calc(var(--topbar-h) + 20px); display: flex; flex-direction: column; gap: 16px; }

.pj-timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.pj-timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent-100), var(--border-soft)); }
.pj-entry { position: relative; }
.pj-entry + .pj-entry { margin-top: 18px; }
.pj-entry__dot {
    position: absolute; left: -28px; top: 22px;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--surface); border: 3px solid var(--accent);
    box-shadow: 0 0 0 4px var(--bg);
}
.pj-entry:first-child .pj-entry__dot { background: var(--accent); }
.pj-entry__card { padding: 20px 22px; }
.pj-entry__date { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.pj-entry__card h3 { margin: 4px 0 8px; font-size: 17px; line-height: 1.35; color: var(--navy); }
.pj-entry__card .prose { color: var(--text-muted); font-size: 15px; }
.pj-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 12px; }
.pj-photos a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--accent-50); cursor: zoom-in; }
.pj-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.pj-photos a:hover img { transform: scale(1.06); }

.pj-todos { padding: 20px; }
.pj-todos h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 17px; color: var(--navy); }
.pj-todos h3 i { color: var(--accent); }
.pj-todos .progress { margin-bottom: 8px; }
.pj-todos ul { list-style: none; margin: 8px 0 0; padding: 0; }
.pj-todos li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--border-soft); font-size: 14px; }
.pj-todos li i { margin-top: 3px; color: var(--text-soft); }
.pj-todos li.is-done span { color: var(--text-soft); text-decoration: line-through; }
.pj-todos li.is-done i { color: #12a05c; }

@media (max-width: 992px) {
    .pj-layout { grid-template-columns: 1fr; }
    .pj-aside { position: static; }
}
@media (max-width: 640px) {
    .pj-grid { grid-template-columns: 1fr; }
    .pj-hero { min-height: 300px; }
    .pj-hero__content { padding: 22px; }
    .pj-hero h1 { font-size: 26px; }
    .pj-timeline { padding-left: 22px; }
    .pj-entry__dot { left: -22px; width: 14px; height: 14px; }
    .pj-timeline::before { left: 5px; }
    .pj-photos { grid-template-columns: repeat(3, 1fr); }
}
