/* LIWAG – Gestaltung der Quiz-Seite */
.quiz-page { background: var(--grau-hell); min-height: 100vh; display: flex; flex-direction: column; }
.quiz { flex: 1; display: flex; justify-content: center; padding: 60px 16px 80px; }
.quiz-box { width: 100%; max-width: 640px; text-align: center; }

.fortschritt { display: flex; justify-content: center; gap: 8px; margin-bottom: 56px; }
.fortschritt span { width: 8px; height: 8px; border-radius: 50%; background: #c9cbd6; transition: background .3s, transform .3s; }
.fortschritt span.aktiv { background: var(--navy); transform: scale(1.3); }
.fortschritt span.erledigt { background: #6a7095; }

.schritt { animation: einblenden .35s ease-out; }
@keyframes einblenden { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.schritt h1, .schritt h2 { font-size: clamp(22px, 3vw, 27px); font-weight: 500; margin-bottom: 14px; }
.beschreibung { font-size: 16px; margin-bottom: 28px; }
.quiz-bild { width: 100%; border-radius: 14px; margin: 0 auto 40px; }

.optionen { display: grid; gap: 12px; text-align: left; margin-bottom: 12px; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span {
  display: block; background: var(--weiss); border: 2px solid transparent; border-radius: 8px; padding: 16px 20px 16px 54px;
  font-size: 17px; transition: border-color .2s, box-shadow .2s; position: relative;
}
.option span::before {
  content: ""; position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px;
  border: 2px solid #b4b8c9; border-radius: 5px; background: var(--weiss);
}
.option input[type="radio"] + span::before { border-radius: 50%; }
.option:hover span { box-shadow: 0 4px 14px rgba(6,13,46,.1); }
.option input:checked + span { border-color: var(--blau); }
.option input:checked + span::before {
  background: var(--blau) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%23fff'/%3E%3C/svg%3E") center / 16px no-repeat;
  border-color: var(--blau);
}
.option input:focus-visible + span { outline: 3px solid #aab8f5; outline-offset: 2px; }

.felder { display: grid; gap: 16px; text-align: left; margin-bottom: 12px; }
.felder-2 { grid-template-columns: 1fr 1fr; }
.feld span { display: block; font-size: 15px; margin-bottom: 6px; }
.feld input, .feld select {
  width: 100%; font: inherit; font-size: 17px; padding: 14px 16px; border: 2px solid #d6d8e0; border-radius: 8px; background: var(--weiss); color: var(--text);
}
.feld input:focus, .feld select:focus { outline: none; border-color: var(--blau); }
.zustimmung { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.zustimmung input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blau); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fehler, .sende-fehler { color: #c62828; font-size: 15px; margin: 8px 0 0; }
.sende-fehler { background: #fdecea; border-radius: 8px; padding: 14px 18px; margin-top: 24px; text-align: left; }
.feld input.ungueltig, .optionen.ungueltig .option span { border-color: #e57373; }

.aktionen { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.btn-quiz {
  display: inline-block; background: var(--blau); color: var(--weiss); border: 0; border-radius: 3px; padding: 16px 30px; font: inherit;
  font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn-quiz:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(23,71,255,.35); }
.btn-quiz:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-zurueck { background: none; border: 0; font: inherit; font-size: 15px; color: #555; cursor: pointer; text-decoration: underline; padding: 8px; }

.danke-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--blau); color: var(--weiss); font-size: 38px; line-height: 72px; margin: 0 auto 24px; }
.testmodus { background: #fff3cd; border-radius: 8px; padding: 10px 14px; font-size: 14px; }

.quiz-footer { text-align: center; font-size: 14px; padding: 24px 16px; color: #666; }
.quiz-footer a { color: inherit; }

@media (max-width: 720px) {
  .quiz { padding-top: 36px; }
  .fortschritt { margin-bottom: 32px; }
  .felder-2 { grid-template-columns: 1fr; }
}
