/* =============================================
   Partner Carousel — Infinite Ticker
   ============================================= */

.partner-carousel-block {
    overflow: hidden;
    padding: 28px 0;
    /* Kanten ausblenden – funktioniert auf jedem Hintergrund */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 80px,
        #000 calc(100% - 80px),
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 80px,
        #000 calc(100% - 80px),
        transparent 100%
    );
}

.logo-carousel-wrap {
    overflow: hidden;
}

/* Ticker-Animation */
@keyframes logo-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.logo-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: logo-scroll var(--carousel-speed, 30s) linear infinite;
}

/* Pause on Hover */
.logo-carousel-wrap:hover .logo-track {
    animation-play-state: paused;
}

/* Eine Logo-Reihe (Original + Kopie liegen nebeneinander) */
.logo-list {
    display: flex;
    align-items: center;
    gap: var(--logo-gap, 60px);
    padding-right: var(--logo-gap, 60px); /* Abstand zwischen Ende und Anfang des nächsten Passes */
}

.logo-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    cursor: default;
}

a.logo-item {
    cursor: pointer;
}

.logo-item img {
    height: var(--logo-height, 120px);
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    /* Greyscale-Standardzustand */
    filter: grayscale(100%) opacity(0.55);
    transition: filter 0.35s ease;
}

/* Farbe bei Hover – alle Logos, mit und ohne Link */
.logo-item:hover img {
    filter: grayscale(0%) opacity(1);
}

/* =============================================
   Gutenberg-Editor Vorschau
   ============================================= */

.partner-carousel-editor {
    padding: 8px 0;
}

.pc-upload-zone {
    margin-bottom: 16px;
}

.pc-upload-zone .components-placeholder {
    min-height: 110px;
    border: 2px dashed #c9d3df;
    border-radius: 8px;
    background: #f8f9fa;
}

.pc-upload-zone .components-placeholder__label,
.pc-upload-zone .components-placeholder__instructions {
    color: #494043;
}

.pc-upload-zone--sidebar .components-placeholder {
    min-height: 92px;
}

.pc-upload-zone--canvas .components-placeholder {
    min-height: 120px;
}

.pc-preview-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
    min-height: 80px;
}

.pc-preview-item img {
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
    filter: grayscale(100%) opacity(0.55);
}

.pc-preview-placeholder {
    width: 100px;
    height: 50px;
    background: #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

.pc-empty-hint {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 0;
}

/* Logo-Item im Sidebar-Editor */
.pc-logo-item {
    margin-bottom: 4px;
}

.pc-logo-thumb {
    display: block;
    height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 8px;
    background: #f0f0f0;
    padding: 4px;
    border-radius: 4px;
}
