/* === Gapfill-Verwaltungsliste → generische Klassen in base.css ===
   .item-grid, .item-card, .item-header, .item-body, .item-description,
   .item-meta, .item-actions, .load-error, .loading-overlay, .loading-spinner */

/* === Gapfill-Editor (edit_gap_text.html) === */
/* .form-section → forms.css */

.gap-text-editor {
    max-width: 800px;
    margin: 0 auto;
}

.element-controls {
    margin-bottom: 1rem;
}

.elements-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.element-item {
    border: 2px solid var(--color-neutral-200);
    border-radius: var(--radius-md);
    padding: 1rem;
    background: var(--color-neutral-100);
}

.element-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.element-type-badge {
    background: var(--color-neutral-700);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: bold;
}

.element-textarea {
    width: 100%;
    min-height: 80px;
    resize: vertical;
}

.gap-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gap-main-input {
    font-weight: bold;
}

.alt-texts {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.alt-texts input {
    font-size: 0.9rem;
}

.multiselect {
    width: 100%;
    min-height: 100px;
}

/* Distraktor-Eingabezeile */
.distractor-item {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
