:root{
  /* Wiesbaden (aus Logo extrahiert) */
  --wi-primary: #325482;
  --wi-accent:  #ed9224;
  --wi-accent2: #eeb66d;

  --wi-black: #111111;
  --wi-white: #ffffff;

  --shadow: 0 12px 34px rgba(0,0,0,.18);
}

*{ box-sizing: border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, var(--wi-accent2) 0%, var(--wi-accent) 65%, color-mix(in srgb, var(--wi-accent) 70%, var(--wi-primary)) 100%);
  min-height: 100vh;
  color: var(--wi-black);
}

.topbar{ padding: 22px 22px 10px; }
.topbar__inner{
  max-width: 980px;
  margin: 0 auto;
  display:flex;
  gap: 14px;
  align-items: center;
}

.brand{
  font-weight: 800;
  font-size: 56px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-link {
  color: #000;
  text-decoration: none;
}

.brand-link:hover,
.brand-link:visited,
.brand-link:active {
  color: #000;
  text-decoration: none;
}

.subtitle{
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
}

.stage{
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 22px 42px;
}

.card{
  background: var(--wi-white);
  border: 0;
  border-radius: 10px;
  padding: 22px 22px 18px;
  margin: 18px auto;
  box-shadow: var(--shadow);
  position: relative;
}
.card.bubble::before{
  content:"";
  position:absolute;
  left: 80px;
  bottom: -18px;
  width:0;height:0;
  border-left: 18px solid transparent;
  border-right:18px solid transparent;
  border-top: 18px solid var(--wi-white);
  filter: drop-shadow(0 10px 10px rgba(0,0,0,.10));
}

.row{ display:flex; gap: 12px; align-items:center; }
.row.wrap{ flex-wrap: wrap; }
.spacer{ flex:1; }

.muted{ opacity: .78; }
.small{ font-size: 12px; }

.h2{
  margin: 6px 0 0 0;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.qhead{ width: min(760px, 100%); }
.question{
  margin: 6px 0 0 0;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 450;
  letter-spacing: -0.01em;
}

.pill{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  background: rgba(255,255,255,.35);
  font-size: 12px;
}

.pill.toggle{
  display:flex;
  gap: 8px;
  align-items:center;
  user-select:none;
  white-space: nowrap;
}
.pill.toggle input{ transform: translateY(1px); }

.btn{
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}
.btnPrimary{ background: var(--wi-primary); color: var(--wi-white); }
.btnGhost{
  background: rgba(255,255,255,.35);
  border: 1px solid rgba(0,0,0,.18);
  color: var(--wi-black);
}

#btnMenu {
  display: none;
}

.btn:hover{ filter: brightness(0.98); }
.btn:active{ transform: translateY(1px); }

.btn:disabled{
  opacity: .45;
  cursor: not-allowed;
  filter: none;
}

.link{ color: var(--wi-primary); font-weight: 800; text-decoration: underline; }

.choices{ margin-top: 10px; flex-wrap: wrap; }
.choice{
  border-radius: 4px;
  border: 0;
  background: var(--wi-accent);
  color: var(--wi-black);
  padding: 12px 16px;
  font-weight: 900;
  min-width: 170px;
  box-shadow: 0 2px 0 rgba(0,0,0,.22);
  cursor:pointer;
}
.choice:hover{ filter: brightness(0.98); }
.choice:active{ transform: translateY(1px); box-shadow: 0 1px 0 rgba(0,0,0,.22); }
.choice.selected{ outline: 3px solid var(--wi-primary); outline-offset: 2px; }

.linkBtn{
  background: transparent;
  border: 0;
  color: var(--wi-primary);
  text-decoration: underline;
  font-weight: 800;
  cursor: pointer;
  padding: 10px 0;
}

.nav{ margin-top: 14px; flex-wrap: wrap; }

.dots{
  display:flex;
  gap: 8px;
  justify-content: center;
  margin: 18px auto 0;
  flex-wrap: wrap;
}
.dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
}
.dot.active{ background: rgba(0,0,0,.9); }
.dot.done{ background: rgba(0,0,0,.35); }

/* Info button (classic i-icon) */
.infoBtn{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid var(--wi-primary);
  background: var(--wi-primary);
  cursor: pointer;
  position: relative;
  font-size: 0;
  line-height: 1;
  box-shadow: 0 2px 0 rgba(0,0,0,.18);
}
.infoBtn::before{
  content: "i";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.infoBtn:hover{ filter: brightness(0.98); }
.infoBtn:active{ transform: translateY(1px); box-shadow: 0 1px 0 rgba(0,0,0,.18); }

/* Results */
.resultCards{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 6px;
}
@media (min-width: 860px){
  .resultCards{ grid-template-columns: 1fr 1fr; }
}

.resultCard{
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 14px;
  background: rgba(0,0,0,.02);
}
.resultHead{ display:flex; align-items:center; gap:10px; }
.partyName{ font-weight: 900; font-size: 16px; }
.pct{ margin-left: auto; font-weight: 900; }
.scoreMeta{ margin-top: 2px; font-size: 12px; opacity: .75; }

.progress{
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.10);
  overflow: hidden;
  margin-top: 10px;
}
.progress > div{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--wi-primary), color-mix(in srgb, var(--wi-primary) 55%, var(--wi-accent)));
  border-radius: 999px;
  transition: width 900ms cubic-bezier(.2,.9,.2,1);
}

.details{ margin-top: 14px; }
.answerList{ margin-top: 10px; font-size: 12px; line-height: 1.45; }

.partyDetails{
  margin-top: 10px;
  border-top: 1px solid rgba(0,0,0,.10);
  padding-top: 10px;
}
.thesisRow{ padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.thesisRow:last-child{ border-bottom: 0; }

.thesisTop{ display:flex; gap: 10px; align-items:flex-start; }
.badge{
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  background: rgba(255,255,255,.55);
}
.badge.match{ background: rgba(0,180,0,.12); border-color: rgba(0,180,0,.25); }
.badge.partial{ background: rgba(240,160,0,.14); border-color: rgba(240,160,0,.28); }
.badge.nomatch{ background: rgba(220,0,0,.10); border-color: rgba(220,0,0,.22); }
.badge.skip{ background: rgba(0,0,0,.06); border-color: rgba(0,0,0,.12); }

.thesisText{ font-size: 13px; font-weight: 650; }
.reason{ margin-top: 6px; font-size: 12px; opacity: .85; }

.quote{
  margin-top: 6px;
  font-size: 12px;
  padding: 10px;
  border-left: 4px solid rgba(0,0,0,.18);
  background: rgba(0,0,0,.03);
  border-radius: 8px;
}
.source{ margin-top: 6px; font-size: 11px; opacity: .7; }

/* Menu */
.iconBtn{
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.18);
  background: rgba(255,255,255,.35);
  cursor:pointer;
  display:flex; flex-direction:column; justify-content:center; gap: 5px;
  padding: 0 12px;
}
.iconBtn span{ height: 2px; background: rgba(0,0,0,.85); border-radius: 2px; }
.iconBtn:active{ transform: translateY(1px); }

.overlay{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  display:flex; align-items:center; justify-content:center;
  padding: 18px;
  z-index: 20;
}
.overlay__panel{
  width: min(520px, 100%);
  background: var(--wi-white);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.hr{ height: 1px; background: rgba(0,0,0,.12); margin: 12px 0; }
.menuItem{
  width:100%;
  text-align:left;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.03);
  font-weight: 900;
  cursor:pointer;
  margin-bottom: 10px;
}
.menuItem.danger{ background: rgba(255,0,0,.06); border-color: rgba(255,0,0,.18); }
.iconClose{ border:0; background: transparent; font-size: 20px; cursor:pointer; }

/* Modal */
.modal{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.40);
  display:flex; align-items:center; justify-content:center;
  padding: 18px;
  z-index: 30;
}
.modal__panel{
  width: min(720px, 100%);
  background: var(--wi-white);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 22px 55px rgba(0,0,0,.30);
}
.modal__title{ font-weight: 950; font-size: 18px; margin-top: 2px; }
.modal__thesis{ font-weight: 850; font-size: 14px; margin-bottom: 8px; }
.modal__text{ font-size: 13px; opacity: .88; line-height: 1.5; }

/* -------------------------
   Responsive tweaks (mobile)
   ------------------------- */
@media (max-width: 860px){
  .topbar{ padding: 16px 14px 8px; }
  .stage{ padding: 8px 14px 26px; }
  .topbar__inner{ gap: 10px; }

  .brand{ font-size: 42px; }
  .subtitle{ font-size: 16px; }

  .card{ padding: 18px 16px 14px; margin: 14px auto; }
  .card.bubble::before{ left: 54px; }

  .question{ font-size: 26px; }
  .h2{ font-size: 20px; }

  .qhead{ width: 100%; }
}

@media (max-width: 600px){
  .brand{ font-size: 34px; }
  .subtitle{ font-size: 14px; }

  /* allow natural wrapping, no absolute pinning */
  .row{ flex-wrap: wrap; align-items: flex-start; }

  /* Toggle goes under the header, aligned right, without shrinking question */
  #screenQuiz .pill.toggle{
    margin-left: auto;
    background: rgba(255,255,255,.75);
    border-color: rgba(0,0,0,.14);
    white-space: nowrap;
  }

  /* Keep thesis text full width */
  #screenQuiz .qhead{ width: 100%; }

  /* Info icon ~2/3 size */
  .infoBtn{ width: 28px; height: 28px; }
  .infoBtn::before{ font-size: 15px; }

  /* Buttons stack */
  .choices{ gap: 10px; }
  .choice{ min-width: 0; width: 100%; }

  /* Navigation: two columns + finish full width */
  .nav{ gap: 10px; }
  .nav .btn{ flex: 1 1 46%; }
  #btnFinish{ width: 100%; }

  .card.bubble::before{ left: 38px; }

  .overlay{ padding: 12px; }
  .overlay__panel{ padding: 14px; }
  .modal{ padding: 12px; }
  .modal__panel{ padding: 14px; }
}

@media (max-width: 420px){
  .topbar{ padding: 14px 12px 6px; }
  .stage{ padding: 6px 12px 22px; }

  .brand{ font-size: 30px; }
  .subtitle{ font-size: 13px; }

  .card{ padding: 16px 14px 12px; }
  .question{ font-size: 22px; }

  .btn{ width: 100%; }
  .btnGhost, .btnPrimary{ padding: 11px 14px; }

  .linkBtn{ padding: 8px 0; }
  .dot{ width: 9px; height: 9px; }
}

@media (prefers-reduced-motion: reduce){
  .progress > div{ transition: none; }
  .btn:active, .choice:active, .infoBtn:active, .iconBtn:active{ transform: none; }
}