/* WSO-Aktionsorte-Finder – Zusatzfunktionen */
.card[hidden] { display: none; }

/* ---------- Knöpfe ---------- */
.btn {
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 16px;
  border-radius: 999px;
  border: 2px solid var(--wso-orange);
  background: var(--wso-orange);
  color: var(--white);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--wso-red); border-color: var(--wso-red); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn:disabled:hover { background: var(--wso-orange); border-color: var(--wso-orange); }
.btn-outline { background: var(--white); color: var(--wso-red); border-color: var(--wso-red); }
.btn-outline:hover { background: var(--wso-red); color: var(--white); }
.btn-outline.is-on { background: var(--wso-red); color: var(--white); }
.btn-outline:disabled:hover { background: var(--white); border-color: var(--wso-red); color: var(--wso-red); }
.btn-block { display: block; width: 100%; margin-top: 12px; }

.target-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.link-small { margin-top: 0; font-size: 0.8rem; }

/* ---------- Vorschläge ---------- */
.suggest-list { list-style: none; margin: 10px 0 0; padding: 0; }
.suggest-list:empty { display: none; }
.suggest-list li + li { margin-top: 6px; }
.suggest {
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--white);
  border: 2px solid var(--orange-15);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.suggest:hover { border-color: var(--wso-orange); background: var(--orange-15); }
.suggest .rank {
  grid-row: span 2;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wso-red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
}
.s-name { font-weight: 700; }
.s-meta { font-size: 0.8rem; color: var(--black-60); }
.suggest-list .empty { font-size: 0.85rem; color: var(--black-60); }

/* ---------- Vergleich ---------- */
.compare-wrap { margin-top: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.compare th, .compare td { padding: 6px 6px; text-align: right; white-space: nowrap; }
.compare tbody th { text-align: left; font-weight: 600; }
.compare thead th { vertical-align: bottom; border-bottom: 2px solid var(--wso-orange); }
.compare td small { color: var(--black-60); font-size: 0.75em; }
.compare tbody tr + tr td, .compare tbody tr + tr th { border-top: 1px solid var(--orange-15); }
.compare tr.sum th, .compare tr.sum td { font-weight: 700; }
.compare tr.sum:first-of-type th, .compare tr.sum:first-of-type td { border-top: 2px solid var(--wso-orange); }
.compare td.best { color: var(--wso-red); }
.compare td.best small { color: var(--wso-red); }
.cmp-name {
  font: inherit;
  font-weight: 700;
  color: var(--wso-red);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: normal;
  max-width: 7.5em;
  text-align: right;
}
.cmp-del {
  font: inherit;
  margin-left: 4px;
  background: none;
  border: none;
  color: var(--black-60);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0 2px;
}
.cmp-del:hover { color: var(--wso-red); }

/* ---------- Legende Fairness-Karte ---------- */
.legend-note { color: var(--black-60); font-size: 0.8rem; }

/* ---------- Meldung ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 2000;
  background: var(--wso-red);
  color: var(--white);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid var(--wso-orange);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast[hidden] { display: none; }
