/* WM 2026 Teamprofile v2.0
   Font: Montserrat | Palette: #1a2540 navy · #dc2626 red · #16a34a green
   Sportwetten-test.org Design System */

/* ── BASIS ── */
.wtp { font-family: 'Montserrat', sans-serif; margin: 0 0 28px; }
.wtp * { box-sizing: border-box; }
.wtp-error { color: #dc2626; font-size: 13px; border: 1px solid #fca5a5; padding: 8px 12px; border-radius: 6px; font-family: 'Montserrat', sans-serif; }

/* ── SECTION HEADING (sportwetten-test.org Stil: rote Linie links) ── */
.wtp-sh {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #1a2540;
  border-left: 4px solid #dc2626;
  padding-left: 14px;
  margin: 0 0 18px;
  line-height: 1.3;
}

/* ══ HERO BLOCK ══ */
.wtp-header {}

.wtp-hero {
  background: #1a2540;
  border-radius: 10px;
  padding: 24px 22px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.wtp-hero-flag { font-size: 58px; line-height: 1; flex-shrink: 0; }
.wtp-hero-content { flex: 1; min-width: 180px; }
.wtp-hero-badges { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.wtp-badge { font-size: 11px; font-weight: 600; padding: 3px 11px; border-radius: 20px; font-family: 'Montserrat', sans-serif; letter-spacing: .02em; }
.wtp-b-group { background: #dc2626; color: #fff; }
.wtp-b-conf  { background: rgba(255,255,255,.13); color: #cbd5e1; }
.wtp-b-title { background: #f59e0b; color: #fff; }
.wtp-hero-name { font-size: 30px; font-weight: 700; color: #fff; margin: 0 0 8px; line-height: 1.2; font-family: 'Montserrat', sans-serif; }
.wtp-hero-opp  { font-size: 12px; color: #64748b; margin: 0; font-family: 'Montserrat', sans-serif; }

/* ── STATS ZEILE ── */
.wtp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.wtp-stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #1a2540;
  border-radius: 8px;
  padding: 12px 14px;
  text-align: center;
}
.wtp-stat-val {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #1a2540;
  line-height: 1.3;
  font-family: 'Montserrat', sans-serif;
}
.wtp-stat-sm { font-size: 11px; font-weight: 600; }
.wtp-stat-lbl {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  margin-top: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-family: 'Montserrat', sans-serif;
}

/* ── BESCHREIBUNG ── */
.wtp-desc {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
}
.wtp-desc p { font-size: 14px; color: #166534; line-height: 1.75; margin: 0; font-family: 'Montserrat', sans-serif; font-weight: 500; }

/* ══ FORMKURVE ══ */
.wtp-block-form {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
}
.wtp-form-inner { display: flex; flex-direction: column; gap: 0; }
.wtp-form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 9px 0;
  border-bottom: 1px solid #f8fafc;
  font-family: 'Montserrat', sans-serif;
}
.wtp-form-row:last-child { border-bottom: none; }
.wtp-form-badge {
  width: 30px; height: 30px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
  font-family: 'Montserrat', sans-serif;
}
.wtp-fw { background: #dcfce7; color: #166534; }
.wtp-fd { background: #fef9c3; color: #854d0e; }
.wtp-fl { background: #fee2e2; color: #991b1b; }
.wtp-form-match { flex: 1; }
.wtp-form-teams { font-weight: 500; color: #1a2540; }
.wtp-form-league { font-size: 11px; color: #94a3b8; margin-top: 1px; }
.wtp-form-score { font-weight: 700; font-size: 15px; color: #1a2540; white-space: nowrap; }
.wtp-form-date  { font-size: 11px; color: #94a3b8; white-space: nowrap; }
.wtp-form-dots  { display: flex; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #f1f5f9; }
.wtp-dot { width: 12px; height: 12px; border-radius: 50%; }

/* ══ SCHLÜSSELSPIELER ══ */
.wtp-block-spieler { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 20px; }
.wtp-spieler-grid { display: flex; flex-direction: column; gap: 10px; }
.wtp-spieler-card {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #dc2626;
  border-radius: 8px;
}
.wtp-pos-badge {
  width: 38px; height: 38px;
  background: #1a2540; color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
  font-family: 'Montserrat', sans-serif;
}
.wtp-spieler-name { font-size: 14px; font-weight: 600; color: #1a2540; font-family: 'Montserrat', sans-serif; }
.wtp-spieler-club { font-size: 12px; color: #64748b; margin-top: 2px; font-family: 'Montserrat', sans-serif; }

/* ══ WM-HISTORIE ══ */
.wtp-block-historie { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 20px; }
.wtp-hist { width: 100%; border-collapse: collapse; font-family: 'Montserrat', sans-serif; font-size: 13px; }
.wtp-hist th {
  text-align: left; padding: 8px 12px;
  background: #1a2540; color: #fff;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
}
.wtp-hist th:first-child { border-radius: 6px 0 0 0; }
.wtp-hist th:last-child  { border-radius: 0 6px 0 0; }
.wtp-hist td { padding: 9px 12px; border-bottom: 1px solid #f1f5f9; color: #1e293b; }
.wtp-hist tr:last-child td { border-bottom: none; }
.wtp-row-gold td { background: #fefce8; font-weight: 600; color: #713f12; }
.wtp-hist-yr  { font-weight: 700; color: #1a2540; }
.wtp-hist-ico { text-align: right; font-size: 16px; }
.wtp-hist tr:hover td { background: #f8fafc; }
.wtp-row-gold:hover td { background: #fef9c3; }

/* ══ KI-PROGNOSE ══ */
.wtp-block-ki {
  background: #faf5ff;
  border: 1px solid #d8b4fe;
  border-left: 4px solid #7c3aed;
  border-radius: 10px;
  padding: 20px;
}
.wtp-block-ki .wtp-sh { color: #5b21b6; border-left-color: #7c3aed; }
.wtp-ki-inner { min-height: 60px; }
.wtp-ki-text { font-size: 14px; color: #374151; line-height: 1.8; font-family: 'Montserrat', sans-serif; font-weight: 400; }
.wtp-ki-disc { font-size: 11px; color: #9ca3af; margin: 10px 0 0; font-family: 'Montserrat', sans-serif; }

/* ══ WETTQUOTEN ══ */
.wtp-block-quoten { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 20px; }
.wtp-quoten-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
@media (max-width: 480px) { .wtp-quoten-grid { grid-template-columns: 1fr; } }

.wtp-quote-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #dc2626;
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.wtp-quote-lbl { font-size: 11px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-family: 'Montserrat', sans-serif; }
.wtp-quote-val {
  display: block; font-size: 28px; font-weight: 700; color: #1a2540;
  text-decoration: none; font-family: 'Montserrat', sans-serif;
  transition: color .15s;
}
.wtp-quote-val:hover { color: #dc2626; }
.wtp-quote-btn {
  display: inline-block;
  background: #16a34a; color: #fff;
  padding: 7px 18px; border-radius: 6px;
  font-size: 12px; font-weight: 600;
  text-decoration: none; font-family: 'Montserrat', sans-serif;
  transition: background .15s;
}
.wtp-quote-btn:hover { background: #15803d; color: #fff; }

.wtp-zoccer {
  background: #1a2540; border-radius: 8px;
  padding: 13px 16px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.wtp-zoc-left { display: flex; align-items: center; gap: 10px; flex: 1; }
.wtp-zoc-badge { background: #f59e0b; color: #fff; font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 4px; white-space: nowrap; font-family: 'Montserrat', sans-serif; }
.wtp-zoc-name  { font-size: 15px; font-weight: 700; color: #fff; font-family: 'Montserrat', sans-serif; }
.wtp-zoc-bonus { font-size: 11px; color: #64748b; font-family: 'Montserrat', sans-serif; }
.wtp-zoc-cta {
  background: #16a34a; color: #fff;
  padding: 10px 20px; border-radius: 7px;
  font-size: 13px; font-weight: 700;
  text-decoration: none; flex-shrink: 0;
  font-family: 'Montserrat', sans-serif;
  transition: background .15s;
}
.wtp-zoc-cta:hover { background: #15803d; color: #fff; }
.wtp-disc { font-size: 11px; color: #94a3b8; font-family: 'Montserrat', sans-serif; }

/* ══ STÄRKEN ══ */
.wtp-block-staerken { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 20px; }
.wtp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.wtp-tag {
  background: #eff6ff; color: #1e40af;
  font-size: 12px; font-weight: 600;
  padding: 6px 14px; border-radius: 20px;
  border: 1px solid #bfdbfe;
  font-family: 'Montserrat', sans-serif;
}

/* ══ ÜBERSICHT ══ */
.wtp-block-uebersicht {}
.wtp-ov-gruppe { margin-bottom: 24px; }
.wtp-ov-grp-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px; font-weight: 600; color: #1a2540;
  margin: 0 0 10px;
  padding: 6px 12px;
  background: #f8fafc;
  border-left: 3px solid #dc2626;
  border-radius: 0 6px 6px 0;
}
.wtp-ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.wtp-ov-card {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
  text-decoration: none; color: #1e293b;
  transition: all .15s;
  font-family: 'Montserrat', sans-serif;
}
.wtp-ov-card:hover { background: #1a2540; border-color: #1a2540; transform: translateY(-1px); }
.wtp-ov-card:hover .wtp-ov-name { color: #fff; }
.wtp-ov-card:hover .wtp-ov-rank { color: #94a3b8; }
.wtp-ov-flag { font-size: 26px; flex-shrink: 0; }
.wtp-ov-name { font-size: 13px; font-weight: 600; color: #1a2540; }
.wtp-ov-rank { font-size: 11px; color: #64748b; margin-top: 1px; }
.wtp-ov-arr  { margin-left: auto; color: #94a3b8; font-size: 14px; }

/* ══ LOADING / SPINNER ══ */
.wtp-loading {
  display: flex; align-items: center; gap: 10px;
  color: #94a3b8; font-size: 13px; padding: 16px 0;
  font-family: 'Montserrat', sans-serif;
}
.wtp-spin {
  width: 18px; height: 18px;
  border: 2px solid #e2e8f0;
  border-top-color: #1a2540;
  border-radius: 50%;
  animation: wtp-spin .7s linear infinite;
  flex-shrink: 0; display: inline-block;
}
@keyframes wtp-spin { to { transform: rotate(360deg); } }

/* ══ RESPONSIVE ══ */
@media (max-width: 600px) {
  .wtp-stats { grid-template-columns: repeat(2, 1fr); }
  .wtp-hero-name { font-size: 22px; }
  .wtp-hero-flag { font-size: 44px; }
  .wtp-sh { font-size: 17px; }
}
