.cx-fussball-liga {
  width: 100%;
  max-width: 100%;
  font-family: inherit;
}

.cx-fussball-loading {
  padding: 2rem;
  text-align: center;
  color: #666;
}

.cx-fussball-container {
  display: grid;
  gap: 2rem;
}

/* Spieltag-Navigation */
.cx-fussball-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background-color: #f5f5f5;
  border-radius: 4px;
  gap: 1rem;
  flex-wrap: wrap;
}

.cx-fussball-nav__button {
  padding: 0.5rem 1rem;
  background-color: #0073aa;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.cx-fussball-nav__button:hover:not(:disabled) {
  background-color: #005a87;
}

.cx-fussball-nav__button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cx-fussball-nav__info {
  flex: 1;
  text-align: center;
  font-weight: 500;
  min-width: 200px;
}

/* Matches */
.cx-fussball-matches {
  display: grid;
  gap: 1rem;
}

.cx-fussball-match {
  display: flex;
  align-items: center;
  padding: 1rem;
  background-color: #fafafa;
  border: 1px solid #ddd;
  border-radius: 4px;
  gap: 1rem;
}

.cx-fussball-match__home,
.cx-fussball-match__away {
  flex: 1;
  text-align: right;
}

.cx-fussball-match__away {
  text-align: left;
}

.cx-fussball-match__team-name {
  font-weight: 500;
  margin-bottom: 0.25rem;
  word-wrap: break-word;
}

.cx-fussball-match__score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 80px;
  text-align: center;
}

.cx-fussball-match__score-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.cx-fussball-match__score-separator {
  font-weight: bold;
  color: #666;
}

.cx-fussball-match__time {
  font-size: 0.9rem;
  color: #999;
  min-width: 60px;
}

.cx-fussball-match.finished {
  background-color: #f0f0f0;
}

.cx-fussball-match.finished .cx-fussball-match__score-number {
  color: #0073aa;
}

/* Tabelle */
.cx-fussball-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border: 1px solid #ddd;
}

.cx-fussball-table thead {
  background-color: #f5f5f5;
}

.cx-fussball-table th,
.cx-fussball-table td {
  padding: 0.75rem;
  text-align: center;
  border: 1px solid #ddd;
}

.cx-fussball-table th {
  font-weight: 600;
  background-color: #0073aa;
  color: white;
}

.cx-fussball-table td:first-child,
.cx-fussball-table th:first-child {
  text-align: left;
  padding-left: 1rem;
}

.cx-fussball-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.cx-fussball-table tbody tr:hover {
  background-color: #f0f7ff;
}

.cx-fussball-table__position {
  font-weight: 600;
  width: 50px;
}

.cx-fussball-table__team {
  text-align: left;
  flex: 1;
}

.cx-fussball-table__stat {
  width: 60px;
}

.cx-fussball-table__points {
  font-weight: 600;
  background-color: #e8f4f8;
  width: 70px;
}

/* Responsive */
@media (max-width: 768px) {
  .cx-fussball-match {
    flex-direction: column;
    text-align: center;
  }

  .cx-fussball-match__home,
  .cx-fussball-match__away {
    text-align: center;
  }

  .cx-fussball-match__score {
    width: 100%;
  }

  .cx-fussball-table {
    font-size: 0.9rem;
  }

  .cx-fussball-table th,
  .cx-fussball-table td {
    padding: 0.5rem 0.25rem;
  }

  .cx-fussball-table__position {
    width: 35px;
  }

  .cx-fussball-table__stat {
    width: 45px;
  }

  .cx-fussball-table__points {
    width: 55px;
  }

  .cx-fussball-nav {
    flex-direction: column;
  }

  .cx-fussball-nav__button {
    width: 100%;
  }

  .cx-fussball-nav__info {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
