/* Minimaler Basis-Style (Custom CSS kommt zusätzlich als Inline-Style) */

#ch-selftest.ch-selftest {
  max-width: 900px;
}

#ch-selftest .ch-selftest__core {
  margin: 24px 0;
}

#ch-selftest .ch-selftest__question {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

#ch-selftest .ch-selftest__answers {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

#ch-selftest .ch-selftest__answer {
  display: flex;
  gap: 10px;
  align-items: center;
}

#ch-selftest .ch-selftest__actions {
  display: flex;
  gap: 12px;
  margin: 18px 0;
}

#ch-selftest .ch-selftest__results {
  margin-top: 26px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.10);
}

#ch-selftest .ch-selftest__list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

#ch-selftest .ch-selftest__list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

#ch-selftest .ch-selftest__chart {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 10px;
  align-items: end;
  min-height: 220px;
  margin-top: 12px;
}

#ch-selftest .ch-selftest__bar {
  position: relative;
  min-height: 220px;
}

#ch-selftest .ch-selftest__bar-inner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  /* Höhe über CSS-Variablen: value/max */
  height: calc((var(--value) / var(--max)) * 100%);
  background: rgba(0,0,0,0.2);
  border-radius: 8px 8px 0 0;
}

#ch-selftest .ch-selftest__bar-label,
#ch-selftest .ch-selftest__bar-value {
  text-align: center;
  font-size: 12px;
  opacity: 0.85;
}

#ch-selftest .ch-selftest__bar-label {
  position: absolute;
  bottom: -18px;
  left: 0;
  right: 0;
}

#ch-selftest .ch-selftest__bar-value {
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
}

#ch-selftest .ch-selftest__legend {
  margin-top: 14px;
  display: grid;
  gap: 6px;
}

#ch-selftest .ch-selftest__legend-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

#ch-selftest .ch-selftest__legend-swatch {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(0,0,0,0.12);
  font-size: 12px;
}

#ch-selftest .ch-selftest__top {
  margin-top: 22px;
}

#ch-selftest .ch-selftest__top-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
