/* Kapselung: nur .xgc-* Klassen, keine globalen Elemente.
   Der umschließende Elementor-Container bestimmt die Größe. */

.xgc-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Theme-Variablen - leicht anpassbar */
.xgc-card {
  --xgc-bg: #0b3a57;
  --xgc-fg: #ffffff;
  --xgc-accent: #e53935;   /* Rot für Druck */
  --xgc-accent-2: #ffc107; /* Gold */
  --xgc-border: rgba(255,255,255,0.14);
  --xgc-shadow: 0 10px 22px rgba(0,0,0,0.22);

  color: var(--xgc-fg);
  background:
    linear-gradient(180deg, rgba(229,57,53,0.06), rgba(255,193,7,0.04)),
    var(--xgc-bg);
  border: 1px solid var(--xgc-border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--xgc-shadow);

  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.xgc-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.xgc-heading {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.2px;
  margin: 0;
  color: var(--xgc-accent);
  text-shadow: 0 0 16px rgba(229,57,53,0.28);
}

.xgc-sub {
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.92;
}

.xgc-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  font-size: 14px;
}

.xgc-remaining {
  font-size: 22px;
  font-weight: 800;
  color: var(--xgc-accent);
  text-shadow: 0 0 14px rgba(229,57,53,0.28);
  min-width: 36px;
  text-align: right;
  display: inline-block;
}

.xgc-progress {
  margin-top: 12px;
  height: 14px;                  /* deutlicher Balken für mehr Druck */
  background: rgba(255,255,255,0.10);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.xgc-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--xgc-accent), var(--xgc-accent-2));
  transition: width 240ms ease;
}

.xgc-note {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.8;
}

/* Mobile Feinschliff */
@media (max-width: 767px){
  .xgc-card { padding: 12px 12px; }
  .xgc-remaining { font-size: 20px; }
  .xgc-sub { font-size: 12px; }
}
