/* Voice-Planer. Eigenes Präfix `ac-`, damit nichts mit dem Panel kollidiert.
   Ausgelegt auf den Discord-Rahmen: 360–720 px breit, eine Spalte, alles
   untereinander, nichts scrollt seitwärts. */
:root { color-scheme: dark; }
body { margin: 0; background: var(--bg, #0f1117); color: var(--ink, #e8eaed);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px; line-height: 1.45; }

.ac-kopf { position: sticky; top: 0; z-index: 5; display: flex; align-items: center;
  gap: 8px; padding: 10px 14px; min-width: 0;
  background: color-mix(in srgb, var(--surface, #171a21) 92%, transparent);
  border-bottom: 1px solid var(--line, #262a33); backdrop-filter: blur(8px); }
.ac-kopf strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; min-width: 0; }
.ac-grow { flex: 1; }
.ac-klein { border: 1px solid var(--line, #262a33); background: var(--surface-2, #1c2029);
  color: var(--ink-muted, #a8adb8); border-radius: 8px; padding: 5px 10px;
  font-size: 12px; cursor: pointer; white-space: nowrap; }
.ac-klein:hover { color: var(--ink, #e8eaed); }

.ac-inhalt { display: grid; gap: 10px; padding: 12px; min-width: 0; }
.ac-karte { background: var(--surface, #171a21); border: 1px solid var(--line, #262a33);
  border-radius: 12px; padding: 12px 14px; min-width: 0; }
.ac-karte h2 { margin: 0 0 8px; font-size: 13px; display: flex; align-items: baseline;
  gap: 8px; min-width: 0; }
.ac-zahl { font-size: 11px; color: var(--ink-faint, #6f7480); }
.ac-vs { font-size: 11.5px; font-weight: 400; color: var(--ink-faint, #6f7480);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ac-karte p { margin: 0; }
.ac-leer, .ac-hinweis { color: var(--ink-faint, #6f7480); font-size: 12.5px; }
.ac-hinweis { margin-top: 8px; }
.ac-fertig { color: var(--ok, #34c37a); font-size: 12.5px; }

.ac-leute, .ac-offen, .ac-cwl, .ac-termine { list-style: none; margin: 0; padding: 0;
  display: grid; gap: 6px; min-width: 0; }
.ac-leute li { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ac-av { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid;
  place-items: center; font-size: 10px; font-weight: 700;
  background: var(--surface-2, #1c2029); border: 1px solid var(--line, #262a33);
  color: var(--ink-muted, #a8adb8); }
.ac-n { display: grid; min-width: 0; flex: 1; }
.ac-n strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-n small { font-size: 11px; color: var(--ink-faint, #6f7480); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.ac-rang { font-size: 10.5px; padding: 2px 7px; border-radius: 999px; white-space: nowrap;
  background: color-mix(in srgb, var(--accent, #8a63f5) 18%, transparent);
  color: var(--accent, #8a63f5); }

.ac-stand { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.ac-stand strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.ac-rest { font-size: 12px; color: var(--warn, #e8b45a); white-space: nowrap; }
.ac-teil { margin-top: 6px !important; font-size: 12.5px;
  color: var(--ink-muted, #a8adb8); }
.ac-offen { margin-top: 8px; }
.ac-offen li { display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 4px 8px; border-radius: 7px; background: var(--surface-2, #1c2029); }
.ac-offen li.hier { background: color-mix(in srgb, var(--accent, #8a63f5) 16%, transparent); }
.ac-offen li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: 12.5px; }
.ac-offen li small { font-size: 11px; color: var(--ink-faint, #6f7480); white-space: nowrap; }
.ac-offen li b { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.ac-cwl li { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 12.5px; }
.ac-cwl li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-cwl li small { margin-left: auto; color: var(--ink-faint, #6f7480); font-size: 11px;
  white-space: nowrap; }
.ac-fehlt { color: var(--warn, #e8b45a) !important; }

.ac-termine li { display: flex; align-items: center; gap: 9px; min-width: 0;
  border-left: 3px solid var(--f, var(--accent, #8a63f5)); padding-left: 8px; }
.ac-t-n { display: grid; min-width: 0; flex: 1; }
.ac-t-n strong { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.ac-t-n small { font-size: 11px; color: var(--ink-faint, #6f7480); }
.ac-privat { font-size: 10px; padding: 2px 6px; border-radius: 999px; white-space: nowrap;
  background: var(--surface-2, #1c2029); color: var(--ink-faint, #6f7480); }

.ac-ruhe p, .ac-meldung p { color: var(--ink-muted, #a8adb8); font-size: 12.5px; }
.ac-knopf { margin-top: 10px; border: 0; border-radius: 9px; padding: 8px 14px;
  background: var(--accent, #8a63f5); color: var(--on-accent, #0f1117);
  font-weight: 650; font-size: 13px; cursor: pointer; }

@media (min-width: 720px) {
  .ac-inhalt { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    align-items: start; }
}

/* ---- Knöpfe in den Karten (Zusage, CWL-Anmeldung) ------------------------ */
.ac-antwort { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ac-mini {
  padding: 5px 10px; font-size: 12px; border-radius: 8px; line-height: 1.2;
  min-width: 0;                      /* damit nichts aus der Karte läuft */
}
.ac-mini.ist-aktiv { border-color: var(--ac-gold, #e6b422); color: var(--ac-gold, #e6b422); }
.ac-melden { display: block; margin-top: 4px; font-size: 12px; }
.ac-melden.ac-ok { color: #3ba55d; }
.ac-melden.ac-fehler { color: #ed4245; }
.ac-cwl .ac-mini { margin-left: 8px; }

/* ---- Gemeinsames Arbeitsblatt ------------------------------------------- */
/* Die Karte ist der Bezugsrahmen der Zeiger: Sie sind in PROMILLE dieser
   Fläche gespeichert, damit ein Pfeil auf jedem Gerät auf dieselbe Zeile
   zeigt. Deshalb position: relative — und kein overflow-x irgendwo. */
.ac-entwurf { position: relative; margin: 10px 12px 0; }
.ac-e-kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.ac-e-kopf h2 { margin: 0; flex: 0 0 auto; }
.ac-e-feder { flex: 1 1 120px; min-width: 0; font-size: 12px; font-weight: 650;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-e-kopf .ac-knopf, .ac-e-fuss .ac-knopf { margin-top: 0; padding: 5px 10px; font-size: 12px; }

.ac-e-liste { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.ac-ez { display: grid; gap: 6px; align-items: center; min-width: 0;
  grid-template-columns: 38px minmax(0, 1fr) auto auto auto; }
.ac-ez input { min-width: 0; border-radius: 8px; padding: 6px 8px; font-size: 13px;
  border: 1px solid var(--line, #2b2f39); background: var(--surface-2, #1c2029);
  color: var(--ink, #e7e9ee); }
.ac-ez input[readonly] { opacity: .75; }
.ac-ez-wer { font-size: 11.5px; font-weight: 650; max-width: 90px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-ez-haken, .ac-ez-weg { border: 1px solid var(--line, #2b2f39); border-radius: 8px;
  background: none; color: var(--ink-muted, #a8adb8); width: 28px; height: 28px;
  cursor: pointer; line-height: 1; }
.ac-ez-haken.ist-an { color: #3ba55d; border-color: #3ba55d; }
.ac-e-fuss { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* Bei 360 px zweizeilig: Ziel und Haken oben, der Text darunter in voller Breite. */
@media (max-width: 460px) {
  .ac-ez { grid-template-columns: 38px auto auto auto; }
  .ac-ez-text { grid-column: 1 / -1; }
}

/* ---- Die Zeiger der anderen --------------------------------------------- */
.ac-zeiger-ebene { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ac-zeiger { position: absolute; top: 0; left: 0; display: flex; align-items: flex-start;
  gap: 4px; transition: transform 700ms linear; will-change: transform; }
.ac-zeiger span { font-size: 11px; font-weight: 650; padding: 1px 6px; border-radius: 999px;
  background: var(--ac-z-farbe, #8a63f5); color: #0f1117; max-width: 120px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
