body {
    color: #102a33
}

.race-tabs, .race-hero, .race-filters, .race-count, .race-grid, .race-pages, .race-breadcrumb, .race-detail, .race-related, .race-empty {
    max-width: 1180px;
    margin: 1rem auto
}
/*.race-tabs {
    display: flex;
    gap: .6rem;
    overflow: auto
}

    .race-tabs a, .race-pages a {
        padding: .7rem 1rem;
        border: 1px solid #d9e4e7;
        border-radius: 999px;
        white-space: nowrap
    }*/


.race-tabs {
    max-width: 1180px;
    margin: 1.5rem auto;
    display: flex;
    justify-content: center; /* Zentrieren */
    gap: .5rem; /* etwas kleinerer Abstand */
    flex-wrap: wrap;
}

    .race-tabs a {
        text-decoration: none;
        color: #083b4a;
        background: white;
        border: 1px solid #d9e4e7;
        padding: .55rem 1rem; /* kleiner */
        border-radius: 12px;
        font-weight: 600;
        font-size: .9rem; /* etwas kleinere Schrift */
        line-height: 1.2;
        transition: all .2s ease;
    }

        .race-tabs a:hover {
            background: #f0fdfa;
            border-color: #0d9488;
            color: #0d9488;
            transform: translateY(-2px);
        }

        .race-tabs a.active {
            background: linear-gradient(135deg, #083b4a, #007d75);
            color: white;
            border-color: transparent;
        }

.race-hero {
    padding: clamp(2rem,5vw,5rem);
    border-radius: 1.5rem;
    background: linear-gradient(135deg,#083b4a,#00877e);
    color: #fff
}

    .race-hero h1, .race-detail h1 {
        font-size: clamp(2rem,5vw,4rem);
        line-height: 1.05
    }

.race-kicker, .race-tag {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
    font-size: .8rem
}

.race-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: .8rem;
    padding: 1rem;
    border: 1px solid #d9e4e7;
    border-radius: 1rem;
}


.race-filter-actions {
    display: flex;
    gap: .5rem;
    align-items: end;
}

.race-action-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: .8rem 1rem;
    border: 1px solid #d9e4e7;
    border-radius: .6rem;
    background: #fff;
    color: #102a33;
    text-decoration: none;
    font: inherit;
    text-align: center;
    min-width: 120px;
}


/*.race-filter-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .8rem 1rem;
    border: 1px solid #d9e4e7;
    border-radius: .6rem;
    text-decoration: none;
    background: #fff;
    color: #102a33;
    white-space: nowrap;
    
}

    .race-filter-reset:hover {
        background: #f3f7f8;
    }
*/


    .race-filters label {
        font-size: .8rem;
        font-weight: 700
    }

.race-filters input, .race-filters select, .race-filters button, .race-filter-actions a {
    display: block;
    width: 100%;
    padding: .8rem;
    border: 1px solid #d9e4e7;
    border-radius: .6rem;
    background: #fff;
}

.race-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 1rem
}

.race-card, .race-detail {
    padding: 1.4rem;
    border: 1px solid #d9e4e7;
    border-radius: 1rem;
    background: #fff
}

    .race-card h2, .race-card h3 {
        margin: .3rem 0
    }

.race-facts {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1rem;
    margin: 1rem 0
}

    .race-facts div {
        padding: 1rem;
        background: #f3f7f8;
        border-radius: .7rem
    }

    .race-facts strong {
        display: block;
        font-size: 1.3rem
    }

.race-cta, .race-secondary {
    display: inline-block;
    margin: 1rem .5rem 0 0;
    padding: .8rem 1rem;
    border-radius: .6rem
}

.race-cta {
    background: #f2673a;
    color: #fff
}

.race-secondary {
    border: 1px solid #007d75
}

.race-alert {
    padding: 1rem;
    background: #fff2ed;
    border-left: 4px solid #f2673a
}

.race-pages a {
    color: #495057;
    text-decoration: none;
    padding: .4rem .7rem;
    border-radius: .4rem;
}

    .race-pages [aria-current=page] {
        background: #007d75;
        color: #fff
    }

@media(max-width:760px) {
    .race-filters, .race-facts {
        grid-template-columns: 1fr
    }

    .race-hero {
        border-radius: 1rem
    }
}


/* ------------------------------------------------ */
/* Modern Race Cards                                */
/* ------------------------------------------------ */

.race-card {
    background: #fff;
    border: 1px solid #d9e4e7;
    border-radius: 22px;
    padding: 1.5rem;
    transition: all .25s ease;
    display: flex;
    flex-direction: column;
}

    .race-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 40px rgba(0,0,0,.08);
        border-color: #b8d5d9;
    }

.race-card-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.2rem;
}

.race-date-box {
    width: 72px;
    min-width: 72px;
    height: 72px;
    border-radius: 16px;
    background: linear-gradient( 135deg, #083b4a, #007d75 );
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.race-day {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.race-month {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.race-header-content {
    flex: 1;
}

.race-date-text {
    color: #64748b;
    font-size: .9rem;
    margin-bottom: .3rem;
}

.race-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.race-badge {
    background: #e6fffa;
    color: #0f766e;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
}

.race-badge-secondary {
    background: #e8f0ff;
    color: #1d4ed8;
}

.race-title {
    margin-bottom: .8rem;
    line-height: 1.15;
}

    .race-title a {
        color: #083b4a;
        text-decoration: none;
        font-size: 1.75rem;
        font-weight: 800;
    }

        .race-title a:hover {
            color: #007d75;
        }

.race-location {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.race-link {
    margin-top: auto;
    color: #007d75;
    font-weight: 700;
    text-decoration: none;
}

    .race-link:hover {
        color: #083b4a;
    }