/* ---------- Fragen-Blöcke (Handy, Schreiben) ---------- */
.qblock {
  background: var(--qbg); color: var(--qtext);
  border-radius: var(--r-block);
  padding: 18px 16px 16px;
  display: flex; flex-direction: column; gap: 10px;
  animation: rise .35s ease both;
}
.qblock .t-eyebrow { color: inherit; opacity: .8; }
.qblock h2 { font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: -0.025em; line-height: 1.08; }
.qblock .qhint { font-size: 13px; line-height: 1.4; opacity: .85; margin-top: -4px; }
.qlist { display: flex; flex-direction: column; gap: 8px; }
.qlist:empty { display: none; }
.titem {
  display: flex; align-items: center; gap: 8px;
  background: var(--qchip); border-radius: 14px;
  padding: 4px 4px 4px 14px; min-height: 48px;
  font-weight: 600; font-size: 15px; line-height: 1.3;
  animation: pop .25s ease both;
}
.titem.is-pending { opacity: .6; }
.titem span { flex: 1; padding: 8px 0; overflow-wrap: anywhere; }
.titem button {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  font-size: 20px; color: inherit; opacity: .75;
}
.titem button:active { background: var(--qchip2); }
.qform { display: flex; gap: 8px; }
.qform .input { flex: 1; border-color: transparent; }
.qform .input:focus { border-color: var(--qtext); }
.qform .btn--icon { background: var(--ink); color: #fff; border-radius: 14px; }
.q-2 .qform .btn--icon { background: var(--ink); }

.statusbar {
  position: sticky; bottom: 0; z-index: 3;
  margin: 8px -12px 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: var(--card); border-radius: 22px 22px 0 0;
  box-shadow: 0 -6px 20px rgba(20, 22, 31, .06);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.statusbar b { font-family: var(--font-head); font-size: 17px; }
@media (min-width: 600px) {
  .statusbar { position: static; margin: 0; border-radius: var(--r-card); box-shadow: var(--shadow); padding: 16px 20px; }
}

/* ---------- Gruppen-Cloud (Handy, Runde) ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

.gcloud {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 6px;
  padding: 8px 4px;
}
.gpill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 6px 16px; border-radius: 999px;
  background: var(--qbg); color: var(--qtext);
  font-family: var(--font-head); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1;
  font-size: calc(14px + var(--w, 0) * 7px);
  border: 2.5px solid transparent;
  text-align: left;
  transition: transform .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.gpill:active { transform: scale(.97); }
.gpill small { font-family: var(--font-body); font-weight: 700; font-size: .75em; opacity: .8; }
.gpill.is-mine { background: #fff; color: var(--ink); border-color: var(--qbg); }
.gpill.is-mine::before { content: '✓'; font-size: .9em; }
.gpill.is-open { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); }
.gpill.is-live { animation: pulse 1.6s ease-in-out infinite; }

.gdetail {
  background: var(--qbg); color: var(--qtext);
  border-radius: var(--r-block); padding: 18px 16px 16px;
  display: flex; flex-direction: column; gap: 10px;
  animation: rise .25s ease both;
  scroll-margin-top: 12px;
}
.gdetail .t-eyebrow { color: inherit; opacity: .8; }
.gdetail h2 { font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: -0.025em; line-height: 1.05; }
.gdetail .glist { display: flex; flex-direction: column; gap: 6px; }
.gdetail .glist div { background: var(--qchip); border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 15px; line-height: 1.3; }
.gdetail__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.gdetail__foot .t-small { font-weight: 600; opacity: .9; }
.gdetail .btn--white { color: var(--ink); min-height: 48px; }
.gdetail .btn--white.is-mine::before { content: '✓'; }

.speaknow {
  display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; border-radius: 18px; padding: 12px 16px;
  animation: rise .25s ease both;
}
.speaknow .t-eyebrow { color: rgba(255,255,255,.6); }
.speaknow b.t-num { font-size: 24px; margin-left: auto; }
.speaknow .speaknow__who { font-weight: 700; font-size: 15px; line-height: 1.25; }
.speaknow .speaknow__who small { font-weight: 500; color: rgba(255,255,255,.7); display: block; font-size: 13px; }

/* ---------- Statistik-Kacheln ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--card); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--font-head); font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat--c { background: var(--q1); color: var(--q1-text); } .stat--c span { color: inherit; opacity: .75; }
.stat--b { background: var(--q2); color: var(--q2-text); } .stat--b span { color: inherit; opacity: .8; }
.stat--m { background: var(--q3); color: var(--q3-text); } .stat--m span { color: inherit; opacity: .75; }

.mythoughts { display: flex; flex-direction: column; gap: 8px; }
.mythoughts div { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.35; }
.mythoughts .dot { flex: none; margin-top: 7px; }

/* ---------- Moderation ---------- */
.is-mod .page { max-width: 640px; }
.is-mod .page.page--wide { max-width: 1400px; }
.is-mod .head { border-radius: 0 0 28px 28px; }
@media (max-width: 520px) {
  .is-mod .head__bar .badge { display: none; }
  .is-mod .head__bar .btn--sm { padding: 0 10px; font-size: 12px; min-height: 36px; }
}
@media (min-width: 900px) {
  .is-mod .page--wide .head { border-radius: 0 0 32px 32px; padding: 20px 28px 24px; }
}

.steps { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.step {
  min-height: 44px; padding: 0 14px; border-radius: 999px;
  background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px; letter-spacing: .02em;
}
.step i { font-style: normal; font-family: var(--font-head); opacity: .6; }
.step.is-done { color: var(--ink); }
.step.is-current { background: var(--ink); color: #fff; }
.step.is-current i { opacity: .7; }

.timerbox {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.timerbox .big {
  font-family: var(--font-head); font-size: 56px; font-weight: 800; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums; line-height: 1; min-width: 150px;
}
.timerbox.is-done .big { color: var(--alert); animation: pulse 1.2s ease-in-out infinite; }
.timerbox .row { flex-wrap: wrap; }

.plist { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 4px 14px 4px 5px; border-radius: 999px;
  background: var(--card); border: 1.5px solid var(--line); font-weight: 600; font-size: 14px;
}
.pchip .avatar { width: 32px; height: 32px; font-size: 11px; }
.pchip small { color: var(--muted); font-weight: 600; }
.pchip.is-hidden .avatar { background: var(--muted); }
.pchip.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.pchip.is-active small { color: rgba(255,255,255,.7); }
.pchip.is-done { opacity: .55; }
button.pchip { cursor: pointer; }

.tfeed { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow: auto; }
.tfeed div { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--bg); font-size: 14px; }
.tfeed .dot { flex: none; }
.tfeed span { flex: 1; overflow-wrap: anywhere; }
.tfeed i { font-style: normal; font-family: var(--font-head); font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.tfeed .eye { font-size: 11px; color: var(--muted); }

.actions { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 560px) { .actions { flex-direction: row; flex-wrap: wrap; } .actions .btn { flex: 1; } }

/* Gruppieren-Board */
.board { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 14px 12px 0; }
@media (min-width: 900px) { .board { grid-template-columns: 300px 1fr; padding: 16px 20px 0; align-items: start; } }
.board__open { position: sticky; top: 12px; }
.board__groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.dropzone { transition: box-shadow .12s ease, transform .12s ease; }
.dropzone.is-over { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ink); transform: scale(1.01); }
.gcard {
  background: var(--qbg); color: var(--qtext); border-radius: 22px; padding: 14px 14px 12px;
  display: flex; flex-direction: column; gap: 8px; min-height: 120px;
}
.gcard__head { display: flex; align-items: flex-start; gap: 8px; }
.gcard__title {
  flex: 1; font-family: var(--font-head); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; line-height: 1.1;
  background: transparent; border: 0; color: inherit; padding: 6px 8px; margin: -6px -8px; border-radius: 10px; min-height: 36px; width: 100%;
}
.gcard__title:focus { outline: 2px solid var(--qtext); background: var(--qchip); }
.gcard__count {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 13px;
}
.q-2 .gcard__count { background: #fff; color: var(--ink); }
.gcard__list { display: flex; flex-direction: column; gap: 6px; }
.gcard__tools { display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.gcard__tools .mini {
  min-height: 36px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: inherit; background: var(--qchip);
}
.gcard__tools .swatch { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; padding: 0; }
.gcard__tools .swatch.is-on { outline: 2px solid var(--ink); outline-offset: 1px; }
.tcard {
  display: flex; align-items: center; gap: 8px; background: #fff; color: var(--ink);
  border-radius: 12px; padding: 8px 8px 8px 12px; font-size: 14px; font-weight: 600; line-height: 1.3;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  position: relative;
}
.tcard:active { cursor: grabbing; }
.tcard .dot { flex: none; }
.tcard span { flex: 1; overflow-wrap: anywhere; }
.tcard i { font-style: normal; font-family: var(--font-head); font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .04em; flex: none; }
.tcard.is-dragging { opacity: .35; }
.tcard--open { background: #fff; border: 1.5px solid var(--line); }
.drag-ghost {
  position: fixed; z-index: 100; pointer-events: none; transform: translate(-50%, -50%) rotate(-2deg);
  box-shadow: 0 12px 30px rgba(20,22,31,.25); max-width: 260px;
}
.newgroup {
  border: 2px dashed var(--line); border-radius: 22px; min-height: 120px;
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 700; font-size: 14px; text-align: center; padding: 16px;
}
.newgroup.is-over { border-color: var(--ink); color: var(--ink); background: #fff; }

/* Runde (Moderation) */
.speakcard { display: flex; flex-direction: column; gap: 12px; }
.speakcard .speakcard__top { display: flex; align-items: center; justify-content: space-between; }
.speakcard .big { font-family: var(--font-head); font-size: 40px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.speakcard.is-done .big { color: var(--alert); animation: pulse 1.2s ease-in-out infinite; }
.pselect { position: relative; }
.pselect .avatar { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.pselect .select { min-height: 56px; padding-left: 52px; font-family: var(--font-head); font-weight: 700; font-size: 18px; border-width: 2px; border-color: var(--ink); border-radius: 14px; }
.gselect {
  background: var(--qbg); color: var(--qtext); border-radius: 14px; padding: 10px 12px 10px 14px;
  display: flex; align-items: center; gap: 10px;
}
.gselect .t-eyebrow { color: inherit; opacity: .8; }
.gselect b { font-family: var(--font-head); font-weight: 800; font-size: 16px; letter-spacing: -0.02em; display: block; line-height: 1.1; }
.gselect .select { background-color: transparent; border: 0; color: inherit; font-weight: 700; text-decoration: underline; width: auto; min-height: 44px; padding: 0 30px 0 8px; background-position: right 6px center; }
.q-2 .gselect .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); }
.gselect .select option { color: var(--ink); }
.progress { height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--ink); border-radius: 3px; transition: width .3s ease; }

.said { display: flex; flex-direction: column; gap: 8px; }
.said article { background: var(--card); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.said header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.said header b { font-family: var(--font-head); font-size: 16px; }
.said .gtag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--qbg); color: var(--qtext); }
.said p { font-size: 14px; color: var(--ink-2); line-height: 1.4; white-space: pre-wrap; }
.said .said__tools { margin-left: auto; display: flex; gap: 4px; }
.said .said__tools button { min-width: 44px; min-height: 44px; border-radius: 10px; color: var(--muted); font-size: 15px; }

/* Login */
.login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 24px; gap: 16px; max-width: 420px; margin: 0 auto; }
.login .input { text-align: center; font-family: var(--font-head); font-size: 28px; letter-spacing: .3em; min-height: 64px; font-weight: 700; }

/* QR */
.qr { background: #fff; border-radius: 16px; padding: 10px; display: inline-block; }
.qr svg { width: 160px; height: 160px; }
.joinlink { font-family: var(--font-head); font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }

/* Dialog */
.dialog { border: 0; border-radius: 22px; padding: 22px; max-width: min(92vw, 420px); box-shadow: 0 20px 60px rgba(20,22,31,.3); }
.dialog::backdrop { background: rgba(20,22,31,.5); }
.dialog h2 { font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; }
.dialog p { color: var(--ink-2); margin-bottom: 16px; font-size: 15px; }
.dialog .row { justify-content: flex-end; }
