:root{
  --ink:#0f172a;
  --card:#fff;
  --accent:#2e6bff;
  --shadow:0 18px 36px rgba(15,23,42,.20);
  --stroke:#e3e9f8;
  --muted:#6b7280;
  --bg-a:#f7f9ff;
  --bg-b:#eef3ff;
}

/* ===== Base ===== */
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{min-height:100%}
body{
  margin:0;
  background:linear-gradient(180deg,#e8edf8,#f5f7fc);
  font:15px/1.5 "Inter",system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  color:var(--ink);
  -webkit-text-size-adjust:100%;
}
.wrap{max-width:820px;margin:0 auto;padding:18px}

/* ===== Back link & Titles ===== */
.back-link{
  display:inline-flex;align-items:center;gap:8px;
  font-weight:700;font-size:15px;color:#0f172a;text-decoration:none;
  margin-bottom:12px;transition:opacity .2s ease;
}
.back-link:hover{opacity:.7}
.back-link svg{width:20px;height:20px;stroke:#0f172a;flex-shrink:0}

.h1{
  font-size:clamp(24px,5vw,30px);
  font-weight:900;color:#0f172a;text-align:left;
  line-height:1.25;margin:6px 0 14px;letter-spacing:.3px;
}

.section-title{
  font-size:18px;font-weight:900;color:#0f172a;
  margin:20px 0 10px; letter-spacing:.2px;
}
.section-title.no-margin{margin-top:0}

/* ===== Filterleiste ===== */
.filters{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 16px}
.fld{
  display:flex;align-items:center;gap:10px;
  background:#fff;border:1px solid var(--stroke);border-radius:14px;
  padding:10px 12px; box-shadow:0 4px 14px rgba(46,107,255,.07);
}
.fld strong{
  font-size:12px;color:var(--muted);font-weight:800;letter-spacing:.3px;text-transform:uppercase;
}
.fld input[type="date"],
.fld select,
.fld input[type="text"]{
  background:transparent;border:0;outline:0;color:#0f172a;font-weight:700;
}

/* ===== KPI Cards ===== */
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0 4px}
.kpi{
  background:var(--card);border:1px solid var(--stroke);border-radius:16px;
  padding:14px 12px;box-shadow:var(--shadow);
}
.kpi .t{font-size:12px;color:var(--muted);font-weight:800;letter-spacing:.3px;text-transform:uppercase;margin-bottom:6px}
.kpi .v{font-size:22px;font-weight:900;color:#0f172a}
.kpi .s{font-size:12px;font-weight:600;color:#6b7280;margin-top:6px}
@media (max-width:840px){ .kpis{grid-template-columns:repeat(2,1fr)} }

/* ===== Karten/Boxes ===== */
.card{
  background:var(--card);border:1px solid var(--stroke);border-radius:16px;
  padding:12px;box-shadow:var(--shadow);margin:10px 0;
}

/* ===== Tabelle (Verlauf) ===== */
.table{width:100%;border-collapse:separate;border-spacing:0 8px}
.table thead th{
  font-size:12px;text-transform:uppercase;letter-spacing:.8px;
  color:var(--muted);text-align:left;padding:0 10px;
}
.table tbody tr{box-shadow:var(--shadow)}
.table tbody td{
  background:#fff;border:1px solid var(--stroke);padding:12px 12px;color:#0f172a;
}
.table tbody tr td:first-child{border-radius:12px 0 0 12px}
.table tbody tr td:last-child{border-radius:0 12px 12px 0}

.small{font-size:12px;color:#6b7280;font-weight:600}
.align-right{text-align:right}
.meta{display:flex;gap:8px;align-items:center;color:#223048;font-weight:700}
.profit-bold{font-weight:900}
.profit-bold.profit{color:#16a34a}

/* ===== Buckets ===== */
.blist{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.bitem{
  display:flex;justify-content:space-between;gap:10px;align-items:center;
  background:#fff;border:1px solid var(--stroke);border-radius:12px;padding:10px 12px;box-shadow:var(--shadow);
}
.bucket-barwrap{min-width:200px}
.bar{height:8px;border-radius:8px;background:#eef1fb;border:1px solid #e6eaf5;overflow:hidden}
.bar>span{display:block;height:100%;background:linear-gradient(90deg,#7b61ff,#4f74ff)}
.bar.green>span{background:linear-gradient(90deg,#13c24a,#2ecc71)}
.bar.blue>span{background:linear-gradient(90deg,#2e6bff,#6aa0ff)}
@media (max-width:720px){ .blist{grid-template-columns:1fr} }

/* ===== Grid 2 Spalten ===== */
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
@media (max-width:820px){ .grid2{grid-template-columns:1fr} }

/* ===== Badges ===== */
.badge{
  display:inline-block;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:800;letter-spacing:.2px;
}
.badge.win{background:#dcfce7;color:#15803d;border:1px solid #bbf7d0}
.badge.lose{background:#fee2e2;color:#b91c1c;border:1px solid #fecaca}

/* ===== Pick-Pill ===== */
.pill{
  background:#f7f9ff;color:#0f172a;border:1px solid #e6eaf5;border-radius:999px;
  padding:6px 10px;font-weight:800;display:inline-block;
}

/* ===== Hinweise ===== */
.empty-note{
  background:#fff;border:1px dashed #d8dce7;border-radius:12px;padding:14px;color:#6b7280;
  box-shadow:0 6px 18px rgba(46,107,255,.08);
}

/* ===== Spaltenbreite (Desktop) ===== */
@media (min-width:821px){
  .table thead th:nth-child(1),
  .table tbody td:nth-child(1){width:160px}
  .table thead th:nth-child(4),
  .table tbody td:nth-child(4){width:90px;text-align:right}
  .table thead th:nth-child(5),
  .table tbody td:nth-child(5){width:90px}
}

/* ===== Verlauf-Card: Layout ===== */
.card .head{display:flex;flex-direction:column;align-items:center;gap:6px}
.card .teams-inline{
  display:flex;align-items:center;justify-content:center;
  gap:14px;flex-wrap:nowrap;text-align:center
}
.card .team{display:flex;align-items:center;gap:8px;min-width:0}
.card .team strong,
.card .team span{
  font-weight:700;color:#0d1628;font-size:15px;
  max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
@media (max-width:480px){
  .card .team strong,
  .card .team span{max-width:95px}
}

/* Logos (klein & neutral) */
.card .logo{width:25px;height:25px;display:grid;place-items:center;flex-shrink:0}
.card .logo img{width:21px;height:21px;object-fit:contain;opacity:.9}

/* VS immer mittig */
.card .vs{
  display:inline-flex;align-items:center;justify-content:center;
  width:34px; /* feste Breite → optische Mitte */
  font-weight:900;color:#0f172a;font-size:15px;letter-spacing:.5px
}

/* Liga • Datum • FT in EINER Linie */
.card .meta-inline{
  display:flex;align-items:center;justify-content:center;
  gap:8px;line-height:1;margin-top:6px;font-size:13px;font-weight:700;color:#6b7280
}
.card .meta-inline .league,
.card .meta-inline .time{margin:0!important;display:inline-block;line-height:1!important}
.card .meta-inline .dot{width:4px;height:4px;border-radius:50%;background:#9aa3b2;display:inline-block}

/* Tipp-Zeile */
.card .vira-row{
  display:flex;justify-content:space-between;align-items:center;
  border-top:1px solid #e7ebf4;padding-top:12px;margin:10px 0 6px;
  color:#111827;font-weight:800
}
.card .vira-left{display:flex;align-items:center;gap:6px;white-space:nowrap}
.card .vira-right{display:flex;align-items:center;gap:8px;justify-content:flex-end}
.card .vira-label{display:inline-flex;align-items:center;gap:6px;font-weight:800}
.card .vira-value{font-weight:600}
.card .vira-quote{font-weight:900;opacity:.9}

/* (Optional) alter Pokal-Style – bleibt ohne Effekt, wenn IMG entfernt */
.card .ico-pokal{width:20px;height:20px;position:relative;top:-1px}

/* ===== Hero & KPI (oben) ===== */
.hero-title{
  text-align:center;margin:48px 0 40px;
  font-weight:900;letter-spacing:.3px;line-height:1.15;
}
.hero-title .l1,.hero-title .l2{
  font-size:clamp(28px,5vw,34px);
  color:#0f172a;display:block;
}
.kpis.kpi-2{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:18px;max-width:640px;margin:0 auto 32px;
}
.kpis.kpi-2 .kpi{
  background:#fff;border:1px solid rgba(15,23,42,.06);
  border-radius:18px;box-shadow:0 8px 28px rgba(0,0,0,.08);
  padding:24px 20px;text-align:center;
  transition:transform .2s ease, box-shadow .2s ease;
}
.kpis.kpi-2 .kpi:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(0,0,0,.12)}
.kpis.kpi-2 .t{
  font-size:13px;color:#64748b;font-weight:700;text-transform:uppercase;
  letter-spacing:.5px;margin-bottom:6px;
}
.kpis.kpi-2 .v{font-size:32px;font-weight:900;color:#0f172a;line-height:1.1}

/* ===== Ergebnis-Icons (einheitlich & klein) ===== */
/* Nutze im PHP <svg class="res-ico res-win|res-lose" viewBox="0 0 24 24"> */
.res-ico{
  width:14px;  /* Größe hier anpassen */
  height:14px;
  display:inline-block;
  vertical-align:middle;
  flex-shrink:0;
}
.res-ico circle{ fill:#22c55e; }
.res-ico path{
  fill:none;stroke:#fff;stroke-width:2.2;
  stroke-linecap:round;stroke-linejoin:round;
}
.res-lose circle{ fill:#ef4444; }

/* Kompat: falls irgendwo noch .vira-ok/.vira-bad genutzt wird */
.vira-ok,.vira-bad{display:inline-block;width:14px;height:14px;vertical-align:middle}
.vira-ok svg,.vira-bad svg{width:14px;height:14px;display:block}
.vira-ok circle{fill:#22c55e}
.vira-bad circle{fill:#ef4444}
.vira-ok path,.vira-bad path{
  fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round
}
/* Teams + VS: immer mittig per Grid */
.card .teams-inline{
  display:grid;
  grid-template-columns:1fr auto 1fr; /* links | VS | rechts */
  align-items:center;
  gap:14px;
  text-align:center;
}

/* Home rechtsbündig an VS, Away linksbündig an VS */
.card .team{display:flex; align-items:center; gap:8px; min-width:0}
.card .team.home{justify-self:end}
.card .team.away{justify-self:start}

.card .team strong,
.card .team span{
  font-weight:700; color:#0d1628; font-size:15px;
  max-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

/* VS – Farbe unverändert, nur zentriert */
.card .vs{
  justify-self:center;
  display:inline-flex; align-items:center; justify-content:center;
  min-width:30px; /* leichte Stabilität, aber kein Kasten */
  font-weight:900;
  color:#9aa3b2;   /* ORIGINALFARBE */
  font-size:15px;
  letter-spacing:.5px;
}

@media (max-width:480px){
  .card .team strong, .card .team span { max-width:95px; }
}
.load-more{
  display:block;
  margin:24px auto 40px;
  background:#2e6bff;
  color:#fff;
  font-weight:800;
  border:0;
  border-radius:999px;
  padding:10px 22px;
  font-size:15px;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(46,107,255,.25);
  transition:background .2s ease, transform .2s ease;
}
.load-more:hover{background:#1e56f0;transform:translateY(-1px)}

