/* Paid nationwide placement. Distinct from organic Wertstoffhof cards. */

#top-slot {
    --ts-accent: var(--primary-color, #2ECC71);
    --ts-text: var(--text-dark, #2C3E50);
    --ts-muted: var(--text-light, #7F8C8D);
    --ts-surface: var(--white, #ffffff);
    --ts-line: #d5ece0;
    --ts-wash: #f3fbf6;
    --ts-badge-bg: #eef6f1;
    --ts-badge-text: #4a6a58;
    --ts-radius: 14px;

    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 1.5rem auto 1.25rem;
    padding: 0 2rem;
    box-sizing: border-box;
    min-height: 8.5rem;
}

.wertstoffhoefe-grid #top-slot,
.search-container #top-slot {
    max-width: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.top-slot-board,
.top-slot-card {
    position: relative;
    background: var(--ts-wash);
    border: 1px solid var(--ts-line);
    border-left: 4px solid var(--ts-accent);
    border-radius: var(--ts-radius);
    padding: 1.15rem 1.35rem 1.35rem;
    color: var(--ts-text);
    font-family: inherit;
}

.top-slot-board {
    display: grid;
    gap: 1rem;
}

.top-slot__intro {
    display: grid;
    gap: 0.45rem;
    justify-items: start;
}

.top-slot__headline {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.top-slot__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.top-slot-board .top-slot-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    background: var(--ts-surface);
    border-left-width: 1px;
    padding: 0.85rem 1rem;
}

.top-slot__rank {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--ts-wash);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.top-slot__empty {
    margin: 0;
    color: var(--ts-muted);
    font-size: 0.92rem;
}

.top-slot__badge {
    display: inline-block;
    margin-bottom: 0.55rem;
    padding: 0.12rem 0.45rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.4;
    color: var(--ts-badge-text);
    background: var(--ts-badge-bg);
    border: 1px solid var(--ts-line);
    border-radius: 4px;
    pointer-events: none;
    user-select: none;
}

.top-slot__copy {
    margin: 0;
    max-width: 42rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--ts-muted);
}

.top-slot__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    margin-top: 0.2rem;
    padding: 0.7rem 1.15rem;
    border-radius: 50px;
    background: var(--ts-accent);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    border: 0;
    transition: filter 0.2s ease, transform 0.15s ease;
}

.top-slot__cta:hover {
    filter: brightness(0.94);
    color: #fff;
    text-decoration: none;
}

.top-slot-card--occupied .top-slot__holder {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
}

.top-slot__photo {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: cover;
    border-radius: 8px;
    background: #e8f4ec;
}

.top-slot__photo--empty {
    display: grid;
    place-items: center;
    color: var(--ts-muted);
    font-size: 0.7rem;
    text-align: center;
    padding: 0.4rem;
}

.top-slot__title {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ts-text);
}

.top-slot__title a {
    color: inherit;
    text-decoration: none;
}

.top-slot__title a:hover {
    text-decoration: underline;
}

.top-slot__address,
.top-slot__desc,
.top-slot__phone {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
    font-style: normal;
    color: var(--ts-muted);
}

.top-slot-card--loading .top-slot__skel {
    display: grid;
    gap: 0.55rem;
}

.top-slot__skel-line {
    height: 0.85rem;
    border-radius: 4px;
    background: #dceee3;
}

.top-slot__skel-line--title {
    width: 46%;
    height: 1.15rem;
}

.top-slot__skel-line--copy { width: 72%; }
.top-slot__skel-line--meta { width: 28%; }

@media (prefers-reduced-motion: no-preference) {
    .top-slot-card--loading .top-slot__skel-line {
        background: linear-gradient(90deg, #dceee3 0%, #f3fbf6 50%, #dceee3 100%);
        background-size: 200% 100%;
        animation: top-slot-shimmer 1.2s ease-in-out infinite;
    }
}

@keyframes top-slot-shimmer {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}

@media (max-width: 768px) {
    #top-slot {
        padding: 0 1rem;
        margin-bottom: 1.25rem;
    }

    .top-slot__cta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .top-slot-card--occupied .top-slot__holder {
        grid-template-columns: 1fr;
    }
}
