/* ============================================================
   References / Referenzen Styles – Kunden-Logos
   ============================================================ */

.referenzen-subtitle {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.referenzen-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-text, #f8fafc);
    letter-spacing: 0.2px;
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .referenzen-title {
        font-size: 1rem;
    }
}

.ref-logo {
    padding: 36px;
    filter: grayscale(100%);
    transition: filter 0.35s ease, transform 0.25s ease;
    max-height: 160px;
    max-width: 260px;
    object-fit: contain;
}

.ref-logo:hover {
    filter: grayscale(0%);
    transform: translateY(-8px) scale(1.02);
}

@media (max-width: 992px) {
    .ref-logo {
        max-height: 130px;
        max-width: 210px;
        padding: 28px;
    }
}

@media (max-width: 576px) {
    .ref-logo {
        padding: 20px;
        max-height: 110px;
        max-width: 180px;
    }
}

.ref-logo-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ref-logo-container::-webkit-scrollbar {
    display: none;
}

.ref-logo-item {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 230px;
}

.ref-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ref-scroll-btn {
    display: none;
    flex-shrink: 0;
    background: transparent;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted, #64748b);
    font-size: 32px;
    opacity: 0.6;
}

.ref-scroll-btn:hover {
    color: var(--color-text, #f8fafc);
    opacity: 1;
}

.ref-scroll-btn:active {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .ref-scroll-btn {
        display: flex;
    }
}