/* ============================================================
   fund-card.css – Fondskarte (functions/fund_detail_card.R) und
   gemeinsame Bausteine (functions/fund_badges.R)
   ============================================================
   Gilt an zwei Stellen und muss deshalb für sich allein funktionieren
   (ohne Bootstrap, ohne fonds.css/mobile.css):
   - in der App (app.R bindet die Datei nach mobile.css ein)
   - im HTML-Export (create_pdf_template.R kopiert sie in die Datei)
   Regeln für Auswahlliste und Vergleichstabelle, die nur in der App
   gelten (z. B. .sel-card-head .fund-nr), bleiben in mobile.css.
   ============================================================ */

/* nur für Screenreader */
.fund-card-full .sr-only,
.risk-scale .sr-only,
.fund-nr .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Nummer passend zu den Punkten "Ihre Auswahl" in den Grafiken
   (www/selected-markers.js: dunkelblauer Kreis mit weißer Nummer) */
.fund-nr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background-color: #1f2a44;
  box-shadow: 0 0 0 1px #1f2a44;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  vertical-align: middle;
}

.fund-nr-muted {                          /* außerhalb des Filters: nicht in den Grafiken */
  background-color: #9aa0a8;
  box-shadow: 0 0 0 1px #9aa0a8;
}

/* Risikoskala (Auswahlkarten und Vergleichsmodal) */
.risk-scale {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 14px;
}
.risk-scale-boxes {
  display: inline-flex;
  gap: 2px;
}
.risk-scale-box {
  width: 14px;
  height: 10px;
  border: 1px solid #bfbfbf;
  border-radius: 2px;
  background: #e9ecef;
}
.risk-scale-box.is-on { border-color: #262626; }

/* Vergleichsmodal, Kartenansicht: Kopf wie die Auswahlkarten
   (functions/createComparisonModal.R, createProductCard) */
.cmp-card-header {
  padding: 12px 14px 10px;
  border-radius: 8px 8px 0 0;
  background: #f8f9fa;
  color: #262626;
}
.cmp-card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.cmp-card-head .fund-nr {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin: 2px 0 0;
  font-size: 14px;
}
.cmp-card-title { min-width: 0; }
.cmp-card-isin { font-size: 12px; color: #555; }
.cmp-card-name {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: break-word;
}
.cmp-card-upload {
  display: inline-block;
  margin-top: 6px;
  padding: 1px 8px;
  border: 1px solid #262626;
  border-radius: 10px;
  font-size: 12px;
}

/* Alle Abschnitte untereinander mit Überschrift, ohne die alten Karten-Tabs
   (Detailansicht im Modal und HTML-Export: Container .fund-card-full) */
.fund-card-full .card-tab-nav { display: none; }
/* !important: die Abschnitte tragen noch style="display: none" aus der
   Tab-Zeit, und fonds.css setzt bei [style*="display: none"] Abstände
   per !important auf 0 */
.fund-card-full .tab-pane {
  display: block !important;
  min-height: 0;
  padding-bottom: 16px !important;
  margin-bottom: 16px !important;
  border-bottom: 1px solid #e3e3e3;
}
.fund-card-full .tab-pane:last-child { border-bottom: 0; }
.cmp-pane-title { display: none; }
.fund-card-full .cmp-pane-title {
  display: block;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #262626;
}
.cmp-risk-warning { padding: 8px 0; }
.cmp-risk-warning-text {
  margin: 6px 0 0;
  padding: 8px 10px;
  border-left: 3px solid #262626;
  background: #f8f9fa;
  font-size: 13px;
  line-height: 1.5;
}
