/* pult · Digidactics Designsprache */
@font-face { font-family: 'Lexend'; src: url('/static/fonts/Lexend.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Spline Sans Mono'; src: url('/static/fonts/SplineSansMono.ttf') format('truetype'); font-weight: 300 700; font-display: swap; }
:root {
  --kobalt: #2340D9; --orange: #FF5A1F; --schwarz: #111111; --papier: #F2EFE8; --weiss: #fff; --grau: #6B675F;
  --kobalt-hell: #E4E8FB; --kobalt-dunkel: #1A31A8; --orange-hell: #FFE4D8; --orange-dunkel: #B8400F;
  --kobalt-dark: #8FA6FF; --linie: #DDD8CC; --gruen: #1E9E62; --rot: #D93A2B;
  --sans: 'Lexend', system-ui, sans-serif; --mono: 'Spline Sans Mono', ui-monospace, monospace;
  --r: 14px; --shadow: 0 1px 2px rgba(17,17,17,.06), 0 8px 24px rgba(17,17,17,.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--sans); color: var(--schwarz); background: var(--papier); -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.45; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--kobalt); }
.mono { font-family: var(--mono); }
.muted { color: var(--grau); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.row { display: flex; gap: 8px; align-items: center; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--schwarz); background: var(--weiss); border-radius: 999px; padding: 9px 16px; font-weight: 500; cursor: pointer; transition: transform .08s, background .15s, box-shadow .15s; white-space: nowrap; text-decoration: none; color: var(--schwarz); }
.btn:hover { background: var(--papier); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--kobalt); border-color: var(--kobalt); color: #fff; }
.btn.primary:hover { background: var(--kobalt-dunkel); }
.btn.orange { background: var(--orange); border-color: var(--orange); color: var(--schwarz); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: rgba(17,17,17,.06); }
.btn.sm { padding: 5px 11px; font-size: 13px; }
.btn.lg { padding: 13px 24px; font-size: 17px; }
.btn.danger { border-color: var(--rot); color: var(--rot); }
.btn.on { background: var(--schwarz); color: #fff; }
.iconbtn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; display: inline-grid; place-items: center; cursor: pointer; font-size: 18px; color: var(--schwarz); position: relative; }
.iconbtn:hover { background: rgba(17,17,17,.07); }
.iconbtn.on { background: var(--schwarz); color: #fff; }
.iconbtn svg { width: 20px; height: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--kobalt-hell); color: var(--kobalt-dunkel); font-size: 13px; font-weight: 500; }
.chip.orange { background: var(--orange-hell); color: var(--orange-dunkel); }
.chip.grey { background: rgba(17,17,17,.07); color: var(--schwarz); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gruen); display: inline-block; }
.dot.off { background: #bbb; }

/* Segment-Schalter */
.seg { display: inline-flex; background: rgba(17,17,17,.07); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.seg button.on { background: var(--weiss); box-shadow: 0 1px 3px rgba(0,0,0,.15); }

/* Formulare */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 500; }
.input, textarea.input, select.input { width: 100%; border: 1.5px solid var(--linie); background: #fff; border-radius: 10px; padding: 10px 12px; outline: none; }
.input:focus { border-color: var(--kobalt); }
textarea.input { resize: vertical; min-height: 70px; }
.check { display: flex; gap: 8px; align-items: center; cursor: pointer; font-size: 14px; }

.card { background: var(--weiss); border-radius: var(--r); box-shadow: var(--shadow); }
.card h3 { margin: 0; font-size: 14px; font-weight: 600; }
.card .hd { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; }
.card .bd { padding: 0 14px 14px; }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(17,17,17,.45); display: grid; place-items: center; z-index: 100; padding: 16px; animation: fade .15s; }
.modal { background: #fff; border-radius: 18px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: pop .18s; }
.modal.wide { width: min(980px, 100%); }
.modal .mh { display: flex; align-items: center; gap: 10px; padding: 18px 20px 6px; }
.modal .mh h2 { margin: 0; font-size: 20px; flex: 1; }
.modal .mb { padding: 8px 20px 16px; }
.modal .mf { display: flex; gap: 8px; justify-content: flex-end; align-items: center; padding: 12px 20px 18px; border-top: 1px solid #eee; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--schwarz); color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 200; font-size: 14px; animation: fade .2s; box-shadow: var(--shadow); max-width: calc(100vw - 32px); text-align: center; }
.toast.err { background: var(--rot); }

/* Fußzeile */
.foot { font-size: 12px; color: var(--grau); display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 10px; }
.foot a { color: var(--grau); text-decoration: none; }
.foot a:hover { color: var(--schwarz); text-decoration: underline; }
.foot .love { color: var(--schwarz); }
.foot .love b { color: var(--orange); }

/* Logo „‹pult/›“ */
.brand { display: inline-flex; align-items: baseline; font-weight: 600; letter-spacing: -.02em; text-decoration: none; color: var(--schwarz); }
.brand .k { color: var(--orange); font-weight: 700; }
.brand .p { color: var(--kobalt); }
.brand .s { color: var(--schwarz); }

/* =============== Startseite (One-Pager) =============== */
body.home { overflow: hidden; }
.start { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; position: relative; overflow: hidden;
  background-color: var(--papier);
  background-image: linear-gradient(rgba(17,17,17,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(17,17,17,.045) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px; }
.start::after { content: '›'; position: absolute; right: -4vw; bottom: -18vh; font-size: 70vh; line-height: 1; font-weight: 700; color: var(--orange); opacity: .07; pointer-events: none; }
.start header { display: flex; justify-content: space-between; align-items: center; padding: 22px clamp(20px, 4vw, 56px); position: relative; z-index: 1; }
.start header .brand { font-size: 26px; }
.linkmono { font-family: var(--mono); font-size: 13px; color: var(--schwarz); text-decoration: none; border-bottom: 1.5px solid var(--schwarz); padding-bottom: 1px; }
.linkmono:hover { color: var(--kobalt); border-color: var(--kobalt); }
.start main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, 460px); gap: clamp(28px, 6vw, 96px); align-items: center; padding: 0 clamp(20px, 4vw, 56px); width: min(1240px, 100%); margin: 0 auto; position: relative; z-index: 1; min-height: 0; }
.kicker { font-family: var(--mono); font-size: 13.5px; color: var(--grau); margin-bottom: 22px; }
.kicker b { color: var(--orange); font-weight: 500; }
.headline { font-size: clamp(44px, 7.4vw, 104px); line-height: .94; letter-spacing: -.045em; font-weight: 700; margin: 0 0 26px; }
.headline span { display: block; }
.headline .c2 { color: var(--kobalt); }
.headline .c3 { color: var(--orange); }
.headline .pt { font-style: normal; color: var(--orange); }
.headline .c3 .pt { color: var(--schwarz); }
.sub { font-size: clamp(15px, 1.25vw, 18px); max-width: 30em; margin: 0 0 26px; color: #2b2a27; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.facts li { font-family: var(--mono); font-size: 12.5px; padding: 6px 11px; border: 1.5px solid var(--schwarz); border-radius: 99px; background: var(--weiss); }
.facts li::before { content: '✓ '; color: var(--kobalt); font-weight: 700; }

.panel { background: var(--weiss); border: 2px solid var(--schwarz); border-radius: 22px; padding: 22px; box-shadow: 8px 8px 0 var(--schwarz); }
.panel .lbl { font-family: var(--mono); font-size: 12px; color: var(--grau); display: flex; justify-content: space-between; margin-bottom: 12px; }
.drop { border: 2px dashed #c9c3b4; border-radius: 16px; padding: 30px 18px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; background: var(--papier); }
.drop:hover, .drop.over { border-color: var(--kobalt); background: var(--kobalt-hell); }
.drop .ico { width: 54px; height: 54px; border-radius: 50%; background: var(--kobalt); color: #fff; display: grid; place-items: center; margin: 0 auto 12px; transition: transform .2s; }
.drop:hover .ico { transform: translateY(-3px); }
.drop.has .ico { background: var(--schwarz); }
.drop h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.01em; word-break: break-word; }
.drop .meta { font-family: var(--mono); font-size: 12px; color: var(--grau); }
.hint { font-size: 12.5px; color: var(--grau); margin: 12px 2px 0; line-height: 1.4; }
.hint b { color: var(--schwarz); font-weight: 600; }
.go { width: 100%; margin-top: 14px; padding: 15px; font-size: 17px; border-radius: 14px; border: 2px solid var(--schwarz); background: var(--orange); color: var(--schwarz); font-weight: 600; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px; transition: transform .1s, box-shadow .1s; box-shadow: 0 4px 0 var(--schwarz); text-decoration: none; }
.go:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 5px 0 var(--schwarz); }
.go:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--schwarz); }
.go:disabled { background: #e9e5dc; color: #9a958a; border-color: #cfc9bd; box-shadow: none; cursor: default; }
.go.blue { background: var(--kobalt); color: #fff; }
.terms { font-size: 11.5px; color: var(--grau); text-align: center; margin-top: 10px; }
.terms a { color: var(--grau); }
.prog { height: 8px; border-radius: 99px; background: #ebe7de; overflow: hidden; margin: 16px 0 8px; }
.prog > div { height: 100%; background: var(--kobalt); border-radius: 99px; transition: width .3s; }
.prog.ind > div { width: 30%; animation: ind 1.2s infinite ease-in-out; }
@keyframes ind { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.linkbox { display: flex; gap: 8px; margin: 10px 0; }
.linkbox input { font-family: var(--mono); font-size: 12.5px; }
.callout { border-left: 3px solid var(--orange); padding: 2px 0 2px 12px; font-size: 13.5px; margin: 12px 0; }
.callout.blue { border-color: var(--kobalt); }
.donehead { display: flex; align-items: center; gap: 12px; }
.donehead .ok { width: 40px; height: 40px; border-radius: 50%; background: var(--gruen); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.donehead h2 { margin: 0; font-size: 21px; letter-spacing: -.01em; }
.recent { margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--grau); display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; }
.recent a { color: var(--schwarz); text-decoration: none; border-bottom: 1px solid #bbb; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent a:hover { color: var(--kobalt); border-color: var(--kobalt); }
.start .foot { position: relative; z-index: 1; padding: 14px; }
@media (max-width: 900px) {
  body.home { overflow: auto; }
  .start { height: auto; min-height: 100dvh; }
  .start main { grid-template-columns: 1fr; padding-bottom: 20px; }
  .headline { font-size: clamp(42px, 13vw, 72px); }
  .panel { box-shadow: 5px 5px 0 var(--schwarz); }
}
@media (max-height: 700px) and (min-width: 901px) {
  .headline { font-size: clamp(40px, 6vw, 76px); margin-bottom: 16px; }
  .kicker { margin-bottom: 12px; } .sub { margin-bottom: 16px; } .drop { padding: 20px 16px; }
}

/* =============== Pult =============== */
body.pult { overflow: hidden; }
.pult-app { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: #fff; border-bottom: 1px solid var(--linie); min-width: 0; }
.topbar .brand { font-size: 20px; }
.topbar .title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 40px; max-width: 30vw; cursor: text; border-radius: 6px; padding: 2px 6px; }
.topbar .title:hover { background: var(--papier); }
.joinchip { display: flex; align-items: center; gap: 10px; background: var(--schwarz); color: #fff; border-radius: 12px; padding: 5px 12px; cursor: pointer; border: 0; }
.joinchip .code { font-family: var(--mono); font-size: 18px; font-weight: 600; letter-spacing: .12em; color: #FFD2BF; }
.joinchip .url { font-size: 12px; opacity: .75; }
.pult-main { display: grid; grid-template-columns: 1fr 380px; min-height: 0; }
.stagecol { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: 1fr auto; min-height: 0; min-width: 0; }
.lefttools { grid-row: 1 / 3; background: #fff; border-right: 1px solid var(--linie); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; overflow-y: auto; }
.lefttools .sep { width: 28px; height: 1px; background: var(--linie); margin: 6px 0; }
.swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px #ccc; cursor: pointer; }
.swatch.on { box-shadow: 0 0 0 2.5px var(--schwarz); }
.sizes { display: flex; flex-direction: column; gap: 2px; }
.sizes button { width: 34px; height: 26px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.sizes button.on { background: rgba(17,17,17,.1); }
.sizes span { background: var(--schwarz); border-radius: 99px; display: block; }
.stagearea { position: relative; min-height: 0; min-width: 0; padding: 14px; display: flex; }
.fitbox { flex: 1; position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; }
.navbar { display: flex; align-items: center; gap: 8px; padding: 8px 14px 12px; flex-wrap: wrap; }
.navbar .pos { font-family: var(--mono); font-size: 14px; min-width: 70px; text-align: center; }
.sidecol { border-left: 1px solid var(--linie); overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 12px; background: var(--papier); }
.nextprev { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: start; }
.thumb { border-radius: 8px; overflow: hidden; background: #ddd; aspect-ratio: 16/9; position: relative; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.notes { white-space: pre-wrap; font-size: var(--nfs, 15px); line-height: 1.5; max-height: 34vh; overflow: auto; }
.tabs { display: flex; gap: 4px; padding: 10px 10px 0; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 7px 4px; border-radius: 10px; cursor: pointer; font-weight: 500; font-size: 13px; color: var(--grau); }
.tabs button.on { background: var(--papier); color: var(--schwarz); }
.toolgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; }
.toolbtn { border: 0; background: var(--papier); border-radius: 12px; padding: 10px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; font-size: 12px; font-weight: 500; text-align: center; line-height: 1.15; min-height: 72px; transition: background .12s, transform .08s; }
.toolbtn:hover { background: var(--kobalt-hell); }
.toolbtn:active { transform: scale(.97); }
.toolbtn .ti { font-size: 22px; line-height: 1; }
.toolbtn.on { background: var(--kobalt); color: #fff; }
.activecard { border: 2px solid var(--kobalt); }
.activecard .hd { padding-bottom: 4px; }
.reslist { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow: auto; margin-top: 8px; }
.resitem { background: var(--papier); border-radius: 10px; padding: 8px 10px; font-size: 13.5px; display: flex; gap: 8px; align-items: flex-start; }
.resitem .who { font-weight: 600; font-size: 12px; color: var(--grau); }
.resitem .x { margin-left: auto; flex: none; }
.people { display: flex; flex-direction: column; gap: 2px; max-height: 220px; overflow: auto; }
.person { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 8px; font-size: 14px; }
.person:hover { background: var(--papier); }
.person .kick { margin-left: auto; opacity: 0; }
.person:hover .kick { opacity: 1; }
@media (hover: none) { .person .kick { opacity: 1; } }
.lostbar { display: flex; align-items: center; gap: 8px; background: var(--orange-hell); border-radius: 10px; padding: 8px 10px; font-size: 13.5px; }
.lostbar.zero { background: var(--papier); color: var(--grau); }
.beamer-mini { border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 16/9; position: relative; }

.overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.overview button { border: 0; padding: 0; background: none; cursor: pointer; text-align: left; font-size: 12px; }
.overview button.cur .thumb { box-shadow: 0 0 0 3px var(--orange); }

@media (max-width: 1100px) { .pult-main { grid-template-columns: 1fr 320px; } .topbar .url { display: none; } }
@media (max-width: 820px) {
  body.pult { overflow: auto; }
  .pult-app { height: auto; min-height: 100vh; }
  .pult-main { grid-template-columns: 1fr; }
  .stagecol { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .lefttools { grid-row: auto; flex-direction: row; flex-wrap: wrap; justify-content: center; border-right: 0; border-bottom: 1px solid var(--linie); }
  .lefttools .sep { width: 1px; height: 28px; margin: 0 4px; }
  .sizes { flex-direction: row; }
  .stagearea { height: 56vw; }
  .sidecol { border-left: 0; }
  .topbar { flex-wrap: wrap; }
}

/* =============== Bühne (Folie) =============== */
.slide { position: relative; overflow: hidden; background: #fff; container-type: size; user-select: none; -webkit-user-select: none; touch-action: none; }
.slide > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; -webkit-user-drag: none; }
.slide .ann { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.slide .ttxt { position: absolute; white-space: pre-wrap; line-height: 1.2; font-weight: 500; pointer-events: none; padding: .1em .25em; border-radius: .2em; max-width: 90%; }
.slide .ttxt.bg { background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.slide .layer { position: absolute; inset: 0; }
.blank-weiss { background: #fff; }
.blank-kariert { background-color: #fff; background-image: linear-gradient(#cfe0f5 1px, transparent 1px), linear-gradient(90deg, #cfe0f5 1px, transparent 1px); background-size: 2.5cqw 2.5cqw; }
.blank-liniert { background-color: #fff; background-image: linear-gradient(transparent calc(100% - 1px), #c9d8ec 1px); background-size: 100% 5cqh; }
.blank-tafel { background: radial-gradient(ellipse at 40% 30%, #2f5547, #1d3a30 70%); }
.laser { position: absolute; width: 1.6cqw; height: 1.6cqw; margin: -.8cqw 0 0 -.8cqw; border-radius: 50%; background: radial-gradient(circle, #ff3b2f 30%, rgba(255,59,47,.35) 60%, transparent 70%); pointer-events: none; box-shadow: 0 0 1.2cqw rgba(255,40,20,.8); z-index: 50; }
.zoomrect { position: absolute; border: 2px dashed var(--orange); pointer-events: none; z-index: 40; border-radius: 4px; }
.texteditor { position: absolute; z-index: 60; min-width: 120px; background: rgba(255,255,255,.96); border: 2px solid var(--kobalt); border-radius: 6px; padding: 2px 6px; font-weight: 500; line-height: 1.2; resize: none; outline: none; overflow: hidden; }

/* Beamer */
body.beamer { background: #000; overflow: hidden; cursor: default; }
body.beamer.idle { cursor: none; }
.screen { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.screen .fitbox { position: absolute; inset: 0; }
.screen-black { position: absolute; inset: 0; background: #000; z-index: 80; }
.screen-pause { position: absolute; inset: 0; background: var(--papier); z-index: 80; display: grid; place-items: center; text-align: center; container-type: size; }
.screen-pause .big { font-size: 9cqh; font-weight: 600; letter-spacing: -.02em; }
.screen-pause .eyes { font-size: 16cqh; }
.fullbtn { position: fixed; right: 18px; bottom: 18px; z-index: 300; opacity: 0; transition: opacity .3s; }
body.beamer:not(.idle) .fullbtn { opacity: 1; }
.connecting { position: fixed; inset: 0; display: grid; place-items: center; color: #fff; z-index: 400; background: rgba(0,0,0,.7); font-size: 22px; }

/* Werkzeug-Ansichten auf der Bühne: Maße relativ zur Bühne (cq-Einheiten) */
.stagebox { position: relative; container-type: size; overflow: hidden; }
.stagebox .slidewrap { position: absolute; inset: 0; transition: transform .35s ease; transform-origin: 0 0; }
.tile { position: relative; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 1.6cqw; box-shadow: 0 1cqw 4cqw rgba(0,0,0,.28); padding: 1.6cqw 2cqw; width: 34cqw; max-height: 80cqh; overflow: hidden; animation: tilein .35s cubic-bezier(.2,.9,.3,1.2); color: var(--schwarz); font-size: 1.5cqw; }
.tile.small { width: auto; min-width: 14cqw; padding: 1.2cqw 1.8cqw; }
@keyframes tilein { from { transform: translateY(2cqh) scale(.95); opacity: 0; } }
.tile .tt { font-size: 1.25cqw; font-weight: 600; color: var(--kobalt); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6cqw; display: flex; align-items: center; gap: .6cqw; }
.tile .tq { font-size: 2cqw; font-weight: 600; line-height: 1.2; margin-bottom: 1cqw; }
.full { position: absolute; inset: 0; z-index: 30; background: var(--papier); display: flex; flex-direction: column; padding: 4cqh 5cqw; animation: fade .3s; font-size: 2.2cqw; color: var(--schwarz); }
.full .tt { font-size: 1.6cqw; font-weight: 600; color: var(--kobalt); text-transform: uppercase; letter-spacing: .08em; display: flex; align-items: center; gap: 1cqw; }
.full .tq { font-size: 4cqw; font-weight: 600; letter-spacing: -.02em; line-height: 1.12; margin: 1cqh 0 3cqh; }
.full .body { flex: 1; min-height: 0; position: relative; }
.full .foothint { font-size: 1.5cqw; color: var(--grau); display: flex; align-items: center; gap: 1.5cqw; margin-top: 2cqh; }
.joinhint { display: inline-flex; align-items: center; gap: .8cqw; background: var(--schwarz); color: #fff; border-radius: 99px; padding: .4cqw 1.2cqw; font-size: 1.3cqw; }
.joinhint b { font-family: var(--mono); color: #FFD2BF; letter-spacing: .1em; }

.bars { display: flex; flex-direction: column; gap: 1.1em; }
.bar { display: grid; grid-template-columns: auto 1fr; gap: .2em .6em; align-items: center; }
.bar .lab { grid-column: 1 / 3; display: flex; justify-content: space-between; gap: 1em; font-weight: 500; }
.bar .track { grid-column: 1 / 3; height: .9em; background: rgba(17,17,17,.08); border-radius: 99px; overflow: hidden; }
.bar .fill { height: 100%; border-radius: 99px; background: var(--kobalt); transition: width .6s cubic-bezier(.2,.8,.2,1); min-width: 0; }
.bar.correct .fill { background: var(--gruen); }
.bar.wrong .fill { background: #bbb; }
.bar .letter { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: .35em; background: var(--schwarz); color: #fff; font-size: .8em; margin-right: .4em; }
.waiting { display: flex; align-items: center; gap: .6em; color: var(--grau); }
.bignum { font-size: 3em; font-weight: 700; line-height: 1; color: var(--kobalt); }
.cloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .25em .7em; line-height: 1.05; height: 100%; align-content: center; }
.cloud span { font-weight: 600; animation: pop .4s; }
.notesgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11em, 1fr)); gap: .8em; align-content: start; height: 100%; overflow: hidden; }
.sticky { border-radius: .3em; padding: .7em .8em; box-shadow: 0 .2em .6em rgba(0,0,0,.12); font-size: .82em; line-height: 1.3; animation: pop .3s; word-wrap: break-word; position: relative; }
.sticky .nm { font-size: .72em; opacity: .6; margin-top: .4em; font-weight: 500; }
.sticky.hl { outline: .2em solid var(--orange); transform: scale(1.04); }
.pin { position: absolute; transform: translate(-50%, -100%); max-width: 22cqw; padding: .5cqw .8cqw; border-radius: .6cqw; font-size: 1.35cqw; font-weight: 500; box-shadow: 0 .4cqw 1.2cqw rgba(0,0,0,.25); z-index: 20; animation: pop .3s; line-height: 1.2; }
.pin::after { content: ''; position: absolute; left: 50%; bottom: -.7cqw; border: .45cqw solid transparent; border-top-color: inherit; transform: translateX(-50%); border-top: .7cqw solid var(--pc, #FFE27A); }
.pin .nm { font-size: .8em; opacity: .6; }
.pin.hl { outline: .3cqw solid var(--orange); z-index: 25; }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(13em, 1fr)); gap: 1em; align-content: start; }
.group { background: #fff; border-radius: .6em; padding: .8em 1em; box-shadow: 0 .2em .8em rgba(0,0,0,.08); border-top: .35em solid var(--gc, var(--kobalt)); }
.group h4 { margin: 0 0 .4em; font-size: 1.05em; }
.group div { font-size: .9em; }
.picker { display: grid; place-items: center; height: 100%; text-align: center; }
.picker .name { font-size: 4.2em; font-weight: 700; letter-spacing: -.02em; color: var(--kobalt); }
.picker .name.spin { color: var(--grau); filter: blur(.02em); }
.picker .name.landed { animation: land .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes land { from { transform: scale(.6); } }
.timer { display: grid; place-items: center; height: 100%; }
.timer .tm { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.timer .tm.done { color: var(--rot); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.ring { position: relative; }
.ring svg { transform: rotate(-90deg); }
.phase { display: flex; align-items: center; gap: .6em; }
.phase .pi { font-size: 2em; }
.phase .pl { font-weight: 600; font-size: 1.2em; }
.qrbig { display: flex; align-items: center; justify-content: center; gap: 5cqw; height: 100%; }
.qrbig img { height: 60cqh; aspect-ratio: 1; background: #fff; padding: 1.5cqh; border-radius: 2cqh; }
.qrbig .code { font-family: var(--mono); font-size: 9cqw; font-weight: 700; letter-spacing: .1em; color: var(--kobalt); line-height: 1; }
.qrbig .url { font-size: 2.4cqw; margin-top: 1.5cqh; }
.quizopts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6cqh 1.6cqw; }
.quizopt { border-radius: 1cqw; padding: 2.4cqh 2cqw; color: #fff; font-weight: 600; display: flex; align-items: center; gap: 1.2cqw; font-size: 2.4cqw; min-height: 12cqh; }
.quizopt .sh { font-size: 2.8cqw; }
.qc0 { background: #D93A2B; } .qc1 { background: #2340D9; } .qc2 { background: #E8A10C; } .qc3 { background: #1E9E62; }
.quizopt.dim { opacity: .3; }
.quizopt.ok { outline: .5cqw solid var(--schwarz); }
.countdown { font-family: var(--mono); font-weight: 700; font-size: 3cqw; background: var(--schwarz); color: #fff; border-radius: 99px; padding: .3cqw 1.4cqw; }
.ranking { display: flex; flex-direction: column; gap: .5em; max-width: 34em; margin: 0 auto; width: 100%; }
.ranking .rk { display: flex; gap: .8em; background: #fff; border-radius: .5em; padding: .5em .9em; align-items: center; box-shadow: 0 .1em .4em rgba(0,0,0,.08); animation: pop .3s backwards; }
.ranking .rk b { width: 1.6em; }
.ranking .rk .sc { margin-left: auto; font-family: var(--mono); }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 2cqw; height: 100%; }
.podium .pd { width: 18cqw; text-align: center; }
.podium .pd .blk { border-radius: 1cqw 1cqw 0 0; display: grid; place-items: center; color: #fff; font-size: 5cqw; font-weight: 700; }
.podium .pd .nm { font-weight: 600; font-size: 2.4cqw; margin-bottom: 1cqh; }
.paintshow { position: absolute; inset: 0; z-index: 35; background: rgba(17,17,17,.85); display: grid; place-items: center; animation: fade .3s; }
.paintshow img { max-width: 92%; max-height: 86%; border-radius: 1cqw; box-shadow: 0 2cqw 6cqw rgba(0,0,0,.5); background: #fff; }
.paintshow .cap { position: absolute; bottom: 2.5cqh; color: #fff; font-size: 2cqw; font-weight: 500; }
.qshow { display: grid; place-items: center; height: 100%; }
.qshow .qcard { background: #fff; border-radius: 1.2cqw; padding: 4cqh 4cqw; font-size: 3.6cqw; font-weight: 600; max-width: 80cqw; box-shadow: 0 1cqw 4cqw rgba(0,0,0,.12); line-height: 1.2; text-align: center; }

/* =============== Schüler =============== */
body.schueler { background: var(--papier); }
.st-app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.st-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 20; }
.st-top .brand { font-size: 19px; }
.st-main { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 14px; width: min(900px, 100%); margin: 0 auto; }
.st-slide { position: relative; display: flex; justify-content: center; }
.st-slide .fitbox { height: calc(100dvh - 160px); min-height: 220px; place-items: start center; }
.st-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 18px; }
.st-card h2 { margin: 0 0 12px; font-size: 21px; line-height: 1.2; }
.st-kicker { font-size: 12px; font-weight: 600; color: var(--kobalt); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.optbtns { display: grid; gap: 10px; }
.optbtn { border: 2px solid var(--linie); background: #fff; border-radius: 14px; padding: 14px 16px; text-align: left; font-size: 17px; font-weight: 500; cursor: pointer; display: flex; gap: 12px; align-items: center; transition: border-color .12s, background .12s; }
.optbtn .letter { width: 30px; height: 30px; border-radius: 8px; background: var(--schwarz); color: #fff; display: grid; place-items: center; font-size: 14px; flex: none; }
.optbtn.on { border-color: var(--kobalt); background: var(--kobalt-hell); }
.optbtn.on .letter { background: var(--kobalt); }
.moodbtns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.moodbtns button { font-size: 44px; padding: 16px 0; border-radius: 16px; border: 2px solid var(--linie); background: #fff; cursor: pointer; }
.moodbtns button span { display: block; font-size: 13px; font-weight: 500; margin-top: 4px; }
.moodbtns button.on { border-color: var(--kobalt); background: var(--kobalt-hell); }
.scalebtns { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scalebtns button { padding: 14px 0; border-radius: 12px; border: 2px solid var(--linie); background: #fff; font-size: 18px; font-weight: 600; cursor: pointer; }
.scalebtns button.on { border-color: var(--kobalt); background: var(--kobalt); color: #fff; }
.okmsg { display: flex; align-items: center; gap: 8px; color: var(--gruen); font-weight: 500; margin-top: 12px; }
.errmsg { color: var(--rot); font-weight: 500; margin-top: 10px; font-size: 14px; }
.colors { display: flex; gap: 8px; }
.colors button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px #ccc; cursor: pointer; }
.colors button.on { box-shadow: 0 0 0 3px var(--schwarz); }
.st-quiz { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-quiz button { border: 0; border-radius: 16px; color: #fff; font-size: 18px; font-weight: 600; padding: 22px 12px; min-height: 110px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.st-quiz button .sh { font-size: 30px; }
.st-quiz button.dim { opacity: .3; }
.feedback { text-align: center; padding: 18px; border-radius: 18px; color: #fff; }
.feedback.ok { background: var(--gruen); }
.feedback.no { background: var(--rot); }
.feedback .big { font-size: 46px; }
.lostbtn { border: 1.5px solid var(--linie); background: #fff; border-radius: 99px; padding: 7px 12px; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.lostbtn.on { background: var(--orange); border-color: var(--orange); }
.st-banner { background: var(--schwarz); color: #fff; border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.st-banner.orange { background: var(--orange); color: var(--schwarz); }
.st-center { flex: 1; display: grid; place-items: center; text-align: center; padding: 30px 20px; }
.join { width: min(420px, 100%); }
.join .brand { font-size: 40px; margin-bottom: 8px; }
.join .codein { font-family: var(--mono); font-size: 30px; text-align: center; letter-spacing: .2em; text-transform: uppercase; }
.painttools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.mypins { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.st-timer { font-family: var(--mono); font-weight: 600; background: var(--schwarz); color: #fff; border-radius: 99px; padding: 4px 10px; font-size: 14px; }
.st-timer.done { background: var(--rot); }
.spot-pop { position: absolute; z-index: 30; background: #fff; border-radius: 12px; padding: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.3); width: 240px; transform: translate(-50%, 8px); }
.full .sticky { font-size: 1.05em; } .full .notesgrid { grid-template-columns: repeat(auto-fill, minmax(13em, 1fr)); }
.notice { background: var(--orange-hell); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; display: flex; gap: 10px; text-align: left; margin-top: 14px; }
.notice.blue { background: var(--kobalt-hell); }
.notice b { font-weight: 600; }
.gridbg { background-color: var(--papier); background-image: linear-gradient(rgba(17,17,17,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(17,17,17,.045) 1px, transparent 1px); background-size: 32px 32px; }
.join.panel { padding: 28px 24px; }
