:root {
  --navy: #092455; --teal: #3F7678; --lteal: #56AEAD; --lime: #BBD02D;
  --ink: #1d2433; --muted: #5b6577; --line: #d5dbe3; --bg: #ffffff; --soft: #f2f6f6;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
a { color: var(--teal); }
h1 { color: var(--navy); font-size: 1.8rem; line-height: 1.25; margin: 1.6rem 0 .8rem; }
h2 { color: var(--navy); font-size: 1.3rem; margin: 1.6rem 0 .6rem; }
.lead { font-size: 1.08rem; }
.muted { color: var(--muted); font-weight: normal; }
.small { font-size: .85rem; }
/* compact copy of the iqcb.uni-mainz.de header and footer */
.site-head { background: #fff; border-bottom: 1px solid var(--line); }
.site-head > .wrap { max-width: 1200px; display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.site-head .logo img, .site-head .jgu img { display: block; width: auto; }
.site-nav { flex: 1; display: flex; flex-wrap: wrap; gap: .2rem 1.3rem; justify-content: center; }
.site-nav a { color: var(--navy); text-decoration: none; font-size: .92rem; font-weight: 600; letter-spacing: .02em; }
.site-nav a:hover { color: var(--teal); }
.app-bar { background: var(--navy); color: #fff; }
.app-bar .wrap { display: flex; justify-content: space-between; align-items: center; height: 42px; }
.app-name { font-weight: 600; font-size: .95rem; }
.app-links a { color: #fff; margin-left: 1.2rem; text-decoration: none; font-size: .95rem; }
.app-links a:hover { text-decoration: underline; }
.site-foot { background: #4c8284; color: rgba(255,255,255,.9); margin-top: 3rem; font-size: .9rem; }
.site-foot a { color: #fff; font-weight: 600; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-cols { max-width: 1200px; display: grid; grid-template-columns: 2.2fr 1fr 1fr; gap: 1.5rem 2.5rem; padding-top: 1.8rem; }
.foot-brand { display: flex; gap: 1.2rem; align-items: flex-start; }
.foot-brand img { flex: none; height: auto; }
.site-foot p { margin: 0 0 .5rem; line-height: 1.55; }
.site-foot h4 { margin: .2rem 0 .6rem; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: #fff; }
.foot-bar { text-align: center; border-top: 1px solid rgba(255,255,255,.22); margin-top: 1.4rem; padding: .8rem 16px 1rem; }
.foot-bar a { font-weight: 400; }
@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-head > .wrap { justify-content: space-between; height: 58px; }
  .site-head .logo img { height: 36px; }
  .site-head .jgu img { height: 28px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
.facts { padding-left: 1.2rem; }
.facts li { margin: .3rem 0; }
.privacy { background: var(--soft); border-left: 4px solid var(--teal); padding: .7rem .9rem; font-size: .92rem; border-radius: 4px; }
.actions { margin: 1.4rem 0; display: flex; gap: .8rem; flex-wrap: wrap; }
.btn { display: inline-block; font: inherit; padding: .65rem 1.3rem; border-radius: 999px; border: 2px solid var(--navy);
  background: #fff; color: var(--navy); cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--navy); color: #fff; }
.btn:hover { filter: brightness(1.12); }
.btn:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.returner { margin-top: 1rem; }
.returner summary { cursor: pointer; color: var(--teal); }
.inline { display: flex; gap: .8rem; flex-wrap: wrap; align-items: flex-end; margin-top: .7rem; }
.inline label { display: flex; flex-direction: column; font-size: .9rem; color: var(--muted); }
input, textarea { font: inherit; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 6px; }
.inline input { width: 8rem; }
textarea { width: 100%; }
.error { color: #a4282a; }
.progress { height: 6px; background: var(--soft); border-radius: 3px; margin-top: 1.4rem; overflow: hidden; }
.progress .bar { height: 100%; width: 0; background: var(--lteal); transition: width .3s; }
.kicker { color: var(--teal); font-weight: 600; margin: 1.4rem 0 0; }
.examples { color: var(--muted); margin: .1rem 0 0; font-size: .92rem; }
.statement { font-size: 1.45rem; line-height: 1.35; margin: 1.4rem 0; min-height: 4.2em; }
.yn .btn { min-width: 7rem; }
.hint { color: var(--muted); font-size: .9rem; }
.codenote { background: var(--navy); color: #fff; border-radius: var(--radius); padding: .6rem .9rem; margin: .8rem 0 0; }
.codenote .code { font-family: ui-monospace, Consolas, monospace; font-weight: 700; }
.copybtn { font: inherit; font-size: .85rem; font-weight: 600; color: #fff; background: transparent; border: 1.5px solid rgba(255,255,255,.7); border-radius: 999px; padding: .15rem .7rem; margin-left: .5rem; cursor: pointer; vertical-align: middle; }
.copybtn:hover { background: rgba(255,255,255,.15); }
.copybtn:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
fieldset { border: none; padding: 0; margin: 1.2rem 0; }
legend { font-weight: 600; margin-bottom: .4rem; }
.choices label { display: block; padding: .3rem 0; cursor: pointer; }
.choices input { margin-right: .5rem; transform: scale(1.15); }
.other { display: block; margin-top: .4rem; }
.other input { width: 100%; max-width: 28rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.idcard { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-top: 1.6rem; }
.idcard .big { font-size: 1.6rem; font-weight: 700; }
.idcard .code { font-family: ui-monospace, Consolas, monospace; background: rgba(255,255,255,.15); padding: .1rem .5rem; border-radius: 4px; }
.profile { width: 100%; border-collapse: collapse; }
.profile td, .profile th { text-align: left; padding: .55rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.profile .lvl { white-space: nowrap; font-weight: 600; color: var(--navy); }
.pips { display: inline-flex; gap: 3px; margin-right: .4rem; vertical-align: middle; }
.pips i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; }
.pips i.on { background: var(--teal); }
.me-box { background: var(--soft); border-radius: var(--radius); padding: .8rem 1rem; }
.radar { display: flex; justify-content: center; margin: 1rem 0; }
.radar svg { max-width: 420px; width: 100%; height: auto; }
.fieldchart { margin: 1.4rem 0 1.8rem; }
.fieldchart h3 { margin: 0 0 .2rem; color: var(--navy); font-size: 1.05rem; }
.fieldchart svg { width: 100%; height: auto; display: block; }
.fieldchart p { margin: .2rem 0 0; font-size: .92rem; }
.totals .row { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem; gap: .4rem; align-items: center; margin: .15rem 0; }
.totals .lbl { font-size: .92rem; }
.totals .bar { height: 10px; background: var(--lteal); border-radius: 5px; margin-top: .15rem; }
.totals .num { text-align: right; font-variant-numeric: tabular-nums; }
.totals h3 { font-size: 1rem; margin: 1.2rem 0 .3rem; color: var(--navy); }
.legend { font-size: .85rem; color: var(--muted); }
.legend .you { color: var(--lime); font-weight: 700; }
.btn[hidden] { display: none; }
@media (max-width: 560px) {
  .app-name { font-size: .85rem; }
  .foot-cols { grid-template-columns: 1fr; }
  h1 { font-size: 1.45rem; }
  .statement { font-size: 1.2rem; }
}

/* explanation link, interest chips, side panel, learning list */
.linkbtn { background: none; border: none; padding: 0; font: inherit; color: var(--teal); text-decoration: underline; cursor: pointer; }
.statement { margin-bottom: .4rem; }
.interest { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: -.4rem 0 1rem; }
.chip { font: inherit; font-size: .9rem; padding: .35rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); font-weight: 600; }
.chip:focus-visible, .linkbtn:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.panel { position: fixed; inset: 0 0 0 auto; width: min(440px, 100%); background: #fff; box-shadow: -6px 0 24px rgba(9,36,85,.18); z-index: 20; overflow-y: auto; }
.panel-inner { padding: 1.4rem 1.4rem 2rem; }
.panel h2 { margin-top: .3rem; font-size: 1.15rem; line-height: 1.4; }
.panel-close { position: absolute; top: .5rem; right: .8rem; font-size: 1.8rem; background: none; border: none; color: var(--navy); cursor: pointer; }
.panel .video { display: inline-block; margin-top: .4rem; font-weight: 600; }
.learnlist { padding-left: 1.4rem; }
.learnlist li { margin: .55rem 0; }
.learnlist .meta { color: var(--muted); font-size: .88rem; }
.learnlist .tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: .05rem .5rem; border-radius: 999px; margin-right: .4rem; background: var(--soft); color: var(--teal); }
.learnlist .tag.very { background: var(--lime); color: var(--navy); }
.learnlist .count { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .88rem; }

/* privacy note folded away on the start page */
details.privacy summary { cursor: pointer; color: var(--teal); font-weight: 600; }
details.privacy p { margin: .5rem 0 0; }
.me-box .actions { margin: .7rem 0 .2rem; }
.me-box p { margin: 0; }
