
/* ===== RaceResult Extension – Event Cards ===== */

.RRAnnouncements,
.RRMap,
.RRPublish,
.RRInfo,
.RRRegStart {
  vertical-align: top;
  margin-bottom: 1rem;
  font-size: 16px;
  padding: 10px 10px 0 10px;
  background-color: #fff;
  border-radius: 3px;
  border: 1px solid #e2e2e2;
}

/* --- Event Navigation --- */
.rr-event-navigation {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background:
        linear-gradient(to right, white 30%, transparent) left center,
        linear-gradient(to left, white 30%, transparent) right center,
        linear-gradient(to right, rgba(0,0,0,.15), transparent) left center,
        linear-gradient(to left, rgba(0,0,0,.15), transparent) right center;
    background-size: 40px 100%, 40px 100%, 20px 100%, 20px 100%;
    background-repeat: no-repeat;
    background-attachment: local, local, scroll, scroll;
}

.rr-event-navigation::-webkit-scrollbar {
    display: none;
}

.rr-event-navigation .nav-link {
    white-space: nowrap;
}

/* --- Map: neutrale Farbgebung --- */
.leaflet-tile-pane {
    filter: saturate(0.2) brightness(1.05);
}

div.raceresult .btn.disabled {
    opacity: .5;
    pointer-events: none;
}

div.raceresult .btn-results {
    background-color: #aaa;
}

div.raceresult .filter-option {
    overflow: hidden;
    max-height: 0;
    transition: all .5s cubic-bezier(0.7, 1, 0.7, 1);
}

div.raceresult .filter-option.show {
    display: block;
    max-height: 500px;
}

div.raceresult .viewoptions .btn-group {
    margin-right: 15px;
}

/* --- Event Card Container --- */
#tEventTable {
    display: block;
}

/* --- Loading / Not Found --- */
#tEventTable #notFound {
    text-align: center;
    padding: 15vh 10px;
    color: #777;
    font-size: 1.3em;
    background-repeat: no-repeat;
    background-position: center;
}

/* --- Single Event Card --- */
.rr-event-card {
    display: block;
    position: relative;
    margin: 6px 0;
    padding: 6px 6px 6px calc(min(25%, 160px));
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 2px 4px 6px 0 #eee;
    color: #2c2c2c;
    text-decoration: none;
    line-height: 100%;
    cursor: pointer;
}

.rr-event-card:hover {
    background-color: #f3f3f6;
    text-decoration: none;
    color: #2c2c2c;
}

/* Logo */
.rr-event-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(min(25%, 160px));
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
}

.rr-event-logo > img {
    max-width: 80px;
    max-height: 100%;
}

.rr-event-logo > img.rr-placeholder {
    max-width: 30px;
    opacity: 0.3;
}

/* Länderflagge */
.rr-event-country {
    position: absolute;
    top: 8px;
    right: 6px;
    padding: 0;
}

.rr-event-country > img {
    height: 14px;
}

/* Ort */
.rr-event-location {
    color: #777;
    text-align: right;
    padding-right: 28px;
    float: right;
    font-size: 0.75em;
    margin-top: 2px;
}

/* Datum */
.rr-event-date {
    font-size: 0.75em;
    text-align: left;
    color: #356dad;
}

/* Eventname */
.rr-event-name {
    width: 100%;
    margin: 5px 0 8px 0;
    line-height: 1.3em;
    font-weight: 500;
}

/* Sportart-Badge */
.rr-event-sport {
    display: inline-block;
    background-color: #f3f6fa;
    color: #555;
    border-radius: 9px;
    font-size: 0.7em;
    padding: 1px 6px 1px 4px;
    line-height: 130%;
}

.rr-event-sport > img {
    width: 16px;
    height: 16px;
    vertical-align: bottom;
    opacity: 0.8;
}

/* Action-Buttons */
.rr-event-actions {
    margin-top: 6px;
}

.rr-event-actions .btn-group {
    flex-wrap: wrap;
}

.rr-event-actions .btn-sm {
    font-size: 14px;
    padding: 0.2rem 0.45rem;
}

/* --- Desktop (≥ 1024px) --- */
@media (min-width: 1024px) {
    .rr-event-card {
        margin: 10px 0;
    }

    .rr-event-date {
        font-size: 0.9em;
    }

    .rr-event-location {
        font-size: 0.9em;
        padding-right: 32px;
    }

    .rr-event-country > img {
        height: 18px;
    }

    .rr-event-sport {
        font-size: 0.9em;
    }

    .rr-event-name {
        font-size: 1.2em;
        margin: 8px 0 11px 0;
    }

    .rr-event-logo > img {
        max-width: 100px;
    }
}

@media (min-width: 768px) {
    div.raceresult .viewoptions {
        text-align: right;
    }
}