/* ============================================================
   References / Referenzen Styles – Freischwebende Logos (Aufkleber-Effekt)
   ============================================================ */

.references-section {
    background-color: #e2e8f0; /* Helles Grau für den Kontrast */
    box-shadow: inset 0 8px 16px -6px rgba(0, 0, 0, 0.12), inset 0 -8px 16px -6px rgba(0, 0, 0, 0.12);
    transition: background-color 0.3s ease;
}

.references-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0f172a; /* Dunkler Text auf hellem Grund */
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.references-subtitle {
    font-size: 1.1rem;
    color: #475569; /* Slate-600 */
    font-weight: 400;
}

.references-wall {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-top: 2.5rem;
    justify-items: center;
    align-items: center;
}

.ref-wall-item {
    background: transparent;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ref-wall-item:hover {
    transform: translateY(-8px) scale(1.06);
}

.ref-logo-img {
    max-height: 80px;
    max-width: 180px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.35s ease;
}

.ref-wall-item:hover .ref-logo-img {
    filter: grayscale(0%) opacity(1) drop-shadow(0 12px 16px rgba(0, 0, 0, 0.25));
}

@media (max-width: 768px) {
    .references-title {
        font-size: 1.8rem;
    }
    .references-wall {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 24px;
    }
    .ref-logo-img {
        max-height: 65px;
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    .references-title {
        font-size: 1.5rem;
    }
}

/* Schriftzug-Logo WAGENEFFEKT */
.ref-logo-text-link {
    text-decoration: none !important;
    display: inline-block;
    padding: 10px;
}

.ref-logo-text {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    transition: all 0.35s ease;
}

.ref-logo-text .part-wagen,
.ref-logo-text .part-effekt {
    color: #94a3b8; /* grauer Ausgangszustand analog zu Bildern */
    transition: color 0.35s ease;
}

.ref-wall-item:hover .ref-logo-text .part-wagen {
    color: #000000; /* WAGEN wird schwarz im Hover */
}

.ref-wall-item:hover .ref-logo-text .part-effekt {
    color: #dc2626; /* EFFEKT wird rot im Hover */
}

.ref-wall-item:hover .ref-logo-text {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.15));
}