/* ══ Selbst-gehostete Schriften (DSGVO — keine Google-CDN) ══ */
@font-face {
  font-family: 'Saira Condensed'; font-style: normal; font-weight: 600;
  font-display: block; src: url('assets/fonts/saira-condensed-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Saira Condensed'; font-style: normal; font-weight: 700;
  font-display: block; src: url('assets/fonts/saira-condensed-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Saira Condensed'; font-style: normal; font-weight: 800;
  font-display: block; src: url('assets/fonts/saira-condensed-800.woff2') format('woff2');
}
/* Anton — kondensierte, ultra-fette Display-Schrift für Slide-Headlines & Mega-Zahlen */
@font-face {
  font-family: 'Anton'; font-style: normal; font-weight: 400;
  font-display: block; src: url('assets/fonts/anton-latin.woff2') format('woff2');
}
/* Inter — Variable-Font (400–900) für Slide-Body & Captions */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900;
  font-display: block; src: url('assets/fonts/inter-latin.woff2') format('woff2');
}

:root {
  --bg:          #0F172A;
  --surface:     #1e293b;
  --surface-2:   #334155;
  --accent:      #06B6D4;
  --accent-hover:#0891B2;
  --text:          #F1F5F9;
  --text-secondary:#CBD5E1;
  --text-muted:    #94A3B8;
  --success:     #10B981;
  --gold:        #F59E0B;
  --danger:      #EF4444;
  --border:      #334155;
  --radius:      10px;
  --font-display:'Saira Condensed', 'Segoe UI', system-ui, sans-serif;
  --font-body:   'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Slide-Typografie (Score90/Football90-Look) */
  --font-slide:  'Anton', 'Saira Condensed', 'Segoe UI', sans-serif;  /* Headlines + Mega-Zahlen */
  --font-slide-body: 'Inter', 'Segoe UI', system-ui, sans-serif;       /* Untertitel, Captions */

  /* Team-Akzente (für Head-to-Head-Seiten) */
  --bayern: #DC052D;
  --vfb:    #E32219;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 64px;
}

/* ── Header ── */
.app-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.brand { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: .5px; }
.brand-11   { color: var(--text); }
.brand-stats{ color: var(--accent); }
.brand-sub  {
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px;
  margin-left: 6px; vertical-align: middle;
}
.match-title { color: var(--text-muted); font-size: 14px; font-weight: 600; }

/* ── Tabs ── */
.tabs {
  display: flex; gap: 4px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky; top: 0; z-index: 10;
}
.tab {
  font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 1px;
  background: none; border: none; color: var(--text-muted);
  padding: 14px 20px; cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Panels ── */
.tab-panel { display: none; padding: 24px; }
.tab-panel.active { display: block; }

.section-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 12px; flex-wrap: wrap;
}
.cache-status { color: var(--text-muted); font-size: 13px; }
.cache-status.fresh { color: var(--success); }
.cache-status.cached { color: var(--gold); }

.btn-reload {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 8px 14px; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}
.btn-reload:hover { background: var(--border); transform: translateY(-1px); }
.btn-reload:active { transform: scale(.98); }
.btn-reload:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.section-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.counter-toggle {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: 13px; cursor: pointer; user-select: none;
}
.counter-toggle input { accent-color: var(--accent); cursor: pointer; }

.btn-export-all {
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  background: var(--accent); color: #0F172A;
  border: none; border-radius: 6px; padding: 8px 16px; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}
.btn-export-all:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-export-all:active { transform: scale(.98); }
.btn-export-all:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.btn-export-all:disabled { opacity: .6; cursor: progress; transform: none; }

/* ── Card-Controls (über der Card, NICHT im PNG-Export) ── */
.card-controls {
  width: 360px; display: flex; align-items: center; justify-content: space-between;
}
.reorder { display: flex; gap: 4px; }
.reorder button {
  font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 1;
  width: 30px; height: 30px; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 6px; cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.reorder button:hover:not(:disabled) { background: var(--border); transform: translateY(-1px); }
.reorder button:active:not(:disabled) { transform: scale(.95); }
.reorder button:disabled { opacity: .35; cursor: not-allowed; }
.reorder button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.sel-label {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: 13px; cursor: pointer; user-select: none;
}
.sel-label input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }

/* Abgewählte Cards optisch ausgrauen (Wrapper-Klasse, Card selbst bleibt exportierbar) */
.card-wrap.unselected .tiktok-card { opacity: .45; }

/* Slide-Counter im Card-Footer (wird mit-exportiert) */
.slide-counter { font-family: var(--font-display); font-weight: 700; letter-spacing: .5px; }

/* ── Card-Grid: Desktop 2-spaltig, Mobile 1-spaltig ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 360px);
  gap: 32px;
  justify-content: center;
}
@media (max-width: 800px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ── Card-Wrapper (Card + Export-Button) ── */
.card-wrap { display: flex; flex-direction: column; gap: 10px; align-items: center; }

/* ── TikTok-Card 3:4 (Display 360x480, Export 1080x1440 = scale 3) ── */
.tiktok-card {
  width: 360px;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,.3), 0 1px 3px rgba(6,182,212,.08);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  overflow: hidden; position: relative;
}
.card-headline {
  font-family: var(--font-display); font-weight: 800;
  font-size: 26px; line-height: 1.05; letter-spacing: .5px;
  text-transform: uppercase; margin-bottom: 4px;
}
.card-sub { color: var(--text-muted); font-size: 13px; margin-bottom: 18px; }
.accent { color: var(--accent); }
.gold { color: var(--gold); }

/* Head-to-Head Split */
.h2h { display: flex; flex: 1; gap: 12px; }
.h2h-side { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.h2h-vs {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--text-muted);
}
.team-logo { width: 64px; height: 64px; object-fit: contain; margin-bottom: 8px; }
.team-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.stat-row {
  display: flex; justify-content: space-between; width: 100%;
  font-size: 14px; padding: 5px 0; border-bottom: 1px solid var(--border);
}
.stat-row .label { color: var(--text-muted); }
.stat-row .val { font-family: var(--font-display); font-weight: 700; }

/* Duell: zwei große Zahlen */
.duel { display: flex; flex: 1; align-items: center; }
.duel-side { flex: 1; text-align: center; }
.duel-num {
  font-family: var(--font-display); font-weight: 800; font-size: 64px; line-height: 1;
  color: var(--accent);
}
.duel-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-top: 6px; }
.duel-team { color: var(--text-muted); font-size: 13px; }
.duel-mini { font-size: 13px; color: var(--text-muted); margin-top: 10px; }
.duel-mini b { color: var(--text); font-family: var(--font-display); }
.duel-divider { width: 1px; background: var(--border); align-self: stretch; margin: 0 4px; }

/* Big score (Endergebnis / Live) */
.bigscore { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bigscore-teams { display: flex; align-items: center; gap: 18px; }
.bigscore-num {
  font-family: var(--font-display); font-weight: 800; font-size: 96px; line-height: .9;
}
.bigscore-colon { font-family: var(--font-display); font-weight: 800; font-size: 64px; color: var(--text-muted); }
.bigscore-min { color: var(--gold); font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-top: 14px; }
.bigscore-status { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

/* Listen (Tore, Karten, Reise, Highlights) */
.list { flex: 1; overflow: hidden; }
.list-item {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 14px; padding: 7px 0; border-bottom: 1px solid var(--border);
}
.list-item .min { font-family: var(--font-display); font-weight: 700; color: var(--accent); min-width: 34px; }
.list-item .txt { flex: 1; }
.list-item .txt small { color: var(--text-muted); }
.list-empty { color: var(--text-muted); font-size: 14px; font-style: italic; padding: 8px 0; }

/* Vergleichsbalken (Performance) */
.cmp-row { margin: 10px 0; }
.cmp-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.cmp-label b { font-family: var(--font-display); }
.cmp-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--surface-2); }
.cmp-bar .home { background: var(--accent); }
.cmp-bar .away { background: var(--gold); }

/* Manuelle Eingabefelder (Prognose, Held, Tier-List) */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .5px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 6px; padding: 9px 10px;
  font-family: var(--font-body); font-size: 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field textarea { resize: none; }
.hero-input {
  font-family: var(--font-display) !important; font-weight: 800 !important;
  font-size: 28px !important; text-align: center; color: var(--accent) !important;
}

/* Tier-List */
.tier { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tier-badge {
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: #0F172A; flex-shrink: 0;
}
.tier-S { background: var(--gold); }
.tier-A { background: var(--success); }
.tier-B { background: var(--accent); }
.tier-C { background: var(--text-muted); }
.tier input { flex: 1; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 8px; font-size: 14px; }

/* Card-Footer Branding */
.card-foot {
  margin-top: auto; padding-top: 12px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--text-muted);
}
.card-foot .bm { font-family: var(--font-display); font-weight: 700; letter-spacing: .5px; }
.card-foot .bm span { color: var(--accent); }

/* Export-Button */
.btn-export {
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  background: var(--accent); color: #0F172A;
  border: none; border-radius: 6px; padding: 9px 16px; cursor: pointer; width: 360px;
  transition: transform .2s ease, background-color .2s ease;
}
.btn-export:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-export:active { transform: scale(.98); }
.btn-export:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* Loading-Spinner */
.loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 60px 0; width: 100%; grid-column: 1 / -1; }
.spinner {
  width: 38px; height: 38px; border: 4px solid var(--surface-2);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: var(--text-muted); font-size: 14px; }

.placeholder-card {
  grid-column: 1 / -1;
  background: var(--surface); border: 1px dashed var(--border);
  border-radius: var(--radius); padding: 40px 32px;
  max-width: 600px;
}
.ph-title {
  font-family: var(--font-display); font-weight: 800; font-size: 28px;
  color: var(--text); margin-bottom: 8px;
}
.ph-text { color: var(--accent); font-size: 16px; font-weight: 600; margin-bottom: 24px; }
.ph-endpoints { color: var(--text-muted); font-size: 13px; }
.ph-ep-label { font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }
.ph-endpoints ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ph-endpoints code {
  background: var(--bg); border: 1px solid var(--border); border-radius: 4px;
  padding: 4px 8px; font-size: 12px; color: var(--accent);
}

.error-box {
  grid-column: 1 / -1; background: var(--surface); border: 1px solid var(--danger);
  border-radius: var(--radius); padding: 20px; color: var(--text);
}
.error-box b { color: var(--danger); }
.note { grid-column: 1 / -1; color: var(--text-muted); font-size: 13px; padding: 8px 0; }

/* ── Content-Grid (Daten-Tabs) ───────────────────────────────── */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  align-items: start;
}

/* ── Data-Card ───────────────────────────────────────────────── */
.data-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-card.full-width { grid-column: 1 / -1; }

.data-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: 15px; letter-spacing: .8px; text-transform: uppercase;
  color: var(--text-muted);
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--border);
}

.no-data { color: var(--text-muted); font-size: 14px; font-style: italic; padding: 20px; }

/* ── Tabelle ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.data-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}
.data-table thead th {
  font-family: var(--font-display); font-weight: 700;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-muted); text-align: right;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table thead th:nth-child(1),
.data-table thead th:nth-child(2) { text-align: left; }

.data-table tbody tr {
  border-left: 3px solid var(--rc, transparent);
  transition: background-color .15s ease;
}
.data-table tbody tr:hover { background: rgba(255,255,255,.03); }
.data-table tbody tr + tr td { border-top: 1px solid rgba(51,65,85,.5); }

.data-table td { padding: 9px 10px; white-space: nowrap; }
.t-rank {
  font-family: var(--font-display); font-weight: 700;
  color: var(--text-muted); width: 32px; text-align: left;
}
.t-team {
  display: flex; align-items: center; gap: 8px;
  min-width: 140px; font-weight: 500;
}
.mini-logo {
  width: 20px; height: 20px; object-fit: contain; flex-shrink: 0;
}
.mini-logo-ph { width: 20px; height: 20px; flex-shrink: 0; }

.tn { text-align: right; font-variant-numeric: tabular-nums; }
.tn.pts {
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  color: var(--text);
}
.form-cell { min-width: 100px; }

/* Responsive: Spalten ausblenden */
@media (max-width: 640px) { .data-table .sm { display: none; } }
@media (max-width: 520px) { .data-table .md { display: none; } }

/* ── Form-Chips ──────────────────────────────────────────────── */
.fc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 4px;
  font-family: var(--font-display); font-weight: 800; font-size: 10px;
  letter-spacing: 0;
  margin-right: 2px;
}
.fw { background: var(--success);  color: #0F172A; }
.fd { background: var(--text-muted); color: #0F172A; }
.fl { background: var(--danger);   color: #fff; }

/* ── Topscorer-Liste ─────────────────────────────────────────── */
.scorer-list { display: flex; flex-direction: column; }

.scorer-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px;
  transition: background-color .15s ease;
}
.scorer-row:hover { background: rgba(255,255,255,.03); }
.scorer-row + .scorer-row { border-top: 1px solid rgba(51,65,85,.5); }

.scorer-rank {
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  color: var(--text-muted); width: 24px; text-align: center; flex-shrink: 0;
}
.scorer-info { flex: 1; min-width: 0; }
.scorer-name {
  display: block; font-weight: 600; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.scorer-club { display: block; color: var(--text-muted); font-size: 12px; margin-top: 1px; }

.scorer-nums { display: flex; gap: 10px; align-items: baseline; flex-shrink: 0; }
.scorer-goals {
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  color: var(--accent);
}
.scorer-assists {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--text-muted);
}
.scorer-assists small { font-size: 11px; font-family: var(--font-body); font-weight: 400; }

/* ── Fixture-Liste ───────────────────────────────────────────── */
.fixture-list { display: flex; flex-direction: column; }

.fx-round-header {
  font-family: var(--font-display); font-weight: 800;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent);
  padding: 10px 20px 6px;
  border-top: 1px solid var(--border);
}
.fx-round-header:first-child { border-top: none; }

.fx-row {
  display: grid;
  grid-template-columns: 42px 1fr 72px 1fr;
  align-items: center; gap: 8px;
  padding: 8px 20px;
  font-size: 13px;
  transition: background-color .15s ease;
}
.fx-row:hover { background: rgba(255,255,255,.03); }
.fx-row + .fx-row { border-top: 1px solid rgba(51,65,85,.4); }

.fx-date { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.fx-home { text-align: right; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-away { text-align: left;  font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-score {
  text-align: center;
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
  padding: 3px 6px; border-radius: 5px;
  white-space: nowrap;
}
.sc-ft   { background: rgba(16,185,129,.12); color: var(--success); }
.sc-ns   { background: rgba(148,163,184,.08); color: var(--text-muted); }
.sc-live { background: rgba(239,68,68,.15); color: var(--danger); }

/* ── Info-Banner ─────────────────────────────────────────────── */
.info-banner {
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.banner-icon { font-size: 28px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.banner-body { flex: 1; min-width: 0; }
.banner-headline {
  font-family: var(--font-display); font-weight: 800;
  font-size: 20px; letter-spacing: .5px; text-transform: uppercase;
  margin-bottom: 4px;
}
.banner-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 6px; }
.banner-detail { font-size: 14px; }

/* ══════════════════════════════════════════════════════════════ */
/* MATCH CENTER                                                     */
/* ══════════════════════════════════════════════════════════════ */
.mc-pickers { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 24px; }
.mc-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.mc-field select {
  min-width: 240px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px;
  font-family: var(--font-body); font-size: 14px; cursor: pointer;
}
.mc-field select:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

.mc-header {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px 24px; margin-bottom: 16px;
}
.mc-team { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.mc-logo { width: 72px; height: 72px; object-fit: contain; }
.mc-tname { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.mc-center { text-align: center; }
.mc-score { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; }
.mc-status { color: var(--gold); font-weight: 600; font-size: 13px; margin-top: 6px; }
.mc-meta { color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.mc-open-studio { display: block; margin: 0 0 24px; width: 100%; max-width: 320px; }

.mc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 20px; }
.mc-col-title { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--accent); margin-bottom: 8px; }
.mc-col-title small { color: var(--text-muted); font-weight: 400; }
.mc-lineup { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.mc-lineup li { display: flex; align-items: center; gap: 8px; }
.mc-lineup small { color: var(--text-muted); }
.mc-num { font-family: var(--font-display); font-weight: 700; color: var(--text-muted); min-width: 22px; text-align: center; }
.mc-pphoto { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.mc-pphoto-ph { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); flex-shrink: 0; }
.mc-inj { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.mc-inj small { color: var(--text-muted); }
@media (max-width: 640px) { .mc-two { grid-template-columns: 1fr; } .mc-score { font-size: 34px; } }

/* ══════════════════════════════════════════════════════════════ */
/* CONTENT STUDIO                                                   */
/* ══════════════════════════════════════════════════════════════ */
.studio-banner {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--text-muted);
  border-radius: var(--radius); padding: 14px 20px; margin-bottom: 24px;
}
.studio-banner.active { border-left-color: var(--accent); }
.studio-banner a { color: var(--accent); }

.studio-layout { display: grid; grid-template-columns: 40% 60%; gap: 24px; align-items: start; }
@media (max-width: 900px) { .studio-layout { grid-template-columns: 1fr; } }

.studio-gen { display: flex; flex-direction: column; gap: 16px; }
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 20px; }
.qa-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 10px; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  transition: transform .2s ease, background-color .2s ease;
}
.qa-btn span { font-size: 26px; }
.qa-btn:hover { background: var(--border); transform: translateY(-2px); }
.qa-btn:active { transform: scale(.98); }
.qa-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.studio-or { text-align: center; color: var(--text-muted); font-size: 13px; letter-spacing: 1px; }

.qa-chat { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.qa-chat textarea, .cap-area {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px;
  font-family: var(--font-body); font-size: 14px; resize: vertical;
}
.qa-chat textarea:focus, .cap-area:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.cap-area { margin-bottom: 12px; }
.chat-history { display: flex; flex-direction: column; gap: 6px; }
.chat-chip {
  text-align: left; background: none; border: 1px solid var(--border); color: var(--text-muted);
  border-radius: 6px; padding: 7px 10px; cursor: pointer; font-size: 12px;
  transition: background-color .2s ease, color .2s ease;
}
.chat-chip:hover { background: var(--surface-2); color: var(--text); }

.studio-slides { display: flex; flex-direction: column; gap: 16px; }
.studio-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.studio-empty {
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 50px 24px; text-align: center; color: var(--text-muted); font-size: 14px;
}
#studio-output { display: flex; flex-direction: column; gap: 20px; align-items: center; }

.slide-wrap { position: relative; width: 360px; }
.slide-tools {
  position: absolute; top: 8px; right: 8px; z-index: 5; display: flex; gap: 4px;
  opacity: 0; transition: opacity .2s ease;
}
.slide-wrap:hover .slide-tools { opacity: 1; }
.slide-tools button {
  width: 30px; height: 30px; border-radius: 6px; cursor: pointer; font-size: 14px;
  background: rgba(15,23,42,.85); color: var(--text); border: 1px solid var(--border);
}
.slide-tools button:hover { background: var(--surface-2); }
/* ══════════════════════════════════════════════════════════════ */
/* SLIDE-DESIGN-SYSTEM  (Score90 × ESPN: dunkel, dramatisch, daten)  */
/* ══════════════════════════════════════════════════════════════ */
.slide-card {
  width: 360px; cursor: grab; position: relative; overflow: hidden;
  padding: 30px 26px;
  background: linear-gradient(157deg, #0a0e1a 0%, #131a30 55%, #1a1f35 100%);
  border: 1px solid #1e2740;
  --gold: #F59E0B;
}
/* 4:5 Instagram-Portrait (470×590 on-screen → Export ×2 = 940×1180, pixelgenau) */
.slide-card.fmt-45 { width: 470px; aspect-ratio: 47 / 59; padding: 34px 30px; }
/* 4px Cyan-Gradient-Akzent oben (Brand-Top-Border) */
.slide-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 5;
  background: linear-gradient(90deg, #06B6D4, #22d3ee 50%, #06B6D4);
}
/* Diagonale Textur + Vignette für Tiefe */
.slide-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 10px),
    radial-gradient(ellipse at 50% 42%, transparent 52%, rgba(0,0,0,.6) 100%);
}
.slide-card > * { position: relative; z-index: 1; }
.slide-card .card-foot { z-index: 2; opacity: .6; }
.slide-card.editing { outline: 2px solid var(--accent); outline-offset: 2px; }
.slide-card.editing [data-ef] { background: rgba(6,182,212,.16); border-radius: 3px; cursor: text; }
.slide-card [data-ef]:focus { outline: 1px solid var(--accent); }
/* Export: alle Animationen anhalten, damit html2canvas sauber rendert */
.slide-card.is-exporting, .slide-card.is-exporting * { animation-play-state: paused !important; }

/* Geteilte Avatare (Foto oder Initialen-Fallback) */
.av-img { object-fit: cover; background: #1e293b; }
.av-ini {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #06B6D4, #0e7490); color: #fff;
  font-family: var(--font-display); font-weight: 800;
}
.tpl { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* ── TEMPLATE 1 · HOOK ── */
.tpl-hook { justify-content: center; align-items: center; text-align: center; gap: 10px; }
.tpl-hook-badge {
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); border: 1px solid rgba(6,182,212,.5);
  padding: 5px 14px; border-radius: 6px;
}
.tpl-hook-arena { position: relative; width: 100%; height: 150px; display: flex; align-items: center; justify-content: center; }
.tpl-hook-bglogo { position: absolute; width: 130px; height: 130px; object-fit: contain; opacity: .32; top: 50%; transform: translateY(-50%); }
.tpl-hook-bglogo.left { left: -8px; }
.tpl-hook-bglogo.right { right: -8px; }
.tpl-hook-vs {
  font-family: var(--font-display); font-weight: 800; font-size: 100px; line-height: 1; color: var(--accent);
  text-shadow: 0 0 24px rgba(6,182,212,.6); position: relative;
}
.tpl-hook-headline { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1.02; text-transform: uppercase; }
.tpl-hook-sub { color: var(--text-muted); font-size: 16px; }
.tpl-hook-teams { display: flex; gap: 8px; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-top: 4px; }
.tpl-hook-teams .dot { color: var(--accent); font-size: 9px; }

/* ── TEMPLATE 2 · COMPARE ── */
.tpl-cmp-pos { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); text-align: center; margin-bottom: 14px; }
.tpl-cmp-pos em { color: var(--text-muted); font-style: normal; }
.tpl-cmp-heads { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; margin-bottom: 16px; }
.tpl-cmp-side { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.tpl-cmp-photo { width: 78px; height: 78px; border-radius: 50%; border: 3px solid var(--accent); font-size: 26px; box-shadow: 0 0 18px rgba(6,182,212,.35); }
.tpl-cmp-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1; }
.tpl-cmp-team { color: var(--text-muted); font-size: 12px; display: flex; align-items: center; gap: 4px; justify-content: center; }
.tpl-cmp-teamlogo { width: 16px; height: 16px; object-fit: contain; }
.tpl-cmp-vs { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--text-muted); }
.tpl-cmp-stats { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.tpl-cmp-statrow { display: flex; flex-direction: column; gap: 3px; }
.tpl-cmp-stat-vals { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 4px; }
.tpl-cmp-stat-vals b { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--text-muted); text-align: center; }
.tpl-cmp-stat-vals b.win { color: var(--accent); }
.tpl-cmp-statlabel { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); text-align: center; }
.tpl-cmp-statbar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; }
.tpl-cmp-statbar .seg { height: 100%; background: #334155; }
.tpl-cmp-statbar .seg.win { background: var(--accent); }
.tpl-cmp-foot { text-align: center; color: var(--gold); font-family: var(--font-display); font-weight: 700; font-size: 18px; text-transform: uppercase; margin-top: 14px; letter-spacing: .5px; }

/* ── TEMPLATE 3 · LIST ── */
.tpl-list-title { font-family: var(--font-display); font-weight: 800; font-size: 26px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.tpl-list-items { flex: 1; display: flex; flex-direction: column; }
.tpl-list-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.tpl-list-row + .tpl-list-row { border-top: 1px solid #1e2740; }
.tpl-list-rank { font-family: var(--font-display); font-weight: 800; font-size: 20px; width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.tpl-list-rank.gold { background: var(--gold); color: #0a0e1a; }
.tpl-list-rank.cyan { color: var(--accent); border: 2px solid var(--accent); }
.tpl-list-rank.grey { color: var(--text-muted); border: 2px solid #334155; }
.tpl-list-photo { width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0; font-size: 16px; }
.tpl-list-name { flex: 1; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.tpl-list-val { text-align: right; display: flex; flex-direction: column; }
.tpl-list-val b { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--accent); }
.tpl-list-val small { color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }

/* ── TEMPLATE 4 · STAT_BIG ── */
.tpl-statbig { justify-content: center; align-items: center; text-align: center; }
.tpl-big-label { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }
.tpl-big-num { font-family: var(--font-display); font-weight: 800; font-size: 150px; line-height: .85; color: var(--accent); text-shadow: 0 0 36px rgba(6,182,212,.45); margin: 6px 0; }
.tpl-big-ctx { font-size: 18px; color: var(--text); max-width: 80%; }

/* ── TEMPLATE 5 · XI (Spielfeld) ── */
.tpl-xi-head { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 18px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.tpl-xi-head small { color: var(--text-muted); font-weight: 400; }
.tpl-xi-teamlogo { width: 26px; height: 26px; object-fit: contain; }
.tpl-xi-pitch {
  flex: 1; position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, #0e3320 0%, #0d2818 50%, #0e3320 100%);
  min-height: 320px;
}
.tpl-xi-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.tpl-xi-player { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; width: 56px; }
.tpl-xi-photo-wrap { position: relative; }
.tpl-xi-photo { width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff; font-size: 18px; }
.tpl-xi-clublogo { position: absolute; bottom: -2px; right: -4px; width: 18px; height: 18px; object-fit: contain; background: #fff; border-radius: 50%; padding: 1px; }
.tpl-xi-name { font-size: 9px; font-weight: 700; text-align: center; line-height: 1.05; text-shadow: 0 1px 3px rgba(0,0,0,.9); white-space: nowrap; }

/* ── TEMPLATE 6 · PREDICTION (Säulen) ── */
.tpl-pred-title { font-family: var(--font-display); font-weight: 800; font-size: 24px; text-transform: uppercase; text-align: center; margin-bottom: 6px; }
.tpl-pred-badge { align-self: center; font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #0a0e1a; background: var(--accent); padding: 3px 12px; border-radius: 5px; margin-bottom: 6px; }
.tpl-pred-badge.nodata { background: #334155; color: var(--text-muted); }
.tpl-pred-quote { font-size: 11px; color: var(--text-muted); letter-spacing: .3px; }
.tpl-pred-cols { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 14px; padding: 10px 4px; }
.tpl-pred-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; }
.tpl-pred-pct { font-family: var(--font-display); font-weight: 800; font-size: 38px; line-height: 1; }
.tpl-pred-pct small { font-size: 16px; }
.tpl-pred-colbar { width: 56px; border-radius: 7px 7px 0 0; min-height: 8px; background: #334155; }
.tpl-pred-col.fav .tpl-pred-colbar { background: linear-gradient(180deg, #22d3ee, #06B6D4); }
.tpl-pred-col.fav .tpl-pred-pct { color: var(--accent); }
.tpl-pred-col.remis .tpl-pred-colbar { background: linear-gradient(180deg, #fbbf24, #F59E0B); }
.tpl-pred-col.remis .tpl-pred-pct { color: var(--gold); }
.tpl-pred-col.out .tpl-pred-pct { color: var(--text-muted); }
.tpl-pred-lbl { font-size: 12px; font-weight: 600; text-align: center; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.tpl-pred-tor { text-align: center; color: var(--text-muted); font-size: 15px; margin-top: 12px; }
.tpl-pred-tor b { color: var(--text); font-family: var(--font-display); font-size: 18px; }

/* ── Slide 1 · Epischer Match-Header ── */
.tpl-pred-hero { position: relative; }
.tpl-pred-comp {
  font-family: var(--font-display); font-weight: 800; font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase; text-align: center;
  color: var(--gold); margin-bottom: 2px; line-height: 1.2;
}
.tpl-pred-matchup {
  position: relative; height: 138px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.tpl-pred-bglogo {
  position: absolute; top: 50%; width: 124px; height: 124px; object-fit: contain;
  opacity: .26; transform: translateY(-54%); pointer-events: none; z-index: 0;
}
.tpl-pred-bglogo.left { left: -6px; }
.tpl-pred-bglogo.right { right: -6px; }
.tpl-pred-vs {
  position: relative; z-index: 2;
  font-family: var(--font-display); font-weight: 800; font-size: 96px; line-height: .9;
  color: #22d3ee;
  text-shadow: 0 0 20px rgba(6,182,212,.7), 0 0 6px rgba(255,255,255,.85), 0 3px 0 rgba(0,0,0,.45);
  -webkit-text-stroke: 2px rgba(255,255,255,.16);
}
.tpl-pred-names {
  position: relative; z-index: 2; width: 100%;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: -4px;
}
.tpl-pred-tname {
  flex: 1 1 0; min-width: 0; max-width: 48%;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  color: #fff; text-transform: uppercase; line-height: 1.05;
  text-shadow: 0 2px 6px rgba(0,0,0,.55); overflow-wrap: break-word; hyphens: auto;
}
.tpl-pred-tname.left { text-align: left; }
.tpl-pred-tname.right { text-align: right; }
.tpl-pred-divider {
  height: 2px; margin: 6px 0 5px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
}
.tpl-pred-dt {
  text-align: center; font-family: var(--font-display); font-weight: 700;
  font-size: 12px; letter-spacing: 1px; color: var(--gold); margin-bottom: 6px;
}
.tpl-pred-q {
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
  text-transform: uppercase; text-align: center; color: #fff; margin-bottom: 5px;
}

/* ── TEMPLATE · DEEP-DIVE (Slide 2) ── */
.tpl-deepdive { gap: 12px; }
.tpl-dd-head { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: .5px; text-transform: uppercase; color: var(--gold); text-align: center; }
.tpl-dd-cards { flex: 1; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.tpl-dd-card {
  background: rgba(6,182,212,.06); border: 1px solid #1e2740; border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px;
}
.tpl-dd-tag { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.tpl-dd-value { font-family: var(--font-display); font-weight: 800; font-size: 46px; line-height: 1; color: var(--accent); text-shadow: 0 0 18px rgba(6,182,212,.3); }
.tpl-dd-ctx { font-size: 13px; line-height: 1.25; color: var(--text); }
.tpl-dd-ctx b { color: #fff; font-weight: 700; }

/* ── TEMPLATE · ANALYSE (Slide 2, Szenarien mit % + Begründung) ── */
.tpl-analyse { gap: 12px; }
.tpl-an-head { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); text-align: center; }
.tpl-an-cards { flex: 1; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.tpl-an-card {
  background: rgba(6,182,212,.06); border: 1px solid #1e2740; border-radius: 12px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.tpl-an-card:hover { background: rgba(6,182,212,.11); transform: translateY(-1px); }
.tpl-an-empty { align-items: center; justify-content: center; color: var(--text-muted); min-height: 70px; }
.tpl-an-top { display: flex; align-items: center; gap: 10px; }
.tpl-an-icon { font-size: 20px; flex-shrink: 0; }
.tpl-an-name { flex: 1; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .5px; text-transform: uppercase; color: #fff; }
.tpl-an-pct { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: .85; color: var(--accent); flex-shrink: 0; text-shadow: 0 0 18px rgba(6,182,212,.3); }
.tpl-an-pct small { font-size: 18px; }
.tpl-an-bar { height: 7px; border-radius: 4px; background: #1e2740; overflow: hidden; }
.tpl-an-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #22d3ee); border-radius: 4px; }
.tpl-an-reason { font-size: 12.5px; line-height: 1.3; color: var(--text-secondary); }
.tpl-an-foot { text-align: center; color: var(--text-muted); font-size: 11px; margin-top: auto; padding-top: 4px; }

/* Analyse Settings: Szenario-Liste mit Begründungs-Vorschau */
.set-an-list { max-height: 360px; overflow-y: auto; }
.set-an-check { align-items: flex-start; }
.set-an-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.set-an-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.set-an-name { font-size: 13px; font-weight: 600; color: #fff; }
.set-an-pct { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--accent); flex-shrink: 0; }
.set-an-reason { font-size: 11.5px; line-height: 1.25; color: var(--text-muted); }

/* ── TEMPLATE · VALUE-WETTSCHEIN (Slide 3) ── */
.tpl-valuebet { gap: 6px; }
.tpl-vb-head { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: .5px; text-transform: uppercase; color: var(--gold); text-align: center; }
.tpl-vb-badge {
  align-self: center; font-family: var(--font-display); font-weight: 700; font-size: 10px; letter-spacing: 1.5px;
  text-transform: uppercase; color: #0a0e1a; background: var(--gold); padding: 3px 12px; border-radius: 5px;
}
.tpl-vb-main { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 4px; }
.tpl-vb-main-tipp { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.05; text-transform: uppercase; color: #fff; }
.tpl-vb-score { color: var(--accent); }
.tpl-vb-main-quote { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--gold); flex-shrink: 0; }
.tpl-vb-divider { height: 1px; background: #1e2740; margin: 2px 0; }
.tpl-vb-kombi-label { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); }
.tpl-vb-kombi { display: flex; flex-direction: column; gap: 6px; }
.tpl-vb-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(255,255,255,.03); border: 1px solid #1e2740; border-radius: 8px; padding: 7px 12px; }
.tpl-vb-row-markt { font-size: 10px; letter-spacing: .5px; text-transform: uppercase; color: var(--text-muted); }
.tpl-vb-row-tipp { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff; line-height: 1.1; }
.tpl-vb-row-quote { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--accent); flex-shrink: 0; }
.tpl-vb-total { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding: 8px 12px; background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.35); border-radius: 8px; }
.tpl-vb-total span { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.tpl-vb-total b { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1; color: var(--gold); }
.tpl-vb-disclaimer { font-size: 9px; line-height: 1.3; color: var(--text-muted); text-align: center; margin-top: 6px; }

/* ── Settings-Panel (unter Deep-Dive / Value-Bet) ── */
.slide-settings { width: 360px; margin: 8px auto 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.set-title { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.set-title small { color: var(--text-muted); font-weight: 400; font-family: var(--font-body); letter-spacing: 0; text-transform: none; margin-left: 6px; }
.set-list { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.set-check { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 12px; }
.set-check:hover { background: var(--bg); }
.set-check.disabled { opacity: .4; cursor: not-allowed; }
.set-check input { accent-color: var(--accent); flex-shrink: 0; }
.set-tag { font-family: var(--font-display); font-weight: 700; font-size: 9px; letter-spacing: .5px; text-transform: uppercase; color: var(--accent); background: rgba(6,182,212,.12); padding: 2px 6px; border-radius: 4px; flex-shrink: 0; }
.set-txt { color: var(--text); line-height: 1.2; }
.set-txt b { color: var(--accent); }
.set-levels { display: flex; gap: 6px; margin-bottom: 10px; }
.set-levels button { flex: 1; background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); border-radius: 6px; padding: 7px 4px; font-family: var(--font-body); font-size: 12px; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.set-levels button:hover { color: var(--text); }
.set-levels button.active { background: var(--gold); color: #0a0e1a; font-weight: 700; border-color: var(--gold); }
.set-range { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.set-range b { color: var(--text); }
.set-regen { width: 100%; }
.slide-tools button.active { color: var(--accent); }
.set-levels-wrap { flex-wrap: wrap; }
.set-input { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 7px 8px; color: var(--text); font-size: 13px; font-family: var(--font-body); }
.set-input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.set-order { display: flex; flex-direction: column; gap: 4px; }
.set-order-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 8px; background: var(--bg); border-radius: 6px; font-size: 12px; }
.set-order-lbl { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-order-btns { display: flex; gap: 4px; flex-shrink: 0; }
.set-order-btns button { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 4px; width: 24px; height: 22px; cursor: pointer; font-size: 10px; }
.set-order-btns button:disabled { opacity: .35; cursor: not-allowed; }

/* ── Custom Dropdown (überall) ── */
.cdd {
  position: absolute; z-index: 1000; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.45), 0 2px 8px rgba(6,182,212,.14);
  overflow: hidden; max-height: 320px; display: flex; flex-direction: column;
  opacity: 0; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease;
}
.cdd.open { opacity: 1; transform: translateY(0); }
.cdd-search { padding: 8px; border-bottom: 1px solid var(--border); }
.cdd-search input { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; color: var(--text); font-size: 13px; font-family: var(--font-body); }
.cdd-search input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.cdd-list { overflow-y: auto; }
.cdd-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; background: none; border: none; text-align: left; padding: 9px 12px; color: var(--text); font-size: 13px; cursor: pointer; font-family: var(--font-body); }
.cdd-opt:hover { background: var(--bg); }
.cdd-opt.checked { color: var(--accent); }
.cdd-opt.disabled { opacity: .4; cursor: not-allowed; }
.cdd-opt-lbl { line-height: 1.2; }
.cdd-check { color: var(--accent); font-weight: 700; }

/* ── TEMPLATE · MEIN TIPP (Slide 3) ── */
.tpl-mytip { gap: 10px; overflow: hidden; }
.mytip-head { text-align: center; }
.mytip-tag { font-family: var(--font-display); font-weight: 800; font-size: 23px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.mytip-sub { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.mytip-result { display: flex; align-items: center; justify-content: center; gap: 0;
  background: rgba(6,182,212,.07); border: 1.5px solid var(--accent); border-radius: 16px; padding: 8px 12px; }
.mytip-team { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 0 0 80px; }
.mytip-team-logo { width: 52px; height: 52px; object-fit: contain; }
.mytip-team-ph { background: #1e2740; border-radius: 50%; }
.mytip-team-name { font-size: 13px; font-weight: 600; color: var(--text-secondary); text-align: center; line-height: 1.1; }
.mytip-team-loc { font-family: var(--font-display); font-weight: 700; font-size: 9px; letter-spacing: 1px; color: var(--text-muted); text-transform: uppercase; }
.mytip-score { flex: 0 0 auto; min-width: 110px; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  border-radius: 10px; transition: background-color .2s ease; padding: 2px 8px; }
.mytip-score:hover { background: rgba(6,182,212,.10); }
.mytip-score-n { font-family: var(--font-display); font-weight: 800; font-size: 84px; line-height: .82; color: var(--gold); min-width: 52px; text-align: center; }
.mytip-score-colon { font-family: var(--font-display); font-weight: 800; font-size: 62px; line-height: .82; color: var(--gold); }
.mytip-score-in { width: 64px; font-family: var(--font-display); font-weight: 800; font-size: 56px; text-align: center;
  background: #0F172A; color: var(--gold); border: 2px solid var(--accent); border-radius: 10px; padding: 4px; }
.mytip-cards { display: flex; flex-direction: column; gap: 7px; }
.mytip-card { display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.03); border: 1px solid #1e2740; border-radius: 10px; padding: 4px 8px; }
/* Label-Bereich (links) — öffnet Typ-Dropdown */
.mytip-card-label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; cursor: pointer;
  border-radius: 8px; padding: 6px 8px; transition: background-color .2s ease; }
.mytip-card-label:hover { background: rgba(6,182,212,.10); }
.mytip-card-icon { font-size: 22px; width: 26px; text-align: center; flex-shrink: 0; }
.mytip-card-lbl { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--text-secondary); }
.mytip-card-edit { font-size: 12px; color: var(--text-muted); opacity: .45; transition: opacity .2s ease; }
.mytip-card-label:hover .mytip-card-edit { opacity: 1; color: var(--accent); }
/* Wert-Bereich (rechts) — öffnet Optionen */
.mytip-card-val { flex-shrink: 0; cursor: pointer; border-radius: 8px; padding: 6px 8px; transition: background-color .2s ease; }
.mytip-card-val:hover { background: rgba(6,182,212,.10); }
.mytip-card-vtxt { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--accent); }
.mytip-card-player { display: flex; align-items: center; gap: 8px; }
.mytip-card-pname { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--accent); }
.mytip-card-foto { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; }
.mytip-card-foto.av-img { object-fit: cover; }
.mytip-card-foto.av-ini { display: inline-flex; align-items: center; justify-content: center;
  background: #1e2740; color: var(--text-secondary); font-size: 12px; font-weight: 700; }
.mytip-foot { text-align: center; color: var(--text-muted); font-size: 11px; margin-top: auto; padding-top: 4px; }

/* Mein-Tipp Settings-Panel */
.set-mytip-score { display: flex; align-items: center; gap: 10px; }
.set-score { width: 70px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.set-score-colon { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--text-secondary); }
.set-mytip-slots { display: flex; flex-direction: column; gap: 12px; }
.set-mytip-slot { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: rgba(255,255,255,.02); border: 1px solid #1e2740; border-radius: 8px; }
.set-mytip-typ { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  background: #0F172A; border: 1px solid #1e2740; border-radius: 6px; padding: 8px 10px; color: #fff; font-size: 13px; cursor: pointer; }
.set-mytip-typ:hover { border-color: var(--accent); }
.set-mytip-slotn { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px;
  background: var(--accent); color: #0F172A; border-radius: 4px; font-weight: 800; font-size: 11px; flex-shrink: 0; }
.set-mytip-caret { margin-left: auto; color: var(--text-muted); }
.set-mytip-player { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  background: #0F172A; border: 1px solid #1e2740; border-radius: 6px; padding: 6px 10px; color: #fff; font-size: 13px; cursor: pointer; }
.set-mytip-player:hover { border-color: var(--accent); }
.set-mytip-player img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.set-mytip-ph { width: 28px; height: 28px; border-radius: 50%; background: #1e2740; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.set-mytip-pname { flex: 1; }

/* ── Prediction-Erweiterungen (Slide 1 Settings) ── */
.tpl-pred-info { text-align: center; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.tpl-pred-extras { display: flex; flex-direction: column; gap: 1px; margin-top: 4px; }
.tpl-pred-extra { font-size: 10px; color: var(--text-muted); }
.tpl-pred-col .tpl-pred-extra { text-align: center; }
/* Balken horizontal */
.tpl-pred-hbars { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 8px 0; }
.tpl-pred-hrow-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.tpl-pred-hlbl { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--text); }
.tpl-pred-hpct { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--text-muted); }
.tpl-pred-hrow.fav .tpl-pred-hpct { color: var(--accent); }
.tpl-pred-hrow.remis .tpl-pred-hpct { color: var(--gold); }
.tpl-pred-htrack { height: 14px; border-radius: 7px; background: #334155; overflow: hidden; }
.tpl-pred-htrack span { display: block; height: 100%; background: #475569; }
.tpl-pred-hrow.fav .tpl-pred-htrack span { background: linear-gradient(90deg, #22d3ee, #06B6D4); }
.tpl-pred-hrow.remis .tpl-pred-htrack span { background: linear-gradient(90deg, #fbbf24, #F59E0B); }
.tpl-pred-hextra { display: flex; gap: 10px; margin-top: 4px; }
.tpl-pred-hextra .tpl-pred-extra { font-size: 11px; }
/* Torte */
.tpl-pred-torte { flex: 1; display: flex; align-items: center; justify-content: center; gap: 18px; }
.tpl-pred-pie { width: 150px; height: 150px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 24px rgba(6,182,212,.2); }
.tpl-pred-legend { display: flex; flex-direction: column; gap: 12px; }
.tpl-pred-leg { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 8px; }
.tpl-pred-leg-dot { width: 12px; height: 12px; border-radius: 3px; background: #475569; }
.tpl-pred-leg.fav .tpl-pred-leg-dot { background: var(--accent); }
.tpl-pred-leg.remis .tpl-pred-leg-dot { background: var(--gold); }
.tpl-pred-leg-lbl { font-size: 14px; font-weight: 600; color: var(--text); }
.tpl-pred-leg-pct { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--text); }
.tpl-pred-leg.fav .tpl-pred-leg-pct { color: var(--accent); }
.tpl-pred-leg.remis .tpl-pred-leg-pct { color: var(--gold); }
.tpl-pred-leg-extra { grid-column: 2 / 4; display: flex; gap: 8px; }

/* ── CTA Hintergrund-Varianten ── */
.tpl-cta.cta-bg-dunkel { background: #06080f; border-radius: 12px; }
.tpl-cta.cta-bg-team { background: linear-gradient(135deg, rgba(6,182,212,.18), rgba(245,158,11,.14)); border-radius: 12px; }

/* ── Kickbase: Banner, Modal, Badge ── */
.kb-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; padding: 10px 16px; border-radius: 10px; background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.35); font-size: 14px; color: var(--text); }
.kb-banner.connected { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.35); }
.kb-banner button { background: var(--gold); color: #0a0e1a; border: none; border-radius: 6px; padding: 7px 14px; font-weight: 700; cursor: pointer; font-family: var(--font-body); transition: transform .2s ease, background-color .2s ease; }
.kb-banner.connected button { background: var(--surface-2); color: var(--text); }
.kb-banner button:hover { transform: translateY(-1px); }
.kb-modal-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.kb-modal { width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.kb-modal-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-weight: 800; font-size: 20px; margin-bottom: 10px; }
.kb-modal-x { background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; }
.kb-modal-x:hover { color: var(--text); }
.kb-modal-hint { font-size: 12px; color: var(--text-muted); line-height: 1.4; margin-bottom: 16px; }
.kb-modal input { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; color: var(--text); font-size: 14px; margin-bottom: 10px; font-family: var(--font-body); }
.kb-modal input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.kb-modal-err { color: var(--danger); font-size: 13px; margin-bottom: 10px; }
.kb-modal-submit { width: 100%; background: var(--accent); color: #0a0e1a; border: none; border-radius: 8px; padding: 11px; font-weight: 700; font-size: 15px; cursor: pointer; font-family: var(--font-body); transition: background-color .2s ease; }
.kb-modal-submit:hover { background: var(--accent-hover); }
.kb-modal-submit:disabled { opacity: .6; cursor: not-allowed; }
.builder-stattype button.kb-disabled { opacity: .45; cursor: not-allowed; }
.kb-badge { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 3px; background: var(--gold); color: #0a0e1a; font-family: var(--font-display); font-weight: 800; font-size: 9px; vertical-align: middle; }

/* ── TEMPLATE 7 · CTA ── */
.tpl-cta { justify-content: center; align-items: center; text-align: center; gap: 12px; }
.tpl-cta-head { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1.05; text-transform: uppercase; color: var(--gold); }
.tpl-cta-icon { font-size: 50px; animation: ctaPulse 1.6s ease-in-out infinite; }
@keyframes ctaPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.14); } }
.tpl-cta-sub { font-size: 19px; color: var(--accent); font-weight: 700; }
.tpl-cta-poll { display: flex; gap: 10px; margin-top: 6px; }
.tpl-cta-poll .poll { font-family: var(--font-display); font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 8px; text-transform: uppercase; }
.tpl-cta-poll .poll.a { background: var(--accent); color: #0a0e1a; }
.tpl-cta-poll .poll.b { background: transparent; color: var(--text); border: 2px solid var(--accent); }
.tpl-cta-brand { color: var(--text-muted); font-size: 13px; margin-top: 6px; letter-spacing: 1px; }

/* ══════════════════════════════════════════════════════════════ */
/* MANUELLER BUILDER (XI + Compare-Picker)                          */
/* ══════════════════════════════════════════════════════════════ */
.studio-builder { margin-bottom: 16px; }
.studio-builder .data-title { display: flex; align-items: center; justify-content: space-between; }
.builder-close { background: none; border: none; color: var(--text-muted); font-size: 16px; cursor: pointer; line-height: 1; }
.builder-close:hover { color: var(--text); }
.builder-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 20px; }
.builder-section { display: flex; flex-direction: column; gap: 10px; }
.builder-h { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.builder-duel { display: flex; flex-direction: column; gap: 7px; padding: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
.builder-duel-label { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .5px; color: var(--text-muted); }
.builder-duel-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.builder-vs { font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--text-muted); }
.studio-builder select {
  width: 100%; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 6px; padding: 7px 8px;
  font-family: var(--font-body); font-size: 13px; cursor: pointer;
}
.studio-builder select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.builder-stattype, .builder-formations { display: flex; gap: 6px; }
.builder-stattype button, .builder-formations button {
  flex: 1; background: var(--surface-2); color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 6px; padding: 6px 4px;
  font-family: var(--font-body); font-size: 12px; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.builder-stattype button:hover, .builder-formations button:hover { color: var(--text); }
.builder-stattype button.active, .builder-formations button.active {
  background: var(--accent); color: #0a0e1a; font-weight: 700; border-color: var(--accent);
}
.builder-xi-preview { display: flex; justify-content: center; padding: 4px 0; }
.builder-pitchcard { width: 260px !important; padding: 16px 14px !important; cursor: default; }
.builder-pitchcard .tpl-xi-name { font-size: 8px; }
.builder-pitchcard .tpl-xi-photo { width: 30px; height: 30px; font-size: 11px; }
.builder-pitchcard .cxxi-player { width: 52px; gap: 2px; }
.builder-pitchcard .cxxi-photo { width: 34px; height: 34px; border-width: 2px; font-size: 11px; }
.builder-pitchcard .cxxi-clublogo { width: 15px; height: 15px; bottom: -2px; right: -3px; }
.builder-pitchcard .cxxi-name { font-size: 9px; max-width: 56px; }
.builder-pitchcard .cxxi-name.md { font-size: 8px; }
.builder-pitchcard .cxxi-name.sm { font-size: 7px; }
.builder-pitchcard .cxxi-head-t, .builder-pitchcard .cxxi-head-f { font-size: 13px; }
.builder-pitchcard .cxxi-teamlogo { width: 20px; height: 20px; }
.builder-xi-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.builder-slot { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); }
.builder-slot > span { width: 32px; flex-shrink: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: .5px; }
.builder-go { width: 100%; margin-top: 4px; }
.ll-info-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ll-info-chip { font-size: 11px; padding: 3px 8px; border-radius: 6px; background: rgba(6,182,212,.12); border: 1px solid rgba(6,182,212,.25); color: var(--text-muted); }
.ll-info-chip b { color: var(--accent); font-weight: 600; }
.builder-hint { font-size: 12.5px; line-height: 1.45; color: var(--text-secondary);
  background: rgba(6,182,212,.07); border: 1px solid rgba(6,182,212,.25); border-radius: 10px; padding: 10px 12px; }
.builder-hint b { color: var(--accent); font-weight: 700; }
.kb-status { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; vertical-align: middle; margin-left: 6px; letter-spacing: .3px; }
.kb-status.ok   { background: rgba(16,185,129,.14); color: var(--success); border: 1px solid rgba(16,185,129,.4); }
.kb-status.idle { background: rgba(148,163,184,.12); color: var(--text-muted); border: 1px solid rgba(148,163,184,.3); }
.kb-status.warn { background: rgba(245,158,11,.14); color: var(--gold); border: 1px solid rgba(245,158,11,.45); cursor: pointer; }
.kb-status.warn:hover { background: rgba(245,158,11,.24); }
@media (max-width: 520px) { .builder-xi-slots { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════════ */
/* COMBINED-XI-POST · 5 Slides · 4:5 (470×590 → Export 940×1180)    */
/* ══════════════════════════════════════════════════════════════ */
.tpl-cx { gap: 0; font-family: var(--font-slide-body); }

/* ── Wiederverwendbare Pills (Score90-Look, elfstats-Farben) ── */
.elf-pill { display: inline-block; font-family: var(--font-slide); font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; border-radius: 5px; line-height: 1.15;
  font-size: 17px; padding: 8px 22px; }
.elf-pill--orange  { background: var(--gold);   color: #0a0e1a; }
.elf-pill--cyan    { background: var(--accent); color: #0a0e1a; }
.elf-pill--outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); padding: 6px 20px; }

/* Slide-Token: Foto OHNE Ring, dramatischer Drop-Shadow (Cutout-Ersatz statt remove.bg) */
.cx-cutout { border: none !important; border-radius: 50%; object-fit: cover; background: #1e293b;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.65)); }

/* ── Slide 1 · Cover ── */
.tpl-cxcover { position: relative; align-items: center; justify-content: center; text-align: center; gap: 16px; overflow: hidden; }
/* subtiler Vereinsfarben-Glow oben (Heim links / Gast rechts) */
.tpl-cxcover::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 62% 48% at 10% 6%, var(--glow-a, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 62% 48% at 90% 6%, var(--glow-b, transparent) 0%, transparent 60%);
}
.cxcover-edge { position: absolute; top: 50%; transform: translateY(-50%); width: 300px; height: 300px;
  object-fit: contain; opacity: .13; z-index: 0; pointer-events: none; filter: drop-shadow(0 4px 18px rgba(0,0,0,.5)); }
.cxcover-edge.l { left: -118px; }
.cxcover-edge.r { right: -118px; }
.cxcover-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.cxcover-matchup { display: flex; flex-direction: column; align-items: center; gap: 0; }
.cxcover-mt { font-family: var(--font-slide); font-weight: 800; font-size: 62px; line-height: .9;
  text-transform: uppercase; color: #fff; letter-spacing: .5px; text-shadow: 0 0 26px rgba(6,182,212,.3), 0 4px 0 rgba(0,0,0,.35); }
.cxcover-vs { font-family: var(--font-slide); font-weight: 800; font-size: 24px; color: var(--accent); margin: 2px 0; letter-spacing: 1px; }
.cxcover-tagline { font-family: var(--font-slide-body); font-size: 18px; color: var(--text-secondary); max-width: 88%; }
.cxcover-clubline { font-family: var(--font-slide-body); font-weight: 600; font-size: 13px; letter-spacing: .4px; color: var(--text-muted); }

/* ── Slide 2 · Aufstellung ── */
.tpl-cxxi { position: relative; gap: 14px; overflow: hidden; }
/* große, halb-angeschnittene Vereinslogos als Atmosphäre */
.cxxi-edge { position: absolute; top: 46%; transform: translateY(-50%); width: 250px; height: 250px;
  object-fit: contain; opacity: .08; z-index: 0; pointer-events: none; }
.cxxi-edge.l { left: -110px; }
.cxxi-edge.r { right: -110px; }
.cxxi-head { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 12px; }
.cxxi-teamlogo { width: 32px; height: 32px; object-fit: contain; }
.cxxi-headpill { display: flex; align-items: baseline; gap: 8px; }
.cxxi-head-t { font-family: var(--font-slide); font-weight: 800; font-size: 22px; text-transform: uppercase; color: var(--gold); letter-spacing: .5px; }
.cxxi-head-f { font-family: var(--font-slide); font-weight: 800; font-size: 22px; color: var(--accent); }
.cxxi-pitch {
  position: relative; z-index: 1; flex: 1; border-radius: 14px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 42%, #16243f 0%, #0d1526 75%);
  border: 3px solid rgba(6,182,212,.55);
  box-shadow: inset 0 0 70px rgba(0,0,0,.45), 0 0 26px rgba(6,182,212,.22);
}
.cxxi-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.cxxi-player { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; width: 92px; }
.cxxi-photo-wrap { position: relative; }
.cxxi-photo { width: 62px; height: 62px; font-size: 20px; }
.cxxi-club { display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92); border-radius: 20px; padding: 2px; box-shadow: 0 1px 5px rgba(0,0,0,.5); }
.cxxi-clublogo { width: 20px; height: 20px; object-fit: contain; }
.cxxi-name {
  font-family: var(--font-slide); font-weight: 800; font-size: 15px; line-height: 1.0; text-align: center;
  letter-spacing: .3px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.95), 0 0 8px rgba(0,0,0,.7);
  max-width: 104px; overflow-wrap: break-word;
}
.cxxi-name.md { font-size: 13px; }
.cxxi-name.sm { font-size: 11px; }

/* ── Slide 3 · Schlüsselspieler-Duell (Mega-Stats statt Balken) ── */
.tpl-cxkd { gap: 14px; }
.cxkd-titlewrap { text-align: center; }
.cxkd-heads { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 10px; margin: 2px 0; }
.cxkd-side { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.cxkd-photo { width: 104px; height: 104px; font-size: 34px; }
.cxkd-name { font-family: var(--font-slide); font-weight: 800; font-size: 24px; line-height: .98; color: #fff; letter-spacing: .3px; }
.cxkd-team { color: var(--text-muted); font-size: 13px; display: flex; align-items: center; gap: 5px; justify-content: center; font-family: var(--font-slide-body); }
.cxkd-teamlogo { width: 19px; height: 19px; object-fit: contain; }
.cxkd-mv { font-size: 15px; padding: 4px 14px; margin-top: 2px; }
.cxkd-vs { font-family: var(--font-slide); font-weight: 800; font-size: 28px; color: var(--text-muted); align-self: center; }
.cxkd-stats { display: flex; flex-direction: column; gap: 18px; margin-top: 6px; }
.cxkd-mega { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.cxkd-mega-val { font-family: var(--font-slide); font-weight: 800; font-size: 58px; line-height: .85;
  color: #fff; text-align: center; text-shadow: 0 4px 18px rgba(0,0,0,.55); }
.cxkd-mega-val.win { color: var(--accent); text-shadow: 0 0 26px rgba(6,182,212,.5); }
.cxkd-mega-lbl { font-family: var(--font-slide); font-weight: 800; font-size: 14px; letter-spacing: 1.5px;
  text-transform: uppercase; color: #0a0e1a; background: var(--gold); padding: 5px 14px; border-radius: 4px; white-space: nowrap; }
.cxkd-mega-lbl .kb-badge { background: #0a0e1a; color: var(--gold); border-radius: 3px; padding: 0 4px; margin-right: 3px; }
.cxkd-footwrap { text-align: center; margin-top: auto; }

/* ── Slide 4 · Knappe Duelle ── */
.tpl-cxcl { gap: 10px; }
.cxcl-titlewrap { text-align: center; }
.cxcl-sub { font-family: var(--font-slide-body); font-size: 15px; color: var(--text-secondary); text-align: center; margin: 4px 0 6px; }
.cxcl-list { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.cxcl-duel { display: grid; grid-template-columns: 60px 1fr 1.5fr 1fr 60px; align-items: center; gap: 8px;
  background: #11192e; border: 1px solid rgba(6,182,212,.22); border-radius: 14px; padding: 14px 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.cxcl-photo { width: 60px; height: 60px; font-size: 18px; }
.cxcl-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cxcl-info.l { align-items: flex-start; text-align: left; }
.cxcl-info.r { align-items: flex-end; text-align: right; }
.cxcl-name { font-family: var(--font-slide); font-weight: 800; font-size: 16px; color: #fff; line-height: 1.0; letter-spacing: .2px; }
.cxcl-team { font-family: var(--font-slide-body); font-size: 11px; color: var(--text-muted); }
.cxcl-mid { display: flex; flex-direction: column; gap: 5px; }
.cxcl-pcts { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.cxcl-pct { font-family: var(--font-slide); font-weight: 800; font-size: 34px; line-height: .85; }
.cxcl-pct.l { color: var(--accent); }
.cxcl-pct.r { color: var(--text-muted); }
.cxcl-edited { font-size: 12px; color: var(--gold); }
.cxcl-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #1e2740; }
.cxcl-seg.l { background: linear-gradient(90deg, #06B6D4, #22d3ee); }
.cxcl-seg.r { background: #475569; }

/* ── Slide 5 · CTA ── */
.tpl-cxcta { align-items: center; justify-content: center; text-align: center; gap: 18px; }
.cxcta-head { font-family: var(--font-slide); font-weight: 800; font-size: 46px; line-height: 1.0; text-transform: uppercase; color: #fff; text-shadow: 0 0 26px rgba(6,182,212,.25); max-width: 92%; }
.cxcta-icon { font-size: 60px; }
.cxcta-poll { display: flex; gap: 14px; margin-top: 6px; }
.cxcta-poll .poll { font-family: var(--font-slide); font-weight: 800; font-size: 18px; padding: 13px 24px; border-radius: 10px; text-transform: uppercase; letter-spacing: .5px; }
.cxcta-poll .poll.a { background: var(--accent); color: #0a0e1a; }
.cxcta-poll .poll.b { background: transparent; color: #fff; border: 2px solid var(--accent); }
.cxcta-url { font-family: var(--font-slide-body); color: var(--text-muted); font-size: 15px; letter-spacing: 1px; margin-top: 4px; }
.cxcta-arrows { display: flex; gap: 6px; margin-top: 6px; color: var(--accent); font-family: var(--font-slide); font-weight: 800; font-size: 30px; letter-spacing: 2px; }
.cxcta-arrows span { animation: cxArrow 1.2s ease-in-out infinite; }
.cxcta-arrows span:nth-child(2) { animation-delay: .15s; }
.cxcta-arrows span:nth-child(3) { animation-delay: .3s; }
@keyframes cxArrow { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
.slide-card.is-exporting .cxcta-arrows span { opacity: .8; animation: none; }

/* ── cx Editor-Panels (Dropdowns · Slider · Begründungen) ── */
.set-cx-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; margin-bottom: 8px; }
.set-cx-sel { width: 100%; min-width: 0; background: #0F172A; border: 1px solid #1e2740; border-radius: 6px; color: var(--text); font-size: 12px; padding: 7px 8px; cursor: pointer; }
.set-cx-sel:focus { outline: none; border-color: var(--accent); }
.set-cx-vs { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--text-muted); }
.set-cx-sugg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted);
  background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.3); border-radius: 8px; padding: 7px 9px; margin: 8px 0; }
.set-cx-sugg b { color: #fff; }
.set-cx-sugg button { font-size: 11px; padding: 4px 10px; border-radius: 6px; background: var(--gold); color: #0a0e1a; border: none; font-weight: 700; cursor: pointer; }
.set-cx-h2h { width: 100%; margin-top: 6px; padding: 8px; border-radius: 8px; background: rgba(6,182,212,.12);
  border: 1px solid rgba(6,182,212,.4); color: var(--accent); font-weight: 700; font-size: 13px; cursor: pointer; }
.set-cx-h2h:hover { background: rgba(6,182,212,.2); }
.set-cl-slots { display: flex; flex-direction: column; gap: 16px; }
.set-cl-slot { display: flex; flex-direction: column; gap: 5px; padding: 10px; background: rgba(255,255,255,.02); border: 1px solid #1e2740; border-radius: 10px; }
.set-cl-h { font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: 1px; color: var(--accent); }
.set-cl-names { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-muted); }
.set-cl-names b { color: #fff; font-weight: 700; font-size: 13px; }
.set-cl-range { width: 100%; accent-color: var(--accent); cursor: pointer; }
.set-cl-edited { font-size: 11px; color: var(--gold); }

/* ── Head-to-Head-Panel (nur Editor) ── */
.export-hidden { display: none !important; }
.h2h-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(5,8,16,.6); display: flex; justify-content: flex-end; }
.h2h-panel { width: 480px; max-width: 94vw; height: 100%; overflow-y: auto; background: #0f172a; border-left: 1px solid #1e2740;
  box-shadow: -12px 0 32px rgba(0,0,0,.5); animation: h2hIn .2s ease; }
@keyframes h2hIn { from { transform: translateX(30px); opacity: .4; } to { transform: none; opacity: 1; } }
.h2h-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: #131a30; border-bottom: 1px solid #1e2740;
  font-family: var(--font-display); font-weight: 800; letter-spacing: 1px; color: #fff; }
.h2h-close { background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; }
.h2h-close:hover { color: #fff; }
.h2h-players { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid #1e2740; }
.h2h-pl { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.h2h-photo { width: 70px; height: 70px; border-radius: 50%; border: 3px solid var(--accent); font-size: 22px; object-fit: cover; background: #1e293b; }
.h2h-pname { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #fff; line-height: 1.05; }
.h2h-pteam { font-size: 12px; color: var(--text-muted); }
.h2h-vs { font-family: var(--font-display); font-weight: 800; color: var(--text-muted); }
.h2h-body { padding: 14px 20px 28px; }
.h2h-cat { margin-bottom: 16px; }
.h2h-cat-h { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: 1px; color: var(--gold); margin-bottom: 8px; }
.h2h-cat-h small { color: var(--text-muted); font-weight: 400; letter-spacing: 0; }
.h2h-stat { display: grid; grid-template-columns: 92px 42px 1fr 42px 44px; align-items: center; gap: 6px; font-size: 12px; margin-bottom: 7px; }
.h2h-stat-lbl { color: var(--text-muted); }
.h2h-val { font-family: var(--font-display); font-weight: 700; color: var(--text-muted); text-align: center; }
.h2h-val.win { color: var(--accent); }
.h2h-track { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: #1e2740; }
.h2h-seg.a { background: #2DD4D4; }
.h2h-seg.b { background: #475569; }
.h2h-winner { font-size: 10px; font-weight: 700; color: var(--text-muted); text-align: right; }
.h2h-composite .h2h-comp-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.h2h-composite b { font-family: var(--font-display); font-size: 14px; color: #fff; }
.h2h-composite .h2h-track { height: 12px; border-radius: 6px; }
.h2h-just { background: rgba(6,182,212,.05); border: 1px solid #1e2740; border-radius: 10px; padding: 12px; }
.h2h-just-text { font-size: 13px; line-height: 1.45; color: var(--text-secondary); }
.h2h-just-edit { width: 100%; background: #0F172A; border: 1px solid #1e2740; border-radius: 6px; color: var(--text); font-size: 13px; padding: 8px; resize: vertical; font-family: var(--font-body); }
.h2h-just-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.h2h-just-btns button { font-size: 12px; padding: 7px 12px; border-radius: 7px; background: var(--accent); color: #0a0e1a; border: none; font-weight: 700; cursor: pointer; }
.h2h-just-btns button.ghost { background: transparent; color: var(--text-muted); border: 1px solid #1e2740; }
.h2h-just-btns button.ghost:hover { color: #fff; border-color: var(--accent); }
.set-cxr-list { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; }
.set-cxr-card { background: rgba(255,255,255,.03); border: 1px solid #1e2740; border-radius: 8px; padding: 8px; }
.set-cxr-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; font-size: 12px; color: var(--text-muted); }
.set-cxr-pos { font-family: var(--font-display); font-weight: 800; color: var(--accent); background: rgba(6,182,212,.12); border-radius: 4px; padding: 1px 7px; font-size: 11px; letter-spacing: .5px; }
.set-cxr-vs b { color: #fff; }
.set-cxr-text { width: 100%; background: #0F172A; border: 1px solid #1e2740; border-radius: 6px; color: var(--text); font-size: 12px; padding: 6px 8px; resize: vertical; font-family: var(--font-body); }
.set-cxr-text:focus { outline: none; border-color: var(--accent); }
.set-hint { font-size: 12px; color: var(--text-muted); }
