/* =================================================================
   Exam Builder — Design System
   Наследует дизайн-систему Grammar Builder
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --goe-bg: #F8F9FA;
    --goe-primary: #1a1a1a;
    --goe-accent: #F98716;
    --goe-accent-hover: #e07914;
    --goe-accent-soft: #FFF7ED;
    --goe-success: #4ADE80;
    --goe-success-bg: #F0FDF4;
    --goe-error: #F87171;
    --goe-error-bg: #FEF2F2;
    --goe-card-bg: #FFFFFF;
    --goe-card-border: #FED7AA;
    --goe-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --goe-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.1);
    --goe-font-main: 'Inter', sans-serif;
    --goe-font-heading: 'Montserrat', sans-serif;
    --goe-radius: 16px;
    --goe-radius-sm: 8px;
    --goe-transition: all 0.25s ease;
}

/* Base */
h1,
h2,
h3,
h4,
h5,
h6,
.goe-catalog-title,
.goe-exercise-title,
.goe-header-title {
    font-family: var(--goe-font-heading);
}

body {
    -webkit-font-smoothing: antialiased;
}

/* 1. ЭЛЕМЕНТЫ ИЗ PH_SHORTCODES */
.goe-page-wrapper {
    font-family: var(--goe-font-main);
    color: var(--goe-primary);
}

.goe-top-nav,
.goe-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 24px 0;
}

.goe-btn-primary {
    background: var(--goe-accent);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.7px;
    display: inline-flex;
    align-items: center;
    transition: var(--goe-transition);
    border: none;
    font-family: var(--goe-font-main);
    gap: 6px;
}

.goe-btn-primary:hover {
    transform: translateY(-2px);
    background: var(--goe-accent-hover);
    color: #ffffff !important;
}

.goe-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--goe-accent) !important;
    text-decoration: none !important;
    font-weight: 600;
    font-family: var(--goe-font-main);
    font-size: 12px;
    transition: var(--goe-transition);
}

.goe-back-link:hover {
    opacity: 0.8;
    transform: translateX(-3px);
}

.goe-header {
    text-align: center;
    margin-bottom: 10px;
}

.goe-header-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--goe-primary);
    margin-bottom: -6px;
    display: block;
}

.goe-header-title {
    font-size: 28px !important;
    font-weight: 800;
    color: var(--goe-accent);
    margin-bottom: 2px;
    line-height: 1.2;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .goe-header-title,
    .goe-exercise-title,
    .goe-catalog-title {
        font-size: 28px !important;
        line-height: 1.25 !important;
    }
}

.goe-header-subtitle {
    font-size: 14px;
    color: #6b7280;
    max-width: 800px;
    padding-top: 2px;
    margin: 0 auto;
    line-height: 1.5;
}

.goe-catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 850px;
    margin: 0 auto;
    margin-top: 18px;
}

.goe-catalog-card {
    background: #F8F9FA;
    border: 1px solid #d6dce4;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: var(--goe-transition);
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.goe-catalog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--goe-shadow-hover);
    border-color: var(--goe-accent);
    background: #ffffff;
}

.goe-card-title {
    font-family: var(--goe-font-main);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--goe-primary);
    margin: 0;
    line-height: 1.4;
}

.goe-test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .goe-catalog-grid,
    .goe-test-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .goe-catalog-grid,
    .goe-test-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .goe-test-card,
    .goe-catalog-card {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

.goe-test-card {
    background: #F8F9FA;
    border: 1px solid #d6dce4;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: left;
    transition: var(--goe-transition);
    text-decoration: none !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    min-height: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.goe-test-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--goe-shadow-hover);
    border-color: var(--goe-accent);
    background: #ffffff;
}

.goe-test-icon {
    width: 32px;
    height: 32px;
    background: var(--goe-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.goe-test-icon svg {
    width: 16px;
    height: 16px;
    fill: #ffffff;
}

.goe-test-title {
    font-family: var(--goe-font-main);
    font-size: 16px;
    font-weight: 800;
    color: var(--goe-primary);
    margin: 0;
    line-height: 1.3;
    flex-grow: 1;
}

.goe-test-progress-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.goe-test-progress-text {
    font-size: 13px;
    font-weight: 700;
    color: #9ca3af;
    font-family: var(--goe-font-main);
}

.goe-test-progress-wrapper {
    width: 50px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.goe-test-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--goe-accent);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.goe-footer-text {
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
    font-weight: 500;
}


.goe-breadcrumbs {
    font-family: var(--goe-font-main);
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 24px;
}

.goe-breadcrumbs a {
    color: var(--goe-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.goe-breadcrumbs a:hover {
    color: var(--goe-accent-hover);
    text-decoration: underline;
}

.goe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px !important;
    font-family: var(--goe-font-main) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    border-radius: var(--goe-radius-sm) !important;
    cursor: pointer;
    transition: var(--goe-transition);
    text-decoration: none !important;
    border: 2px solid transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.goe-btn-nav {
    background: white;
    color: var(--goe-accent) !important;
    border-color: var(--goe-accent) !important;
}

.goe-btn-nav:hover {
    background: var(--goe-accent-soft) !important;
    border-color: var(--goe-accent) !important;
    color: var(--goe-accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 135, 22, 0.15) !important;
}

.goe-btn-check {
    background: var(--goe-accent) !important;
    color: white !important;
    border-color: var(--goe-accent) !important;
    font-weight: 700 !important;
}

.goe-btn-check:hover {
    background: var(--goe-accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(249, 135, 22, 0.4) !important;
}

.goe-btn-solution {
    background: #f8f9fa !important;
    color: var(--goe-accent) !important;
    border-color: var(--goe-accent) !important;
    font-weight: 700 !important;
}

.goe-btn-solution:hover {
    background: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(249, 135, 22, 0.15) !important;
}

/* --- Navigation & Action Containers Layout --- */
.goe-exercise-actions {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    gap: 20px !important;
    margin-top: 40px !important;
    width: 100% !important;
}

.goe-nav-left {
    justify-self: start !important;
    text-align: left !important;
}

.goe-action-center {
    justify-self: center !important;
    display: flex !important;
    gap: 15px !important;
    flex-wrap: wrap;
    justify-content: center !important;
}

.goe-nav-right {
    justify-self: end !important;
    text-align: right !important;
}

.goe-exercise-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .goe-exercise-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 16px !important;
        margin-top: 24px !important;
        padding-top: 16px !important;
        width: 100% !important;
    }

    /* Ряд 1 (сверху): Prüfen и Lösungen anzeigen */
    .goe-action-center {
        order: 1 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        margin-bottom: 4px !important;
    }

    /* Ряд 2 (снизу): ← Zurück (слева) и Weiter → (справа) */
    .goe-nav-left {
        order: 2 !important;
    }

    .goe-nav-right {
        order: 3 !important;
    }

    .goe-btn-nav-alt {
        padding: 10px 18px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
    }

    .goe-btn-check {
        padding: 10px 20px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
    }

    .goe-btn-solution {
        padding: 10px 18px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
    }
}

/* --- Nav Buttons Specific Styles --- */
.goe-btn-nav-alt {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #1A1A1A !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.goe-btn-nav-alt:hover {
    background: #ffffff !important;
    border-color: #F98716 !important;
    color: #F98716 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 135, 22, 0.15) !important;
}

.goe-btn-nav-top {
    background: white !important;
    color: var(--goe-accent) !important;
    border-color: var(--goe-accent) !important;
}

.goe-btn-nav-top:hover {
    background: var(--goe-accent-soft) !important;
    border-color: var(--goe-accent) !important;
    color: var(--goe-accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 135, 22, 0.15) !important;
}


/* =================================================================
   2. КАТАЛОГ (Фаза 4)
   ================================================================= */

.goe-catalog {
    margin-bottom: 60px;
}

.goe-catalog-header {
    text-align: center;
    padding: 40px 0 50px;
    background: var(--goe-bg);
    border-radius: var(--goe-radius);
    margin-bottom: 40px;
}

.goe-catalog-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--goe-accent);
    margin-bottom: 12px;
    display: block;
}

.goe-catalog-title {
    font-size: 40px;
    font-weight: 900;
    color: #1A1A1A;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.goe-catalog-subtitle {
    font-size: 18px;
    color: #4b5563;
    margin: 0;
}

.goe-books-grid,
.goe-tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.goe-part-icon {
    margin-bottom: 0;
    margin-right: 20px;
    width: 48px;
    height: 48px;
    font-size: 24px;
}

/* --- Меню частей теста --- */
.goe-parts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.goe-part-list-item {
    display: flex;
    align-items: center;
    background: #F8F9FA;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px 16px;
    text-decoration: none;
    color: #1A1A1A;
    transition: all 0.25s ease;
}

.goe-part-list-item:hover,
.goe-part-list-item:active {
    background: #FFFFFF;
    border-color: var(--goe-accent);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    color: #1A1A1A !important;
}

.goe-part-list-icon {
    font-size: 24px;
    margin-right: 12px;
    line-height: 1;
}

.goe-part-list-title {
    font-size: 15px;
    font-weight: 700;
    font-family: var(--goe-font-main);
    flex-grow: 1;
}

.goe-part-list-arrow {
    font-size: 20px;
    color: #9ca3af;
    transition: color 0.2s;
}

.goe-part-list-item:hover .goe-part-list-arrow {
    color: var(--goe-accent);
}

/* =================================================================
   3. ИНТЕРФЕЙС ЗАДАНИЯ (Exam Widget)
   ================================================================= */

.goe-exercise-container {
    font-family: var(--goe-font-main);
    background: white;
    border-radius: var(--goe-radius);
    padding: 40px;
    box-shadow: var(--goe-shadow);
    border: 1px solid var(--goe-card-border, #FED7AA);
    margin-bottom: 40px;
    position: relative;
    max-width: 1200px;
    box-sizing: border-box;
}

.goe-exercise-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 24px;
}

.goe-nav-spacer {
    flex-grow: 1;
}

.goe-exercise-header {
    margin-bottom: 32px;
    text-align: center;
}

.goe-exercise-subtitle {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--goe-accent);
    margin-top: 10px;
    margin-bottom: 0;
    display: block;
}

.goe-exercise-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    color: var(--goe-primary);
}

.goe-exercise-instruction {
    font-size: 18px;
    line-height: 1.6;
    color: #4b5563;
    background: #f9fafb;
    padding: 20px 24px;
    border-left: 4px solid var(--goe-accent);
    border-radius: 0 var(--goe-radius-sm) var(--goe-radius-sm) 0;
    margin-bottom: 40px;
}

.goe-exercise-instruction .goe-instruction-footnote {
    text-align: right;
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 14px;
    color: #64748b;
}

.goe-exercise-actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #f3f4f6;
    justify-content: center;
    flex-wrap: wrap;
}

/* =================================================================
   4. ТИП ЗАДАНИЯ: Richtig / Falsch
   ================================================================= */

.goe-audio-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--goe-radius-sm);
    padding: 20px;
    margin-bottom: 32px;
}

.goe-audio-title {
    font-weight: 600;
    margin-bottom: 12px;
    color: #1A1A1A;
    text-align: center;
}

.goe-audio-player {
    display: block !important;
    width: 50% !important;
    margin: 0 auto !important;
    outline: none !important;
}

.goe-rf-tasks {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.goe-rf-task-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 24px !important;
    border: 1.5px solid var(--goe-card-border, #FED7AA) !important;
    border-radius: var(--goe-radius-sm) !important;
    background: #f9fafb !important;
    transition: var(--goe-transition) !important;
}

.goe-rf-task-row:hover {
    border-color: #d1d5db;
}

.goe-rf-task-text {
    flex-grow: 1;
    padding-right: 24px;
    font-size: 18px;
    line-height: 1.5;
    color: #1a1a1a;
}

.goe-rf-task-number {
    font-weight: 700;
    color: var(--goe-accent);
    margin-right: 0 !important;
}

.goe-rf-task-options {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.goe-rf-option-btn {
    padding: 10px 24px !important;
    font-family: var(--goe-font-main) !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    border: 1.5px solid #d6dce4 !important;
    background: #ffffff !important;
    color: #1a1a1a !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.goe-rf-option-btn:hover {
    border-color: #F98716 !important;
    box-shadow: 0 4px 12px rgba(249, 135, 22, 0.15) !important;
    transform: translateY(-2px) !important;
}

/* Состояния выбора и проверки */
.goe-rf-option-btn.selected {
    background: #FFF7ED !important;
    border-color: #F98716 !important;
    color: #F98716 !important;
    font-weight: 800 !important;
}

.goe-rf-task-row.is-checked .goe-rf-option-btn.selected.correct {
    background: var(--goe-success-bg) !important;
    border-color: var(--goe-success) !important;
    color: #166534 !important;
}

.goe-rf-task-row.is-checked .goe-rf-option-btn.selected.wrong {
    background: var(--goe-error-bg) !important;
    border-color: var(--goe-error) !important;
    color: #991B1B !important;
}

.goe-rf-task-row.is-checked .goe-rf-option-btn:not(.selected) {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .goe-exercise-container {
        padding: 20px 16px !important;
    }

    .goe-rf-task-top-wrapper,
    .goe-jn-task-top-wrapper {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .goe-rf-task-text,
    .goe-jn-task-text {
        padding-right: 0 !important;
        width: auto !important;
        flex: 1 !important;
    }

    .goe-rf-task-options {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .goe-jn-task-options {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .goe-rf-option-btn {
        width: 100% !important;
        text-align: center !important;
        padding: 10px 16px !important;
        font-size: 16px !important;
    }

    .goe-jn-option-btn {
        flex: 1 !important;
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 10px 16px !important;
        font-size: 16px !important;
    }
}

/* =================================================================
   5. MULTIPLE CHOICE & TEXT ARTICLES
   ================================================================= */

/* Основной текст для чтения перед вопросами */
.goe-mc-article {
    font-size: 16px !important;
    line-height: 1.75 !important;
    color: #1E293B !important;
    margin-bottom: 32px;
    background: #FFFFFF;
    padding: 32px;
    border: 1.5px solid var(--goe-card-border);
    border-radius: var(--goe-radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    /* Выравнивание по ширине с красивыми переносами */
    text-align: justify;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.goe-mc-article--bottom {
    margin-top: 30px !important;
}

/* Заголовок статьи всегда по центру с четким отступом от текста */
.goe-mc-article h1,
.goe-mc-article h2,
.goe-mc-article h3,
.goe-mc-article h4,
.goe-mc-article-title {
    text-align: center !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    margin-top: 0 !important;
    margin-bottom: 28px !important;
    line-height: 1.35 !important;
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: -0.01em !important;
}

.goe-mc-article h1 strong,
.goe-mc-article h2 strong,
.goe-mc-article h3 strong,
.goe-mc-article h4 strong,
.goe-mc-article-title strong,
.goe-mc-article h1 b,
.goe-mc-article h2 b,
.goe-mc-article h3 b,
.goe-mc-article h4 b,
.goe-mc-article-title b,
.goe-ds-text-col h1 strong,
.goe-ds-text-col h2 strong,
.goe-ds-text-col h3 strong,
.goe-ds-text-col h1 b,
.goe-ds-text-col h2 b,
.goe-ds-text-col h3 b {
    font-weight: inherit !important;
}

/* Абзацы текста статьи: четкие отступы между абзацами ТОЛЬКО для Goethe B2 (как в оригинале экзамена) */
[data-exam-preset="goethe_b2"] .goe-mc-article p,
.goe-preset--goethe_b2 .goe-mc-article p {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
    color: #1E293B !important;
    text-align: justify !important;
}

[data-exam-preset="goethe_b2"] .goe-mc-article p:last-child,
.goe-preset--goethe_b2 .goe-mc-article p:last-child {
    margin-bottom: 0 !important;
}

/* Для Goethe B1 (и остальных пресетов): сплошной текст без отступов между абзацами */
.goe-mc-article p,
[data-exam-preset="goethe_b1"] .goe-mc-article p,
.goe-preset--goethe_b1 .goe-mc-article p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
    color: #1E293B !important;
    text-align: justify !important;
}

/* Для подзаголовков с датой/источником в статьях Goethe B1 сохраняем визуальный отступ */
[data-exam-preset="goethe_b1"] .goe-mc-article p[style*="text-align: right"],
[data-exam-preset="goethe_b1"] .goe-mc-article p[style*="text-align:right"],
.goe-preset--goethe_b1 .goe-mc-article p[style*="text-align: right"],
.goe-preset--goethe_b1 .goe-mc-article p[style*="text-align:right"] {
    margin-bottom: 12px !important;
}

/* Сноски и примечания внизу статьи */
.goe-mc-article small,
.goe-mc-article .goe-article-footnote {
    display: block !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    color: #64748B !important;
    margin-top: 24px !important;
    padding-top: 14px !important;
    border-top: 1px solid #E2E8F0 !important;
    text-align: left !important;
}


.goe-mc-tasks {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.goe-mc-task-row {
    background: #F8F9FA;
    padding: 24px;
    border: 1.5px solid var(--goe-card-border);
    border-radius: var(--goe-radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.goe-mc-question {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.5;
    color: #1A1A1A;
    display: flex;
    align-items: baseline;
    gap: 12px !important;
}

.goe-mc-number {
    font-weight: 800;
    color: var(--goe-accent);
    flex-shrink: 0;
    margin-right: 0 !important;
}

.goe-mc-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Сетка для Goethe A1 (3 колонки) */
.goe-mc-options-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    flex-direction: row !important;
}

.goe-mc-option-btn {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 14px 20px !important;
    background: white !important;
    border: 2px solid #d1d5db !important;
    border-radius: 10px !important;
    font-family: var(--goe-font-main) !important;
    font-size: 18px !important;
    color: #1A1A1A !important;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: none;
}

/* Вертикальная кнопка для Goethe A1 */
.goe-mc-option-btn-vertical {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 !important;
    overflow: hidden;
}

.goe-mc-opt-img-top {
    width: 100%;
    height: 250px !important;
    object-fit: contain;
    background: #f8fafc;
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.goe-mc-opt-footer {
    display: flex;
    align-items: center;
    padding: 15px 20px;
}

.goe-mc-opt-img {
    display: block;
    max-width: 100%;
    margin-top: 10px;
    border-radius: 8px;
}

.goe-mc-option-btn:hover {
    background: white !important;
    border-color: var(--goe-accent) !important;
    color: #1A1A1A !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(249, 135, 22, 0.15) !important;
}

.goe-mc-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--goe-accent);
    border: none;
    border-radius: 8px;
    margin-right: 16px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    color: white;
    flex-shrink: 0;
    transition: var(--goe-transition);
}

/* Состояния Multiple Choice */
.goe-mc-option-btn.selected {
    background: #FFF7ED !important;
    color: #F98716 !important;
    font-weight: 700 !important;
    border-color: var(--goe-accent) !important;
}

.goe-mc-option-btn.selected .goe-mc-letter {
    background: var(--goe-accent-hover) !important;
    box-shadow: 0 2px 8px rgba(249, 135, 22, 0.3);
}

/* Проверка — правильный ответ (зелёный, как в online-exercises-builder) */
.goe-mc-task-row.is-checked .goe-mc-option-btn.selected.correct {
    background: #F0FDF4 !important;
    border-color: #4ADE80 !important;
    color: #166534 !important;
}

.goe-mc-task-row.is-checked .goe-mc-option-btn.selected.correct .goe-mc-letter {
    background: #4ADE80 !important;
    color: white !important;
}

/* Проверка — неправильный ответ (красный, как в online-exercises-builder) */
.goe-mc-task-row.is-checked .goe-mc-option-btn.selected.wrong {
    background: #FEF2F2 !important;
    border-color: #F87171 !important;
    color: #991B1B !important;
}

.goe-mc-task-row.is-checked .goe-mc-option-btn.selected.wrong .goe-mc-letter {
    background: #F87171 !important;
    color: white !important;
}

.goe-mc-task-row.is-checked .goe-mc-option-btn.goe-mc-correct-answer:not(.selected) {
    background: #F0FDF4 !important;
    border-color: #86EFAC !important;
    color: #166534 !important;
    opacity: 0.95 !important;
}

.goe-mc-task-row.is-checked .goe-mc-option-btn.goe-mc-correct-answer:not(.selected) .goe-mc-letter {
    background: #86EFAC !important;
    color: white !important;
}

.goe-mc-task-row.is-checked .goe-mc-option-btn:not(.selected) {
    opacity: 0.5;
    cursor: default;
}

/* =================================================================
   5a. MULTIPLE CHOICE WITH FIXED OPTIONS (Grid/Table Layout)
   ================================================================= */
.goe-mc-fixed-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.goe-mc-fixed-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 12px 24px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 12px;
}

.goe-mc-fixed-header-text {
    flex-grow: 1;
}

.goe-mc-fixed-header-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 320px;
    text-align: center;
    flex-shrink: 0;
}

.goe-mc-fixed-header-option {
    font-weight: 700;
    font-size: 15px;
    color: #475569;
    line-height: 1.3;
    word-break: break-word;
}

.goe-mc-fixed-example-label {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-top: 10px;
    margin-bottom: 4px;
    padding-left: 4px;
}

.goe-mc-fixed-row.goe-mc-example-row .goe-mc-question,
.goe-mc-fixed-row.goe-mc-example-row .goe-mc-question * {
    color: #64748b !important;
}

.goe-mc-fixed-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 24px !important;
    padding: 16px 24px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
}

.goe-mc-fixed-row:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

.goe-mc-fixed-row .goe-mc-question {
    margin-bottom: 0 !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    color: #1a1a1a !important;
    flex-grow: 1 !important;
}

.goe-mc-options-fixed {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
    width: 320px !important;
    justify-items: center !important;
    flex-shrink: 0 !important;
}

.goe-mc-options-fixed .goe-mc-option-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border: 2.5px solid #cbd5e1 !important;
    background: white !important;
    color: #475569 !important;
    text-transform: lowercase !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.goe-mc-options-fixed .goe-mc-option-btn:hover {
    border-color: var(--goe-accent, #F98716) !important;
    color: var(--goe-accent, #F98716) !important;
    background: #fffbeb !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(249, 135, 22, 0.15) !important;
}

.goe-mc-options-fixed .goe-mc-option-btn.selected {
    background: #FFF7ED !important;
    border-color: var(--goe-accent, #F98716) !important;
    color: #F98716 !important;
    box-shadow: 0 2px 8px rgba(249, 135, 22, 0.15) !important;
}

.goe-mc-fixed-row.is-checked .goe-mc-options-fixed .goe-mc-option-btn.selected.correct {
    background: #dcfce7 !important;
    border-color: #22c55e !important;
    color: #15803d !important;
}

.goe-mc-fixed-row.is-checked .goe-mc-options-fixed .goe-mc-option-btn.selected.wrong {
    background: #fee2e2 !important;
    border-color: #ef4444 !important;
    color: #b91c1c !important;
}

.goe-mc-fixed-row.is-checked .goe-mc-options-fixed .goe-mc-option-btn:not(.selected) {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

.goe-mc-fixed-btn-label {
    display: none;
}

/* Responsive styles for fixed options layout */
@media (max-width: 768px) {
    .goe-exercise-instruction,
    .goe-exercise-instruction .line-content,
    .line-content {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    .timer-reset-text {
        display: none !important;
    }

    .goe-mc-fixed-header {
        display: none !important;
    }
    
    .goe-mc-fixed-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
        padding: 16px !important;
    }
    
    .goe-mc-options-fixed {
        width: 100% !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    
    .goe-mc-options-fixed .goe-mc-option-btn {
        width: 100% !important;
        height: auto !important;
        min-height: 48px !important;
        border-radius: 8px !important;
        padding: 10px 16px !important;
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 12px !important;
        text-align: left !important;
    }
    
    .goe-mc-fixed-btn-letter {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        background: #e2e8f0 !important;
        border-radius: 6px !important;
        font-weight: 700 !important;
        color: #475569 !important;
        transition: all 0.2s ease !important;
    }
    
    .goe-mc-fixed-btn-label {
        display: inline-block !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #1a1a1a !important;
    }
    
    .goe-mc-options-fixed .goe-mc-option-btn.selected .goe-mc-fixed-btn-letter {
        background: var(--goe-accent, #F98716) !important;
        color: white !important;
    }
    
    .goe-mc-options-fixed .goe-mc-option-btn.selected.correct .goe-mc-fixed-btn-letter {
        background: #22c55e !important;
        color: white !important;
    }
    
    .goe-mc-options-fixed .goe-mc-option-btn.selected.wrong .goe-mc-fixed-btn-letter {
        background: #ef4444 !important;
        color: white !important;
    }
}

/* =================================================================
   5b. Компактный макет SPRACHBAUSTEINE (текст слева, вопросы справа)
   ================================================================= */
.goe-sb-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.goe-sb-layout .goe-mc-article {
    font-size: 18px;
    line-height: 1.65;
    padding: 24px;
    margin-bottom: 0;
    position: sticky;
    top: 20px;
}

/* Интерактивные пропуски в тексте */
.goe-sb-gap {
    display: inline;
    white-space: nowrap;
}

.goe-sb-gap-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--goe-accent);
    vertical-align: super;
    margin-right: 2px;
}

.goe-sb-gap-word {
    display: inline-block;
    min-width: 70px;
    border-bottom: 2px dashed #cbd5e1;
    color: #94a3b8;
    font-style: italic;
    padding: 0 4px;
    text-align: center;
    transition: all 0.3s ease;
}

.goe-sb-gap.is-filled .goe-sb-gap-word {
    color: var(--goe-accent);
    font-weight: 700;
    font-style: normal;
    border-bottom-color: var(--goe-accent);
    border-bottom-style: solid;
}

.goe-sb-gap.is-correct .goe-sb-gap-word {
    color: #22c55e !important;
    border-bottom-color: #22c55e !important;
}

.goe-sb-gap.is-wrong .goe-sb-gap-word {
    color: #ef4444 !important;
    border-bottom-color: #ef4444 !important;
    text-decoration: line-through !important;
}

.goe-mc-tasks-compact {
    display: block;
    column-count: 2;
    column-gap: 10px;
}

.goe-mc-tasks-compact .goe-mc-task-row {
    padding: 12px 14px;
    box-shadow: none;
    break-inside: avoid;
    margin-bottom: 10px;
}

.goe-mc-tasks-compact .goe-mc-question {
    font-size: 14px;
    margin-bottom: 8px;
    gap: 4px;
}

.goe-mc-tasks-compact .goe-mc-options {
    gap: 6px;
}

.goe-mc-tasks-compact .goe-mc-option-btn {
    padding: 8px 10px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    border-width: 1.5px !important;
}

.goe-mc-tasks-compact .goe-mc-letter {
    width: 24px;
    height: 24px;
    font-size: 12px;
    margin-right: 8px;
    border-radius: 6px;
}

.goe-mc-tasks-compact .goe-mc-option-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(249, 135, 22, 0.12) !important;
}

@media (max-width: 900px) {
    .goe-sb-layout {
        grid-template-columns: 1fr;
    }

    .goe-sb-layout .goe-mc-article {
        position: static;
    }

    .goe-mc-tasks-compact {
        column-count: 1;
    }
}

/* =================================================================
   6. DRAG HEADINGS (Leseverstehen)
   ================================================================= */

.goe-dh-layout {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 32px;
    align-items: flex-start;
}

/* Автоматически расширить контейнер Elementor для всех заданий */

/* Расширяем родительские контейнеры Elementor */
.elementor-element:has(.goe-exercise-container) {
    max-width: 1200px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.elementor-element:has(.goe-exercise-container)>.elementor-widget-container {
    max-width: 100% !important;
}

/* Расширяем родительские контейнеры Elementor и обеспечиваем работу position: sticky */
html:has(body.cabinet-page-body),
body.cabinet-page-body {
    overflow-x: clip !important;
    overflow-y: visible !important;
}

.cabinet-main-wrapper,
.cabinet-content-container,
.e-con:has(.goe-exercise-container),
.e-con-inner:has(.goe-exercise-container),
.elementor-element:has(.goe-exercise-container),
.elementor-widget-container:has(.goe-exercise-container),
.goe-exercise-container {
    overflow: visible !important;
}

.elementor-element:has(.goe-exercise-container) {
    max-width: 1200px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.elementor-element:has(.goe-exercise-container)>.elementor-widget-container {
    max-width: 100% !important;
}

/* Расширяем секцию/контейнер верхнего уровня Elementor */
.e-con:has(.goe-exercise-container) {
    --content-width: 1200px !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.goe-dh-pool {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
    margin-bottom: 0;
    padding: 24px;
    background: #F8F9FA;
    border-radius: var(--goe-radius-sm);
    border: 2px dashed #d1d5db;
    flex: 1 !important;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 80px !important;
    align-self: flex-start !important;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

body.admin-bar .goe-dh-pool {
    top: 112px !important;
    max-height: calc(100vh - 135px);
}

.goe-dh-pool::-webkit-scrollbar {
    width: 6px;
}
.goe-dh-pool::-webkit-scrollbar-track {
    background: transparent;
}
.goe-dh-pool::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.goe-dh-pool::-webkit-scrollbar-thumb:hover {
    background: var(--goe-accent, #F98716);
}

.goe-dh-heading-item {
    padding: 12px 20px;
    background: white;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: grab;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    user-select: none;
    transition: var(--goe-transition);
    color: #1A1A1A;
}

.goe-dh-heading-item:hover {
    border-color: var(--goe-accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(249, 135, 22, 0.15);
}

.goe-dh-heading-item:active {
    cursor: grabbing;
}

.goe-dh-heading-item.is-dragging {
    opacity: 0.4;
    transform: scale(0.95);
}

.goe-dh-letter {
    font-weight: 900;
    color: var(--goe-accent);
    margin-right: 10px;
    text-transform: uppercase;
}

.goe-dh-texts {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px;
    flex: 2 !important;
    min-width: 0;
}

@media (max-width: 900px) {
    .goe-dh-layout {
        flex-direction: column !important;
        flex-wrap: wrap !important;
    }

    .goe-dh-pool {
        position: static !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 24px;
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    .goe-exercise-container[data-exercise-type="drag_headings"] {
        max-width: none;
    }
}

.goe-dh-text-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: white;
    border: 1.5px solid var(--goe-card-border);
    border-radius: var(--goe-radius-sm);
}

.goe-dh-dropzone-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px;
}

.goe-dh-number {
    font-size: 18px;
    font-weight: 700;
    color: white;
    background: var(--goe-accent);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-align: center;
    flex-shrink: 0;
}

.goe-dh-dropzone {
    flex-grow: 1;
    min-height: 54px;
    border: 2px dashed #94a3b8;
    border-radius: 10px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    padding: 0 24px;
    color: #64748b;
    font-style: italic;
    font-size: 15px;
    transition: var(--goe-transition);
    cursor: pointer;
}

.goe-dh-dropzone.drag-over {
    border-color: var(--goe-accent);
    background: var(--goe-accent-soft);
    color: var(--goe-accent);
    border-style: solid;
}

.goe-dh-dropzone.has-item {
    border: 2px solid var(--goe-accent);
    background: white;
    color: var(--goe-primary);
    font-style: normal;
    font-weight: 500;
}

.goe-dh-dropzone.has-item.correct {
    border-color: var(--goe-success) !important;
    background: var(--goe-success-bg) !important;
}

.goe-dh-dropzone.has-item.wrong {
    border-color: var(--goe-error) !important;
    background: var(--goe-error-bg) !important;
}

.goe-dh-content {
    font-size: 16px;
    line-height: 1.6;
    color: #1A1A1A;
    /* Выравнивание по ширине */
    text-align: justify;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

/* =================================================================
   7. DRAG WORDS (Sprachbausteine)
   ================================================================= */

.goe-dw-pool {
    display: grid;
    grid-template-rows: repeat(5, auto);
    grid-auto-flow: column;
    gap: 12px;
    margin-top: 32px;
    padding: 24px;
    background: #f8fafc;
    border-radius: var(--goe-radius-sm);
    border: 1.5px dashed #cbd5e1;
}

@media (max-width: 768px) {
    .goe-dw-pool {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-auto-flow: row;
    }
}

.goe-dw-word-item {
    padding: 8px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
    cursor: grab;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    user-select: none;
}

.goe-dw-word-item.is-dragging {
    opacity: 0.4;
}

.goe-dw-letter {
    font-weight: 800;
    color: var(--goe-accent);
    margin-right: 6px;
    font-size: 14px;
}

.goe-dw-text-content {
    font-size: 18px;
    line-height: 2.2;
    /* Увеличенный межстрочный для пропусков */
    color: #1f2937;
    padding: 32px;
    background: white;
    border: 1.5px solid var(--goe-card-border);
    border-radius: var(--goe-radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    /* Выравнивание по ширине */
    text-align: justify;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.goe-dw-dropzone-inline {
    display: inline-flex;
    align-items: center;
    min-width: 120px;
    /* Мин ширина для слова */
    height: 36px;
    border: 2px dashed #9ca3af;
    border-radius: 6px;
    background: #f9fafb;
    margin: 0 8px;
    vertical-align: middle;
    padding: 0 8px;
    transition: var(--goe-transition);
    position: relative;
}

.goe-dw-inline-num {
    font-size: 12px;
    font-weight: 800;
    color: #1A1A1A;
    position: absolute;
    top: -10px;
    left: 4px;
    background: white;
    padding: 0 4px;
}

.goe-dw-inline-target {
    flex-grow: 1;
    text-align: center;
    font-weight: 600;
    color: var(--goe-primary);
}

.goe-dw-dropzone-inline.drag-over {
    border-color: var(--goe-accent);
    background: var(--goe-accent-soft);
}

.goe-dw-dropzone-inline.has-item {
    border: 2px solid var(--goe-accent);
    background: var(--goe-accent-soft);
}

.goe-dw-dropzone-inline.has-item.correct {
    border-color: var(--goe-success) !important;
    background: var(--goe-success-bg) !important;
}

.goe-dw-dropzone-inline.has-item.wrong {
    border-color: var(--goe-error) !important;
    background: var(--goe-error-bg) !important;
}

/* =================================================================
   7b. FORM FILL (Schreiben Teil 1)
   ================================================================= */

.goe-ff-paper {
    background: #ffffff;
    border: 1.5px solid #d6dce4;
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 30px auto;
}

.goe-ff-form-grid {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.goe-ff-grid-row {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 44px;
}

.goe-ff-grid-label {
    flex: 0 0 250px;
    font-size: 16px;
    color: #374151;
    font-weight: 500;
}

.goe-ff-grid-value {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.goe-ff-grid-number {
    flex: 0 0 35px;
    text-align: right;
    font-size: 16px;
    font-weight: 400;
    color: #64748b;
    font-family: var(--goe-font-main);
}

.goe-ff-grid-full {
    width: 100%;
    font-size: 16px;
    line-height: 1.6;
    color: #1f2937;
    margin-top: 10px;
}

/* Предзаполненная серая полоска */
.goe-ff-val-bar {
    display: inline-flex;
    align-items: center;
    min-width: 120px;
    height: 36px;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 12px;
    font-weight: 700;
    color: #1e293b;
    font-size: 16px;
}

/* Обертка поля ввода (серая полоска с номером) */
.goe-ff-input-wrapper {
    display: inline-flex;
    align-items: center;
    min-width: 120px;
    height: 36px;
    border: 2.2px dashed #9ca3af;
    border-radius: 6px;
    background: #f8fafc;
    position: relative;
    padding: 0 8px;
    transition: var(--goe-transition);
}

.goe-ff-input-num {
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    position: absolute;
    top: -9px;
    left: 4px;
    background: white;
    padding: 0 4px;
    line-height: 1;
    z-index: 5;
}

.goe-ff-input {
    border: none !important;
    background: transparent !important;
    width: 100% !important;
    height: 100% !important;
    text-align: center !important;
    outline: none !important;
    font-family: var(--goe-font-main) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--goe-primary) !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.goe-ff-input-wrapper:has(.goe-ff-input:focus) {
    border-color: var(--goe-accent);
    background: var(--goe-accent-soft);
    border-style: solid;
}

.goe-ff-input-wrapper:has(.goe-ff-input.correct) {
    border-color: var(--goe-success) !important;
    border-style: solid !important;
    background: var(--goe-success-bg) !important;
}

.goe-ff-input-wrapper:has(.goe-ff-input.wrong) {
    border-color: var(--goe-error) !important;
    border-style: solid !important;
    background: var(--goe-error-bg) !important;
}

/* =================================================================
   8. MATCHING (Zuordnung)
   ================================================================= */

/* --- Блок объявлений (Anzeigen) --- */
.goe-anzeigen-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.goe-anzeigen-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #1A1A1A !important;
    margin-bottom: 20px !important;
}

.goe-anzeigen-grid {
    columns: 3 !important;
    column-gap: 16px !important;
}

.goe-anzeige-card {
    position: relative !important;
    background: #F8F9FA !important;
    border: 1.5px solid #d6dce4 !important;
    border-radius: 12px !important;
    padding: 20px 16px 16px 16px !important;
    text-align: center !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: #1A1A1A !important;
    transition: all 0.2s ease !important;
    break-inside: avoid !important;
    -webkit-column-break-inside: avoid !important;
    margin-bottom: 16px !important;
    display: inline-block !important;
    width: 100% !important;
}

.goe-anzeige-card:hover {
    border-color: #F98716 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06) !important;
}

.goe-anzeige-letter {
    position: absolute !important;
    top: -12px !important;
    left: 14px !important;
    width: 28px !important;
    height: 28px !important;
    background: #F98716 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-family: 'Inter', sans-serif !important;
    z-index: 10 !important;
}

.goe-anzeige-content {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #1A1A1A !important;
}

.goe-anzeige-content p {
    margin: 0 0 6px 0 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

@media (max-width: 900px) {
    .goe-anzeigen-grid {
        columns: 2 !important;
    }
}

@media (max-width: 600px) {
    .goe-anzeigen-grid {
        columns: 1 !important;
    }
}

/* Модификаторы колонок объявлений / текстов */
.goe-anzeigen-section.is-reverse .goe-anzeigen-grid.is-cols-1,
.goe-anzeigen-grid.is-cols-1 {
    columns: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.goe-anzeigen-section.is-reverse .goe-anzeigen-grid.is-cols-1 .goe-anzeige-card,
.goe-anzeigen-grid.is-cols-1 .goe-anzeige-card {
    display: block !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    text-align: left !important;
    padding: 22px 28px 18px 28px !important;
    box-sizing: border-box !important;
}

.goe-anzeigen-section.is-reverse .goe-anzeigen-grid.is-cols-1 .goe-anzeige-letter,
.goe-anzeigen-grid.is-cols-1 .goe-anzeige-letter {
    top: -14px !important;
    left: 20px !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 14px !important;
}

.goe-anzeigen-section.is-reverse .goe-anzeige-content,
.goe-anzeigen-grid.is-cols-1 .goe-anzeige-content,
.goe-anzeigen-grid.is-cols-2 .goe-anzeige-content,
.goe-anzeige-content {
    font-size: 16px !important;
    line-height: 1.65 !important;
    text-align: justify !important;
    color: #23272E !important;
}

.goe-anzeigen-section.is-reverse .goe-anzeige-content p,
.goe-anzeigen-grid.is-cols-1 .goe-anzeige-content p,
.goe-anzeigen-grid.is-cols-2 .goe-anzeige-content p,
.goe-anzeige-content p {
    margin: 0 0 8px 0 !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
    text-align: justify !important;
}

/* Обычный текст по умолчанию для всех карточек текстов/мнений (включая Teil 1 и Teil 4) */
.goe-anzeigen-section.is-reverse .goe-anzeigen-grid.is-cols-1 .goe-anzeige-content,
.goe-anzeigen-section.is-reverse .goe-anzeigen-grid.is-cols-1 .goe-anzeige-content p,
.goe-exercise--lesen-teil-1 .goe-anzeige-content,
.goe-exercise--lesen-teil-1 .goe-anzeige-content p,
.goe-exercise--lesen-teil-4 .goe-anzeige-content,
.goe-exercise--lesen-teil-4 .goe-anzeige-content p,
.goe-anzeigen-grid.is-cols-1 .goe-anzeige-content,
.goe-anzeigen-grid.is-cols-1 .goe-anzeige-content p,
.goe-anzeigen-grid.is-cols-2 .goe-anzeige-content,
.goe-anzeigen-grid.is-cols-2 .goe-anzeige-content p,
.goe-anzeige-content,
.goe-anzeige-content p {
    font-weight: 400 !important;
}

.goe-anzeige-content strong,
.goe-anzeige-content b {
    font-weight: 700 !important;
    color: #0F172A !important;
}

/* В Teil 1 имя персоны сверху карточки */
.goe-anzeigen-section.is-reverse .goe-anzeigen-grid.is-cols-1 .goe-anzeige-content p:first-child strong,
.goe-anzeigen-grid.is-cols-1 .goe-anzeige-content p:first-child strong,
.goe-anzeigen-grid.is-cols-1 .goe-anzeige-content p:first-child b,
.goe-exercise--lesen-teil-1 .goe-anzeige-content p:first-child strong,
.goe-exercise--lesen-teil-1 .goe-anzeige-content p:first-child b {
    display: block !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    color: #1A1A1A !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* В Teil 4 подпись с именем внизу карточки мнений */
.goe-anzeigen-grid.is-cols-2 .goe-anzeige-content p:last-child strong,
.goe-anzeigen-grid.is-cols-2 .goe-anzeige-content p:last-child b,
.goe-exercise--lesen-teil-4 .goe-anzeige-content p:last-child strong,
.goe-exercise--lesen-teil-4 .goe-anzeige-content p:last-child b {
    display: block !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    margin-top: 6px !important;
}

/* Банк заголовков/предложений в Teil 5: полужирный шрифт */
.goe-exercise--lesen-teil-5 .goe-anzeigen-section .goe-anzeige-content,
.goe-exercise--lesen-teil-5 .goe-anzeigen-section .goe-anzeige-content p,
.goe-anzeigen-section.is-reverse .goe-anzeigen-grid.is-cols-2 .goe-anzeige-content,
.goe-anzeigen-section.is-reverse .goe-anzeigen-grid.is-cols-2 .goe-anzeige-content p {
    font-weight: 700 !important;
    color: #0F172A !important;
}

.goe-exercise--lesen-teil-5 .goe-anzeigen-section .goe-anzeige-card.is-example .goe-anzeige-content,
.goe-exercise--lesen-teil-5 .goe-anzeigen-section .goe-anzeige-card.is-example .goe-anzeige-content p,
.goe-anzeigen-section.is-reverse .goe-anzeigen-grid.is-cols-2 .goe-anzeige-card.is-example .goe-anzeige-content,
.goe-anzeigen-section.is-reverse .goe-anzeigen-grid.is-cols-2 .goe-anzeige-card.is-example .goe-anzeige-content p {
    font-weight: 400 !important;
    color: #64748B !important;
}

.goe-anzeigen-grid.is-cols-2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: column !important;
    grid-template-rows: repeat(4, auto) !important;
    gap: 20px !important;
}

.goe-anzeigen-grid.is-cols-2 .goe-anzeige-card {
    display: block !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    text-align: left !important;
    padding: 18px 20px 14px 20px !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .goe-anzeigen-grid.is-cols-2 {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }
}

.goe-anzeigen-grid.is-cols-3 {
    columns: 3 !important;
    column-gap: 16px !important;
}

.goe-anzeigen-section.is-reverse {
    margin-top: 24px;
    margin-bottom: 36px;
}

.goe-anzeige-card.is-example {
    background: #F1F5F9 !important;
    border-color: #CBD5E1 !important;
    opacity: 0.85 !important;
}

.goe-anzeige-card.is-example .goe-anzeige-letter {
    background: #64748B !important;
    color: #FFFFFF !important;
}

.goe-anzeige-card.is-example .goe-anzeige-content,
.goe-anzeige-card.is-example .goe-anzeige-content p {
    text-decoration: none !important;
    color: #64748B !important;
}

/* --- Инструкция --- */
.goe-match-instruction {
    margin-bottom: 24px;
    padding: 24px;
    background: #f8fafc;
    border-left: 4px solid var(--goe-accent);
    font-size: 16px;
    color: #1A1A1A;
    border-radius: 0 8px 8px 0;
}

.goe-match-tasks-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1A1A1A !important;
    margin-top: 36px !important;
    margin-bottom: 18px !important;
    text-align: left !important;
}

.goe-match-tasks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.goe-match-task-row {
    display: flex;
    align-items: center;
    padding: 12px 24px !important;
    background: #F8F9FA !important;
    border: 1.5px solid var(--goe-card-border, #FED7AA) !important;
    border-radius: var(--goe-radius-sm);
}

.goe-match-task-row.is-example {
    background: #F1F5F9 !important;
    border-color: #CBD5E1 !important;
    opacity: 0.95;
}

.goe-match-task-row.is-example .goe-match-number,
.goe-match-number.is-example {
    color: #64748B !important;
}

.goe-match-task-row.is-example .goe-match-question-text,
.goe-match-task-row.is-example .goe-match-question-text p,
.goe-match-task-row.is-example .goe-match-question-text span {
    color: #64748B !important;
}

.goe-match-question {
    flex-grow: 1;
    font-size: 16px !important;
    line-height: 1.6 !important;
    padding-right: 20px;
    display: flex !important;
    align-items: baseline !important;
    gap: 12px !important;
}

.goe-match-question-text {
    flex-grow: 1;
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #1A1A1A !important;
    text-align: justify !important;
}

.goe-match-question-text p,
.goe-match-question p {
    margin: 0 0 6px 0 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    text-align: justify !important;
}

.goe-match-question-text p:last-child,
.goe-match-question p:last-child {
    margin-bottom: 0 !important;
}

.goe-match-number {
    font-weight: 800;
    color: var(--goe-accent);
    flex-shrink: 0 !important;
    margin-right: 0 !important;
}

.goe-match-input-wrapper {
    flex-shrink: 0;
}

.goe-match-input {
    width: 60px !important;
    height: 48px !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border: 2px dashed #94a3b8 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #1A1A1A !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding: 0 !important;
}

.goe-match-input.is-example {
    background: #E2E8F0 !important;
    border: 2px solid #CBD5E1 !important;
    color: #475569 !important;
    font-weight: 800 !important;
    cursor: default !important;
    pointer-events: none !important;
    box-shadow: none !important;
}

.goe-match-input.is-example:focus {
    background: #E2E8F0 !important;
    border-color: #CBD5E1 !important;
    box-shadow: none !important;
}

/* При фокусе или если поле заполнено */
.goe-match-input:focus,
.goe-match-input:not(:placeholder-shown) {
    background: white !important;
    border: 2px solid #F98716 !important;
    color: #1A1A1A !important;
    font-weight: 800 !important;
}

.goe-match-input:focus {
    box-shadow: 0 0 0 3px rgba(249, 135, 22, 0.15) !important;
}

/* Проверка — правильный ответ (зелёный, как в Multiple Choice) */
.goe-match-input.correct {
    background: #F0FDF4 !important;
    border-color: #4ADE80 !important;
    border-style: solid !important;
    color: #166534 !important;
    font-weight: 800;
}

/* Проверка — неправильный ответ (красный, как в Multiple Choice) */
.goe-match-input.wrong {
    background: #FEF2F2 !important;
    border-color: #F87171 !important;
    border-style: solid !important;
    color: #991B1B !important;
    font-weight: 800;
}

/* =================================================================
   9. FREE WRITING (Schriftlicher Ausdruck)
   ================================================================= */

.goe-fw-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Входящее письмо */
.goe-fw-letter-card {
    background: #f9fafb !important;
    border: 1.5px solid #F98716 !important;
    border-radius: var(--goe-radius-sm) !important;
    padding: 28px 32px !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #1A1A1A !important;
}

.goe-fw-letter-card p {
    margin: 0 0 12px 0 !important;
}

.goe-fw-letter-card p:last-child {
    margin-bottom: 0 !important;
}

/* Формулировка задания */
.goe-fw-task {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #1A1A1A !important;
    padding: 0 4px !important;
}

.goe-fw-task ul,
.goe-fw-task ol {
    margin: 12px 0 0 20px !important;
    padding: 0 !important;
}

.goe-fw-task li {
    margin-bottom: 6px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
}

.goe-fw-task li::marker {
    color: var(--goe-accent) !important;
}

/* Совет (Tipp) */
.goe-fw-tip {
    background: #f9fafb !important;
    border: none !important;
    border-radius: var(--goe-radius-sm) !important;
    padding: 16px 20px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #6b7280 !important;
}

/* Текстовое поле */
.goe-fw-write-area {
    display: flex;
    flex-direction: column;
}

.goe-fw-textarea {
    width: 100% !important;
    padding: 24px !important;
    font-family: var(--goe-font-main) !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    border: 1.5px solid #d6dce4 !important;
    border-radius: var(--goe-radius-sm) !important;
    resize: vertical !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    background: #ffffff !important;
    color: #1a1a1a !important;
}

.goe-fw-textarea:focus {
    border-color: var(--goe-accent) !important;
    box-shadow: 0 4px 12px rgba(249, 135, 22, 0.08) !important;
}

/* Счётчик слов */
.goe-fw-word-count {
    margin-top: 8px !important;
    font-size: 14px !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
}

.goe-fw-word-count.is-ok .goe-fw-word-num {
    color: #16a34a !important;
}

.goe-fw-word-count.is-low .goe-fw-word-num {
    color: #dc2626 !important;
}

/* Загрузка фото */
.goe-fw-upload-section {
    margin-top: 8px !important;
}

.goe-fw-upload-divider {
    text-align: center !important;
    color: #94a3b8 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 16px !important;
    position: relative !important;
}

.goe-fw-upload-divider::before,
.goe-fw-upload-divider::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    width: 30% !important;
    height: 1px !important;
    background: #d6dce4 !important;
}

.goe-fw-upload-divider::before {
    left: 0 !important;
}

.goe-fw-upload-divider::after {
    right: 0 !important;
}

.goe-fw-upload-area {
    text-align: center !important;
    padding: 24px !important;
    border: 2px dashed #d6dce4 !important;
    border-radius: var(--goe-radius-sm) !important;
    background: #fafbfc !important;
    transition: all 0.3s ease !important;
}

.goe-fw-upload-area:hover {
    border-color: var(--goe-accent) !important;
    background: #fffbf5 !important;
}

.goe-fw-upload-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #FFF7ED !important;
    color: #F98716 !important;
    border: 1.5px solid #F98716 !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.goe-fw-upload-btn:hover {
    background: #FFEDD5 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(249, 135, 22, 0.2) !important;
}

.goe-fw-upload-hint {
    margin-top: 10px !important;
    font-size: 13px !important;
    color: #94a3b8 !important;
}

/* Превью загруженных фото */
.goe-fw-previews {
    display: flex !important;
    gap: 16px !important;
    justify-content: center !important;
    margin-top: 16px !important;
    flex-wrap: wrap !important;
}

.goe-fw-preview-item {
    position: relative !important;
    width: 160px !important;
    height: 120px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 2px solid #d6dce4 !important;
}

.goe-fw-preview-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.goe-fw-preview-remove {
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    width: 24px !important;
    height: 24px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 14px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Кнопка Prüfen внизу */
.goe-fw-actions {
    text-align: center !important;
    margin-top: 8px !important;
}

/* AI Feedback */
.goe-fw-ai-feedback {
    background: #f8fafc !important;
    border: 1.5px solid #d6dce4 !important;
    border-radius: var(--goe-radius-sm) !important;
    padding: 32px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

.goe-fw-ai-feedback.is-visible {
    display: block !important;
}

/* Таблица результатов AI */
.goe-fw-score-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 16px 0 !important;
}

.goe-fw-score-table th,
.goe-fw-score-table td {
    padding: 12px 16px !important;
    text-align: left !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.goe-fw-score-table th {
    font-weight: 700 !important;
    color: #64748b !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.goe-fw-score-table td {
    color: #1A1A1A !important;
    font-size: 15px !important;
}

.goe-fw-score-table .goe-fw-total-row {
    background: #f1f5f9 !important;
    font-weight: 800 !important;
}

.goe-fw-score-table .goe-fw-total-row td {
    font-size: 18px !important;
    color: var(--goe-accent) !important;
}

.goe-fw-grade-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    color: white !important;
}

.goe-fw-grade-badge.grade-A {
    background: #16a34a !important;
}

.goe-fw-grade-badge.grade-B {
    background: #2563eb !important;
}

.goe-fw-grade-badge.grade-C {
    background: #d97706 !important;
}

.goe-fw-grade-badge.grade-D {
    background: #dc2626 !important;
}

/* Общий комментарий AI */
.goe-fw-overall-comment {
    margin-top: 20px !important;
    padding: 16px 20px !important;
    background: #ffffff !important;
    border-left: 4px solid var(--goe-accent) !important;
    border-radius: 0 8px 8px 0 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #1A1A1A !important;
}

/* Спиннер загрузки */
.goe-fw-spinner {
    text-align: center !important;
    padding: 32px !important;
}

.goe-fw-spinner-icon {
    display: inline-block !important;
    width: 40px !important;
    height: 40px !important;
    border: 4px solid #e2e8f0 !important;
    border-top-color: var(--goe-accent) !important;
    border-radius: 50% !important;
    animation: ebFwSpin 0.8s linear infinite !important;
}

@keyframes ebFwSpin {
    to {
        transform: rotate(360deg);
    }
}

.goe-fw-spinner-text {
    margin-top: 12px !important;
    font-size: 14px !important;
    color: #64748b !important;
    font-weight: 600 !important;
}

/* Для Schriftlicher Ausdruck: Prüfen в общей строке навигации вместе с Zurück и Weiter */
.goe-exercise-container[data-exercise-type="free_writing"] .goe-action-center .goe-btn-solution {
    display: none !important;
}

.goe-exercise-container[data-exercise-type="free_writing"] .goe-exercise-actions {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
}

/* =================================================================
   RESULT BANNER (после нажатия «Prüfen»)
   ================================================================= */

/* --- Модальное окно с результатом --- */
.goe-result-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(35, 39, 46, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.goe-result-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.goe-result-modal {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.goe-result-modal-overlay.is-active .goe-result-modal {
    transform: translateY(0);
}

.goe-rm-title {
    color: #1A1A1A;
    font-weight: 700;
    font-size: 1.2rem;
    font-family: var(--goe-font-heading);
    margin-bottom: 20px;
}

.goe-rm-score {
    color: #F98716;
    font-weight: 800;
    font-size: 2.5rem;
    font-family: var(--goe-font-heading);
    margin-bottom: 15px;
}

.goe-rm-message {
    color: #4b5563;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 30px;
    font-family: var(--goe-font-heading);
    line-height: 1.4;
}

.goe-rm-btn {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: #ffffff !important;
    color: #1A1A1A !important;
    border: 1.5px solid #F98716 !important;
    border-radius: var(--goe-radius-sm) !important;
    padding: 16px 24px !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    font-family: var(--goe-font-main) !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

.goe-rm-btn:hover {
    background: #ffffff !important;
    border-color: #F98716 !important;
    box-shadow: 0 6px 20px rgba(249, 135, 22, 0.15) !important;
    transform: translateY(-2px) !important;
    color: #F98716 !important;
}

/* =================================================================
   SESSION TIMER CARD
   ================================================================= */

/* Helpers: Top Navigation alignment */
.goe-top-nav.is-right-aligned {
    justify-content: flex-end;
}

/* Helpers: Universal Icon Box */
.goe-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    flex-shrink: 0;
}

/* In Session Header Icons */
.goe-session-header .goe-icon-box {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    position: relative;
    top: 4px;
    /* Align with text baseline */
}

/* In Test Content (Test Parts) Icons */
.goe-part-list-icon .goe-icon-box {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    margin-right: 0px;
    /* Space is handled by part-list-icon */
}

/* Base Color Themes for Icons */
.is-blue {
    background: #dbeafe;
    color: #3b82f6;
}

/* Lesen */
.is-purple {
    background: #f3e8ff;
    color: #9333ea;
}

/* Bausteine */
.is-orange {
    background: #ffedd5;
    color: #f97316;
}

/* Hören */
.is-pink {
    background: #fce7f3;
    color: #ec4899;
}

/* Schreiben */
.is-teal {
    background: #ccfbf1;
    color: #14b8a6;
}

/* Default / Sonstiges */
.is-gray {
    background: #f1f5f9;
    color: #64748b;
}

/* Sprechen */
.is-timer {
    background: #f1f5f9;
    color: #64748b;
}

.is-target {
    background: #fdf2f8;
    color: #db2777;
}

/* --- Контейнер для двух колонок (Таймер + Прогресс) --- */
.goe-dashboard-grid {
    display: flex;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 20px;
    width: 100%;
}

.goe-session-card {
    flex: 1;
    background: var(--goe-card-bg);
    border: 1px solid var(--goe-card-border);
    border-radius: 10px;
    padding: 12px 14px !important;
    margin-bottom: 0 !important;
    box-shadow: var(--goe-shadow);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 120px;
}

@media (max-width: 768px) {
    .goe-dashboard-grid {
        flex-direction: column;
        gap: 10px;
    }
}

.goe-session-header {
    font-family: var(--goe-font-heading);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.05em;
    color: #1A1A1A;
    margin-bottom: 6px;
    text-transform: uppercase;
}

/* Timer chips */
.goe-timer-groups {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.goe-timer-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: var(--goe-transition);
    width: 100%;
    box-sizing: border-box;
}

.goe-timer-chip-inline {
    padding: 6px 12px;
    margin: 0;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: auto;
}

.goe-timer-label {
    font-weight: 700;
    font-size: 13px;
    color: var(--goe-primary);
    white-space: nowrap;
}

.goe-timer-row-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.goe-timer-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.goe-timer-countdown {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 14px;
    color: #16a34a;
    text-align: right;
    white-space: nowrap;
}

.goe-timer-warning .goe-timer-countdown {
    color: #d97706;
}

.goe-timer-expired .goe-timer-countdown {
    color: #dc2626;
}

.goe-timer-warning {
    background: #FFF7ED;
    border-color: #F98716;
}

.goe-timer-expired {
    background: #FEF2F2;
    border-color: #F87171;
}

/* Кнопка паузы таймера */
.goe-timer-pause {
    background: #ffffff !important;
    color: #64748b !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 12px;
    font-weight: 600 !important;
    cursor: pointer !important;
    padding: 4px 10px !important;
    line-height: 1.2 !important;
    transition: all 0.2s ease !important;
    margin-left: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.goe-timer-pause:hover {
    background: #f1f5f9 !important;
    color: #1a1a1a !important;
    border-color: #94a3b8 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

/* Состояние паузы */
.goe-timer-chip.is-paused {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
}

.goe-timer-chip.is-paused .goe-timer-countdown {
    color: #94a3b8 !important;
    animation: ebPauseBlink 1.5s ease-in-out infinite;
}

@keyframes ebPauseBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.goe-timer-reset {
    background: #ffffff !important;
    border: 1.5px solid #F98716 !important;
    border-radius: 8px !important;
    padding: 4px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    color: #1A1A1A !important;
    transition: all 0.3s ease !important;
}

.goe-timer-reset:hover {
    background: #fff8f3 !important;
    border-color: #e07914 !important;
    color: #1A1A1A !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(249, 135, 22, 0.15) !important;
}

/* =================================================================
   GESAMTFORTSCHRITT (Прогресс-бар)
   ================================================================= */

.goe-fortschritt-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.goe-stat-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8px 6px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    gap: 2px;
}

.goe-stat-value {
    display: block;
    font-family: var(--goe-font-heading);
    font-weight: 800;
    font-size: 15px;
    color: var(--goe-primary);
    line-height: 1.2;
}

.goe-stat-status {
    display: block;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.goe-stat-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #94a3b8;
    text-transform: uppercase;
    line-height: 1.2;
    margin-top: 2px;
}

.goe-estimate {
    font-size: 14px !important;
}

.goe-progress-bar-wrapper {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 5px;
}

.goe-progress-bar-fill {
    height: 100%;
    border-radius: 8px;
    background: #F87171;
    transition: width 0.6s ease, background 0.4s ease;
    width: 0%;
}

.goe-progress-note {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
}

/* =================================================================
   EXERCISE LIST: Score Badges & Checkmarks
   ================================================================= */

.goe-part-score {
    margin-left: auto;
    flex-shrink: 0;
}

.goe-score-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--goe-accent-soft);
    color: #F98716;
    font-weight: 700;
    font-size: 14px;
    font-family: var(--goe-font-heading);
}

.goe-part-check {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    margin-left: 8px;
    transition: all 0.2s ease;
}

.goe-part-check svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* Состояние: Завершено */
.goe-part-item.is-completed .goe-part-check,
.goe-part-list-item.is-completed .goe-part-check {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #22c55e;
}

/* Состояние: Ожидание (прочерк) */
.goe-check-pending {
    color: #cbd5e1;
    font-weight: 700;
    font-size: 16px;
}

.goe-part-item.is-completed,
.goe-part-list-item.is-completed {
    border-color: var(--goe-success);
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.04) 0%, rgba(255, 255, 255, 1) 100%);
}

.goe-part-item.is-completed:hover,
.goe-part-list-item.is-completed:hover {
    border-color: #16a34a;
}

/* =================================================================
   RESPONSIVE: Timer & Progress
   ================================================================= */

@media (max-width: 768px) {
    .goe-exercise-instruction,
    .goe-exercise-instruction *,
    .goe-exercise-instruction p,
    .goe-exercise-instruction .line-content,
    .goe-exercise-instruction .line-content p,
    .goe-match-instruction,
    .goe-match-instruction *,
    .goe-match-instruction p,
    .goe-jn-task-statement,
    .goe-rf-task-statement,
    .goe-mc-article,
    .goe-gap-article,
    .goe-text-block,
    .goe-mixed-statement,
    .goe-mixed-question-text,
    .goe-exercise-container p,
    .line-content,
    .line-content p {
        font-size: 16px !important;
        line-height: 1.5 !important;
        text-align: justify !important;
    }

    /* Принудительный перенос таблиц и флекс-блоков в 1 колонку на мобильных */
    .goe-exercise-container table,
    .goe-mc-article table,
    .line-content table {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .goe-exercise-container tr,
    .goe-mc-article tr,
    .line-content tr {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .goe-exercise-container td,
    .goe-mc-article td,
    .line-content td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .goe-exercise-container div[style*="display: flex"]:not(.goe-rf-task-top-wrapper):not(.goe-jn-task-top-wrapper),
    .goe-exercise-container div[style*="display:flex"]:not(.goe-rf-task-top-wrapper):not(.goe-jn-task-top-wrapper),
    .goe-mc-article div[style*="display: flex"]:not(.goe-rf-task-top-wrapper):not(.goe-jn-task-top-wrapper),
    .goe-mc-article div[style*="display:flex"]:not(.goe-rf-task-top-wrapper):not(.goe-jn-task-top-wrapper),
    .line-content div[style*="display: flex"]:not(.goe-rf-task-top-wrapper):not(.goe-jn-task-top-wrapper),
    .line-content div[style*="display:flex"]:not(.goe-rf-task-top-wrapper):not(.goe-jn-task-top-wrapper) {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .goe-mc-option-btn,
    .goe-rf-option-btn,
    .goe-jn-option-btn,
    .goe-option-btn,
    .goe-choice-btn,
    .goe-mc-text,
    .goe-mc-question {
        font-size: 16px !important;
        line-height: 1.4 !important;
    }

    .goe-mc-article {
        padding: 20px 18px !important;
        margin-bottom: 24px !important;
    }

    .goe-mc-article h1,
    .goe-mc-article h2,
    .goe-mc-article h3,
    .goe-mc-article h4,
    .goe-mc-article-title {
        font-size: 20px !important;
        margin-bottom: 20px !important;
        text-align: center !important;
    }

    /* Отступы абзацев на мобильных экранах */
    [data-exam-preset="goethe_b2"] .goe-mc-article p,
    .goe-preset--goethe_b2 .goe-mc-article p {
        font-size: 15px !important;
        line-height: 1.65 !important;
        margin-bottom: 16px !important;
    }

    .goe-mc-article p,
    [data-exam-preset="goethe_b1"] .goe-mc-article p,
    .goe-preset--goethe_b1 .goe-mc-article p {
        font-size: 15px !important;
        line-height: 1.65 !important;
        margin-bottom: 0 !important;
    }

    /* 1. Обертка верхнего уровня (текст сверху, варианты снизу) складывается в колонку */
    .goe-rf-task-top-wrapper,
    .goe-jn-task-top-wrapper,
    .goe-exercise-container div.goe-rf-task-top-wrapper,
    .goe-exercise-container div.goe-jn-task-top-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
        width: 100% !important;
    }

    /* 2. Строка 1: Номер задания + Текст задания находятся в одну горизонтальную строку */
    .goe-rf-task-text,
    .goe-jn-task-text,
    .goe-mc-question,
    .goe-match-question,
    .goe-mixed-rf-row > div > div:first-child,
    .goe-mixed-mc-row > div:first-child {
        display: flex !important;
        flex-direction: row !important;
        align-items: baseline !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        padding-right: 0 !important;
    }

    .goe-rf-task-number,
    .goe-jn-task-number,
    .goe-mc-number,
    .goe-match-number,
    .goe-mixed-rf-row > div:first-child > div:first-child > span:first-child,
    .goe-mixed-mc-row > div:first-child > span:first-child {
        font-size: 16px !important;
        line-height: 1.5 !important;
        width: auto !important;
        height: auto !important;
        font-weight: 700 !important;
        flex-shrink: 0 !important;
        margin-right: 0 !important;
    }

    /* Возврат квадратной формы (28x28) плашке буквы ответа A, B, C */
    .goe-mc-letter {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        border-radius: 6px !important;
        flex-shrink: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 14px !important;
        font-weight: 800 !important;
    }

    .goe-rf-task-statement,
    .goe-jn-task-statement,
    .goe-mixed-statement,
    .goe-mixed-question-text {
        font-size: 16px !important;
        line-height: 1.5 !important;
        font-weight: 600 !important;
        flex: 1 !important;
        width: auto !important;
    }

    /* Уменьшение отступа слева для вариантов ответов до 5px на мобильных */
    .goe-mixed-mc-options,
    .goe-mc-options {
        padding-left: 5px !important;
    }

    /* Растягивание Richtig и Falsch кнопок на 100% ширины контейнера на мобильных */
    .goe-mixed-rf-options,
    .goe-rf-task-options,
    .goe-jn-task-options {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 8px !important;
        margin-top: 10px !important;
    }

    .goe-mixed-rf-btn,
    .goe-rf-option-btn,
    .goe-jn-option-btn {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
        padding: 10px 16px !important;
        font-size: 16px !important;
    }

    .timer-reset-text {
        display: none !important;
    }

    .goe-timer-chip {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 10px 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .goe-timer-label {
        font-size: 13px !important;
        font-weight: 700 !important;
        width: 100% !important;
        margin: 0 !important;
        line-height: 1.3 !important;
        color: #1e293b !important;
    }

    .goe-timer-row-bottom {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        margin-left: 0 !important;
    }

    .goe-timer-countdown {
        font-size: 14px !important;
        font-weight: 700 !important;
        min-width: auto !important;
        text-align: left !important;
    }

    .goe-timer-controls {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .goe-timer-pause {
        margin-left: 0 !important;
        padding: 5px 10px !important;
        font-size: 13px !important;
        flex-shrink: 0 !important;
    }

    .goe-timer-reset {
        margin-left: 0 !important;
        padding: 5px 10px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        flex-shrink: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 6px !important;
    }

    /* Мобильный вид для Gesamtfortschritt (только Goethe Builder) */
    .goe-fortschritt-stats {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .goe-stat-box {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 16px !important;
        text-align: left !important;
    }

    .goe-stat-label {
        font-size: 13px !important;
        font-weight: 800 !important;
        color: #475569 !important;
        margin: 0 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
    }

    .goe-stat-right {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        text-align: right !important;
    }

    .goe-stat-value {
        font-size: 15px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
    }

    .goe-stat-status {
        margin-top: 2px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
    }
}

@media (max-width: 600px) {
    .goe-fortschritt-stats {
        flex-direction: column;
        gap: 8px;
    }

    .goe-stat-box {
        padding: 10px;
    }

    .goe-exercise-nav {
        flex-wrap: wrap;
        gap: 12px;
        align-items: center;
        justify-content: center;
    }

    .goe-nav-spacer {
        display: none;
    }

    .goe-timer-chip-inline {
        width: 100%;
        justify-content: space-between;
        order: -1;
        margin-bottom: 8px;
    }
}

/* =================================================================
   TRANSKRIPTION (Hörverstehen)
   ================================================================= */
.goe-btn-toggle-transcript {
    background-color: #FFF7ED;
    color: #F98716;
    font-weight: 800;
    font-size: 16px;
    border: 2px solid #FED7AA;
    border-radius: 8px;
    padding: 12px 28px;
    display: none;
    margin: 0 0 0 10px;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: none;
    width: auto;
}

.goe-btn-toggle-transcript.is-visible {
    display: inline-flex;
}

.goe-btn-toggle-transcript:hover,
.goe-btn-toggle-transcript:active {
    background-color: #FFEDD5;
    border-color: #F98716;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(249, 135, 22, 0.25);
    color: #F98716;
}

.goe-transcript-section {
    margin-top: 40px;
    text-align: center;
    display: none;
    width: 100%;
}

.goe-transcript-section.is-visible {
    display: block;
}

.goe-transcript-content {
    display: none;
    text-align: left;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 18px;
    line-height: 1.6;
    color: #333333;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.goe-transcript-content h3,
.goe-transcript-content .goe-transcript-title {
    color: #F98716;
    font-size: 20px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
}


/* Fix sticky tasks compact */
.goe-mc-tasks-compact {
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

@media (max-width: 900px) {
    .goe-mc-tasks-compact {
        position: static;
    }

    .goe-dw-layout-right {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .goe-dw-pool-compact {
        position: static !important;
    }
}

/* =========================================================================
   Drag & Drop Words - Compact/Right Layout
   ========================================================================= */
.goe-dw-layout-right {
    display: grid !important;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

.goe-dw-text-compact {
    width: 100%;
}

.goe-dw-pool-compact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 80px !important;
    align-self: flex-start !important;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 0;
    margin: 0;
    justify-content: flex-start;
    background: transparent;
    border: none;
    box-shadow: none;
}

body.admin-bar .goe-dw-pool-compact {
    top: 112px !important;
    max-height: calc(100vh - 135px);
}

/* ─── Interactive Diff Tooltip CSS ─── */
.telc-diff-corrected {
    color: #15803d !important;
    background: #dcfce7 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    position: relative !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.telc-diff-corrected:hover {
    background: #bbf7d0 !important;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.25) !important;
}

/* ─── Style Suggestion Badge (Orange) ─── */
.telc-diff-style {
    color: #F98716 !important;
    background: #FFF7ED !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-style: normal !important;
    display: inline-block !important;
    position: relative !important;
    transition: all 0.2s ease !important;
}

.telc-diff-style:hover {
    background: #fde68a !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25) !important;
}

.telc-tooltip-wrap {
    position: relative !important;
    display: inline-block !important;
}

.telc-tooltip-popover {
    visibility: hidden;
    opacity: 0;
    width: 280px;
    background: #0f172a;
    color: #f8fafc;
    text-align: left;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 999999;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transition: opacity 0.25s ease, visibility 0.25s ease;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    pointer-events: none;
}

.telc-tooltip-wrap:hover .telc-tooltip-popover,
.telc-tooltip-wrap.active .telc-tooltip-popover {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.telc-tooltip-popover::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #0f172a transparent transparent transparent;
}

.telc-tooltip-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #22d3ee;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.telc-tooltip-rule {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.telc-tooltip-exp {
    color: #cbd5e1;
    font-size: 12.5px;
}

/* =========================================================================
   8. DRAG SENTENCES (Goethe B2 Lesen Teil 2)
   ========================================================================= */

.goe-ds-container {
    display: grid !important;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: start;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .goe-ds-container {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
}

.goe-ds-text-col {
    text-align: justify;
    background: #ffffff;
    border: 1.5px solid var(--goe-card-border, #FED7AA);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
}

.goe-ds-text-col h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0F172A;
    margin-top: 0;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}

.goe-ds-text-col .goe-ds-article-sub {
    color: #64748B;
    font-style: italic;
    font-size: 15px;
    margin-bottom: 20px;
}

.goe-ds-text-col p {
    margin-bottom: 20px;
    font-size: 16px !important;
    line-height: 2.2 !important;
    color: #1E293B;
}

.goe-ds-dropzone-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 36px;
    padding: 0 8px;
    margin: 0 8px;
    border: 2px dashed #9CA3AF;
    border-radius: 6px;
    background: #F9FAFB;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    box-sizing: border-box;
}

.goe-ds-inline-num {
    font-size: 12px;
    font-weight: 800;
    color: #23272E;
    position: absolute;
    top: -10px;
    left: 4px;
    background: #ffffff;
    padding: 0 4px;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
}

.goe-ds-inline-target {
    font-size: 15px;
    font-weight: 800;
    color: #F98716;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

.goe-ds-dropzone-inline:hover {
    border-color: #F98716;
    background: #FFF7ED;
}

.goe-ds-dropzone-inline.drag-over {
    border-color: #F98716 !important;
    background: #FFEDD5 !important;
    transform: scale(1.05);
}

.goe-ds-dropzone-inline.has-item {
    border-style: solid;
    border-color: #F98716;
    background: #FFF7ED;
}

.goe-ds-dropzone-inline.is-example {
    min-width: 44px;
    border: 1.5px solid #CBD5E1 !important;
    background: #F1F5F9 !important;
    cursor: default !important;
    pointer-events: none !important;
}

.goe-ds-dropzone-inline.is-example .goe-ds-inline-target {
    color: #64748B !important;
    font-weight: 700 !important;
}

.goe-ds-dropzone-inline.is-example .goe-ds-inline-num {
    display: none !important;
}

.goe-ds-dropzone-inline.is-checked.correct {
    border-color: #10B981 !important;
    background: #ECFDF5 !important;
}

.goe-ds-dropzone-inline.is-checked.correct .goe-ds-inline-target {
    color: #059669 !important;
}

.goe-ds-dropzone-inline.is-checked.wrong {
    border-color: #EF4444 !important;
    background: #FEF2F2 !important;
}

.goe-ds-dropzone-inline.is-checked.wrong .goe-ds-inline-target {
    color: #DC2626 !important;
}

/* Банк предложений (справа) */
.goe-ds-bank-col {
    position: -webkit-sticky;
    position: sticky;
    top: 80px;
    align-self: flex-start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
}

@media (max-width: 992px) {
    .goe-ds-bank-col {
        position: static;
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }
}

body.admin-bar .goe-ds-bank-col {
    top: 112px;
    max-height: calc(100vh - 135px);
}

.goe-ds-bank-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.goe-ds-bank-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
    font-family: 'Montserrat', sans-serif;
}

.goe-ds-pool {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.goe-ds-sentence-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 18px;
    background: #ffffff;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    cursor: grab;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    user-select: none;
    box-sizing: border-box;
}

.goe-ds-sentence-card:hover {
    border-color: #F98716;
    box-shadow: 0 4px 12px rgba(249, 135, 22, 0.15);
    transform: translateY(-2px);
}

.goe-ds-sentence-card.is-dragging {
    opacity: 0.35;
    cursor: grabbing;
}

.goe-ds-sentence-card.is-selected {
    border-color: #F98716 !important;
    background: #FFF7ED !important;
    box-shadow: 0 0 0 2px rgba(249, 135, 22, 0.25) !important;
}

/* Приглушенный серый цвет после переноса в текст */
.goe-ds-sentence-card.is-used {
    opacity: 0.45 !important;
    background: #F8FAFC !important;
    border-color: #CBD5E1 !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: pointer;
}

/* Карточка примера: заблокирована для кликов и перетаскивания */
.goe-ds-sentence-card.is-example {
    cursor: default !important;
    pointer-events: none !important;
    user-select: none !important;
    background: #F8FAFC !important;
    border-color: #E2E8F0 !important;
}

.goe-ds-sentence-card.is-used .goe-ds-sentence-letter,
.goe-ds-sentence-card.is-example .goe-ds-sentence-letter {
    color: #94A3B8 !important;
    background: transparent !important;
}

.goe-ds-sentence-card.is-used .goe-ds-sentence-text,
.goe-ds-sentence-card.is-example .goe-ds-sentence-text {
    color: #94A3B8 !important;
}

/* Буква в карточке: крупная, полужирная, оранжевая, БЕЗ кружков/плашек (по эталону telc) */
.goe-ds-sentence-letter {
    flex-shrink: 0;
    font-weight: 800;
    font-size: 16px;
    line-height: 1.5;
    color: var(--goe-accent, #F98716);
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    margin: 0;
    min-width: 14px;
    transition: color 0.2s ease;
}

.goe-ds-sentence-text {
    font-size: 15px;
    line-height: 1.5;
    color: #1A1A1A;
    font-weight: 500;
    flex-grow: 1;
    transition: color 0.2s ease;
}

/* Mixed Tasks */
.goe-mixed-task-card {
    border: 1.5px solid var(--goe-card-border, #FED7AA) !important;
}