/* =========================================
   LIVE-TABELLE – 96 STYLE
========================================= */

.live-page {
    background: #111;
    color: #f2f2f2;
}

/* ===== LAYOUT ===== */

.live-main {
    padding: 28px 18px 40px;
}

.live-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

/* ===== CONTAINER ===== */

.excel-frame {
    background: #000;
    border: 1px solid #2a2a2a;
    border-top: 4px solid #008000;
    border-radius: 4px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.excel-stage {
    background: #151515;
    border: 1px solid #222;
    padding: 16px;
    border-radius: 4px;
}

/* ===== STATUS ===== */

.tipp-loading,
.tipp-error {
    padding: 18px 16px;
    font-size: 1rem;
    border-left: 4px solid #008000;
    background: #1b1b1b;
}

.tipp-error {
    border-left-color: #bf0000;
    color: #ffb3b3;
}

/* ===== SPINNER ===== */

.tipp-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid #555;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: -3px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== HEADING ===== */

.tipp-heading-wrap {
    margin: 0 0 14px;
    padding: 14px 18px 12px;
    background: #111;
    border: 1px solid #1f8f1f;
    border-radius: 8px;
}

.tipp-heading {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
}

.tipp-match {
    margin-top: 4px;
    font-size: 1rem;
    font-weight: 600;
    color: #e5e5e5;
}

.tipp-subtitle {
    margin-top: 6px;
    font-size: 0.88rem;
    color: #bdbdbd;
    line-height: 1.35;
}

/* ===== STATISTIKBLOCK ===== */

.tipp-stats {
    margin: 0 0 18px;
    padding: 16px 18px;
    background: #111;
    border: 1px solid #1f8f1f;
    border-radius: 8px;
}

.tipp-stats p {
    margin: 0 0 10px;
    line-height: 1.4;
}

/* ===== TENDENZ ===== */

.tipp-tendenz {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.tipp-tendenz-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.tipp-tendenz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.tendenz-card {
    background: linear-gradient(145deg, #111, #0c0c0c);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: all 0.15s ease;
}

.tendenz-card:hover {
    transform: translateY(-1px);
}

.tendenz-label {
    font-size: 0.8rem;
    color: #bbb;
}

.tendenz-value {
    font-size: 1.3rem;
    font-weight: 700;
}

.tendenz-percent {
    font-size: 0.75rem;
    color: #b8cbb8;
}

/* Farben */

.tendenz-card.heim {
    border-left: 4px solid #2ecc71;
}

.tendenz-card.remis {
    border-left: 4px solid #f1c40f;
}

.tendenz-card.auswaerts {
    border-left: 4px solid #e74c3c;
}

/* Gewinner */

.tendenz-card.winner {
    transform: scale(1.02);
}

.tendenz-card.heim.winner {
    box-shadow: 0 0 12px rgba(46, 204, 113, 0.35);
    border-left: 4px solid #2ecc71;
    outline: 1px solid rgba(46, 204, 113, 0.22);
}

.tendenz-card.remis.winner {
    box-shadow: 0 0 12px rgba(241, 196, 15, 0.30);
    border-left: 4px solid #f1c40f;
    outline: 1px solid rgba(241, 196, 15, 0.18);
}

.tendenz-card.auswaerts.winner {
    box-shadow: 0 0 12px rgba(231, 76, 60, 0.28);
    border-left: 4px solid #e74c3c;
    outline: 1px solid rgba(231, 76, 60, 0.16);
}

/* ===== TABLE WRAPPER ===== */

.tipp-table-scroll {
    overflow-x: auto;
    background: #111;
    border: 1px solid #1f8f1f;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0, 200, 0, 0.12);
}

/* ===== TABLE ===== */

.tipp-table {
    width: 100%;
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
}

/* ===== HEADER ===== */

.tipp-table thead th {
    background: linear-gradient(180deg, #1b1b1b 0%, #101010 100%);
    color: #fff;
    padding: 10px;
    font-size: 0.84rem;
    text-align: center;
    border-bottom: 2px solid #00a000;
    border-right: 1px solid rgba(0, 200, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 2;
    white-space: nowrap;
}

.tipp-table thead th:first-child {
    border-top-left-radius: 10px;
}

.tipp-table thead th:last-child {
    border-top-right-radius: 10px;
    border-right: none;
}

/* ===== CELLS ===== */

.tipp-table tbody td {
    padding: 9px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    white-space: nowrap;
    vertical-align: middle;
    color: #f2f2f2;
}

/* ===== ROW COLORS ===== */

.tipp-table tbody tr.row-even {
    background: #111;
}

.tipp-table tbody tr.row-odd {
    background: #161616;
}

.tipp-table tbody tr:hover {
    background: #1d1d1d;
}

/* ===== ALIGN ===== */

.tipp-table td:nth-child(1),
.tipp-table td:nth-child(2),
.tipp-table td:nth-child(4),
.tipp-table td:nth-child(5),
.tipp-table td:nth-child(6),
.tipp-table th:nth-child(1),
.tipp-table th:nth-child(2),
.tipp-table th:nth-child(4),
.tipp-table th:nth-child(5),
.tipp-table th:nth-child(6) {
    text-align: center;
}

.tipp-table td:nth-child(3),
.tipp-table th:nth-child(3) {
    text-align: left;
}

/* ===== NAME NORMAL ===== */

.tipp-table tbody td:nth-child(3) {
    font-weight: 400;
}

/* ===== PUNKTE-SPALTEN LEICHT BETONEN ===== */

.tipp-table td:nth-child(12),
.tipp-table td:nth-child(13),
.tipp-table td:nth-child(14) {
    background: rgba(255, 255, 255, 0.03);
    font-weight: 700;
}

/* ===== TOP 3 ===== */

.tipp-table tbody tr:nth-child(1) {
    box-shadow: inset 6px 0 0 #ffd700;
}

.tipp-table tbody tr:nth-child(2) {
    box-shadow: inset 6px 0 0 #c0c0c0;
}

.tipp-table tbody tr:nth-child(3) {
    box-shadow: inset 6px 0 0 #cd7f32;
}

/* ===== VORW.-PFEILE ===== */

.vorw-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    min-width: 44px;
}

.vorw-arrow {
    font-weight: 700;
    line-height: 1;
}

.vorw-arrow.up {
    color: #7CFC8A;
}

.vorw-arrow.down {
    color: #ff8a8a;
}

.vorw-arrow.same {
    color: #d9d9d9;
}

.vorw-rank {
    font-weight: 600;
}

/* ===== TORSCHÜTZEN ===== */

.torschuetzen-block {
    margin-top: 18px;
    padding: 14px;
    background: #111;
    border: 1px solid #1f8f1f;
    border-radius: 8px;
}

.torschuetzen-title {
    font-weight: 700;
    margin-bottom: 12px;
}

.torschuetzen-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.torschuetzen-bar-row {
    background: #161616;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid #008000;
    border-radius: 6px;
    padding: 8px 10px;
}

.torschuetzen-bar-row.is-top {
    border-left: 4px solid #ffd700;
}

.torschuetzen-bar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.torschuetzen-bar-name {
    font-weight: 600;
}

.torschuetzen-bar-count {
    font-weight: 700;
    color: #9fd39f;
    flex: 0 0 auto;
}

.torschuetzen-bar-track {
    width: 100%;
    height: 10px;
    background: #0d0d0d;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.torschuetzen-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #008000 0%, #19b319 100%);
    border-radius: 999px;
}

.torschuetzen-bar-row.is-top .torschuetzen-bar-fill {
    background: linear-gradient(90deg, #c9a400 0%, #ffd700 100%);
}

/* ===== SPIELTAGSBLOCK ===== */

.spieltag-block {
    margin-top: 18px;
    padding: 14px;
    background: #111;
    border: 1px solid #1f8f1f;
    border-radius: 8px;
    display: block;        /* optional */
    min-height: 300px;     /* wichtig */
}


.spieltag-title {
    font-weight: 700;
    margin-bottom: 12px;
}

.spieltag-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spieltag-bar-row {
    margin-bottom: 2px;
}

.spieltag-bar-track {
    width: 100%;
    height: 24px;
    background: #0d0d0d;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.spieltag-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #008000 0%, #19b319 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 6px;
}

.spieltag-bar-label {
    opacity: 0.96;
}

.spieltag-bar-value {
    margin-left: 10px;
    font-weight: 700;
    flex: 0 0 auto;
}

.spieltag-bar-row.is-current .spieltag-bar-track {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.22);
}

.spieltag-bar-row.is-current .spieltag-bar-fill {
    background: linear-gradient(90deg, #c9a400 0%, #ffd700 100%);
    color: #111;
}

.spieltag-average {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 6px;
    text-align: right;
}

#spieltag-chart {
    width: 100%;
    max-height: 460px;
    display: block;
}

@media (max-width: 900px) {
    #spieltag-chart {
        height: 300px;
    }
}

@media (max-width: 600px) {
    #spieltag-chart {
        height: 240px;
    }
}

@media (max-width: 420px) {
    #spieltag-chart {
        height: 200px;
    }
}



/* ===== FOOTER ===== */

.simple-footer {
    max-width: 1100px;
    margin: 24px auto 30px auto;
    padding: 12px 18px 0 18px;
    text-align: center;
    color: #bdbdbd;
    font-size: 0.9rem;
    border-top: 1px solid #2a2a2a;
    display: block;
}

.simple-footer a,
.simple-footer span {
    display: inline-block;
    vertical-align: middle;
}

.simple-footer a {
    color: #9fd39f;
    text-decoration: none;
}

.simple-footer a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 720px) {
    .live-wrap {
        max-width: 100%;
        margin: 0;
    }

    .live-main {
        padding-left: 8px;
        padding-right: 8px;
    }

    .excel-frame {
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 10px;
    }

    .excel-stage {
        padding: 10px;
    }

    .tipp-tendenz-grid {
        grid-template-columns: 1fr;
    }

    .tipp-table {
        font-size: 0.85rem;
    }

    .tipp-table th,
    .tipp-table td {
        padding: 6px;
    }

    .tipp-table-scroll {
        margin-left: -8px;
        margin-right: -8px;
        border-radius: 0;
    }
}
a {
  text-decoration: none;
}

.export-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 24px 0 12px;
  opacity: 0.55;
}

.export-panel:hover {
  opacity: 1;
}

.export-panel button {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,255,100,0.22);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.75rem;
  cursor: pointer;
}

.export-panel button:hover {
  color: #fff;
  border-color: rgba(0,255,100,0.7);
}
.export-box {
  background: #111;
  padding: 14px;
  border-radius: 10px;
}

.export-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  text-align: center;
}
.export-title {
  display: none;
}

.export-box.export-active .export-title {
  display: block;
}
.export-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 18px;
  padding: 8px 14px;

  background: linear-gradient(135deg, #111, #181818);
  color: #b7ffc8;

  border: 1px solid rgba(0,255,100,0.45);
  border-radius: 999px;

  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;

  box-shadow:
    0 0 0 1px rgba(0,255,100,0.08),
    0 0 10px rgba(0,255,100,0.08);

  transition: 0.18s ease;
}

.export-mini-btn:hover {
  color: #fff;
  border-color: #00ff80;
  box-shadow:
    0 0 0 1px rgba(0,255,100,0.18),
    0 0 16px rgba(0,255,100,0.22);
  transform: translateY(-1px);
}


#spieltag-block canvas {
  display: block !important;
  height: 260px !important;
  max-height: 260px !important;
  margin-bottom: 0 !important;
}


#spieltag-block {
  height: auto !important;
}

.spieltag-block {
  min-height: 0 !important;
  height: auto !important;
}

.spieltag-chart-wrap {
  height: 360px;
  position: relative;
}

#spieltag-chart {
  width: 100% !important;
  height: 420px !important;
  display: block;
}

.torschuetzen-chart {
  display: grid;
  gap: 4px;
}

.torschuetzen-compact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;

  min-height: 22px;
  padding: 3px 8px;

  background: rgba(255,255,255,0.04);
  border-left: 3px solid rgba(0,255,100,0.45);
  border-radius: 5px;

  font-size: 0.82rem;
}

.torschuetzen-compact-row.is-top {
  border-left-color: #ffd700;
  background: rgba(255,215,0,0.08);
}

.torschuetzen-compact-name {
  color: #fff;
  font-weight: 600;
}

.torschuetzen-compact-count {
  color: rgba(255,255,255,0.75);
  font-weight: 700;
}
.torschuetzen-compact-row {
  position: relative;
  overflow: hidden;
}

.torschuetzen-compact-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, #008f3a, #00ff80);
  z-index: 1;
}

.torschuetzen-compact-row.is-top .torschuetzen-compact-fill {
  background: linear-gradient(90deg, #8a7400, #ffd700);
}

.torschuetzen-compact-name,
.torschuetzen-compact-count {
  position: relative;
  z-index: 2;
}
.torschuetzen-compact-badge {
  position: relative;
  z-index: 3;

  min-width: 28px;
  padding: 2px 8px;

  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;

  color: #fff;
  background: rgba(0,0,0,0.6);

  border-radius: 999px;
}