/* ============================================================
   Workshop-Ansicht.

   Am Bildschirm nutzt sie die Bausteine der Hauptseite aus styles.css
   (.app, .topbar, .stage, .pillar, .node, .hub, .stats-strip). Hier steht
   nur, was zusätzlich gebraucht wird: Anmeldung, Fenster einer Kompetenz
   und das Exportdokument.
   ============================================================ */

/* ---------- Anmeldung am Raum ---------- */
.ws-gate {
  min-height: 100vh; display: grid; place-items: center; padding: 28px;
  background:
    radial-gradient(40vw 36vh at 16% 20%, rgba(45,125,210,.11), transparent 68%),
    radial-gradient(40vw 36vh at 84% 22%, rgba(232,163,23,.075), transparent 68%),
    radial-gradient(40vw 36vh at 16% 84%, rgba(31,143,134,.11), transparent 68%),
    radial-gradient(40vw 36vh at 84% 82%, rgba(217,74,74,.10), transparent 68%),
    var(--bg);
}
.ws-gate-card {
  width: 100%; max-width: 460px;
  padding: 34px 32px 26px;
  background: var(--surface-solid); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.ws-gate-brand { display: flex; align-items: baseline; gap: 12px; }
.ws-gate-card .title-main { font-size: 30px; margin: 0; }
.ws-gate-kicker {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.ws-gate-lead {
  margin: 12px 0 26px; font-size: 13px; line-height: 1.6; color: var(--ink-2);
}
.ws-gate-go { width: 100%; margin-top: 20px; justify-content: center; }

.ws-label {
  display: block; margin-bottom: 6px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}
.ws-opt {
  font-size: 9.5px; letter-spacing: .06em; text-transform: lowercase;
  color: var(--ink-3); font-weight: 500; margin-left: 4px;
}
.ws-input {
  width: 100%; padding: 11px 13px;
  font-family: var(--font-sans); font-size: 14px; color: var(--ink);
  background: var(--surface-solid); border: 1px solid var(--line);
  border-radius: var(--radius-sm); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ws-input:focus {
  border-color: var(--c-mund);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--c-mund) 18%, transparent);
}
.ws-input-code {
  font-family: var(--font-mono); font-size: 19px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
}
.ws-hint { display: block; margin-top: 7px; font-size: 11.5px; line-height: 1.55; color: var(--ink-3); }
.ws-gate-foot {
  margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 11.5px; line-height: 1.6; color: var(--ink-3);
}

/* ---------- Raumkennung oben links, wo sonst der Wettbewerb steht ---------- */
.ws-roomchip {
  display: inline-flex; align-items: center; gap: 9px;
  height: 36px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
}
.ws-roomchip-label { font-size: 12.5px; color: var(--ink-3); }
.ws-roomchip-code {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: .08em; color: var(--ink);
}
.ws-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--c-mogl);
  animation: ws-pulse 2.4s ease-in-out infinite;
}
@keyframes ws-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- Leiste unten ----------
   Die Leiste selbst kommt aus mindmap.jsx und bringt ihre Gestaltung aus
   styles.css mit, dieselbe wie auf der Hauptseite. Hier steht deshalb nichts
   mehr. */

.ws-error {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 60;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid #F3D3D3; background: #FDF0F0;
  font-size: 12.5px; color: #8A2B2B;
}
.ws-loading {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 60;
  padding: 8px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 12px;
}

/* ---------- Fenster einer Kompetenz ---------- */
.ws-sheet-backdrop {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; padding: 24px;
  background: rgba(11, 18, 32, .34); backdrop-filter: blur(6px);
  animation: ws-fade .18s ease both;
}
@keyframes ws-fade { from { opacity: 0; } to { opacity: 1; } }
.ws-sheet {
  position: relative;
  width: 100%; max-width: 620px; max-height: 86vh; overflow-y: auto;
  padding: 30px 30px 26px;
  background: var(--surface-solid); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  animation: ws-rise .24s var(--ease-out, ease) both;
}
.ws-sheet-small { max-width: 480px; }
@keyframes ws-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ws-sheet::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--accent, var(--ink));
}
.ws-sheet-close {
  position: absolute; right: 14px; top: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface-solid);
  color: var(--ink-3); font-size: 17px; line-height: 1; cursor: pointer;
  transition: all .15s var(--ease-out, ease);
}
.ws-sheet-close:hover { color: var(--ink); border-color: var(--line-strong); }
.ws-sheet-kicker {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.ws-sheet-title { margin: 6px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -.015em; }
.ws-sheet-desc { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.ws-sheet-why {
  margin: 10px 0 0; padding: 10px 13px;
  background: var(--bg-2); border-radius: var(--radius-sm);
  font-size: 12.5px; line-height: 1.6; color: var(--ink-2);
}
.ws-sheet-form { margin: 22px 0 0; }
.ws-sheet-form textarea {
  width: 100%; padding: 11px 13px; resize: vertical; min-height: 84px;
  font-family: var(--font-sans); font-size: 13.5px; line-height: 1.55; color: var(--ink);
  background: var(--surface-solid); border: 1px solid var(--line);
  border-radius: var(--radius-sm); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ws-sheet-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}
.ws-sheet-form-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px;
}
.ws-count { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }
.ws-sheet-error { display: block; margin-top: 9px; font-size: 12px; color: #8A2B2B; }

.ws-sheet-list { margin-top: 24px; }
.ws-sheet-listhead {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
  padding-bottom: 9px; border-bottom: 1px solid var(--line); margin-bottom: 11px;
}
.ws-card {
  padding: 11px 13px; border-radius: var(--radius-sm); margin-bottom: 8px;
  background: color-mix(in oklab, var(--accent) 7%, var(--bg-2));
  border-left: 3px solid var(--accent);
  animation: ws-in .22s var(--ease-out, ease) both;
}
@keyframes ws-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ws-card p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.ws-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 7px; font-size: 10.5px; color: var(--ink-3);
}
.ws-card-del {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: none; background: transparent; color: var(--ink-3);
  font-size: 15px; line-height: 1; cursor: pointer;
}
.ws-card-del:hover { background: var(--line); color: var(--ink); }

/* ---------- Auswahl beim Sichern ---------- */
.ws-export-choices { display: grid; gap: 10px; margin-top: 20px; }
.ws-export-choice {
  display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer;
  padding: 15px 17px; border-radius: var(--radius-md);
  border: 1px solid var(--line-strong); background: var(--surface-solid);
  font: inherit; transition: all .16s var(--ease-out, ease);
}
.ws-export-choice:hover {
  border-color: var(--ink-3); transform: translateY(-1px); box-shadow: var(--shadow-sm);
}
.ws-export-choice-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.ws-export-choice-desc { font-size: 12px; line-height: 1.55; color: var(--ink-2); }

@media (max-width: 700px) {
  .ws-sheet { padding: 26px 20px 22px; max-height: 92vh; }
  .ws-strip-mid { display: none; }
}

/* ============================================================
   Das Exportdokument.

   Am Bildschirm verborgen. Im Druck wird es sichtbar und die Anwendung
   verschwindet. Für den HTML-Export wird derselbe Inhalt in eine
   eigenständige Datei kopiert, deshalb stehen die Regeln hier ohne
   @media-Klammer und das Verbergen läuft über .ws-export-host.
   ============================================================ */
.ws-export-host { display: none; }

.ex-page { color: #0B1220; font-family: var(--font-sans); }
.ex-page + .ex-page { margin-top: 10mm; }

.ex-kicker {
  font-family: var(--font-mono); font-size: 8pt; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #7B8699;
}
.ex-section-label {
  display: block; margin-bottom: 3mm;
  font-family: var(--font-mono); font-size: 8pt; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #7B8699;
}
.ex-mono { font-family: var(--font-mono); }
.ex-muted { color: #7B8699; }
.ex-lead { margin: 3mm 0 0; font-size: 10pt; line-height: 1.55; color: #3B4760; }
.ex-empty { margin: 1mm 0 0; font-size: 9pt; font-style: italic; color: #98A1B0; }
.ex-note { margin: 4mm 0 0; font-size: 8.5pt; line-height: 1.55; color: #3B4760; }

.ex-page-head { padding-bottom: 4mm; margin-bottom: 6mm; border-bottom: 1.4pt solid #0B1220; }
.ex-page-head h2 { margin: 2mm 0 0; font-size: 19pt; font-weight: 700; letter-spacing: -.01em; }

.ex-foot {
  display: flex; justify-content: space-between; gap: 8mm;
  margin-top: 8mm; padding-top: 3mm; border-top: .6pt solid #E3E8F2;
  font-size: 8pt; color: #7B8699;
}

/* --- Deckblatt --- */
.ex-cover { display: flex; flex-direction: column; }
.ex-cover-top { padding-bottom: 8mm; border-bottom: 2.4pt solid #0B1220; }
.ex-cover-title {
  margin: 3mm 0 0; font-size: 40pt; font-weight: 700; letter-spacing: -.02em; line-height: 1;
}
.ex-cover-sub { margin: 3mm 0 0; font-size: 12pt; color: #3B4760; }

.ex-cover-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5mm 10mm; margin: 9mm 0 0;
}
.ex-cover-meta > div { display: flex; flex-direction: column; gap: 1mm; }
.ex-meta-label {
  font-family: var(--font-mono); font-size: 7.5pt; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #7B8699;
}
.ex-meta-value { font-size: 11pt; font-weight: 600; }

.ex-cover-chart { margin: 12mm 0 0; }
.ex-bar-row {
  display: grid; grid-template-columns: 42mm 1fr 10mm; align-items: center;
  gap: 4mm; margin-bottom: 3mm;
}
.ex-bar-name { font-size: 9.5pt; font-weight: 600; color: var(--accent); }
.ex-bar-track { height: 5mm; border-radius: 2.5mm; background: #F2F5FA; overflow: hidden; }
.ex-bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 2.5mm; }
.ex-bar-value {
  font-family: var(--font-mono); font-size: 9.5pt; font-weight: 700;
  text-align: right; color: var(--accent);
}
.ex-cover-foot {
  display: flex; justify-content: space-between; gap: 8mm;
  margin-top: auto; padding-top: 6mm; border-top: .6pt solid #E3E8F2;
  font-size: 8.5pt; color: #7B8699;
}

/* --- Das Modell --- */
.ex-model-image { display: block; width: 100%; height: auto; margin: 4mm 0 0; }
.ex-model-grid {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 7mm 34mm; margin-top: 4mm;
}
.ex-model-block { border: 1.2pt solid var(--accent); border-radius: 4mm; padding: 5mm 5mm 4mm; }
.ex-model-block-head { display: flex; align-items: baseline; gap: 2.5mm; }
.ex-model-num { font-size: 10pt; font-weight: 700; color: var(--accent); }
.ex-model-title {
  font-size: 13pt; font-weight: 700; text-transform: uppercase;
  letter-spacing: .02em; color: var(--accent);
}
.ex-model-verb {
  font-family: var(--font-mono); font-size: 8pt; font-style: italic; color: #7B8699;
}
.ex-model-claim { margin: 2mm 0 3mm; font-size: 9.5pt; font-style: italic; color: #3B4760; }
.ex-model-comps { margin: 0; padding-left: 4mm; }
.ex-model-comps li { font-size: 8.5pt; line-height: 1.45; color: #3B4760; margin-bottom: 1.6mm; }
.ex-model-comps b { color: #0B1220; }
.ex-model-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 30mm; height: 30mm; border-radius: 50%;
  background: #fff; border: 1.2pt solid #C9D3E5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.ex-model-hub-name { font-size: 12pt; font-weight: 700; letter-spacing: .02em; }
.ex-model-hub-sub { font-size: 7pt; font-style: italic; color: #7B8699; margin-top: 1mm; }

/* --- Eine Voraussetzung --- */
.ex-pillar-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8mm;
  padding-bottom: 4mm; margin-bottom: 5mm; border-bottom: 1.8pt solid var(--accent);
}
.ex-pillar-title {
  margin: 2mm 0 0; font-size: 22pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .01em; color: var(--accent);
}
.ex-pillar-claim { margin: 2mm 0 0; font-size: 10pt; font-style: italic; color: #3B4760; }
.ex-pillar-count { flex: none; text-align: right; }
.ex-pillar-count-n {
  display: block; font-size: 30pt; font-weight: 700; line-height: 1; color: var(--accent);
}
.ex-pillar-count-l {
  font-family: var(--font-mono); font-size: 7.5pt; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #7B8699;
}
.ex-pillar-intro { margin: 0 0 6mm; font-size: 9.5pt; line-height: 1.6; color: #3B4760; }

.ex-comp { break-inside: avoid; page-break-inside: avoid; margin-bottom: 6mm; }
.ex-comp-head { display: flex; align-items: baseline; gap: 3mm; }
.ex-comp-head h3 { margin: 0; font-size: 11.5pt; font-weight: 700; }
.ex-comp-count {
  font-family: var(--font-mono); font-size: 8pt; font-weight: 700;
  padding: .6mm 2mm; border-radius: 2mm; color: #fff; background: var(--accent);
}
.ex-comp-desc { margin: 1.5mm 0 0; font-size: 9pt; line-height: 1.5; color: #3B4760; }
.ex-comp-why { margin: 1.5mm 0 2.5mm; font-size: 8.5pt; line-height: 1.5; color: #6B7488; }
.ex-list { margin: 2.5mm 0 0; padding: 0; list-style: none; }
.ex-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 4mm;
  padding: 2mm 0 2mm 4mm; margin-bottom: 1.5mm;
  border-left: 2.4pt solid var(--accent);
  break-inside: avoid; page-break-inside: avoid;
}
.ex-entry-text { flex: 1; font-size: 9.5pt; line-height: 1.5; }
.ex-entry-who { flex: none; font-size: 7.5pt; color: #7B8699; white-space: nowrap; }

/* --- Protokoll --- */
.ex-table { width: 100%; border-collapse: collapse; margin-top: 2mm; }
.ex-table th {
  text-align: left; padding: 2mm 3mm 2mm 0; border-bottom: 1pt solid #0B1220;
  font-family: var(--font-mono); font-size: 7.5pt; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #7B8699;
}
.ex-table td {
  padding: 2.2mm 3mm 2.2mm 0; border-bottom: .5pt solid #E3E8F2;
  font-size: 9pt; line-height: 1.45; vertical-align: top;
}
.ex-table td:first-child { white-space: nowrap; color: #7B8699; }
.ex-table td:nth-child(2) { font-weight: 600; }
.ex-table td:last-child { white-space: nowrap; color: #7B8699; }
.ex-table tr { break-inside: avoid; page-break-inside: avoid; }

/* --- Auswertung --- */
.ex-summary-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; }
.ex-summary-box {
  padding: 5mm; border: .8pt solid #E3E8F2; border-radius: 3mm; background: #FBFCFE;
}
.ex-summary-box h3 { margin: 0 0 3mm; font-size: 11pt; font-weight: 700; }
.ex-plain { margin: 0; padding: 0; list-style: none; }
.ex-plain li {
  display: flex; align-items: baseline; gap: 2.5mm;
  font-size: 9pt; line-height: 1.5; margin-bottom: 1.8mm;
}
.ex-dot { flex: none; width: 2mm; height: 2mm; border-radius: 50%; }
.ex-next { margin-top: 9mm; }
.ex-next h3 { margin: 0 0 3mm; font-size: 12pt; font-weight: 700; }
.ex-next ol { margin: 0; padding-left: 5mm; }
.ex-next li { font-size: 9.5pt; line-height: 1.6; color: #3B4760; margin-bottom: 3mm; }
.ex-next b { color: #0B1220; }
.ex-quelle {
  margin-top: 8mm; padding: 5mm; border-radius: 3mm; background: #F2F5FA;
}
.ex-quelle p { margin: 0; font-size: 9.5pt; line-height: 1.6; color: #3B4760; }

/* ---------- Druck ---------- */
@media print {
  /* Querformat. Das Modell ist breit angelegt, die Grafik erst recht, und die
     Ergebnisseiten lesen sich in zwei Spalten besser als in einer schmalen. */
  @page { size: A4 landscape; margin: 12mm 14mm; }
  body { background: #fff; }
  .app, .ws-gate, .ws-sheet-backdrop, .ws-error, .ws-loading { display: none !important; }

  .ws-export-host { display: block; }
  .ex-page {
    break-after: page; page-break-after: always;
    display: flex; flex-direction: column; min-height: 0;
  }
  .ex-page + .ex-page { margin-top: 0; }
  .ex-page:last-child { break-after: auto; page-break-after: auto; }
  .ex-cover { min-height: 0; }
}

/* ============================================================
   Neu: Anmeldung über QR-Code, strukturierte Beiträge,
   Lückenübersicht im Export.
   ============================================================ */

/* --- Anmeldung --- */
.ws-gate-sitzung {
  margin: 14px 0 6px;
  font-size: 16px; font-weight: 600; line-height: 1.35;
  color: var(--ink);
}
.ws-gate-zu {
  margin: 12px 0 0; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--bg-2);
  font-size: 13px; line-height: 1.5; color: var(--ink-2);
}
.ws-zuchip {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
}

/* --- Das längere Beitragsformular --- */
.ws-form-lang { display: block; }
.ws-form-hinweis {
  margin: 0 0 14px; padding: 9px 12px;
  border-left: 2px solid var(--accent); border-radius: 0 8px 8px 0;
  background: var(--bg-2);
  font-size: 13px; line-height: 1.5; color: var(--ink-2);
}
.ws-feld { margin-bottom: 13px; }
.ws-feld .ws-label { display: block; margin-bottom: 5px; }
.ws-feld .ws-count { display: block; margin-top: 3px; text-align: right; }
.ws-sheet-zu {
  margin: 0 0 16px; padding: 11px 13px;
  border: 1px dashed var(--line-strong); border-radius: 10px;
  background: var(--bg-2);
  font-size: 13px; line-height: 1.55; color: var(--ink-2);
}

/* --- Beitragskarte mit mehreren Feldern --- */
.ws-card-felder { margin: 0; }
.ws-card-feld + .ws-card-feld { margin-top: 8px; }
.ws-card-feld dt {
  font-size: 11px; font-weight: 600; letter-spacing: .03em;
  text-transform: uppercase; color: var(--ink-3);
}
.ws-card-feld dd { margin: 2px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.ws-card-foot-rechts { display: inline-flex; align-items: center; gap: 8px; }
.ws-card-mehr {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-size: 12px; color: var(--ink-3); text-decoration: underline;
  text-underline-offset: 2px;
}
.ws-card-mehr:hover { color: var(--ink); }

/* --- Deckblatt: alle zwölf Teilbereiche --- */
.ex-cover-raster { margin-top: 7mm; }
.ex-raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3mm; }
.ex-raster-spalte { display: flex; flex-direction: column; gap: 1.4mm; }
.ex-raster-kopf {
  font-size: 8pt; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .6mm;
}
.ex-raster-feld {
  display: flex; align-items: baseline; justify-content: space-between; gap: 2mm;
  padding: 1.8mm 2.2mm; border-radius: 1.4mm;
  font-size: 8.5pt; line-height: 1.25;
}
/* Gefüllt: in der Farbe der Voraussetzung. Leer: deutlich abgesetzt. */
.ex-raster-feld.voll {
  border: .6pt solid var(--accent);
  background: color-mix(in oklab, var(--accent) 9%, white);
  color: #0B1220;
}
.ex-raster-feld.leer {
  border: .8pt dashed #C9D3E5;
  background: #F2F5FA;
  color: #98A1B0;
}
.ex-raster-name { flex: 1; }
.ex-raster-zahl { font-family: var(--font-mono); font-weight: 700; font-size: 9pt; }
.ex-raster-feld.voll .ex-raster-zahl { color: var(--accent); }
.ex-raster-legende { margin: 3mm 0 0; font-size: 8pt; color: #7B8699; }

/* --- Leerer Teilbereich auf den Ergebnisseiten --- */
.ex-luecke {
  display: flex; align-items: baseline; gap: 3mm;
  margin-top: 1.5mm; padding: 2.4mm 3mm;
  border: .8pt dashed #C9D3E5; border-radius: 1.4mm;
  background: #F2F5FA;
}
.ex-luecke-marke {
  flex: none;
  font-family: var(--font-mono); font-size: 7.5pt; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #7B8699;
}
.ex-luecke-text { font-size: 8.5pt; line-height: 1.5; color: #98A1B0; }

/* --- Die Seite „Lücken" --- */
.ex-luecken-liste { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm 8mm; }
.ex-luecken-block { break-inside: avoid; page-break-inside: avoid; }
.ex-luecken-kopf {
  display: flex; align-items: center; gap: 2mm; flex-wrap: wrap;
  padding-bottom: 1.4mm; margin-bottom: 1.6mm;
  border-bottom: .6pt solid #E3E8F2;
  font-size: 10pt;
}
.ex-luecken-kopf .ex-muted { font-size: 8pt; }
.ex-luecken-block .ex-plain li { font-size: 9pt; line-height: 1.5; }

/* --- Beitrag mit mehreren Feldern im Export --- */
.ex-entry-feld { display: block; margin-top: 1.2mm; }
.ex-entry-feld-label {
  display: block;
  font-family: var(--font-mono); font-size: 7pt; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: #98A1B0;
}
.ex-entry-feld-wert { display: block; font-size: 9pt; line-height: 1.5; color: #3B4760; }

/* Im Querformat trägt die Seite zwei Spalten. */
@media print {
  .ex-pillar .ex-comp { break-inside: avoid; page-break-inside: avoid; }
  .ex-summary-cols { gap: 10mm; }
}

/* --- Fotos und Link am Beitrag --- */
.ws-fotos { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-foto {
  position: relative; width: 74px; height: 74px;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line);
}
.ws-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-foto-del {
  position: absolute; top: 2px; right: 2px;
  width: 20px; height: 20px; border: 0; border-radius: 50%;
  background: rgba(11, 18, 32, .72); color: #fff;
  font-size: 14px; line-height: 1; cursor: pointer;
}
.ws-foto-del:hover { background: rgba(11, 18, 32, .92); }
.ws-foto-add {
  display: flex; align-items: center; justify-content: center;
  width: 74px; height: 74px; cursor: pointer;
  border: 1px dashed var(--line-strong); border-radius: 8px;
  color: var(--ink-3); font-size: 22px; line-height: 1;
  background: var(--bg-2);
}
.ws-foto-add:hover { border-color: var(--accent); color: var(--accent); }
.ws-foto-add.laedt { cursor: progress; }

.ws-card-link {
  display: inline-block; margin-top: 8px;
  font-size: 12.5px; color: var(--accent);
  text-decoration: underline; text-underline-offset: 2px;
  word-break: break-all;
}
.ws-card-fotos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.ws-card-fotos img {
  width: 66px; height: 66px; object-fit: cover;
  border-radius: 6px; border: 1px solid var(--line); display: block;
}
/* Zugeklappt nur ein Merkzeichen, damit man sieht, dass mehr dahinter ist. */
.ws-card-marken { margin-left: 7px; color: var(--ink-3); font-size: 11px; letter-spacing: 3px; }

/* --- im Export --- */
.ex-entry-link { word-break: break-all; }
.ex-entry-fotos { display: flex; flex-wrap: wrap; gap: 2mm; margin-top: 1.5mm; }
.ex-entry-fotos img {
  height: 26mm; width: auto; max-width: 46mm; object-fit: cover;
  border: .4pt solid #E3E8F2; border-radius: 1mm; display: block;
}

/* Hinweis unter den beiden Wegen der Ergebnissicherung. */
.ws-export-hinweis {
  margin: 12px 0 0; padding: 10px 12px;
  border-left: 2px solid var(--line-strong); border-radius: 0 8px 8px 0;
  background: var(--bg-2);
  font-size: 12.5px; line-height: 1.55; color: var(--ink-2);
}

/* --- Der Timer, oben links neben der Raumkennung --- */
.ws-timer {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
}
.ws-timer-zeit {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 17px; font-weight: 700; letter-spacing: .02em;
  color: var(--ink);
}
.ws-timer-label {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
/* Letzte Minute: auffällig, aber ohne Geblinke. */
.ws-timer.knapp {
  border-color: color-mix(in oklab, var(--c-moti) 55%, transparent);
  background: color-mix(in oklab, var(--c-moti) 10%, white);
}
.ws-timer.knapp .ws-timer-zeit { color: #9A6B00; }
.ws-timer.knapp .ws-timer-label { color: #9A6B00; }
.ws-timer.aus {
  border-color: color-mix(in oklab, var(--c-mite) 55%, transparent);
  background: color-mix(in oklab, var(--c-mite) 10%, white);
}
.ws-timer.aus .ws-timer-zeit,
.ws-timer.aus .ws-timer-label { color: var(--c-mite); }

@media print { .ws-timer { display: none; } }

/* --- Mehr zum Teilbereich: die ausführlichen Absätze der Hauptseite --- */
.ws-mehr { margin-top: 12px; }
.ws-mehr > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3);
}
.ws-mehr > summary::-webkit-details-marker { display: none; }
.ws-mehr > summary::before {
  content: "+"; font-size: 13px; line-height: 1; color: var(--accent);
}
.ws-mehr[open] > summary::before { content: "–"; }
.ws-mehr > summary:hover { border-color: var(--accent); color: var(--ink-2); }
.ws-mehr-text { padding: 12px 2px 0; }
.ws-mehr-text p {
  margin: 0 0 9px; font-size: 13.5px; line-height: 1.62; color: var(--ink-2);
}
.ws-mehr-text p:last-child { margin-bottom: 0; }

/* Beiträge mit mehreren Feldern stehen untereinander, nicht nebeneinander.
   Die Zeile oben (flex) war für einen einzelnen Satz samt Absender gedacht;
   mit Titel, Feldern und Fotos schob sie alles in eine Reihe. Gilt für den
   Workshop- wie für den Schulexport. */
.ex-list li.ex-eintrag { display: block; }
.ex-list li.ex-eintrag .ex-entry-text { display: block; }
.ex-list li.ex-eintrag .ex-entry-who { display: block; margin-top: 1.2mm; white-space: normal; }
