body.student {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  background: #fff;
  overscroll-behavior-y: none;
}
#app {
  max-width: 560px;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 20px 20px calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}
.student-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.student-top .who { color: var(--muted); font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teacher-login { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.teacher-login:hover { color: var(--ink); }
.student-main { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.student-title { color: var(--muted); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.question-text { font-size: clamp(24px, 6.5vw, 32px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; overflow-wrap: anywhere; }
.center-screen { flex: 1; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px 0; }
.center-screen h1 { font-size: 28px; }
.center-screen p { color: var(--muted); }
.big-mark { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.big-mark .icon { width: 44px; height: 44px; stroke-width: 2.5; }
.big-mark.ok { background: var(--ok-soft); color: var(--ok); }
.waiting-pulse { display: flex; gap: 8px; }
.waiting-pulse span { width: 12px; height: 12px; border-radius: 50%; background: var(--brand); animation: bounce-small 1.2s infinite; }
.waiting-pulse span:nth-child(2) { animation-delay: .15s; background: var(--tone-1); }
.waiting-pulse span:nth-child(3) { animation-delay: .3s; background: var(--tone-2); }
@keyframes bounce-small { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-10px); } }

.join-form { display: grid; gap: 16px; margin: auto 0; text-align: center; }
.join-form h1 { font-size: 30px; font-weight: 800; }
.code-input { min-height: 72px !important; text-align: center; font-size: 36px !important; font-weight: 800; letter-spacing: .12em; border-width: 2px !important; border-radius: 16px !important; }
.form-message { min-height: 1.5em; font-size: 14px; color: var(--muted); }
.form-message.error { color: var(--danger); font-weight: 600; }

.options { display: grid; gap: 12px; }
.option { position: relative; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 16px; background: #fff; font-size: 18px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.option::before { content: ""; position: absolute; left: -2px; top: -2px; bottom: -2px; width: 8px; border-radius: 16px 0 0 16px; background: var(--tone); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .mark { display: grid; place-items: center; flex: none; width: 26px; height: 26px; margin-left: 6px; border: 2px solid #cfcfdd; border-radius: 50%; color: #fff; }
.option.multiple .mark { border-radius: 8px; }
.option .mark .icon { width: 16px; height: 16px; stroke-width: 3; opacity: 0; }
.option:has(input:checked) { border-color: var(--tone); background: color-mix(in srgb, var(--tone) 8%, #fff); }
.option:has(input:checked) .mark { border-color: var(--tone); background: var(--tone); }
.option:has(input:checked) .mark .icon { opacity: 1; }
.option:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
.option:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.word-inputs { display: grid; gap: 10px; }
.word-inputs input { min-height: 56px; font-size: 18px; border-radius: 14px; }
.open-input { min-height: 150px; font-size: 18px; border-radius: 14px; }
.counter { text-align: right; font-size: 13px; color: var(--muted); }
.scale-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); gap: 8px; }
.scale-option { position: relative; display: grid; place-items: center; min-height: 56px; border: 2px solid var(--line); border-radius: 14px; font-size: 20px; font-weight: 800; cursor: pointer; }
.scale-option input { position: absolute; opacity: 0; pointer-events: none; }
.scale-option:has(input:checked) { border-color: var(--brand); background: var(--brand); color: #fff; }
.scale-option:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
.scale-labels { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; font-weight: 600; }
.answer-actions { display: grid; gap: 10px; margin-top: auto; padding-top: 8px; }
.send-status { min-height: 1.5em; text-align: center; font-weight: 700; font-size: 15px; }
.send-status.ok { color: var(--ok); }
.send-status.error { color: var(--danger); }
.send-status.pending { color: var(--muted); }
.progress { display: grid; gap: 6px; }
.progress-track { height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.progress-fill { height: 100%; border-radius: inherit; background: var(--brand); transition: width .3s; }
.progress-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.progress-note { color: var(--muted); font-size: 13px; }
/* minmax(0, …) and wrapping keep a long label like „Ohne Änderung abschließen“ from widening the page on small phones. */
.step-buttons { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.step-buttons .button { white-space: normal; text-align: center; line-height: 1.2; }
.offline { position: fixed; left: 12px; right: 12px; top: 12px; z-index: 10; padding: 10px 14px; border-radius: 12px; background: var(--danger); color: #fff; font-weight: 700; text-align: center; }
