/* =============================================================================
   RED LINE SCORING – COMPETITIONS-UEBERSICHT STYLES
   -----------------------------------------------------------------------------
   Nur fuer [rls_competitions]. Vorher als inline <style> im Shortcode.
   Primaerfarbe nutzt jetzt einheitlich var(--mf-color) (vorher --mco-color).
   ============================================================================= */

.mco {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

/* -----------------------------------------------------------------------------
   SUCHE
   ----------------------------------------------------------------------------- */
.mco-search-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.mco-search-wrap input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(209, 213, 219, 0.8);
  border-radius: 6px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  outline: none;
}

.mco-search-wrap input:focus {
  border-color: var(--mf-color);
}

.mco-search-wrap button {
  padding: 10px 20px;
  background: var(--mf-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.mco-search-wrap button:hover {
  filter: brightness(0.9);
}

/* -----------------------------------------------------------------------------
   LISTE
   ----------------------------------------------------------------------------- */
.mco-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgb(92 94 99 / 20%);
  flex-wrap: wrap;
}

.mco-row:last-child {
  border-bottom: none;
}

.mco-info {
  flex: 2;
  min-width: 160px;
}

.mco-name {
  font-weight: 700;
  font-size: 15px;
}

.mco-location {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}

.mco-date {
  flex: 1;
  min-width: 100px;
  font-size: 13px;
  color: #9ca3af;
}

/* Leerzustaende (ersetzt inline styles an #mco-empty und dem Kein-Ergebnis-Text) */
.mco-empty {
  padding: 16px 0;
  color: #9ca3af;
  font-size: 13px;
}

/* -----------------------------------------------------------------------------
   LINKS / BUTTONS
   ----------------------------------------------------------------------------- */
.mco-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.mco-btn {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.mco-btn-gray {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.mco-btn-gray:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.mco-btn-orange {
  background: var(--mf-color);
  color: #fff;
  border: 1px solid transparent;
}

.mco-btn-orange:hover {
  filter: brightness(0.9);
}

/* -----------------------------------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .mco-date {
    display: none;
  }
  .mco-links {
    margin-left: 0;
    width: 100%;
  }
}

/* =============================================================================
   Bereichs-Überschriften (Laufende / Vergangene Competitions)
   ============================================================================= */
.mco-section {
  margin-bottom: 32px;
}
.mco-section:last-child {
  margin-bottom: 0;
}
.mco-section-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--mf-color, #ea580c);
  color: inherit;
}
