/* =============================================================================
   Kona26 Athlete – Archiv-Seite
   Quelle: archive-kona26_athlete.php (vormals Inline-<style>)
   Plugin: kona26-athlete
============================================================================= */

/* -- Wrap & Header -------------------------------------------------------- */
.k26-archive .k26-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 18px 64px;
}

.k26-kicker {
    display: inline-block;
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #666;
}

.k26-archive-header {
    margin: 0 0 32px;
}

.k26-archive-title {
    margin: 0 0 10px;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.05;
}

.k26-archive-lead {
    margin: 0;
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}

/* -- Filterleiste --------------------------------------------------------- */
.k26-filterbar {
    margin: 0 0 28px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 18px;
}

.k26-filterbar__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.k26-search-wrap {
    flex: 1 1 200px;
    min-width: 0;
}

.k26-search {
    width: 100%;
    padding: 9px 14px;
    border: 1px solid #d6d6d6;
    border-radius: 999px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    background: #f8f8f8;
    transition: border-color .15s, background .15s;
}

.k26-search:focus {
    border-color: #111;
    background: #fff;
}

.k26-filter-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.k26-filter-btn {
    padding: 8px 16px;
    border: 1px solid #d6d6d6;
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    line-height: 1.3;
}

.k26-filter-btn:hover {
    border-color: #111;
}

.k26-filter-btn.is-active {
    background: #111;
    border-color: #111;
    color: #fff;
}

.k26-select-wrap {
    flex: 0 1 auto;
}

.k26-select {
    padding: 9px 36px 9px 14px;
    border: 1px solid #d6d6d6;
    border-radius: 999px;
    background: #f8f8f8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: border-color .15s;
    white-space: nowrap;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.k26-select:focus {
    border-color: #111;
}

.k26-filterbar__count {
    font-size: 13px;
    color: #888;
}

/* -- Grid ----------------------------------------------------------------- */
.k26-athlete-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* -- Card ----------------------------------------------------------------- */
.k26-athlete-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}

.k26-athlete-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.10);
    transform: translateY(-3px);
}

.k26-athlete-card.is-hidden {
    display: none;
}

.k26-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Bild */
.k26-card-image {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f0f0f0;
}

.k26-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .4s ease;
}

.k26-athlete-card:hover .k26-card-image img {
    transform: scale(1.04);
}

.k26-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0, #dcdcdc);
}

.k26-card-placeholder span {
    font-size: 64px;
    font-weight: 700;
    color: #bbb;
    line-height: 1;
    text-transform: uppercase;
}

/* Badges */
.k26-card-badge {
    position: absolute;
    top: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    pointer-events: none;
}

.k26-card-badge--ag {
    left: 12px;
    background: rgba(255,255,255,.92);
    color: #111;
}

/* Stars/Crowns row at bottom of card image */
.k26-card-stars-row {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 8px 6px;
    background: linear-gradient(transparent, rgba(0,0,0,.55));
    text-align: center;
    line-height: 1;
}
.k26-card-stars {
    display: inline-block;
    font-size: 22px;
    color: #FFD700;
    letter-spacing: .08em;
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
    line-height: 1.4;
}

/* Card Body */
.k26-card-body {
    padding: 16px 18px 18px;
}

.k26-card-name {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
}

.k26-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 6px;
    font-size: 13px;
    color: #777;
    margin-bottom: 8px;
    align-items: center;
}

.k26-card-meta__sep {
    color: #ccc;
}

.k26-card-quali {
    font-size: 13px;
    color: #444;
    line-height: 1.4;
    padding: 6px 10px;
    background: #f8f8f8;
    border-radius: 8px;
}

/* -- Kein-Treffer --------------------------------------------------------- */
.k26-no-results,
.k26-archive-empty {
    padding: 48px 0;
    text-align: center;
    font-size: 18px;
    color: #666;
}

/* -- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
    .k26-athlete-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .k26-athlete-grid {
        grid-template-columns: 1fr;
    }

    .k26-filterbar__row {
        flex-direction: column;
        align-items: stretch;
    }

    .k26-filter-group {
        width: 100%;
        justify-content: stretch;
    }

    .k26-filter-btn {
        flex: 1;
        text-align: center;
    }

    .k26-select-wrap,
    .k26-select {
        width: 100%;
        max-width: 100%;
    }
}
