/* VergleichsRatgeber Hot / Cold Voting
 * Sicherheitsregel: Dieses Stylesheet gestaltet ausschließlich Plugin-eigene .vr-hc-* Klassen.
 * Elementor-Karten, Grids, Bilder, Badges und individuelle Startseiten-CSS-Regeln bleiben unangetastet.
 */

.vr-hc-wrap,
.vr-hc-wrap *,
.vr-hc-card-badge-shell,
.vr-hc-card-badge-shell * {
  box-sizing: border-box;
}

.vr-hc-wrap {
  display: flex;
  width: 100%;
  margin: 0 0 16px;
}

.vr-hc-align-left { justify-content: flex-start; }
.vr-hc-align-center { justify-content: center; }
.vr-hc-align-right { justify-content: flex-end; }

.vr-hc-widget {
  width: min(100%, var(--vr-width, 250px));
  max-width: 100%;
  padding: 10px;
  border: 1px solid var(--vr-card-border, #0a5c46);
  border-radius: var(--vr-radius, 999px);
  background: linear-gradient(180deg, var(--vr-card-bg-start, #027351), var(--vr-card-bg-end, #014c39));
  color: var(--vr-meta-color, #ffffff);
  font-family: inherit;
  font-size: var(--vr-font-size, 13px);
  line-height: 1.2;
  box-shadow: var(--vr-shadow, 0 10px 26px rgba(18, 48, 37, 0.12));
  transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
  isolation: isolate;
}

.vr-hc-widget:hover {
  box-shadow: var(--vr-shadow-hover, 0 12px 30px rgba(18, 48, 37, 0.16));
}

.vr-hc-widget.is-busy {
  opacity: 0.72;
  pointer-events: none;
}

.vr-hc-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  margin: 0 0 8px;
  padding: 6px 10px;
  overflow: hidden;
  border-radius: var(--vr-radius, 999px);
  background: var(--vr-meta-bg, rgba(255,255,255,0.16));
  color: var(--vr-meta-color, #ffffff);
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vr-hc-main {
  display: grid;
  grid-template-columns: minmax(58px, 1fr) minmax(68px, var(--vr-bar-length, 94px)) minmax(58px, 1fr);
  align-items: center;
  gap: 5px;
  min-height: var(--vr-height, 46px);
  padding: 4px;
  border: 1px solid var(--vr-bar-outline, rgba(255,255,255,0.18));
  border-radius: var(--vr-radius, 999px);
  background: var(--vr-bar-track, rgba(255,255,255,0.12));
}

.vr-hc-side {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: var(--vr-radius, 999px);
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.vr-hc-side:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

.vr-hc-side:active {
  transform: translateY(0) scale(0.97);
}

.vr-hc-side:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.vr-hc-side.is-active {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.vr-hc-side-sign {
  font-size: 1.05em;
  font-weight: 850;
}

.vr-hc-side-label {
  overflow: hidden;
  font-size: 0.86em;
  font-weight: 750;
  text-overflow: ellipsis;
  text-transform: lowercase;
  white-space: nowrap;
}

.vr-hc-side-cold,
.vr-hc-side-cold .vr-hc-side-sign,
.vr-hc-side-cold .vr-hc-side-label { color: var(--vr-cold-accent, #7dd3fc); }

.vr-hc-side-hot,
.vr-hc-side-hot .vr-hc-side-sign,
.vr-hc-side-hot .vr-hc-side-label { color: var(--vr-hot-accent, #ff7a59); }

.vr-hc-side-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: var(--vr-icon-size, 18px);
  height: var(--vr-icon-size, 18px);
}

.vr-hc-side-icon svg,
.vr-hc-side-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vr-hc-icon-mode-sign_label .vr-hc-side-icon,
.vr-hc-card-icon-mode-sign_label .vr-hc-side-icon { display: none; }

.vr-hc-icon-mode-icon_only .vr-hc-side-sign,
.vr-hc-icon-mode-icon_only .vr-hc-side-label,
.vr-hc-card-icon-mode-icon_only .vr-hc-side-sign,
.vr-hc-card-icon-mode-icon_only .vr-hc-side-label { display: none; }

.vr-hc-bar-shell {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.vr-hc-bar {
  position: relative;
  width: min(100%, var(--vr-bar-length, 94px));
  height: max(30px, calc(var(--vr-height, 46px) - 14px));
  overflow: hidden;
  border: 1px solid var(--vr-bar-outline, rgba(255,255,255,0.18));
  border-radius: var(--vr-radius, 999px);
  background: var(--vr-bar-track, rgba(255,255,255,0.12));
  isolation: isolate;
}

.vr-hc-bar-track {
  position: absolute;
  inset: 0;
  background: var(--vr-bar-track, rgba(255,255,255,0.12));
}

.vr-hc-bar-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  opacity: 0.92;
  transition: width 260ms ease;
}

.vr-hc-bar-fill-hot {
  right: 0;
  background: var(--vr-hot-accent, #ff7a59);
}

.vr-hc-bar-fill-cold {
  left: 0;
  background: var(--vr-cold-accent, #7dd3fc);
}

.vr-hc-bar-center {
  position: absolute;
  top: 20%;
  bottom: 20%;
  left: 50%;
  z-index: 3;
  width: 1px;
  background: var(--vr-bar-outline, rgba(255,255,255,0.18));
  transform: translateX(-50%);
}

.vr-hc-meta-inside {
  position: absolute;
  inset: 0;
  z-index: 4;
  margin: 0;
  padding: 0 7px;
  border-radius: 0;
  background: transparent;
  color: var(--vr-count-color, #ffffff);
  text-shadow: 0 1px 2px rgba(0,0,0,0.22);
}

.vr-hc-count-above .vr-hc-meta-inside { display: none; }

.vr-hc-status {
  min-height: 1.1em;
  margin-top: 7px;
  color: var(--vr-status-color, var(--vr-meta-color, #ffffff));
  font-size: 0.76em;
  font-weight: 600;
  text-align: center;
  opacity: 0.82;
}

.vr-hc-temp-hot .vr-hc-meta { box-shadow: inset 0 0 0 1px var(--vr-hot-accent, #ff7a59); }
.vr-hc-temp-cold .vr-hc-meta { box-shadow: inset 0 0 0 1px var(--vr-cold-accent, #7dd3fc); }

/* Eigene Darstellung für noch nicht bewertete oder ausgeglichene Deals. */
.vr-hc-temp-neutral .vr-hc-meta,
.vr-hc-card-widget.vr-hc-temp-neutral .vr-hc-card-meta {
  background: var(--vr-neutral-meta-bg, var(--vr-meta-bg, rgba(255,255,255,0.12)));
  color: var(--vr-neutral-meta-color, var(--vr-meta-color, #ffffff));
  box-shadow: none;
}

.vr-hc-temp-neutral .vr-hc-meta-inside {
  background: transparent;
  color: var(--vr-neutral-meta-color, var(--vr-count-color, #ffffff));
}

.vr-hc-temp-neutral .vr-hc-main,
.vr-hc-temp-neutral .vr-hc-bar,
.vr-hc-temp-neutral .vr-hc-bar-track {
  background: var(--vr-neutral-bar-track, var(--vr-bar-track, rgba(255,255,255,0.10)));
}

/* Startseiten-Ausgabe: ausschließlich eigene Elemente, ohne Regeln für Elementor-Klassen. */
.vr-hc-card-badge-shell {
  --vr-card-offset-top: 0px;
  --vr-card-offset-right: 0px;
  --vr-card-offset-bottom: 8px;
  --vr-card-offset-left: 0px;
  --vr-card-badge-max-width: 58%;
  display: flex;
  width: auto;
  max-width: 100%;
  pointer-events: none;
  background: transparent;
}

.vr-hc-card-badge-shell.vr-hc-card-align-left { justify-content: flex-start; }
.vr-hc-card-badge-shell.vr-hc-card-align-center { justify-content: center; }
.vr-hc-card-badge-shell.vr-hc-card-align-right { justify-content: flex-end; }

.vr-hc-card-badge-shell.vr-hc-card-pos-above_card {
  position: relative;
  z-index: 15;
  margin: var(--vr-card-offset-top) var(--vr-card-offset-right) var(--vr-card-offset-bottom) var(--vr-card-offset-left);
}

.vr-hc-card-badge-shell.vr-hc-card-pos-overlay_top_left {
  position: absolute;
  top: var(--vr-card-offset-top);
  z-index: 30;
  margin: 0;
}

.vr-hc-card-badge-shell.vr-hc-card-pos-overlay_top_left.vr-hc-card-align-left {
  left: var(--vr-card-offset-left);
  right: auto;
}

.vr-hc-card-badge-shell.vr-hc-card-pos-overlay_top_left.vr-hc-card-align-center {
  left: 50%;
  transform: translateX(-50%);
}

.vr-hc-card-badge-shell.vr-hc-card-pos-overlay_top_left.vr-hc-card-align-right {
  right: var(--vr-card-offset-right);
  left: auto;
}

.vr-hc-card-widget {
  width: min(100%, var(--vr-width, 250px));
  max-width: var(--vr-card-badge-max-width, 58%);
  min-height: var(--vr-height, 46px);
  padding: 7px;
  border-radius: var(--vr-radius, 999px);
  pointer-events: auto;
}

.vr-hc-card-widget .vr-hc-card-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
}

.vr-hc-card-controls {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.vr-hc-card-widget .vr-hc-side {
  min-width: 34px;
  min-height: 32px;
  padding: 4px 7px;
}

.vr-hc-card-meta {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 32px;
  padding: 5px 9px;
  overflow: hidden;
  border-radius: var(--vr-radius, 999px);
  background: var(--vr-meta-bg, rgba(255,255,255,0.16));
  color: var(--vr-meta-color, #ffffff);
  font-weight: 750;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vr-hc-card-widget.vr-hc-card-meta-pos-between_buttons .vr-hc-card-row {
  justify-content: space-between;
}

.vr-hc-card-widget.vr-hc-card-meta-pos-between_buttons .vr-hc-card-meta {
  flex: 1 1 auto;
}

.vr-hc-card-widget .vr-hc-status {
  display: none;
}

.vr-hc-global-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 2147483000;
  max-width: min(92vw, 420px);
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: var(--vr-toast-bg, #163d31);
  color: var(--vr-toast-color, #ffffff);
  box-shadow: 0 16px 44px rgba(0,0,0,0.24);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.vr-hc-global-toast.is-transparent-surface {
  border-color: transparent;
  box-shadow: none;
}

.vr-hc-global-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.vr-hc-global-toast.is-fading {
  opacity: 0;
  transform: translate(-50%, 8px);
  transition-duration: 520ms;
}

.vr-hc-elementor-note {
  padding: 16px 18px;
  border: 1px solid rgba(2,115,81,0.18);
  border-radius: 16px;
  background: #f3faf7;
  color: #1f2937;
}

@media (max-width: 767px) {
  .vr-hc-widget {
    padding: 8px;
  }

  .vr-hc-main {
    grid-template-columns: minmax(48px, 1fr) minmax(62px, var(--vr-bar-length, 94px)) minmax(48px, 1fr);
    gap: 3px;
  }

  .vr-hc-side-label {
    font-size: 0.78em;
  }

  .vr-hc-card-badge-shell {
    --vr-card-badge-max-width: 100%;
  }

  .vr-hc-card-widget {
    max-width: 100%;
  }

  .vr-hc-global-toast {
    bottom: 18px;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vr-hc-widget,
  .vr-hc-side,
  .vr-hc-bar-fill,
  .vr-hc-global-toast {
    transition: none !important;
  }
}


@media (max-width: 480px) {
  .vr-hc-wrap {
    margin-bottom: 12px;
  }

  .vr-hc-widget {
    width: min(100%, var(--vr-width, 250px));
    padding: 7px;
  }

  .vr-hc-main {
    grid-template-columns: minmax(40px, auto) minmax(70px, 1fr) minmax(40px, auto);
    min-width: 0;
  }

  .vr-hc-side {
    min-width: 38px;
    padding-inline: 4px;
  }

  .vr-hc-meta,
  .vr-hc-card-meta {
    max-width: 100%;
    font-size: 0.92em;
  }
}
