/* Klassenbeitritt (assets/js/class-join.js) */
.class-status { font-size: 0.75rem; margin: 6px 0 0; text-align: center; color: #e2e8f0; }
.start-content p.class-status { background: none; border: 0; box-shadow: none; padding: 0; transform: none; }
.class-status[hidden] { display: none; }
.class-leave-btn { background: none; border: 0; color: #fde68a; cursor: pointer; font: inherit; text-decoration: underline; padding: 0 2px; }

.cj-overlay, .cm-overlay { align-items: center; background: rgba(2, 6, 23, 0.82); display: flex; inset: 0; justify-content: center; padding: 16px; position: fixed; z-index: 100001; }
.cj-card { background: #0f172a; border: 3px solid #fbbf24; border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6); color: #e2e8f0; max-height: 92vh; max-width: 460px; overflow: auto; padding: 18px; width: 100%; }
.cj-card h2 { font-size: 1.15rem; margin: 0 0 8px; }
.cj-card p { font-size: 0.88rem; line-height: 1.45; margin: 0 0 10px; }
.cj-small { color: #cbd5e1; font-size: 0.8rem !important; }
.cj-label { display: block; font-size: 0.85rem; margin: 10px 0; }
.cj-label input[type="text"] { background: #1e293b; border: 2px solid #94a3b8; border-radius: 8px; box-sizing: border-box; color: inherit; display: block; font: inherit; margin-top: 4px; padding: 7px 9px; width: 100%; }
.cj-check { align-items: flex-start; display: flex; font-size: 0.8rem; gap: 8px; line-height: 1.4; margin: 10px 0; }
.cj-check input { margin-top: 3px; }
.cj-error, .cj-body .bad { color: #fca5a5; min-height: 1.2em; }
.cj-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cj-actions button { background: #1e293b; border: 2px solid #94a3b8; border-radius: 9px; color: #e2e8f0; cursor: pointer; font: inherit; font-size: 0.85rem; padding: 7px 14px; }
.cj-actions button:hover:not(:disabled), .cj-actions button:focus-visible { border-color: #fbbf24; }
.cj-actions button:disabled { cursor: not-allowed; opacity: 0.45; }
.cj-actions .cj-ok:not(:disabled) { background: #b45309; border-color: #fbbf24; font-weight: 700; }
.cj-actions .cj-danger { border-color: #f87171; }

/* Kursmissionen (assets/js/class-missions.js): Karten, Hinweis am Missionsboard, Nordtor */
.cm-root { color: #2b1a0e; display: flex; flex-direction: column; gap: 10px; }   /* das Board-Fenster hat hellen Grund */
.cm-msg { font-size: 0.85rem; margin: 0; min-height: 1.2em; }
.cm-msg.good { color: #166534; font-weight: 600; } .cm-msg.bad { color: #b91c1c; font-weight: 600; }
.cm-empty { color: #475569; font-size: 0.85rem; margin: 4px 0; }
.cm-camp { color: #2b1a0e; font-size: 0.95rem; margin: 12px 0 2px; }
.cm-desc { color: #475569; font-size: 0.8rem; margin: 0 0 4px; }
.cm-sec { color: #2b1a0e; font-size: 0.82rem; letter-spacing: 0.04em; margin: 8px 0 0; text-transform: uppercase; }
.cm-badge.new { background: #b45309; color: #fff; font-weight: 700; }
.cm-card { background: #1e293b; border: 2px solid #475569; border-radius: 10px; color: #f1f5f9; margin: 6px 0; padding: 10px 12px; }
.cm-card.is-done { border-color: #4ade80; }
.cm-card.is-expired { opacity: 0.7; }
.cm-small { color: #cbd5e1; font-size: 0.78rem; margin: 2px 0; }
.cm-brief { font-size: 0.85rem; line-height: 1.4; margin: 6px 0; }
.cm-badge { border-radius: 6px; font-size: 0.72rem; padding: 1px 6px; }
.cm-badge.ok { background: #14532d; color: #bbf7d0; } .cm-badge.bad { background: #7f1d1d; color: #fecaca; }
.cm-actions { align-items: center; display: flex; gap: 12px; margin-top: 6px; }
.cm-link { background: none; border: 0; color: #cbd5e1; cursor: pointer; font: inherit; font-size: 0.78rem; text-decoration: underline; }
.cm-gate button { text-align: left; }
.cm-pick { max-height: 90vh; max-width: 560px; overflow-y: auto; }

/* Klassenraum (assets/js/class-missions.js): Vollbild, links die Klassenkampagnen, rechts die Missionen; auf dem Handy untereinander */
.cr-overlay { background: linear-gradient(160deg, #3a2518, #24160f 60%); color: #f1f5f9; display: flex; flex-direction: column; inset: 0; position: fixed; z-index: 100000; }
.cr-head { align-items: baseline; border-bottom: 3px solid var(--cs-ink, #1a0f08); display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 12px 16px 8px; }
.cr-head h2 { font-size: 1.2rem; margin: 0; }
.cr-who { color: #cbd5e1; font-size: 0.8rem; }
.cr-main { display: flex; flex: 1; min-height: 0; }
.cr-camps { background: rgba(36, 22, 15, 0.65); border-right: 3px solid var(--cs-ink, #1a0f08); display: flex; flex: 0 0 220px; flex-direction: column; gap: 10px; overflow-y: auto; overscroll-behavior: contain; padding: 14px 10px; }
.cr-camps[hidden] { display: none; }
.cr-camp { font: inherit; }
.cr-camp .worldmap-campaign-name, .cr-camp .worldmap-campaign-sub, .cr-camp .worldmap-campaign-progress { display: block; }
.cr-missions { flex: 1; min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px; }
.cr-missions .cm-camp, .cr-missions .cm-desc, .cr-missions .cm-empty { color: #f1f5f9; }
.cr-missions .cm-camp { margin-top: 0; }
.cr-empty { font-size: 1rem; }
.cr-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.cr-tile { margin: 0; }
.cr-tile.is-locked { border-style: dashed; opacity: 0.75; }
.cr-msg { margin: 0; padding: 0 16px; }
.cr-foot { border-top: 3px solid var(--cs-ink, #1a0f08); display: flex; gap: 8px; justify-content: flex-end; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 700px) {
  .cr-main { flex-direction: column; }
  .cr-camps { border-bottom: 3px solid var(--cs-ink, #1a0f08); border-right: 0; flex: 0 0 auto; flex-direction: row; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 8px; }
  .cr-camp { flex: 0 0 auto; min-width: 128px; }
  .cr-camps .cr-camp .worldmap-campaign-name { font-size: 0.8rem; }
  .cr-camps .cr-camp .worldmap-campaign-sub { display: block; }
  .cr-missions { padding: 10px 12px; }
  .cr-grid { grid-template-columns: 1fr; }
}
.dm-access { background: rgba(15, 23, 42, 0.78); border: 2px solid #f0b400; border-radius: 6px; color: #fde68a; font-size: 0.72rem; font-weight: 700; left: 8px; padding: 6px 10px; position: absolute; text-decoration: none; top: 8px; z-index: 6; }
.dm-access:hover, .dm-access:focus-visible { background: #f0b400; color: #1e293b; outline: none; }
.start-stage > .start-content { padding-top: 34px; }
@media (max-width: 480px) { .dm-access { font-size: 0.64rem; padding: 5px 8px; } }
.successor-note { margin: 0 0 12px; font-size: 0.85rem; font-weight: 700; }
.successor-note a { color: #0b2a6f; text-decoration: underline; text-underline-offset: 2px; }
.successor-note a:hover, .successor-note a:focus-visible { color: #000; }
