/* ========================================================
   5. BUTTON STYLES & VOTING
======================================================== */

.card-btn,
.vote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  min-height: 30px;
  background: #fff;
  color: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px;
  font-family: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.card-btn:hover,
.vote-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
}

.card-btn:active,
.vote-btn:active {
  transform: translateY(0);
  background: #f0f0f1;
  box-shadow: rgba(0, 0, 0, 0.06) 0 2px 4px;
}

.card-btn {
  margin-right: auto;
}

.card-btn .arrow {
  font-size: 14px;
  font-weight: bold;
}

/* Voting System */
.vote-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  margin-left: auto !important;
}

.vote-wrapper h4 {
  margin: 0 !important;
  white-space: nowrap !important;
}

.card-vote {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-top: 20px;
  margin-bottom: 20px;
}

.vote-btn {
  min-width: 30px;
  padding: 6px 8px;
}

.vote-btn .icon {
  width: 12px;
  height: 12px;
  display: inline-block;
  background-color: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.thumbs-up {
  mask-image: url("../icon/thumbs-up.svg");
  -webkit-mask-image: url("../icon/thumbs-up.svg");
  
}

.thumbs-down {
  mask-image: url("../icon/thumbs-down.svg");
  -webkit-mask-image: url("../icon/thumbs-down.svg");
 
}

.vote-count {
  min-width: 16px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.vote-btn.up:hover,
.vote-btn.up.voted {
   color: #1fa24a;
}

.vote-btn.down:hover,
.vote-btn.down.voted {
  color: #d93025;
}

.vote-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================================
   4. BUTTON HOVER WRAPPER (Mit Hinweistext)
======================================================== */

.btn-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.btn-wrapper::before {
  content: 'Klick den Code >>';
  font-size: 12px;
  font-weight: bold;
  color: #d31a1a;
  white-space: nowrap;
  
  position: absolute;
  right: 100%;
  margin-right: 12px;
  
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.25s ease-in-out;
  pointer-events: none;
}

.btn-wrapper:hover::before {
  opacity: 1;
  transform: translateX(0);
}


/* Header (kompakt & mittig ausgerichtet) */
/* Header */
.btn-header {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 12px !important;
  background: #d6dbe2 !important;
}

.btn-header h3 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
}
.btn-header span {
  padding: 0px 8px;
  color: var(--weiss, #ffffff);
  background: var(--rot, #ff0000);
  border-radius: px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Card Container Layout */
.btn-table-card {
  display: grid;
  grid-template-rows: auto 1fr auto !important; /* Verteilt Header / Mitte / Footer */
  min-height: 280px !important;
  height: auto !important;
  background: var(--weiss, #ffffff);
  border: 1px solid rgba(106, 102, 102, 0.2);
  overflow: hidden;
}

.btn-table-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #d6dbe2;
}

.btn-table-card-footer .card-modal-open {
  margin-left: 0;
  font-size: 12px;
  font-weight: bold;
  color: var(--grau);
  cursor: pointer;
  opacity: 1 !important;
  transform: none !important;
}