/* ======================================
   STATISTIK
====================================== */
.statistik-area {
  display: grid;
  grid-template-columns: calc(100% - 654px) 640px;
  gap: 14px;
  align-items: start;
}
.statistik-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.statistik-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
}
.statistik-head {
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.00));
}
.statistik-head h2 {
  margin: 0 0 6px;
  font-size: 2rem;
  color: #e6eaee;
  font-weight: 700;
}
.statistik-head p {
  margin: 0;
  font-size: 1.05rem;
  color: #aeb7bf;
}

/* Legende */
.statistik-legende {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 0.85rem;
  color: #aeb7bf;
}
.leg-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Tabelle */
.statistik-table-wrap {
  overflow-x: auto;
  padding: 18px 22px;
}
.statistik-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}
.statistik-table th {
  text-align: center;
  padding: 8px 10px;
  color: #f0be29;
  font-weight: 600;
  border-bottom: 2px solid rgba(240,190,41,0.3);
  white-space: nowrap;
}
.statistik-table th.col-name {
  text-align: left;
}
.statistik-table td {
  text-align: center;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: #d0d8e0;
}
.statistik-table td.col-name {
  text-align: left;
  font-weight: 500;
  color: #e6eaee;
}
.statistik-table td.col-rang {
  font-size: 1.1rem;
}
.row-first td {
  background: rgba(240,190,41,0.06);
}
.row-first td.col-name {
  color: #f0be29;
  font-weight: 700;
}
.row-top3 td {
  background: rgba(255,255,255,0.02);
}
.statistik-table tbody tr:hover td {
  background: rgba(255,255,255,0.04);
}

/* Badges */
.badge {
  display: inline-block;
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
}
.badge-js {
  background: rgba(240,190,41,0.2);
  color: #f0be29;
  border: 1px solid rgba(240,190,41,0.4);
}
.badge-gold {
  background: rgba(255,215,0,0.15);
  color: #ffd700;
  border: 1px solid rgba(255,215,0,0.3);
}
.badge-silber {
  background: rgba(192,192,192,0.15);
  color: #c8d0d8;
  border: 1px solid rgba(192,192,192,0.3);
}
.badge-bronze {
  background: rgba(205,127,50,0.15);
  color: #cd7f32;
  border: 1px solid rgba(205,127,50,0.3);
}

/* Balkendiagramm */
.statistik-chart-head {
  padding: 18px 22px 10px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.statistik-chart-head h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #e6eaee;
  font-weight: 500;
}
.statistik-chart {
  padding: 4px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.chart-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 10px;
}
.chart-label {
  font-size: 1.0rem;
  color: #aeb7bf;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chart-bar-wrap {
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  height: 22px;
  overflow: hidden;
}
.chart-bar {
  height: 100%;
  background: linear-gradient(90deg, #f0be29, #e07a10);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  min-width: 28px;
  transition: width 0.4s ease;
}
.chart-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a1a2e;
}

/* Hinweis */
.statistik-hinweis {
  margin: 0 22px 18px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  font-size: 0.88rem;
  color: #8a9bb0;
}
.statistik-hinweis code {
  background: rgba(255,255,255,0.08);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: monospace;
  color: #c0cfe0;
}

/* Responsive */
@media (max-width: 1200px) {
  .statistik-area {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .statistik-table {
    font-size: 0.85rem;
  }
  .chart-row {
    grid-template-columns: 80px 1fr;
  }
}
.statistik-table td,
.statistik-table th {
  padding: 4px 10px;  /* statt 8px/9px */
}