/* =========================
   GENERISCHE CONTENT-SEITEN
   ========================= */

.pages-page {
    padding: 0;
}

/* ===== HEADLINE BLOCK ===== */

.page-heading-wrap {
    margin-bottom: 18px;
}

.page-heading-card {
    background: #0f0f0f;
    border: 1px solid #1f8f1f;
    border-radius: 12px;
    padding: 20px 22px 16px;
    box-shadow: 0 0 10px rgba(0, 200, 0, 0.06);
}

.page-heading {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
}

.page-subtitle {
    margin: 0;
    color: #b8b8b8;
    font-size: 0.95rem;
}

/* ===== CONTENT BLOCKS ===== */

.page-section {
    background: #0f0f0f;
    border: 1px solid #1f8f1f;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.page-section-title {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.page-section p {
    margin: 0 0 10px;
    color: #cfcfcf;
    line-height: 1.6;
    font-size: 0.95rem;
}

.page-section p:last-child {
    margin-bottom: 0;
}

/* ===== HIGHLIGHT BOX ===== */

.page-highlight {
    background: rgba(0, 255, 0, 0.04);
    border-left: 3px solid #1f8f1f;
    padding: 10px 12px;
    margin: 10px 0 14px;
    border-radius: 6px;
}

.page-highlight p {
    margin: 0 0 8px;
}

.page-highlight p:last-child {
    margin-bottom: 0;
}

/* ===== MOBILE ===== */

@media (max-width: 600px) {
    .page-heading-card {
        padding: 16px;
    }

    .page-section {
        padding: 14px;
    }

    .page-heading {
        font-size: 1.1rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }
}

/* ===== SUMMARY CARDS ===== */

.summary-box {
  background: linear-gradient(145deg, #0f0f0f, #151515);
  border: 1px solid rgba(0, 255, 100, 0.25);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;

  box-shadow:
    0 0 0 rgba(0,255,100,0),
    0 0 12px rgba(0,255,100,0.05);
    
  transition: all 0.2s ease;
}

.summary-box:hover {
  border-color: rgba(0,255,100,0.6);
  box-shadow:
    0 0 10px rgba(0,255,100,0.15),
    0 0 20px rgba(0,255,100,0.08);
}

/* Titel */
.summary-box-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #fff;
}

/* Highlight Zahlen */
.summary-highlight {
  color: #00ff80;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Meta Text */
.summary-meta {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 6px;
}

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

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.mini-table th {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(0,255,100,0.2);
  color: #ccc;
}

.mini-table td {
  padding: 6px 8px;
}

/* Zebra Look */
.mini-table tbody tr:nth-child(odd) {
  background: rgba(255,255,255,0.03);
}

.mini-table tbody tr:nth-child(even) {
  background: rgba(0,255,100,0.04);
}

/* Hover Effekt */
.mini-table tbody tr:hover {
  background: rgba(0,255,100,0.15);
}

/* Platzierungen hervorheben */
.mini-table td:first-child {
  color: #00ff80;
  font-weight: bold;
}

/* ===== GRID ===== */

.summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 900px) {
  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.summary-box p {
  margin: 6px 0;
}

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

.rank-1 {
  background: linear-gradient(90deg, rgba(0,255,100,0.25), rgba(0,255,100,0.05));
  border-left: 4px solid #00ff80;
}

.rank-2 {
  background: linear-gradient(90deg, rgba(255,200,0,0.25), rgba(255,200,0,0.05));
  border-left: 4px solid #ffc800;
}

.rank-3 {
  background: linear-gradient(90deg, rgba(255,60,60,0.25), rgba(255,60,60,0.05));
  border-left: 4px solid #ff3c3c;
}

/* etwas kräftiger beim Hover */
.mini-table tr.rank-1:hover {
  background: rgba(0,255,100,0.35);
}
.mini-table tr.rank-2:hover {
  background: rgba(255,200,0,0.35);
}
.mini-table tr.rank-3:hover {
  background: rgba(255,60,60,0.35);
}
.rank-1 td:first-child::before,
.rank-2 td:first-child::before,
.rank-3 td:first-child::before {
  content: none;
}

/* Top-3 dezent markieren */
.rank-1 td:first-child {
  border-left: 5px solid #00ff80;
}

.rank-2 td:first-child {
  border-left: 5px solid #ffd447;
}

.rank-3 td:first-child {
  border-left: 5px solid #ff4d4d;
}

.rank-1 td,
.rank-2 td,
.rank-3 td {
  background: inherit;
}

.rank-1 td:first-child,
.rank-2 td:first-child,
.rank-3 td:first-child {
  color: #fff;
  font-weight: 700;
}
.summary-box p {
  margin: 6px 0;
  line-height: 1.4;
}

.spieltag-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background:
    linear-gradient(135deg, #111, #1a1a1a);
  color: #fff;

  border: 1px solid rgba(0, 255, 100, 0.65);
  border-radius: 10px;

  padding: 8px 38px 8px 14px;
  font-size: 1rem;
  font-weight: 700;

  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(0, 255, 100, 0.12),
    0 0 12px rgba(0, 255, 100, 0.15);

  background-image:
    linear-gradient(135deg, #111, #1a1a1a),
    linear-gradient(45deg, transparent 50%, #00ff80 50%),
    linear-gradient(135deg, #00ff80 50%, transparent 50%);
  background-position:
    0 0,
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size:
    100% 100%,
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

.spieltag-select:hover {
  border-color: #00ff80;
  box-shadow:
    0 0 0 1px rgba(0, 255, 100, 0.25),
    0 0 18px rgba(0, 255, 100, 0.25);
}

.spieltag-select:focus {
  outline: none;
  border-color: #00ff80;
  box-shadow:
    0 0 0 3px rgba(0, 255, 100, 0.25),
    0 0 18px rgba(0, 255, 100, 0.25);
}

.spieltag-select option {
  background: #111;
  color: #fff;
}
.spieltag-page-subnav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.spieltag-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;
  padding: 8px 16px;

  color: #b7ffc8;
  text-decoration: none;
  font-weight: 700;

  background: linear-gradient(135deg, #111, #181818);
  border: 1px solid rgba(0, 255, 100, 0.45);
  border-radius: 10px;

  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;
}

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

.spieltag-select {
  min-height: 42px;
}

.spieltag-arrow {
  min-height: 42px;
  padding: 0 14px;

  font-size: 1.2rem;
  font-weight: bold;

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

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

  cursor: pointer;

  transition: 0.18s ease;
}

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

.spieltag-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}
.spieltag-arrow {
  width: 42px;
  text-align: center;
}
.spieltag-arrow {
  min-height: 42px;
  width: 42px;
  color: #b7ffc8;
  background: linear-gradient(135deg, #111, #181818);
  border: 1px solid rgba(0,255,100,0.45);
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
}

.spieltag-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

.spieltag-select {
  border-color: rgba(0,255,100,0.6);
}
.spieltag-arrow:not(:disabled):hover {
  transform: scale(1.05);
}
a {
  text-decoration: none;
}
.season-bars {
  display: grid;
  gap: 10px;
}

.season-bar-row {
  padding: 8px 0;
}

.season-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
  font-weight: 700;
}

.season-bar-name {
  color: #fff;
}

.season-bar-count {
  color: #00ff80;
}

.season-bar-track {
  height: 16px;
}

.season-bar-track::before {
  content: attr(data-name);
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-weight: 600;
  font-size: 0.7rem;
  line-height: 1;
  z-index: 2;
  white-space: nowrap;
}

.season-bar-track::after {
  content: attr(data-count);
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  line-height: 1;
  z-index: 2;
}

.season-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00aa44, #00ff80);
  border-radius: 999px;
}

.season-bar-row.is-top .season-bar-name,
.season-bar-row.is-top .season-bar-count {
  color: #00ff80;
}
/* ===== FINAL: TAGESSIEGER-GLOW ===== */

.rueckblick-card.tagessieger-glow {
  border-color: rgba(0,255,100,0.4) !important;

  box-shadow:
    0 0 10px rgba(0,255,100,0.15),
    0 0 22px rgba(0,255,100,0.12),
    inset 0 0 10px rgba(0,255,100,0.04) !important;

  background:
    linear-gradient(145deg, rgba(0,255,100,0.04), rgba(18,18,18,0.96)) !important;
}
@keyframes tagessiegerPulse {
  0% {
    box-shadow:
      0 0 8px rgba(0,255,100,0.12),
      0 0 18px rgba(0,255,100,0.08);
  }
  50% {
    box-shadow:
      0 0 14px rgba(0,255,100,0.25),
      0 0 28px rgba(0,255,100,0.15);
  }
  100% {
    box-shadow:
      0 0 8px rgba(0,255,100,0.12),
      0 0 18px rgba(0,255,100,0.08);
  }
}

.rueckblick-card.tagessieger-glow {
  animation: tagessiegerPulse 3s ease-in-out infinite;
}

.tipp-table tbody tr.tagessieger-glow-row td {
  background: rgba(0, 255, 100, 0.08) !important;
  box-shadow: inset 0 0 14px rgba(0, 255, 100, 0.08);
}

.tipp-table tbody tr.tagessieger-glow-row td:first-child {
  box-shadow:
    inset 6px 0 0 #00ff80,
    inset 0 0 14px rgba(0, 255, 100, 0.12);
}

.hidden-export-area {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 520px;
}

.export-card {
  width: 520px;
  background: #111;
  color: #fff;
  border: 1px solid rgba(0,255,100,0.35);
  border-radius: 14px;
  padding: 22px;
  font-family: Arial, Helvetica, sans-serif;
}

.export-card h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.export-card p {
  margin: 0 0 14px;
  color: rgba(255,255,255,0.82);
}

.export-bar-list {
  display: grid;
  gap: 4px;
}

.export-bar {
  position: relative;
  height: 20px;
  background: rgba(255,255,255,0.10);
  border-radius: 5px;
  overflow: hidden;
}

.export-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, #009b3a, #00ff80);
}

.export-bar-name,
.export-bar-value {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  font-size: 0.78rem;
  font-weight: 700;
}

.export-bar-name {
  left: 8px;
}

.export-bar-value {
  right: 8px;
  background: rgba(0,0,0,0.35);
  padding: 1px 6px;
  border-radius: 999px;
}

.export-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  padding: 7px 12px;

  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.72);

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

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

  opacity: 0.55;
}

.export-mini-btn:hover {
  opacity: 1;
  color: #fff;
  border-color: rgba(0,255,100,0.7);
  box-shadow: 0 0 12px rgba(0,255,100,0.16);
}

.goal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ball-icon {
  width: 14px;
  height: 14px;
  stroke: #008000;
  stroke-width: 1.4;
  fill: none;
  opacity: 0.85;
}
.tendenz-bar {
  width: 70%;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.tendenz-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.tendenz-card.heim .tendenz-bar-fill {
  background: #2ecc71;
}

.tendenz-card.remis .tendenz-bar-fill {
  background: #e6d400;
}

.tendenz-card.auswaerts .tendenz-bar-fill {
  background: #ff5b45;
}