/* assets/css/arsenal-analyzer.css */

/* Gesamter Arsenal-Check-Bereich */
#szbt-arsenal-check{
  margin-top: 2rem;
  max-width: 980px;
}

/* Karten-Grundlayout */
.szbt-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:12px 14px;
  margin-bottom:16px;
}

/* Header-Karte oben ("Arsenal-Check") */
.szbt-header{
  display:flex;
  flex-direction:column;
  gap:.35rem;
}

.szbt-header h3{
  margin:0;
  font-size:1.2rem;
  font-weight:600;
}

/* Untertitel / Hilfetext unter dem Haupttitel */
.szbt-subtitle{
  margin:0;
  font-size:.9rem;
  color:#4b5563;
}

/* Auswahl „Arsenal-Profil“ (3-Ball / 6-Ball) */
.szbt-profsel{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem .75rem;
  align-items:center;
  margin-top:.1rem;
}

.szbt-profsel-label{
  font-size:.9rem;
}

/* Zusatzinfos & Hint-Zeile im Header */
.szbt-profsel-hint,
.szbt-subinfo{
  font-size:.85rem;
  color:#6b7280;
}

/* Abschnitts-Titel der einzelnen Karten
   (Arsenal-Coverage, Überlappungen, Modernisieren, Legende, …) */
.szbt-card-title{
  margin:0 0 8px;
  font-size:1rem;
  font-weight:600;
}

/* Standard-Hilfstexte / leere States */
.szbt-empty{ color:#6b7280; margin:4px 0; }

/* Reihen mit Pills/Badges */
.szbt-row{ display:flex; gap:8px; flex-wrap:wrap; margin:4px 0 8px; }
.szbt-pill{
  border:1px dashed #d1d5db;
  border-radius:10px;
  padding:8px 10px;
  min-width:220px;
}
.szbt-pill-title{ font-weight:600; margin-bottom:4px; }
.szbt-pill-meta{ display:flex; gap:6px; flex-wrap:wrap; }

.szbt-badge{
  font-size:12px;
  line-height:1;
  border-radius:999px;
  padding:4px 6px;
  background:#f3f4f6;
  border:1px solid #e5e7eb;
}
.szbt-badge.z{ background:#eef2ff; border-color:#c7d2fe; }
.szbt-badge.s{ background:#ecfeff; border-color:#a5f3fc; }
.szbt-badge.h{ background:#fefce8; border-color:#fde68a; }
.szbt-badge.y{ background:#f0fdf4; border-color:#bbf7d0; }
.szbt-badge.st{ background:#fff7ed; border-color:#fed7aa; }

.szbt-list{ margin:6px 0 0 16px; }
.szbt-legend p{ color:#374151; margin:4px 0 0; }

/* Mobile leichte Kompaktierung */
@media (max-width:640px){
  #szbt-arsenal-check{
    margin-top:1.5rem;
  }
  .szbt-card{
    padding:10px 12px;
  }
}

/* Buttons & Candidates */
.szbt-btn {
  border: 1px solid #d1d5db;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 6px;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.szbt-btn:not(:disabled):hover {
  background: #f3f4f6;
  border-color: #cbd5e1;
  box-shadow: 0 1px 3px rgba(15,23,42,.08);
}
.szbt-btn:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

/* Primärer Add-Button (grün) */
.szbt-btn-add {
  border: 1px solid #16a34a;
  color: #065f46;
  background: #ecfdf5;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
}
.szbt-btn-add:not(:disabled):hover {
  background: #dcfce7;
  border-color: #22c55e;
}

/* Sekundärer Ersatz-Button (dezent blau) */
.szbt-btn-replace {
  border-color: #6366f1;
  background: #eef2ff;
  color: #1e3a8a;
  font-weight: 500;
}
.szbt-btn-replace:not(:disabled):hover {
  background: #e0e7ff;
  border-color: #4f46e5;
}

/* Wrapper für Button-Gruppen bei Kandidaten */
.szbt-cands-wrap { margin-top: 8px; }
.szbt-cand-group { border-top: 1px dashed #e5e7eb; padding-top: 8px; margin-top: 8px; }
.szbt-cand-heading { font-weight: 600; margin-bottom: 6px; }
.szbt-cands { display: flex; flex-direction: column; gap: 8px; }
.szbt-cand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
}
.szbt-cand-title { font-weight: 600; }
.szbt-cand-meta { display: flex; gap: 6px; flex-wrap: wrap; }

/* Actions: etwas Abstand + Wrap für mobile */
.szbt-cand-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: .35rem;
}

/* Coverage Card */
.szbt-coverage .szbt-cov-head { display:flex; align-items:center; gap:12px; margin-bottom:8px; }
.szbt-coverage .szbt-cov-score { font-size:32px; font-weight:700; line-height:1; }
.szbt-coverage .szbt-cov-grade { padding:4px 8px; border-radius:999px; font-weight:600; border:1px solid rgba(0,0,0,.08); }
.szbt-coverage .szbt-cov-prog { height:8px; background:#eee; border-radius:6px; overflow:hidden; margin:8px 0 12px; }
.szbt-coverage .szbt-cov-prog-bar { height:100%; width:0%; background:linear-gradient(90deg,#6ad,#4c8); transition:width .3s ease; }
.szbt-coverage .szbt-cov-comps { display:grid; grid-template-columns: repeat(5, 1fr); gap:8px; margin:0 0 12px; padding:0; list-style:none; }
.szbt-coverage .szbt-cov-comp-name { display:block; font-size:12px; opacity:.7; }
.szbt-coverage .szbt-cov-comp-val { font-weight:600; }
/* === Coverage-Slots: Responsive Grid ============================= */
/* Mobile (Default): 1 Spalte */
.szbt-coverage .szbt-cov-slots{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* ≥ 900px: 2 Spalten */
@media (min-width: 900px){
  .szbt-coverage .szbt-cov-slots{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

/* ≥ 1280px: 3 Spalten */
@media (min-width: 1280px){
  .szbt-coverage .szbt-cov-slots{
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}
.szbt-coverage .szbt-cov-slot { border:1px solid rgba(0,0,0,.08); border-radius:10px; padding:10px; display:flex; flex-direction:column; gap:4px; min-width: 0; }
.szbt-coverage .szbt-cov-slot.has { background:rgba(0,160,120,.06); }
.szbt-coverage .szbt-cov-slot.miss { background:rgba(200,120,0,.06); }
.szbt-coverage .szbt-cov-slot-title { font-weight:700; font-size:12px; opacity:.8; }
.szbt-coverage .szbt-cov-slot-label { font-size:12px; }
.szbt-coverage .szbt-cov-slot-cnt { font-weight:600; margin-top:2px; }
.szbt-coverage .szbt-cov-slot-btn {
  border: 1px solid #6366f1;
  background: #eef2ff;
  color: #1e3a8a;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
  transition: background .15s ease, border-color .15s ease;
}
.szbt-cov-slot-btn:hover {
  background: #e0e7ff;
  border-color: #4f46e5;
}

/* Coverage: Slot-Items */
.szbt-cov-slot-list { display:flex; flex-direction:column; gap:6px; margin-top:6px; }
.szbt-mini-pill { 
  display:flex; justify-content:space-between; align-items:center;
  padding:6px 8px; border:1px solid rgba(0,0,0,.08); border-radius:8px;
  text-decoration:none; color:inherit; background:#fff;
}
.szbt-mini-pill:hover { background:#f8fafb; }
.szbt-mini-meta { display:flex; gap:6px; margin-left:8px; }
.szbt-mini-more { font-size:12px; opacity:.7; padding:2px 0 0 2px; }

.szbt-badge { display:inline-block; padding:2px 6px; border-radius:10px;
  font-size:11px; border:1px solid rgba(0,0,0,.08); }
.szbt-badge.z { background:#eef7ff; }
.szbt-badge.s { background:#eef9f3; }
.szbt-badge.h { background:#fff4ec; }
.szbt-badge.y { background:#f2f2f2; }

/* Overlap Level */
.szbt-overlap-head { display:flex; align-items:center; gap:8px; margin:6px 0; }
.szbt-level { display:inline-block; font-size:12px; padding:2px 8px; border-radius:999px; border:1px solid rgba(0,0,0,.08); }
.szbt-level.crit { background:#ffe8e6; color:#8a1f15; }
.szbt-level.mod  { background:#fff6d7; color:#7a5a00; }
.szbt-level.light{ background:#e9f6ff; color:#0b5376; }

/* Info-Icon + Popover */
.szbt-i-wrap { position: relative; display: inline-flex; align-items: center; }
.szbt-i {
  display:inline-flex; justify-content:center; align-items:center;
  width:18px; height:18px; margin-left:6px; border-radius:50%;
  border:1px solid rgba(0,0,0,.15); font-size:12px; line-height:1;
  cursor:pointer; user-select:none; background:#fff;
}
.szbt-i:hover { background:#f3f6f8; }
.szbt-pop {
  position:absolute; top:22px; right:0; z-index:30; min-width:240px; max-width:320px;
  background:#fff; border:1px solid rgba(0,0,0,.12); border-radius:8px; box-shadow:0 8px 24px rgba(0,0,0,.12);
  padding:10px; font-size:12px;
}
.szbt-pop-row { margin:6px 0; }
.szbt-pop-row strong { font-weight:600; }

.szbt-header .szbt-toggle {
  display:inline-flex; align-items:center; gap:.5rem; margin-top:.25rem;
  font-size: .9rem; cursor:pointer; user-select:none;
}
.szbt-header .szbt-toggle input { transform:translateY(1px); }

.szbt-why { margin-top: .5rem; }
.szbt-why-title { font-weight: 600; font-size: .9rem; margin-bottom: .25rem; opacity: .85; }
.szbt-why-line { display: flex; flex-wrap: wrap; gap: .25rem .4rem; }
.szbt-pill {
  display: inline-block; padding: .2rem .5rem; border-radius: 999px;
  font-size: .78rem; line-height: 1; border: 1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.035);
}

/* T6 – Why Pills mobile tuning */
@media (max-width: 640px) {
  .szbt-why-title { font-size: .85rem; }
  .szbt-pill { font-size: .72rem; padding: .18rem .45rem; }
  .szbt-why-line { gap: .2rem .3rem; }
}
.szbt-pill { white-space: nowrap; } /* verhindert unschöne Zeilenbrüche im Wort */

/* Marken-Bias Slider */
.szbt-range { display:flex; align-items:center; gap:.5rem; margin-top:.25rem; }
.szbt-range-label { font-size:.9rem; opacity:.85; }
.szbt-range input[type="range"] { width:140px; }
.szbt-range-val { font-variant-numeric: tabular-nums; min-width:1.2rem; text-align:center; }
@media (max-width:640px){
  .szbt-range input[type="range"]{ width:110px; }
}

/* T6 – Why Pills mobile tuning */
@media (max-width: 640px) {
  .szbt-why-title { font-size: .85rem; }
  .szbt-pill { font-size: .72rem; padding: .18rem .45rem; }
  .szbt-why-line { gap: .2rem .3rem; }
}
.szbt-pill { white-space: nowrap; }

.szbt-ovl-majority { margin-left: .5rem; display:inline-flex; gap:.25rem; align-items:center; flex-wrap:wrap }
.szbt-ovl-majority-label { font-size:.85em; opacity:.8; margin-right:.25rem }
.szbt-badge.maj { background: #eef3ff; border:1px solid #d6e2ff; }

.szbt-ac-modernize .szbt-cand-group { margin-top:.5rem; padding:.5rem 0 0; border-top:1px dashed #e1e5ee; }

.szbt-overlap-majority{
  margin: .25rem 0 .5rem;
  font-size: .9rem;
  opacity: .85;
}

/* === Popover (Coverage) – Portal & Responsive Hardening === */
.szbt-pop {
  z-index: 9999;                 /* vor Cards/Headers/Modals */
  max-width: min(320px, 92vw);   /* mobil sicher */
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.szbt-pop--portal {
  position: fixed;               /* da via document.body */
  left: 0;
  top: 0;                        /* echte Position setzt JS */
}

.szbt-pop.is-top    { transform-origin: bottom; }
.szbt-pop.is-bottom { transform-origin: top; }

/* Unaufdringlicher Pfeil */
.szbt-pop::after{
  content:"";
  position:absolute;
  width:10px; height:10px;
  background:#fff;
  border:1px solid rgba(0,0,0,.12);
  transform: rotate(45deg);
  bottom: -6px; right: 14px;     /* Standard: unten */
  z-index: -1;
}
.szbt-pop.is-top::after{
  bottom: auto;
  top: -6px;                     /* Flip: oben */
}

/* Nur die kleinen Why-Pills lockern */
.szbt-why .szbt-pill {
  white-space: normal;    /* statt nowrap nur hier */
}

/* === Coverage: horizontale Cards, volle Slot-Breite, stapelnd === */
.szbt-coverage .szbt-cov-slot .szbt-balls-reco__list{
  display: flex;
  flex-direction: column;     /* mehrere Bälle untereinander */
  gap: .75rem;
}

/* Card als Row: Bild links, Text rechts */
.szbt-cov-ball{
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  width: 100%;
  padding: .65rem .75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .7rem;
}

/* Bild: feste Größe, unabhängig vom Titel */
.szbt-cov-ball .szbt-ball__img{
  flex: 0 0 72px;             /* fixiert die Breite der Bildspalte */
}
.szbt-cov-ball .szbt-ball__img img,
.szbt-cov-ball .bt-ball-ph{
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  border-radius: .5rem;
  background: #f3f4f6;        /* Platzhalter-Hintergrund */
  color: #6b7280;
  text-align: center;
  line-height: 72px;
  font-size: .78rem;
}

/* Textspalte darf umbrechen, nimmt Restbreite */
.szbt-cov-ball .szbt-ball__text{
  flex: 1 1 auto;
  min-width: 0;               /* verhindert Layout-Shift */
}
.szbt-cov-ball .szbt-ball__title{
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.15;
  color: #111827;
  text-decoration: none;
  word-break: break-word;
  hyphens: auto;
}
.szbt-cov-ball a.szbt-ball__title:hover{ text-decoration: underline; }

/* (i) neben dem Titel, sauber ausgerichtet */
.szbt-cov-ball .szbt-i-wrap{
  display: inline-flex;
  vertical-align: middle;
  margin-left: .35rem;
  transform: translateY(-1px);
}

/* Brand & Tags kompakt */
.szbt-cov-ball .szbt-ball__brand{
  font-size: .85rem;
  color: #374151;
  opacity: .9;
  margin: .15rem 0 .25rem;
}
.szbt-cov-ball .szbt-ball__tags{
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.szbt-cov-ball .szbt-ball__tags .h{
  padding: .14rem .48rem;
  border-radius: .45rem;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  font-size: .78rem;
}

/* Komponenten-Grid auf kleinen Screens flexibler machen */
@media (max-width: 640px){
  .szbt-coverage .szbt-cov-comps{
    grid-template-columns: repeat(2, minmax(0,1fr));
    row-gap: 6px;
  }
}

/* Coverage: Actions-Zeile in der Card (rechts, kompakt) */
.szbt-cov-ball-actions{
  margin-top: .5rem;
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .szbt-cov-ball-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Danger-Button (Entfernen) */
.szbt-btn-danger{
  border: 1px solid #fda4a4;
  background: #fff5f5;
  color: #7f1d1d;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.szbt-btn-danger:hover{
  background: #ffe9e9;
}

/* Kandidaten-Modal */
.szbt-modal{position:fixed;inset:0;display:none;z-index:9999}
.szbt-modal.is-open{display:block}
.szbt-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.45)}
.szbt-modal__panel{
  position:absolute;left:50%;top:8%;transform:translateX(-50%);
  max-width:980px;width:clamp(320px,90vw,980px);max-height:84vh;overflow:auto;
  background:#fff;border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.25)
}
.szbt-modal__head{display:flex;justify-content:space-between;align-items:center;
  padding:14px 16px;border-bottom:1px solid #eee}
.szbt-modal__body{padding:12px 16px}
.szbt-modal__close{font-size:22px;line-height:1;border:none;background:transparent;cursor:pointer}


.szbt-pill-actions {
  margin-top: .35rem;
  display: flex;
  gap: .4rem;
  align-items: center;
  flex-wrap: wrap;
}
.szbt-btn-sm {
  font-size: .85rem;
  padding: .25rem .5rem;
  line-height: 1.1;
}

/* Overlaps → Card-Grid (1 / 2 / 3 Spalten) */
.szbt-over-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;                /* Mobil: 1 Karte pro Reihe */
}

@media (min-width: 768px) {
  .szbt-over-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));  /* Tablet: 2 Spalten */
  }
}

@media (min-width: 1200px) {
  .szbt-over-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));  /* Desktop: max 3 */
  }
}

/* Overlap-Cards: kompakt wie Coverage-Bälle */
.szbt-over-ball{
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .6rem .7rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .7rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.03);
}

/* Bild klein halten */
.szbt-over-ball .szbt-ball__img{
  flex: 0 0 64px;
}
.szbt-over-ball .szbt-ball__img img,
.szbt-over-ball .bt-ball-ph{
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  border-radius: .5rem;
  background: #f3f4f6;
  line-height: 64px;
  text-align: center;
  font-size: .75rem;
  color: #6b7280;
}

/* Textspalte */
.szbt-over-ball .szbt-ball__text{
  flex: 1 1 auto;
  min-width: 0;
}

/* Titel + (i) */
.szbt-over-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.4rem;
}
.szbt-over-ball .szbt-ball__title{
  font-size: .95rem;
  font-weight: 600;
  color:#111827;
  text-decoration:none;
}
.szbt-over-ball a.szbt-ball__title:hover{ text-decoration:underline; }

/* Brand & Tags kleiner */
.szbt-over-ball .szbt-ball__brand{
  font-size:.8rem;
  color:#374151;
  opacity:.9;
  margin:.1rem 0 .25rem;
}
.szbt-over-ball .szbt-ball__tags{
  display:flex;
  flex-wrap:wrap;
  gap:.25rem;
}
.szbt-over-ball .szbt-ball__tags .h{
  padding:.12rem .42rem;
  border-radius:.45rem;
  background:#f1f5f9;
  border:1px solid #e2e8f0;
  font-size:.72rem;
  color:#0f172a;
}

/* Action-Zeile */
.szbt-over-actions{
  margin-top:.4rem;
  display:flex;
  gap:.4rem;
  flex-wrap:wrap;
}

/* kleine Variante des Buttons */
.szbt-btn-sm {
  font-size:.85rem;
  padding:.3rem .6rem;
  line-height:1.1;
}

/* === Kandidaten: Card-Grid (max 4 Spalten, responsive) === */
.szbt-cands-grid{
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px){
  .szbt-cands-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 900px){
  .szbt-cands-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1200px){
  .szbt-cands-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* === Basis-Ball-Card – für Coverage & Kandidaten nutzbar === */
.szbt-ball{
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  width: 100%;
  padding: .65rem .75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .7rem;
}

/* Kandidaten-Variante: leicht kompakter, damit mehr Karten nebeneinander passen */
.szbt-cand-ball{
  padding: .55rem .6rem;
}

/* Bildspalte (generisch, wie bei Coverage) */
.szbt-ball .szbt-ball__img{
  flex: 0 0 72px;
}
.szbt-ball .szbt-ball__img img,
.szbt-ball .bt-ball-ph{
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  border-radius: .5rem;
  background: #f3f4f6;
  color: #6b7280;
  text-align: center;
  line-height: 72px;
  font-size: .78rem;
}

/* Textspalte */
.szbt-ball .szbt-ball__text{
  flex: 1 1 auto;
  min-width: 0;
}
.szbt-ball .szbt-ball__title{
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.15;
  color: #111827;
  text-decoration: none;
  word-break: break-word;
  hyphens: auto;
}
.szbt-ball a.szbt-ball__title:hover{
  text-decoration: underline;
}

/* (i)-Icon neben dem Titel */
.szbt-ball .szbt-i-wrap{
  display: inline-flex;
  vertical-align: middle;
  margin-left: .35rem;
  transform: translateY(-1px);
}

/* Brand & Tags */
.szbt-ball .szbt-ball__brand{
  font-size: .85rem;
  color: #374151;
  opacity: .9;
  margin: .15rem 0 .25rem;
}
.szbt-ball .szbt-ball__tags{
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.szbt-ball .szbt-ball__tags .h{
  padding: .14rem .48rem;
  border-radius: .45rem;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  font-size: .78rem;
}
/* Kandidaten: ein Ball pro Zeile statt 4-Spalten-Grid */
.szbt-cands-grid {
  display: flex;
  flex-direction: column;   /* untereinander */
  gap: 0.75rem;             /* Abstand zwischen den Karten */
}

/* Kandidaten-Karte soll volle Breite nutzen */
.szbt-cand-ball {
  width: 100%;
}

/* === Step B: Klarere Block-Trennung & Spacing ======================= */

/* Mehr Abstand zwischen den größeren Hauptsektionen */
#szbt-arsenal-check .szbt-section {
  margin-top: 2.2rem;
}

/* Die üblichen Cards (Überlappungen, Modernisieren, Legende) 
   sollen etwas großzügiger wirken */
.szbt-card {
  margin-bottom: 24px;      /* vorher 12–16px */
  padding: 16px 18px;       /* mehr innerer Raum */
  border-radius: 14px;      /* etwas weicher */
}

/* Coverage-Block zusätzlich leicht hervorheben */
.szbt-coverage {
  padding: 18px;
  border-radius: 14px;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  margin-bottom: 28px;
}

/* Titel innerhalb der Coverage Section */
.szbt-coverage .szbt-card-title {
  font-size: 1.05rem;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Slot-Cards deutlicher voneinander getrennt */
.szbt-coverage .szbt-cov-slot {
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 6px;
}

/* Bei den Unter-Sektionen („Überlappungen“, „Modernisieren“, „Legende“)
   etwas mehr Luft nach oben */
.szbt-card-title {
  margin-bottom: 12px;
}

/* Mobile: Abstand leicht reduzieren, aber klar trennen */
@media (max-width: 640px) {
  .szbt-card {
    margin-bottom: 20px;
    padding: 14px 16px;
  }
  .szbt-coverage {
    padding: 16px;
    margin-bottom: 24px;
  }
  #szbt-arsenal-check .szbt-section {
    margin-top: 1.8rem;
  }
}

/* === Schöneres Button-Design in Slot-Cards ===================== */

/* Basis für beide Buttons */
.szbt-slot-btn {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: .9rem;
  cursor: pointer;
  border: 1px solid #d1d5db;
  background: #fff;
  transition: all .15s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hover */
.szbt-slot-btn:hover {
  background: #f3f4f6;
}

/* Entfernen-Button (Danger) */
.szbt-btn-danger,
button.szbt-btn-danger {
  border-color: #fca5a5;
  background: #fff5f5;
  color: #991b1b;
}

.szbt-btn-danger:hover {
  background: #ffe4e4;
}

/* Ersatz Button (Neutral/Action) */
.szbt-btn-action {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
}

.szbt-btn-action:hover {
  background: #e2e8f0;
}

/* Abstand zwischen Header und Coverage */
#szbt-arsenal-check > .szbt-card + .szbt-card.szbt-coverage {
  margin-top: 1.5rem;
}

/* Klare vertikale Trennung der großen Sektionen */
#szbt-arsenal-check .szbt-card {
  margin-bottom: 32px;
}

#szbt-arsenal-check .szbt-legend {
  margin-bottom: 40px;
}

/* Hauptheader (Strike Zone Arsenal Tool) optisch hervorheben */
.szbt-header {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  margin-bottom: 28px;
}

.szbt-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}


/* === A. Slot-Cards modernisieren ======================================= */

/* Slot-Card Container */
.szbt-cov-slot {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
  transition: box-shadow .15s ease;
}

.szbt-cov-slot.has {
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.szbt-cov-slot.miss {
  background: #fafafa;
  border-style: dashed;
}

/* Slot-Header */
.szbt-cov-slot-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.szbt-cov-slot-label {
  font-size: .9rem;
  color: #6b7280;
  margin-bottom: 10px;
}

/* Anzahl */
.szbt-cov-slot-cnt {
  font-size: .85rem;
  color: #374151;
  margin-bottom: 12px;
}

/* Ball-Mini-Card im Slot */
.szbt-cov-ball {
  border-radius: 12px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: box-shadow .15s ease;
}

.szbt-cov-ball:hover {
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}

/* Kandidaten-Button in leeren Slots */
.szbt-cov-slot-btn {
  margin-top: 10px;
  border: 1px solid #6366f1 !important;
  background: #eef2ff !important;
  color: #1e3a8a !important;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  transition: background .15s ease, border-color .15s ease;
}

.szbt-cov-slot-btn:hover {
  background: #e0e7ff !important;
  border-color: #4f46e5 !important;
}

/* Mini-Ballkarte Layout – größere, runde Ballbilder im Coverage-Grid */
.szbt-cov-ball .szbt-ball__img{
  flex: 0 0 80px;
}

.szbt-cov-ball .szbt-ball__img img,
.szbt-cov-ball .bt-ball-ph{
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  border-radius: 999px;          /* schön rund */
  background: #f3f4f6;
  color: #6b7280;
  text-align: center;
  line-height: 80px;
  font-size: .78rem;
}

/* Text bleibt kompakt */
.szbt-cov-ball .szbt-ball__title {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
}

.szbt-cov-ball .szbt-ball__brand {
  font-size: .8rem;
  color: #6b7280;
}

.szbt-cov-ball .szbt-ball__tags {
  font-size: .72rem;
  gap: 4px;
}

/* Overlaps – größere Bilder & etwas „Premium“-Look */
.szbt-over-ball{
  border-radius: 14px;
  padding: .8rem .9rem;
  box-shadow: 0 2px 6px rgba(15,23,42,.06);
}

/* Bildspalte etwas größer + rund */
.szbt-over-ball .szbt-ball__img{
  flex: 0 0 80px;
}

.szbt-over-ball .szbt-ball__img img,
.szbt-over-ball .bt-ball-ph{
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  border-radius: 999px;
  background: #f3f4f6;
  line-height: 80px;
  text-align: center;
  font-size: .78rem;
  color: #6b7280;
}

/* Titel minimal größer für bessere Hierarchie */
.szbt-over-ball .szbt-ball__title{
  font-size: 1rem;
  font-weight: 600;
}

/* Overlaps – Bild oben, Infos darunter, mehr Luft für Titel */
.szbt-over-ball {
  flex-direction: column;          /* statt Reihe: Bild oben, Text unten */
  align-items: stretch;
  text-align: left;
}

/* Bild zentriert oben */
.szbt-over-ball .szbt-ball__img {
  align-self: center;
  margin-bottom: .5rem;
}

/* Titel/Text-Spalte volle Breite */
.szbt-over-ball .szbt-ball__text {
  width: 100%;
}

/* Titel: darf umbrechen, aber nicht hässlich rausragen */
.szbt-over-ball .szbt-ball__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  word-break: break-word;
  hyphens: auto;
}

/* Header-Reihe (Titel + i) leicht anpassen */
.szbt-over-head {
  justify-content: flex-start;
  gap: .35rem;
}

/* Tag-Zeile etwas großzügiger */
.szbt-over-ball .szbt-ball__tags {
  margin-top: .25rem;
  gap: .3rem;
}

/* Button unten mit etwas Abstand nach oben */
.szbt-over-actions {
  margin-top: .6rem;
}

/* === C. Modernisieren & Legende Feinschliff ====================== */

/* Modernisieren-Card: Titel etwas mehr Luft */
.szbt-ac-modernize .szbt-card-title {
  margin-bottom: 10px;
}

/* Liste im Modernisieren-Block (Jackal Ghost etc.) */
.szbt-ac-modernize-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #374151;
  font-size: .9rem;
}

.szbt-ac-modernize-list li {
  margin-bottom: .35rem;
  line-height: 1.35;
}

/* Hinweistext unter der Liste */
.szbt-ac-modernize .szbt-hint {
  margin-top: .65rem;
  font-size: .85rem;
  color: #6b7280;
}

/* Legende typografisch angleichen */
.szbt-legend-body {
  font-size: .9rem;
  line-height: 1.4;
  color: #374151;
}

/* Listendarstellung nur in der Legende etwas enger führen */
.szbt-legend .szbt-list {
  margin: 0;
  padding-left: 1.2rem;
}

.szbt-legend .szbt-list li + li {
  margin-top: .15rem;
}

/* === D. Globaler Polish für den Arsenal-Check ==================== */

/* Container sauber zentrieren und auf kleinen Screens etwas Innenabstand */
#szbt-arsenal-check {
  margin: 2rem auto 0;
  max-width: 980px;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  #szbt-arsenal-check {
    padding: 0;
  }
}

/* Letzte Card im Block: nicht zu großer Abstand nach unten */
#szbt-arsenal-check .szbt-card:last-of-type {
  margin-bottom: 0;
}

/* Section-Titel minimal ruhiger/homogener */
#szbt-arsenal-check .szbt-card-title {
  letter-spacing: 0.01em;
}

/* Absätze in Cards: kein zusätzlicher Top-Abstand, damit es kompakter wirkt */
#szbt-arsenal-check .szbt-card p {
  margin-top: 0.1rem;
}

@media (max-width: 480px) {
  .szbt-header h3 {
    font-size: 1.25rem;
  }
  .szbt-coverage .szbt-cov-score {
    font-size: 26px;
  }
}

/* Badges für Kandidaten-Empfehlungen (Skill / Slot-Fit) */
.szbt-ac-tags{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  margin-top:4px;
}

.szbt-tag{
  display:inline-flex;
  align-items:center;
  padding:2px 6px;
  border-radius:999px;
  font-size:.75rem;
  line-height:1.2;
  border:1px solid #e5e7eb;
  background:#f9fafb;
  color:#374151;
  white-space:nowrap;
}

/* Skill-orientierte Badge (Amateur/Sport) */
.szbt-tag--skill{
  border-color:#bfdbfe;
  background:#eff6ff;
  color:#1d4ed8;
}

/* Slot-Fit Badge (wie gut passt er in die Rolle) */
.szbt-tag--slot{
  border-color:#bbf7d0;
  background:#ecfdf3;
  color:#15803d;
}

/* Einheitlicher Style für "Top aus meinem Arsenal" Überschrift */
#szbt-arsenal .szbt-ars-reco > h3,
#szbt-arsenal .szbt-ars-reco .szbt-section-title {
  margin: 1.1rem 0 .65rem;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #1f2937;
  letter-spacing: -0.01em;
}

/* Einheitlicher Titel-Style für Arsenal-Check */
.szbt-arsenal-check h3.szbt-section-title {
    margin: 1.1rem 0 .65rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #1f2937;
    letter-spacing: -0.01em;
}

/* 🎳 Icon für Arsenal-Check */
.szbt-arsenal-check h3.szbt-section-title::before {
    content: "🧩";
    font-size: 1.1rem;
    display: inline-block;
    margin-right: .25rem;
}

/* === Kandidaten-Loader ========================================= */
.szbt-cands-loading {
  padding: 1rem 0;
  font-size: .95rem;
  color: #4b5563;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
}

.szbt-cands-loading::before {
  content: "⏳";
  font-size: 1.2rem;
  display: inline-block;
}

/* === Coverage Ball Card (Horizontales Layout) === */

.szbt-cov-ball {
  display: flex;              /* Horizontal: Bild links, Content rechts */
  align-items: flex-start;    /* Oben bündig */
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  transition: box-shadow 0.15s ease;
}

.szbt-cov-ball:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* SPALTE 1: Bild */
.szbt-cov-ball .szbt-ball__img {
  flex: 0 0 64px;             /* Fixe Breite */
}

.szbt-cov-ball .szbt-ball__img img,
.szbt-cov-ball .bt-ball-ph {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  border-radius: 8px;         /* Leicht abgerundet */
  background: #f8fafc;
  color: #94a3b8;
  text-align: center;
  line-height: 64px;
  font-size: 0.75rem;
}

/* SPALTE 2: Content-Container */
.szbt-ball__content {
  flex: 1;                    /* Nimmt den Restplatz */
  min-width: 0;               /* WICHTIG: Verhindert, dass Flex-Items ausbrechen */
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* A) Header Group */
.szbt-ball__header-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.szbt-ball__title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.szbt-cov-ball .szbt-ball__title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
  white-space: nowrap;        /* Titel einzeilig... */
  overflow: hidden;           /* ...abschneiden... */
  text-overflow: ellipsis;    /* ...mit Pünktchen */
}

.szbt-cov-ball .szbt-ball__brand {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

/* B) Pills / Tags */
.szbt-cov-ball .szbt-ball__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.szbt-cov-ball .szbt-ball__tags .h {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* C) Actions (Buttons) */
.szbt-cov-ball-actions {
  margin-top: 4px;
  display: flex;
  gap: 8px;
}

.szbt-cov-ball-actions .szbt-btn {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  flex: 1;                    /* Buttons teilen sich die Breite 50/50 */
  justify-content: center;
  white-space: nowrap;
}

