/* Voting Atlas - Quiz "How would you have voted?" */

.quizcard { padding: 28px 32px; }
.quizcard h2 { font-family: var(--font-display); font-weight: 700; font-size: 25px; line-height: 1.3; margin: 0 0 10px; letter-spacing: -0.01em; }
.quizcard h3 { font-family: var(--font-display); font-size: 15px; font-weight: 600; margin: 18px 0 8px; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; }
.quizcard .lede { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0 0 18px; }
.fine { font-size: 12.5px; color: var(--faint); margin: 16px 0 0; }
.intro .primary { margin-top: 4px; }
.intro .fine { margin-top: 18px; }

.primary {
  font: 800 15px/1 var(--font-body); padding: 13px 22px; border-radius: var(--r-pill); cursor: pointer;
  border: 0; background: var(--un); color: #fff; transition: background .15s, transform .15s;
}
.primary:hover:not(:disabled) { background: var(--un-deep); transform: translateY(-1px); }
.primary:disabled { opacity: .55; cursor: default; }

/* ---------- Frage ---------- */
.progress { height: 6px; border-radius: var(--r-pill); background: #F0F3F7; overflow: hidden; margin-bottom: 18px; }
.progress i { display: block; height: 100%; background: var(--un); border-radius: var(--r-pill); transition: width .3s; }
.quizcard .question { font-size: 23px; }
.quizcard .background { font-size: 15.5px; line-height: 1.65; margin: 0 0 22px; }

.answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.answer {
  font: 800 16px/1 var(--font-body); padding: 16px 10px; border-radius: var(--r-ctl); cursor: pointer;
  border: 2px solid var(--line); background: var(--surface); color: var(--ink); transition: all .15s;
}
.answer.t-yes:hover:not(:disabled), .answer.t-yes.chosen { background: var(--yes-bg); border-color: var(--yes-bg); color: var(--yes-ink); }
.answer.t-no:hover:not(:disabled), .answer.t-no.chosen { background: var(--no-bg); border-color: var(--no-bg); color: var(--no-ink); }
.answer.t-abst:hover:not(:disabled), .answer.t-abst.chosen { background: var(--abst-bg); border-color: var(--abst-bg); color: var(--abst-ink); }
.answer:disabled { cursor: default; }
.answer:disabled:not(.chosen) { opacity: .45; }
.skip {
  display: block; margin: 12px auto 0; border: 0; background: none; cursor: pointer;
  font: 700 13px/1 var(--font-body); color: var(--faint); padding: 6px 10px;
}
.skip:hover:not(:disabled) { color: var(--un-deep); }
.skip:disabled { display: none; }

/* ---------- Aufloesung nach jeder Frage ---------- */
.reveal { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); animation: quizin .25s ease-out; }
@keyframes quizin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.verdict { font-weight: 800; font-size: 15px; margin: 0 0 8px; }
.verdict span { display: block; font-weight: 600; font-size: 13px; color: var(--muted); margin-top: 2px; }
.rband { display: flex; gap: 3px; height: 26px; margin-bottom: 14px; }
.rband span {
  display: flex; align-items: center; justify-content: center; min-width: 26px;
  border-radius: 7px; font-size: 12px; font-weight: 800; overflow: hidden;
}
.you { font-size: 15px; margin: 0 0 12px; }
.watch { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.watch .who {
  font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: var(--r-pill);
  background: #F0F3F7; color: var(--muted);
}
.watch .who b { font-weight: 800; }
.watch .who.t-yes b { color: var(--yes-ink); }
.watch .who.t-no b { color: var(--no-ink); }
.watch .who.t-abst b { color: var(--abst-ink); }
.watch .who.match { box-shadow: inset 0 0 0 1.5px var(--un); color: var(--ink); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: 13.5px; font-weight: 700; }
.nav a:hover { color: var(--un-deep); }

/* ---------- Ergebnis ---------- */
.result h2 { font-size: 27px; }
.scols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.slist { display: flex; flex-direction: column; gap: 2px; }
.srow {
  display: grid; grid-template-columns: minmax(0, 1fr) 80px 64px; align-items: center; gap: 10px;
  padding: 6px 8px; border-radius: 9px; text-decoration: none; color: var(--ink); transition: background .15s;
}
.srow:hover { background: var(--un-softer); }
.sname { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbar { height: 8px; border-radius: var(--r-pill); background: #F0F3F7; overflow: hidden; }
.sbar i { display: block; height: 100%; background: var(--un); border-radius: var(--r-pill); }
.spct { text-align: right; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.spct small { display: block; font-size: 11px; font-weight: 600; color: var(--faint); }
.result .nav { margin-top: 20px; }

.review h3 { margin-top: 0; }
.rlist { list-style: none; margin: 0; padding: 0; }
.rlist li { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.rlist li:first-child { border-top: 0; }
.rlist a { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rlist a:hover .rq { color: var(--un-deep); }
.rq { font-weight: 700; font-size: 14px; line-height: 1.45; }
.rmeta { font-size: 12.5px; color: var(--muted); }
.rlist .vote { width: auto; padding: 4px 10px; white-space: nowrap; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .quizcard { padding: 20px 18px; }
  .quizcard h2, .quizcard .question { font-size: 20px; }
  .result h2 { font-size: 22px; }
  .quizcard .background { font-size: 15px; }
  .answers { gap: 8px; }
  .answer { padding: 15px 6px; font-size: 15px; }
  .scols { grid-template-columns: 1fr; }
  .rlist li { flex-direction: column; gap: 6px; }
  .nav { flex-direction: column-reverse; align-items: stretch; text-align: center; }
}
