/* =========================================
   Grundlayout: Grid für Karten
   ========================================= */

.due-results {
  width: 100%;
}

/* WICHTIG: ul-Einzug vom Theme wegnehmen */
.due-results .due-list {
  list-style: none;
  margin: 0 !important;
  padding-left: 0 !important;
  display: grid;
  grid-template-columns: 1fr; /* Mobile: 1 Spalte */
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .due-results .due-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* Desktop: 2 Spalten */
  }
}

/* =========================================
   Karten
   ========================================= */

.due-list .game-card {
  border-radius: 16px;
  padding: 1.1rem 1.4rem;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
  display: block;
  margin: 0; /* keine extra Einrückung */
}

.due-list .game-tap {
  width: 100%;
}

/* =========================================
   Datum / Uhrzeit
   ========================================= */

.due-list .row.top {
  margin-bottom: 0.35rem;
}

.due-list .row.top .dt {
  font-size: 0.9rem;
  opacity: 0.65;
  display: block;
}

/* =========================================
   Matchup: Home | Score | Away (Grid)
   ========================================= */

.due-list .row.matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* Links | Mitte | Rechts */
  align-items: center;
  column-gap: 1.2rem;
  margin: 0.35rem 0;
}

/* Teamnamen */

.due-list .match-team {
  font-size: 1rem;
  line-height: 1.35;     /* mehr Zeilenabstand */
  hyphens: auto;
  word-break: break-word;
}

.due-list .match-team.home {
  text-align: left;
}

.due-list .match-team.away {
  text-align: right;
}

/* Team-Link */

.due-list .team-link {
  text-decoration: none;
  border-bottom: 0px solid currentColor;
}

.due-list .team-link:hover {
  opacity: 0.85;
}

/* Gewinner fett, Verlierer normal */

.due-list .match-team.emph,
.due-list .match-score .score.emph {
  font-weight: 700;
}

.due-list .match-team.deemph,
.due-list .match-score .score.deemph {
  font-weight: 400;
}

/* Score in der Mitte – NEBENEINANDER */

.due-list .match-score {
  text-align: center;
  min-width: 90px;
  display: flex;
  flex-direction: row;      /* nebeneinander, nicht Spalte */
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.due-list .match-score .score {
  font-size: 1.15rem;
  line-height: 1.1;
}

.due-list .match-score .colon {
  padding: 0 0.1rem;
}

/* Status unter Score (Gewonnen / Verloren) */

.due-list .match-score .status-below {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

.due-list .status-below.won {
  color: #0a7b38;
  font-weight: 600;
}

.due-list .status-below.lost {
  color: #b00020;
  font-weight: 600;
}

/* =========================================
   Meta unten: Liga / Altersklasse
   ========================================= */

.due-list .row.meta {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 0.35rem;
}

.due-list .row.meta .sep {
  margin: 0 0.25rem;
}

/* =========================================
   Filter oben
   ========================================= */

.due-filters {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.due-filters select {
  padding: 0.45rem 0.6rem;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

@media (min-width: 600px) {
  .due-filters {
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
  }
}

/* =========================================
   Pagination
   ========================================= */

.due-pagination {
  margin-top: 1.5rem;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.due-pagination a {
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9rem;
}

.due-pagination .num {
  padding: 0.4rem 0.8rem;
  opacity: 0.7;
}
