/* can-4u Quiz CSS (Inter + can-4u Farben) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  src: local("Inter"), local("Inter Regular");
}
:root{
  --c-bg:#ffffff;
  --c-ink:#02182F;
  --c-muted:#5b6776;
  --c-border:#e6e9ef;
  --c-shadow:0 10px 30px rgba(0,0,0,.08);

  --c-green:#40D55F;
  --c-blue:#42BFF2;
  --c-orange:#FFCF2F;
  --c-pink:#EA569C;

  --c-btn:#02182F;
  --c-btnText:#ffffff;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--c-ink);
  background:#fff;
}
.quiz-shell{
  max-width: 1100px;
  margin: 20px auto 40px auto;
  padding: 0 16px;
}
.quiz-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom: 10px;
}
.brand-left{
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:14px;
}
.brand-left .small{ color:var(--c-muted); font-size:12px; }
.brand-right img{ height:44px; }

.quiz-headline{
  text-align:center;
  flex:1 1 auto;
}
.quiz-headline h1{
  margin:0;
  font-size:54px;
  letter-spacing:.5px;
  font-weight:800;
}
.quiz-headline h1 .green{ color:var(--c-green); }
.quiz-grid{
  display:grid;
  grid-template-columns: 140px 1fr 140px;
  gap: 18px;
  align-items:start;
  margin-top: 14px;
}
@media (max-width: 980px){
  .quiz-grid{ grid-template-columns: 1fr; }
  .quiz-headline h1{ font-size:38px; }
  .brand-right{ display:none; }
}
.sidebox{
  display:flex;
  align-items:center;
  justify-content:center;
}
.circle{
  width:110px;height:110px;
  border-radius:50%;
  border: 6px solid rgba(64,213,95,.25);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  font-weight:900;
}
.circle .big{ font-size:40px; line-height:1; }
.circle .small{ font-size:14px; color:var(--c-muted); }

.trophy{
  width:84px;height:84px;
  object-fit:contain;
}

.card{
  background:var(--c-bg);
  border:1px solid var(--c-border);
  border-radius: 14px;
  box-shadow: var(--c-shadow);
  padding: 20px;
}

.card-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.card-title{ margin:0; font-size:20px; font-weight:800; }
.card-sub{ margin:6px 0 0 0; color:var(--c-muted); font-size:13px; }
.progress{ color:var(--c-muted); font-size:13px; white-space:nowrap; }

.question{
  margin: 16px 0 12px 0;
  font-size: 18px;
  font-weight: 700;
  text-align:center;
}

.answers{ display:flex; flex-direction:column; gap:10px; margin: 10px 0 10px 0; }
.answer{
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 12px 12px;
  display:flex;
  gap:12px;
  align-items:center;
  cursor:pointer;
  background:#fff;
}
.answer:hover{ border-color:#cfd6e3; }
.answer.disabled{ cursor: not-allowed; opacity:.9; }
.badge{
  width:36px;height:36px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  background: rgba(64,213,95,.12);
  border:1px solid rgba(64,213,95,.35);
  color:var(--c-green);
}
.answer.wrong{ background:#fff3f3; border-color: rgba(255,91,91,.35); }
.answer.wrong .badge{ background: rgba(255,91,91,.10); border-color: rgba(255,91,91,.35); color:#ff5b5b; }
.answer.correct{ background:#eaf9ef; border-color: rgba(64,213,95,.55); }
.answer.correct .badge{ background: rgba(64,213,95,.20); border-color: rgba(64,213,95,.55); color: var(--c-green); }

.feedback{
  display:none;
  margin-top: 10px;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid var(--c-border);
  background:#f6f8fb;
  font-size:14px;
  line-height:1.4;
}
.feedback.show{ display:block; }
.feedback.good{ background:#eaf9ef; border-color: rgba(64,213,95,.35); }
.feedback.bad{ background:#ffecec; border-color: rgba(255,91,91,.35); }
.feedback h4{ margin:0 0 6px 0; font-size:15px; }

.tip{
  margin-top: 12px;
  border-top: 1px solid var(--c-border);
  padding-top: 10px;
}
.tip summary{
  cursor:pointer;
  font-weight:800;
  color: var(--c-ink);
  display:flex;
  align-items:center;
  gap:8px;
  list-style:none;
}
.tip summary::-webkit-details-marker{ display:none; }
.tipbox{
  margin-top: 10px;
  background:#f6f8fb;
  border:1px solid var(--c-border);
  border-radius:10px;
  padding:12px;
  color: var(--c-muted);
  font-size:14px;
}

.actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-top: 14px;
}
.btn{
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  background:#fff;
  cursor:pointer;
}
.btn.primary{
  background: var(--c-blue);
  border-color: var(--c-blue);
  color:#00111f;
}
.btn.primary:disabled{ opacity:.55; cursor:not-allowed; }
.btn.ghost{ background:transparent; }

.result{
  display:none;
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--c-border);
  background:#f4f8f5;
}
.result.show{ display:block; }
.levelpill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--c-border);
  font-weight:900;
  margin-top: 10px;
}

.cert{
  margin-top: 12px;
  background:#fff;
  border:1px solid var(--c-border);
  border-radius: 12px;
  padding: 12px;
}
.input{
  width:100%;
  border:1px solid var(--c-border);
  border-radius:10px;
  padding:10px 12px;
  margin:8px 0;
  font-size:14px;
}
.row{
  display:flex; gap:10px; flex-wrap:wrap;
}
.row > *{ flex:1 1 160px; }

.checkbox{ display:flex; gap:10px; align-items:flex-start; color:var(--c-muted); font-size:13px; }
.smallnote{ color:var(--c-muted); font-size:12px; margin:6px 0 0 0; }

.ads{
  margin-top: 16px;
  display:none;
  gap: 12px;
  justify-content:space-between;
}
.ads.show{ display:flex; }
.ads img{
  width: calc(25% - 9px);
  border-radius: 12px;
  border: 1px solid var(--c-border);
  object-fit: cover;
  min-height: 90px;
}
@media (max-width: 900px){
  .ads{ flex-wrap:wrap; }
  .ads img{ width: calc(50% - 6px); }
}
