/* ── ErdenInvest Handelsraum – Anfragen-Boxen ─────────────────────────────
   Contao 5.3 – Ungefiltertes HTML-Element
   Zeigt automatisch nur Anfragen, deren Ablaufdatum noch nicht erreicht ist
   ──────────────────────────────────────────────────────────────────────── */

.ei-hr-wrap {
  font-size: 14px;
  color: #000;
  line-height: 1.6;
}

.ei-hr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .ei-hr-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .ei-hr-grid { grid-template-columns: 1fr; }
}

/* CARD */
.ei-card {
  background: #ffffff;
  border: 1px solid #dce2ea;
  border-top: 4px solid #614134;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(26,40,64,0.07);
  transition: box-shadow 0.25s, transform 0.25s;
}
.ei-card:hover {
  box-shadow: 0 6px 22px rgba(26,40,64,0.13);
  transform: translateY(-2px);
}
.ei-card.ei-ok   { border-top-color: #614134; }
.ei-card.ei-warn { border-top-color: #614134; }
.ei-card.ei-crit { border-top-color: #614134; }

.ei-card-body { padding: 1.2rem 1.3rem 1.3rem; }

/* COMPANY ROW */
.ei-company-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.ei-company-name {
  font-weight: 700;
  font-size: 1rem;
  color: #555555;
  line-height: 1.25;
}
.ei-company-sector {
  font-size: 11px;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 3px;
}
.ei-metal-pill {
  font-weight: 700;
  font-size: 11.5px;
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  background: #faf3e7;
  color: #555555;
  border: 1px solid rgba(184,147,58,0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

/* DIVIDER */
.ei-divider {
  height: 1px;
  background: #dce2ea;
  margin: 0.85rem 0;
}

/* META GRID */
.ei-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1rem;
  margin-bottom: 0.9rem;
}
.ei-meta-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #718096;
  margin-bottom: 2px;
}
.ei-meta-value {
  font-size: 14px;
  font-weight: 600;
  color: #1a2840;
}
.ei-meta-value.ei-gold { color: #000; }
.ei-col2 { grid-column: span 2; }
.bk .ei-meta-value.ei-gold:after,
.nk .ei-meta-value.ei-gold:after{
    content: 'pro kg';
    padding-left: 4px;
}

/* BEMERKUNG */
.ei-remark {
  font-size: 12px;
  color: #718096;
  font-style: italic;
  background: #f9f8f2;
  border: 1px solid #dce2ea;
  border-radius: 3px;
  padding: 0.45rem 0.7rem;
  margin-top: 0.1rem;
  line-height: 1.5;
}


/* CHIPS */
.ei-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 3px;
}
.ei-chip.ei-ok   { background: #eaf4ee; color: #2e7d4f; }
.ei-chip.ei-warn { background: #fef3c7; color: #b45309; }
.ei-chip.ei-crit { background: #fdecea; color: #c0392b; }

/* PROGRESS */
.ei-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.ei-progress-title {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #718096;
}
.ei-progress-nums {
  font-size: 12px;
  color: #4a5568;
}
.ei-progress-nums strong {
  color: #555555;
  font-weight: 600;
}
.ei-track {
  height: 8px;
  background: #f4f6f8;
  border-radius: 2px;
  border: 1px solid #dce2ea;
  overflow: hidden;
}
.ei-fill {
  height: 100%;
  border-radius: 1px;
  transition: width 1.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.ei-fill.ei-ok   { background: #2e7d4f; }
.ei-fill.ei-warn { background: #b45309; }
.ei-fill.ei-crit { background: #c0392b; }
.ei-progress-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}
.ei-pct {
  font-weight: 700;
  font-size: 13px;
}
.ei-pct.ei-ok   { color: #2e7d4f; }
.ei-pct.ei-warn { color: #b45309; }
.ei-pct.ei-crit { color: #c0392b; }

/* BUTTON */
.ei-card-cta { margin-top: 1rem; }
.ei-btn {
  display: block;
  width: 100%;
  background: #614134;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  padding: 0.62rem 1rem;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}
.ei-btn:hover { background: #724d3f; color: #ffffff; text-decoration: none; }

/* LEER-HINWEIS */
.ei-empty {
  grid-column: span 3;
  text-align: center;
  padding: 3rem 1rem;
  color: #718096;
  font-size: 14px;
}