/* Bandaktivität – nutzt die Basis aus style.css (dunkles Design). */

.mainnav a.tab { text-decoration: none; }

.activity-filters { grid-template-columns: repeat(3, 1fr); }

.activity-layout { padding: 14px 16px 26px; }

.act-section {
  padding: 16px;
  border-top: 1px solid var(--border);
}
.act-section:first-of-type { border-top: none; }

.act-h {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #aab8c7;
}
.bm-band { color: var(--yellow); font-weight: 800; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 9px;
  border: 1px solid var(--border-2);
  background: #1a2634;
  color: #dbe6f1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.back-btn:hover { background: #223243; }

.act-empty { color: var(--muted); padding: 10px 0; }

/* ---- 1. Band-Balken ---- */
.band-bars { display: flex; flex-direction: column; gap: 7px; }
.bar-row {
  display: grid;
  grid-template-columns: 66px 1fr 54px;
  align-items: center;
  gap: 10px;
}
.bar-label {
  color: var(--muted);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.bar-track {
  background: #0d151e;
  border: 1px solid var(--border);
  border-radius: 6px;
  height: 22px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  min-width: 2px;
  border-radius: 5px;
  background: linear-gradient(90deg, #1565c0, #4fc3f7);
  transition: width .35s ease;
}
.bar-count {
  text-align: right;
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.bar-row.top .bar-fill { background: linear-gradient(90deg, #d32f2f, #ff7043); }
.bar-row.top .bar-label { color: #fff; }
.bar-row.top .bar-count { color: #fff; }

/* ---- 2. Bandmap ---- */
.bandmap {
  background: #0d151e;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.bm-axis {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.bm-wrap { overflow-x: auto; overflow-y: hidden; }
.bm-bins {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 140px;
  min-width: 100%;
}
.bm-bin {
  flex: 1 1 0;
  min-width: 7px;
  height: 2px;
  border-radius: 3px 3px 0 0;
  background: #1a2634;
  cursor: crosshair;
  transition: height .35s ease, background .2s;
}
.bm-bin.hot { outline: 2px solid var(--yellow); outline-offset: 1px; }
.bm-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
}
.bm-foot #bm-hotspot { color: var(--yellow); font-weight: 700; }

/* ---- 3. Top-Aktivität ---- */
.top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.top-card {
  background: #0d151e;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.card-k {
  font-size: 11.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.card-v {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

/* ---- 4. Matrix ---- */
.matrix-wrap { overflow-x: auto; }
.matrix {
  border-collapse: collapse;
  width: 100%;
  min-width: 430px;
}
.matrix th, .matrix td {
  padding: 8px 12px;
  text-align: right;
  border-bottom: 1px solid #131d28;
  font-variant-numeric: tabular-nums;
}
.matrix th:first-child, .matrix td:first-child {
  text-align: left;
  color: var(--muted);
  font-weight: 700;
}
.matrix thead th {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.matrix tbody tr:hover { background: #131d28; }
.matrix td.zero { color: #4a5866; }
.matrix td.hot { background: rgba(229, 57, 53, .16); color: #fff; font-weight: 700; }

/* ---- Tooltip ---- */
.act-tooltip {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  max-width: 300px;
  padding: 9px 11px;
  background: #0b1119;
  border: 1px solid var(--border-2);
  border-radius: 9px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .55);
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.5;
}
.act-tooltip .tt-title { color: #fff; font-weight: 700; }
.act-tooltip .tt-row { color: var(--muted); }
.act-tooltip .tt-row b { color: var(--text); font-weight: 600; }

/* ---- Mobile ---- */
@media (max-width: 820px) {
  .activity-layout { padding: 10px; }
  .act-section { padding: 14px 12px; }
  .top-grid { grid-template-columns: repeat(2, 1fr); }
  .bar-row { grid-template-columns: 54px 1fr 42px; }
  .bandmap { padding: 10px; }
  .bm-bins { min-width: 560px; }
  .bm-bin { min-width: 11px; }
  .card-v { font-size: 20px; }
}
