/* EP DEL2 Tabelle Plugin – Frontend CSS */

.ept-wrap {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 13px;
}

/* ── Tabellen-Container ── */
.ept-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 4px;
  border: 1px solid #e2e5ea;
}

/* ── Tabelle ── */
.ept-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 280px;
}

/* ── Header ── */
.ept-table thead th {
  background: #f5f6f8;
  color: #6b7280;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 9px 10px;
  text-align: center;
  border-bottom: 1px solid #e2e5ea;
  white-space: nowrap;
}
.ept-table thead .ept-col-team {
  text-align: left;
}

/* ── Zeilen ── */
.ept-table tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid #edf0f4;
  color: #111827;
  text-align: center;
  vertical-align: middle;
}
.ept-table tbody tr:last-child td {
  border-bottom: none;
}
.ept-table tbody tr:hover td {
  background: rgba(11,44,82,.04);
}

/* Hervorgehobene Zeile (eigenes Team) */
.ept-row--hl td {
  background: rgba(11,44,82,.07);
  font-weight: 600;
}
.ept-row--hl:hover td {
  background: rgba(11,44,82,.10);
}

/* ── Spalten ── */
.ept-col-pos {
  width: 28px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
}
.ept-col-team {
  text-align: left !important;
  min-width: 120px;
}
.ept-col-num {
  width: 32px;
  font-variant-numeric: tabular-nums;
}
.ept-col-pkt {
  width: 36px;
  font-variant-numeric: tabular-nums;
}

/* ── Medaillen ── */
.ept-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.ept-medal--1 { background: #c9a227; color: #fff; }
.ept-medal--2 { background: #9aa5ad; color: #fff; }
.ept-medal--3 { background: #b87333; color: #fff; }

/* ── Punkte ── */
.ept-col-pkt {
  color: #0b2c52;
  font-weight: 700;
  font-size: 13.5px;
}

/* ── Team-Zelle ── */
.ept-team-cell {
  display: flex;
  align-items: center;
  gap: 7px;
}
.ept-team-logo {
  width: 20px; height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.ept-team-name {
  font-weight: 500;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.ept-team-name--hl {
  font-weight: 700;
  color: #0b2c52;
}

/* ── Zonen-Zeile ── */
.ept-zone-row td {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6b7280;
  padding: 6px 10px;
  background: #f8f9fa;
  border-top: 2px solid #e2e5ea;
}

/* ── Footer ── */
.ept-footer {
  font-size: 11px;
  color: #9ca3af;
  padding: 8px 10px;
  border-top: 1px solid #e2e5ea;
  line-height: 1.6;
  background: #fafbfc;
}
.ept-footer a {
  color: #0b2c52;
  text-decoration: none;
}
.ept-footer a:hover { text-decoration: underline; }

/* ── Fehler ── */
.ept-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  padding: 14px 16px;
  color: #7f1d1d;
  font-size: 13px;
  line-height: 1.6;
}
.ept-error a { color: #0b2c52; }

/* ── Widget-Wrapper ── */
.ept-widget-wrap .ept-wrap {
  margin: 0;
}
