/* Gruppenübungen, Hausübungen und V-Übungen verwenden vollständig die
   Editorial-Learning-Gestaltung aus arbeitsheft.css. Hier verbleiben nur
   gruppenspezifische Eingabebedienung, Teilnehmerregister und Bewertung. */
.bdtpg-is-member .bdtpg-editor-toolbar{display:flex}
.bdtpg-is-member .bdtpg-editor{cursor:default}
.bdtpg-is-member .bdtpg-editor [data-bdtp-exercise-blank],
.bdtpg-is-member .bdtpg-editor [data-bdtp-mini-editor-area],
.bdtpg-is-member .bdtpg-note-content{cursor:text}
/* V-Übungen besitzen eine eigene fachliche Kennfarbe. Abstände, Typografie,
   Eingaben, Register und Auswahlzustände erben identische Übungs-CSS-Regeln. */
.bdtpg-editor .bdtpg-course-block--preparation .bdtp-workbook-exercise,
.bdtpg-editor .bdtp-workbook-exercise[data-bdtpg-v-exercise="1"]{
  --bdtp-section-accent:#741f3e;
  --bdtp-section-accent-dark:#611a35;
  --bdtp-section-soft:#fcfafb;
  --bdtp-section-soft-border:#eadde1;
  --bdtp-section-tab-bg:#fdfafb;
  --bdtp-section-tab-hover:#faf4f6;
  --bdtp-section-tab-border:#e8d9dd;
  --bdtp-section-tab-text:#705d64;
  --bdtp-section-active-border:#ddc3ce;
  --bdtp-section-muted-bg:#fefdfd;
  --bdtp-section-panel-border:#e2d2d6;
  --bdtp-section-emphasis-bg:#fbf6f8;
  --bdtp-section-emphasis-bg-hover:#fdf9fb;
  --bdtp-section-emphasis-border:#ddc4ce;
  --bdtp-section-line:#98677a;
  --bdtp-section-handle:#9c7d88;
  --bdtp-section-placeholder:#9b7b85;
  --bdtp-section-focus-ring:rgba(116,31,62,.15);
  --bdtp-section-focus-outline:rgba(116,31,62,.26);
  --bdtp-section-box-border:#ba8e9c;
  --bdtp-section-icon-bg:#c97f90;
}
/* Sichtwechsel für Antwort-/Bewertungsansichten: dieselbe helle Registerführung
   wie für DE/EN/HU in den Übungen, bei unveränderter JS-Klassenschaltung. */
.bdtpg-homework-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:4px;max-width:100%;width:max-content;margin:20px 0 16px;padding:10px 12px;border:1px solid #d9dcdf;border-radius:14px;background:#fcfcfc}
.bdtpg-homework-tabs button{min-height:32px;padding:7px 12px;border:1px solid transparent;border-radius:8px;background:transparent;color:#606060;font:inherit;font-size:12px;font-weight:450;line-height:1.25;cursor:pointer;box-shadow:none}
.bdtpg-homework-tabs button:hover{border-color:#e1e1e1;background:#f3f3f3;color:#272727}
.bdtpg-homework-tabs button.is-current{border:1px solid #d9d9d9;background:#f2f2f2;color:#161616;font-weight:620;box-shadow:none}
.bdtpg-homework-tabs button:focus-visible{outline:2px solid var(--bdtp-section-accent,#0170b9);outline-offset:2px}
/* Ergebniszeilen sind lesbare, flache Antwortzeilen; nicht Teil der Aufgabe. */
.bdtpg-part-results{display:flex;align-items:center;flex-wrap:wrap;gap:9px;max-width:100%;width:100%;margin:13px 0;padding:12px 0;border:0;border-bottom:1px solid #e2e8ed;border-radius:0;background:transparent;color:#223342;font-size:14px;line-height:1.6;vertical-align:middle}
.bdtpg-part-label{margin-right:5px;color:#586c7c;font-size:12px;font-weight:700}
.bdtpg-answer-chip{max-width:230px;min-height:40px;padding:9px 13px;border:1px solid #c6d2dc;border-left:3px solid var(--bdtpg-answer-color,#8395a2);border-radius:8px;background:#fff;color:var(--bdtpg-answer-color,#223342);font:inherit;font-size:13px;line-height:1.45;cursor:pointer;overflow-wrap:anywhere;transition:border-color .14s,background-color .14s}
.bdtpg-answer-chip:hover:not(:disabled){border-color:var(--bdtp-section-active-border,#bfd9e8);background:#f5f8fa}
.bdtpg-answer-chip:focus-visible{outline:2px solid var(--bdtp-section-accent,#0170b9);outline-offset:2px}
.bdtpg-answer-chip:disabled{cursor:default;opacity:1}
.bdtpg-answer-chip.is-accepted{border-color:var(--bdtp-section-accent,#0170b9);background:var(--bdtp-section-emphasis-bg,#f6fafc);box-shadow:inset 3px 0 0 var(--bdtp-section-accent,#0170b9)}
.bdtpg-answer-separator{color:#9aa8b3}
.bdtpg-user-answer{padding:6px 0;border-radius:0;background:transparent;color:#223342;white-space:pre-wrap;overflow-wrap:anywhere}
.bdtpg-feedback{display:inline-flex;align-items:center;gap:5px;margin:4px 6px;padding:2px 4px;color:#586c7c;font-size:15px;font-weight:750;vertical-align:middle}
.bdtpg-feedback.is-correct{color:#187443}
.bdtpg-feedback.is-wrong{color:#b12626}
.bdtpg-solution-info{width:27px;height:27px;padding:0;border:1px solid #c6d2dc;border-radius:50%;background:#fff;color:#405466;font-size:12px;font-weight:650;cursor:help}
.bdtpg-solution-info:focus-visible{outline:2px solid var(--bdtp-section-accent,#0170b9);outline-offset:2px}
.bdtpg-free-text-answer{min-width:min(320px,95%);max-width:100%;max-height:290px;padding:22px 20px;overflow:auto;overflow-wrap:anywhere;border:1px solid #c6d2dc;border-radius:11px;background:#fff;color:#223342;font-size:15px;line-height:1.8}
/* Korrekturschalter und Textfeld entsprechen den Controls der Übungswidgets. */
.bdtpg-manual-controls{display:flex;align-items:center;flex-wrap:wrap;gap:9px;width:100%}
.bdtpg-manual-controls button{min-height:40px;padding:9px 13px;border:1px solid #c6d2dc;border-radius:8px;background:#fff;color:#223342;font:inherit;font-size:13px;line-height:1.35;cursor:pointer}
.bdtpg-manual-controls button:hover:not(:disabled){border-color:var(--bdtp-section-active-border,#bfd9e8);background:#f5f8fa}
.bdtpg-manual-controls button.is-active{border-color:var(--bdtp-section-accent,#0170b9);background:var(--bdtp-section-emphasis-bg,#f6fafc);box-shadow:inset 3px 0 0 var(--bdtp-section-accent,#0170b9)}
.bdtpg-manual-controls button:focus-visible{outline:2px solid var(--bdtp-section-accent,#0170b9);outline-offset:2px}
.bdtpg-manual-controls textarea{min-width:160px;flex:1;padding:13px 14px;border:1px solid #c6d2dc;border-radius:9px;background:#fff;color:#223342;font:inherit;line-height:1.6}
.bdtpg-manual-controls textarea:focus-visible{outline:2px solid var(--bdtp-section-accent,#0170b9);outline-offset:2px}
/* Fachlich erforderliche Auswahl für Sortieren und Zuordnen; Karten folgen
   der linken/rechten Übungsspalte von arbeitsheft.css. */
.bdtpg-inline-select{max-width:210px;min-height:42px;margin:5px 7px;padding:9px 11px;border:1px solid #c6d2dc;border-radius:8px;background:#fff;color:#223342;font:inherit;font-size:13.5px}
.bdtpg-inline-select:focus-visible{outline:2px solid var(--bdtp-section-accent,#0170b9);outline-offset:2px}
.bdtpg-is-member .bdtp-workbook-match__right[data-bdtp-match-card]{display:none}
.bdtpg-is-member .bdtp-workbook-match__slot{display:flex;align-items:stretch;min-width:0}
.bdtpg-is-member .bdtp-workbook-match__slot .bdtpg-match-card{display:flex;width:100%;height:auto;min-height:56px;align-items:center;justify-content:flex-start;padding:12px 14px;text-align:left;cursor:grab;touch-action:manipulation;user-select:none}
.bdtpg-is-member .bdtp-workbook-match__slot .bdtpg-match-card:active{cursor:grabbing}
.bdtpg-is-member .bdtp-workbook-match__slot .bdtpg-match-card.is-swap-selected{border-color:var(--bdtp-section-accent,#0170b9);background:var(--bdtp-section-emphasis-bg,#f6fafc);box-shadow:0 0 0 3px var(--bdtp-section-focus-ring,rgba(1,112,185,.14))}
.bdtpg-is-member .bdtp-workbook-match__slot .bdtpg-match-card:focus-visible{outline:2px solid var(--bdtp-section-accent,#0170b9);outline-offset:2px}
.bdtpg-is-member .bdtp-workbook-match__slot.is-drop-target .bdtpg-match-card{border-color:var(--bdtp-section-accent,#0170b9);background:var(--bdtp-section-emphasis-bg,#f6fafc)}
/* Reihenfolge: von JS angehängte Buttons optisch wie die gesetzten Tokens des
   Einzelarbeitshefts, aber weiterhin anklickbar zum Entfernen. */
.bdtpg-is-member [data-bdtp-sequence-bank-token].is-placed{opacity:.35}
.bdtpg-sequence-chosen{min-height:40px;margin:3px;padding:9px 13px;border:1px solid var(--bdtp-section-active-border,#bfd9e8);border-radius:8px;background:var(--bdtp-section-emphasis-bg,#f6fafc);color:#223342;font:inherit;font-size:13.5px;font-weight:600;line-height:1.4;cursor:pointer}
.bdtpg-sequence-chosen:focus-visible{outline:2px solid var(--bdtp-section-accent,#0170b9);outline-offset:2px}
.bdtpg-sequence-grade{display:inline-flex;align-items:center;gap:5px;margin:4px;color:#586c7c;font-size:12px}
.bdtpg-add-accepted{min-height:40px;max-width:190px;padding:9px 12px;border:1px solid #c6d2dc;border-radius:8px;background:#fff;color:#223342;font:inherit;font-size:13px}
.bdtpg-add-accepted-button{min-height:40px;padding:9px 13px;border:1px solid #c6d2dc;border-radius:8px;background:#fff;color:#223342;font:inherit;font-size:13px;cursor:pointer}
.bdtpg-add-accepted-button:hover{border-color:var(--bdtp-section-active-border,#bfd9e8);background:#f5f8fa}
.bdtpg-add-accepted:focus-visible,.bdtpg-add-accepted-button:focus-visible{outline:2px solid var(--bdtp-section-accent,#0170b9);outline-offset:2px}
@media (max-width:650px){
  .bdtpg-part-results{display:flex;gap:7px}
  .bdtpg-answer-chip{max-width:180px}
  .bdtpg-homework-tabs{padding:8px 9px;gap:2px}
  .bdtpg-homework-tabs button{min-height:32px;padding:7px 9px;font-size:11.5px}
  .bdtpg-free-text-answer{padding:16px}
}
@media (max-width:560px){
  .bdtpg-is-member .bdtp-workbook-match__row{gap:18px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .bdtpg-is-member .bdtp-workbook-match__left,.bdtpg-is-member .bdtpg-match-card{overflow-wrap:anywhere}
}

/* Persönliche Notizen sind kein Teil der Übungs-Neugestaltung. */
.bdtpg-note-menu[hidden],.bdtpg-note-tools[hidden]{display:none!important}
.bdtpg-note-menu{position:fixed;z-index:10000;background:#fff;padding:5px;border:1px solid #94a3b8;border-radius:6px;box-shadow:0 10px 24px #0f172a20}
.bdtpg-note-menu button{padding:8px 12px;background:#eff6ff;color:#1d4ed8;border:0;cursor:pointer}
.bdtpg-note-tools{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:8px 13px;background:#eff6ff;border-bottom:1px solid #cbd5e1}
.bdtpg-note-tools button,.bdtpg-note-tools select{cursor:pointer;border:1px solid #cbd5e1;border-radius:4px;padding:5px;background:#fff}
.bdtpg-note-tools label{font-size:12px;display:flex;gap:4px;align-items:center}
.bdtpg-note-tools input[type=color]{width:30px;height:28px;border:none;padding:0}
.bdtpg-note{margin:9px 0 16px;padding:10px 13px;border:1px solid #f2cc82;background:#fffaf0;border-radius:9px;max-width:650px;overflow-wrap:anywhere}
.bdtpg-note header{font-size:12px;font-weight:700;color:#92400e;display:flex;justify-content:space-between;align-items:center}
.bdtpg-note header button{border:1px solid #d6a768;color:#92400e;background:transparent;border-radius:4px;padding:3px 7px;cursor:pointer}
.bdtpg-note-content{min-height:48px;outline:0;padding:6px;font-size:14px;line-height:1.6}
.bdtpg-note-content:focus{outline:2px solid #c084fc;border-radius:5px}
.bdtpg-note-content h2{font-size:19px}.bdtpg-note-content h3{font-size:16px}
.bdtpg-is-member .bdtpg-document-note{font-size:12px}

@media(max-width:650px){.bdtpg-note-tools label{font-size:11px}}

/* Keep the text and its descendants readable against light interaction surfaces,
   including WordPress themes that set a global white hover/focus text color. */
:is(.bdtpg-editor,#bdtpg-course-preview-content) .bdtp-workbook-exercise .bdtp-workbook-choice__option,
:is(.bdtpg-editor,#bdtpg-course-preview-content) .bdtp-workbook-exercise .bdtp-workbook-choice__option:is(:hover,:focus,:focus-visible,:active){color:var(--bdtp-learning-ink,#223342)!important}
:is(.bdtpg-editor,#bdtpg-course-preview-content) .bdtp-workbook-exercise .bdtp-workbook-choice__option .bdtp-workbook-choice__label,
:is(.bdtpg-editor,#bdtpg-course-preview-content) .bdtp-workbook-exercise .bdtp-workbook-choice__option .bdtp-workbook-choice__label *{color:inherit!important}
:is(.bdtpg-editor,#bdtpg-course-preview-content) .bdtp-workbook-exercise .bdtp-workbook-choice__option:hover:not(:disabled){background:var(--bdtp-section-tab-hover,#f3f8fb)}
:is(.bdtpg-editor,#bdtpg-course-preview-content) .bdtp-workbook-exercise .bdtp-workbook-choice__option.is-selected:is(:hover,:focus,:active){background:var(--bdtp-section-emphasis-bg,#f6fafc);color:var(--bdtp-section-accent-dark,#015f9e)!important}
:is(.bdtpg-editor,#bdtpg-course-preview-content) .bdtp-didaktik :is(.bdtp-didaktik__choices,.bdtp-didaktik__wordpicker) button,
:is(.bdtpg-editor,#bdtpg-course-preview-content) .bdtp-didaktik :is(.bdtp-didaktik__choices,.bdtp-didaktik__wordpicker) button:is(:hover,:focus,:active){color:var(--bdtp-learning-ink,#223342)!important}
:is(.bdtpg-editor,#bdtpg-course-preview-content) .bdtp-didaktik :is(.bdtp-didaktik__choices,.bdtp-didaktik__wordpicker) button [data-bdtp-didaktik-lang]{color:inherit!important}
:is(.bdtpg-editor,#bdtpg-course-preview-content) .bdtpg-manual-controls button:is(:hover,:focus,:active),
:is(.bdtpg-editor,#bdtpg-course-preview-content) .bdtpg-add-accepted-button:is(:hover,:focus,:active){color:#223342!important}
:is(.bdtpg-editor,#bdtpg-course-preview-content) .bdtpg-answer-chip:is(:hover,:focus,:active,:disabled){color:var(--bdtpg-answer-color,#223342)!important;opacity:1}
:is(.bdtpg-editor,#bdtpg-course-preview-content) .bdtpg-manual-controls button.is-active{color:var(--bdtp-section-accent-dark,#015f9e)!important}
:is(.bdtpg-editor,#bdtpg-course-preview-content) .bdtpg-v-checkbutton:is(:hover,:focus,:active){color:#fff!important;background:#611a35;border-color:#611a35}

/* Ü: no participant or correction toolbar in the administrator's group workbook. */
#bdtpg-workbook.bdtpg-is-admin [data-bdtp-exercise]:not([data-bdtpg-v-exercise]):not([data-bdtp-homework]) > .bdtpg-homework-tabs{display:none!important}
#bdtpg-workbook.bdtpg-is-member :is([data-bdtp-exercise]:not([data-bdtpg-v-exercise]):not([data-bdtp-homework])) :is([data-bdtp-choice-option],.bdtpg-inline-select,.bdtpg-match-card,[data-bdtp-sequence-bank-token],.bdtpg-sequence-chosen,[data-bdtp-didaktik-choice],[data-bdtp-didaktik-token],[data-bdtp-didaktik-move],[data-bdtp-mini-command]),
#bdtpg-workbook.bdtpg-is-member[data-bdtpg-readonly="true"] :is([data-bdtp-choice-option],.bdtpg-inline-select,.bdtpg-match-card,[data-bdtp-sequence-bank-token],.bdtpg-sequence-chosen,[data-bdtp-didaktik-choice],[data-bdtp-didaktik-token],[data-bdtp-didaktik-move],[data-bdtp-mini-command],.bdtpg-v-checkbutton,#bdtpg-save){cursor:not-allowed!important;opacity:.72}
#bdtpg-workbook.bdtpg-is-member[data-bdtpg-readonly="true"] :is(#bdtpg-note-tools,#bdtpg-note-menu,.bdtpg-note header button){display:none!important}

/* Personal note conflict resolution; native dialog keeps the workbook inert. */
.bdtpg-exit-dialog.bdtpg-note-conflict-dialog{width:min(760px,calc(100vw - 32px));max-width:min(760px,calc(100vw - 32px));max-height:85vh;overflow:auto;box-sizing:border-box}
.bdtpg-note-conflict-dialog fieldset{margin:12px 0;padding:12px;border:1px solid #cbd5e1;border-radius:8px;min-width:0}
.bdtpg-note-conflict-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:8px 0}
.bdtpg-note-conflict-version{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto;border:1px solid #d1d5db;border-radius:6px;padding:8px;margin-top:4px;min-height:44px;background:rgba(127,127,127,.06)}
.bdtpg-note-conflict-dialog select{max-width:100%;width:100%;margin-top:8px}
@media(max-width:540px){.bdtpg-note-conflict-pair{grid-template-columns:1fr}}
