/* Projekte & Referenzen — card gallery (replaces the old single-page accordion) */
.ref-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 0 auto 2.4rem; max-width: 760px; }
.ref-filter {
    font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
    text-transform: uppercase; padding: 0.4rem 0.9rem; border-radius: 999px; border: 1.5px solid var(--light-gray);
    background: var(--paper); color: var(--warm-gray); cursor: pointer; transition: all 0.2s ease;
}
.ref-filter:hover { border-color: #4a2a63; color: #4a2a63; }
.ref-filter.is-active { background: #4a2a63; border-color: #4a2a63; color: #fff; }
.ref-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; margin: 0 auto 2.6rem; max-width: 820px; }
.ref-card {
    display: flex; flex-direction: column; gap: 0.6rem; text-align: left; background: #fff;
    border: 1.5px solid var(--light-gray); border-radius: 14px; padding: 1.3rem 1.3rem 1.5rem;
    transition: all 0.2s ease; text-decoration: none; color: inherit;
}
.ref-card:hover { border-color: #4a2a63; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(74,42,99,0.1); }
.ref-card-head { display: flex; align-items: center; gap: 0.7rem; }
.ref-card-head .project-logo { width: 42px; height: 42px; }
.ref-card-name { font-family: var(--serif); font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.ref-card-cat {
    display: inline-block; font-family: var(--mono); font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.05em; text-transform: uppercase; color: #4a2a63; background: rgba(74,42,99,0.08);
    border-radius: 5px; padding: 0.15rem 0.5rem; margin-top: 0.15rem;
}
.ref-card p { font-size: 0.88rem; color: var(--warm-gray); line-height: 1.5; margin: 0; }
.ref-card-cta { font-family: var(--mono); font-size: 0.78rem; font-weight: 700; color: #4a2a63; margin-top: auto; }
.ref-section-label { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--warm-gray); text-align: center; margin: 0 0 1rem; }
.case-prevnext { display: flex; justify-content: space-between; gap: 1rem; margin: 1.6rem auto 0; max-width: 820px; font-family: var(--mono); font-size: 0.8rem; }
.case-prevnext a { color: #4a2a63; text-decoration: none; font-weight: 600; }
.case-prevnext a:hover { text-decoration: underline; }
.case-hero-logo { width: 64px; height: 64px; margin: 0 auto 1rem; }
.case-promo {
    border: 1.5px dashed #4a2a63; border-radius: 12px; padding: 1rem 1.2rem; margin: 1.6rem auto 0; max-width: 820px;
    font-size: 0.92rem; background: rgba(74,42,99,0.04);
}
.case-promo a { color: #4a2a63; font-weight: 700; }
@media (max-width: 640px) {
    .ref-grid { grid-template-columns: 1fr; }
    .case-prevnext { flex-direction: column; gap: 0.4rem; text-align: center; }
}
