/* ===== BK Downloads — Styles ===== */

/* ===== Фильтры + Sortierung (одна строка) ===== */
.bk-dl__controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 12px 0 18px;
}

/* ===== Filter-Chips ===== */
.bk-dl__filterbar {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.bk-dl-chip {
    display: inline-block;
    padding: .55rem 1rem;
    border-radius: 999px;
    background: #f6f6f7;
    border: 1px solid #e6e7ea;
    color: #2a2e35;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all .2s ease;
}
.bk-dl-chip:hover {
    background: #fff4e8;
    border-color: #ffb84d;
    color: #000;
}
.bk-dl-chip.active {
    background: #ffe0b3;
    border-color: #ffb84d;
    color: #000;
}

/* ===== Sortierung ===== */
.bk-dl__sortbar {
    flex-shrink: 0;
}
.bk-dl-sort {
    padding: .55rem 2.2rem .55rem 1rem;
    border-radius: 999px;
    border: 1px solid #e6e7ea;
    background: #f6f6f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232a2e35' d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 1rem center;
    font-weight: 700;
    font-size: 16px;
    color: #2a2e35;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all .2s ease;
    font-family: inherit;
}
.bk-dl-sort:hover {
    background-color: #fff4e8;
    border-color: #ffb84d;
}
.bk-dl-sort:focus {
    outline: none;
    border-color: #ffb84d;
}

/* ===== Ergebnisse gefunden ===== */
.bk-dl__result-count {
    text-align: right;
    color: #6b7280;
    font-size: 15px;
    margin: 0 0 18px;
}

/* ===== Kartenliste ===== */
.bk-dl__list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ===== Карточка: горизонтальный Layout ===== */
.bk-dl-card {
    display: flex;
    gap: 28px;
    background: #f7f8f9;
    border: 1px solid #eceef0;
    border-radius: 18px;
    padding: 22px 26px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    transition: all .2s ease;
}
.bk-dl-card:hover {
    background: #fff;
    border-color: #ffb84d;
    box-shadow: 0 8px 22px rgba(255, 153, 0, .12);
    transform: translateY(-1px);
}

/* ===== Thumbnail (links) ===== */
.bk-dl-card__thumb {
    flex-shrink: 0;
    width: 240px;
    border-radius: 12px;
    overflow: hidden;
    align-self: center;
}
.bk-dl-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* ===== Body (rechts) ===== */
.bk-dl-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Titel + Button in einer Zeile */
.bk-dl-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.bk-dl-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #0f1114;
    margin: 0;
    line-height: 1.3;
}

/* ===== Download-Button ===== */
.bk-dl-btn {
    flex-shrink: 0;
    display: inline-block;
    padding: .5rem 1.4rem;
    border-radius: 999px;
    background: #f28900;
    color: #fff !important;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
}
.bk-dl-btn:hover {
    background: #e07e00;
    box-shadow: 0 4px 12px rgba(242, 137, 0, .3);
}
.bk-dl-btn--login {
    background: #f28900;
}
.bk-dl-btn--login:hover {
    background: #e07e00;
}

/* ===== Beschreibung ===== */
.bk-dl-card__desc {
    font-size: 16px;
    color: #444;
    line-height: 1.5;
    margin: .6rem 0 0;
}

/* ===== Download-Zähler ===== */
.bk-dl-card__meta {
    margin-top: .5rem;
}
.bk-dl-card__count {
    font-size: 15px;
    font-weight: 700;
    color: #f28900;
}

/* ===== Kategorie-Tags ===== */
.bk-dl-card__tags {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: .8rem;
}
.bk-dl-tag {
    display: inline-block;
    padding: .3rem .75rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e6e7ea;
    color: #444;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}
.bk-dl-tag:hover {
    background: #fff4e8;
    border-color: #ffb84d;
    color: #000;
}

/* ===== Пагинация ===== */
.bk-dl__pagination ul {
    list-style: none;
    display: flex;
    gap: .6rem;
    padding: 0;
    margin: 28px 0;
    justify-content: center;
}
.bk-dl__pagination li {
    background: none !important;
}
.bk-dl__pagination a,
.bk-dl__pagination span {
    display: inline-block;
    padding: .52rem .85rem;
    background: #f2f2f2;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all .2s ease;
    font-weight: 700;
}
.bk-dl__pagination a:hover {
    background: #fff4e8;
    border-color: #ffb84d;
    color: #000;
}
.bk-dl__pagination span.current {
    background: #ffe0b3;
    border-color: #ffb84d;
    color: #000;
}

/* ===== Leer ===== */
.bk-dl__empty {
    text-align: center;
    color: #6b7280;
    padding: 40px 0;
}

/* ===== Tablet ===== */
@media (max-width: 980px) {
    .bk-dl__list { gap: 20px; }
    .bk-dl-card { padding: 18px 20px; }
    .bk-dl-card__title { font-size: 18px !important; }
    .bk-dl-card__desc { font-size: 15px !important; }
}

/* ===== Mobile ===== */
@media (max-width: 700px) {
    .bk-dl-card__thumb {
        display: none;
    }
    .bk-dl-card {
        flex-direction: column;
        gap: 0;
    }

    .bk-dl-card__body {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .bk-dl-card__top {
        display: contents;
    }

    .bk-dl-card__title   { order: 1; }
    .bk-dl-card__tags    { order: 2; margin-top: .5rem; justify-content: center; }
    .bk-dl-card__desc    { order: 3; }
    .bk-dl-card__meta    { order: 4; }
    .bk-dl-btn           { order: 5; }

    .bk-dl-tag {
        font-size: 12px;
        padding: .2rem .6rem;
    }

    .bk-dl-btn {
        display: block;
        width: 100%;
        padding: .85rem 1.4rem;
        font-size: 16px;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: .05em;
        margin-top: 1rem;
        white-space: normal;
    }
}
