Inhalt

Aktueller Ordner: /

bundle4tutorialeng.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Modal Tutorial Bundle 4 – The Limit of the Formal (Modules 15–17)</title>
    <base href="https://pompeii-project.org">
    <style>
        /* ========== GLOBAL ========== */
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: 'Georgia', 'Times New Roman', Times, serif;
            background-color: #f5f3ef;
            color: #2c2c2c;
            line-height: 1.7;
            padding: 2rem 1rem;
        }
        .container {
            max-width: 820px;
            margin: 0 auto;
            background-color: #fffef7;
            padding: 2rem 2.2rem;
            border-radius: 16px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.08);
            border: 1px solid #e0d6c8;
        }
        h1 {
            font-size: 1.8rem;
            font-weight: normal;
            color: #2c2c2c;
            border-left: 6px solid #2a6b4f;
            padding-left: 1rem;
            margin-bottom: 0.3rem;
        }
        .subhead {
            font-size: 0.95rem;
            color: #6b6b6b;
            margin-bottom: 1.8rem;
            border-bottom: 1px solid #e0d6c8;
            padding-bottom: 0.8rem;
        }
        .subhead a {
            color: #2a6b4f;
            text-decoration: none;
        }
        .subhead a:hover { text-decoration: underline; }
        .version-badge {
            display: inline-block;
            background-color: #8b6b3d;
            color: #fffef7;
            font-size: 0.65rem;
            padding: 0.15rem 0.6rem;
            border-radius: 20px;
            vertical-align: middle;
            margin-left: 0.5rem;
        }
        .part-tag {
            display: inline-block;
            font-size: 0.7rem;
            padding: 0.1rem 0.6rem;
            border-radius: 20px;
            color: white;
            margin-right: 0.5rem;
        }
        .part-tag.pA { background-color: #8b6b3d; }
        .part-tag.pB { background-color: #6b4f8a; }
        .part-tag.pC { background-color: #2a6b4f; }

        /* ========== STEP BLOCK ========== */
        .step-block {
            background-color: #faf8f3;
            border-left: 4px solid #8b6b3d;
            padding: 1.5rem 1.8rem;
            margin-bottom: 2rem;
            border-radius: 0 10px 10px 0;
        }
        .step-block.partA { border-left-color: #8b6b3d; }
        .step-block.partB { border-left-color: #6b4f8a; }
        .step-block.partC { border-left-color: #2a6b4f; }
        .step-number {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #8b6b3d;
            font-weight: bold;
        }
        .step-number.partB { color: #6b4f8a; }
        .step-number.partC { color: #2a6b4f; }
        .step-title {
            font-size: 1.3rem;
            font-weight: bold;
            margin: 0.2rem 0 0.8rem 0;
            color: #2c2c2c;
        }
        .step-explanation { margin-bottom: 1.2rem; }
        .step-explanation p { margin-bottom: 0.8rem; }
        .step-explanation ul, .step-explanation ol {
            margin: 0.5rem 0 0.8rem 1.5rem;
        }
        .step-explanation li { margin-bottom: 0.3rem; }

        /* Formula box */
        .formula-box {
            background-color: #f0ede6;
            padding: 0.8rem 1.2rem;
            border-radius: 8px;
            margin: 0.8rem 0;
            font-family: 'Courier New', monospace;
            font-size: 1.05rem;
            text-align: center;
            border: 1px solid #d4cab8;
            overflow-x: auto;
        }
        .formula-box.important {
            background-color: #d4edda;
            border-color: #2a6b4f;
        }
        .formula-box.partA {
            background-color: #f5e8d0;
            border-color: #8b6b3d;
        }
        .formula-box.partB {
            background-color: #e8e0f0;
            border-color: #6b4f8a;
        }
        .formula-box.partC {
            background-color: #d4e8dd;
            border-color: #2a6b4f;
        }

        /* ========== QUESTION ========== */
        .question-box {
            background-color: #f5f0ea;
            padding: 1.2rem 1.5rem;
            border-radius: 10px;
            margin-top: 1rem;
            border: 1px solid #d4cab8;
        }
        .question-box .qoptions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem 1rem;
            margin-bottom: 0.8rem;
        }
        .question-box .qoptions label {
            display: inline-block;
            background-color: #fffef7;
            padding: 0.15rem 0.8rem;
            border-radius: 30px;
            border: 1px solid #d4cab8;
            font-size: 0.85rem;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        .question-box .qoptions label:hover { background-color: #e8e2d7; }
        .question-box .qoptions input[type="radio"] {
            margin-right: 0.3rem;
            accent-color: #2a6b4f;
        }
        .question-box .qsubmit {
            background-color: #2a6b4f;
            color: #fffef7;
            border: none;
            padding: 0.4rem 1.6rem;
            border-radius: 30px;
            font-size: 0.85rem;
            font-family: inherit;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        .question-box .qsubmit:hover { background-color: #1d4f3a; }
        .question-box .qsubmit:disabled {
            background-color: #b0a89a;
            cursor: not-allowed;
        }
        .question-box .qfeedback {
            margin-top: 0.8rem;
            padding: 0.6rem 1rem;
            border-radius: 8px;
            font-weight: bold;
            display: none;
        }
        .question-box .qfeedback.correct {
            display: block;
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        .question-box .qfeedback.wrong {
            display: block;
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        /* ========== PROGRESS ========== */
        .progress-bar {
            background-color: #e0d6c8;
            border-radius: 20px;
            height: 8px;
            margin: 1.8rem 0 1rem 0;
            overflow: hidden;
        }
        .progress-bar .fill {
            height: 100%;
            width: 0%;
            background-color: #2a6b4f;
            border-radius: 20px;
            transition: width 0.4s ease;
        }
        .progress-text {
            text-align: right;
            font-size: 0.8rem;
            color: #8b8b8b;
            margin-top: -0.3rem;
        }

        /* ========== NAVI ========== */
        .nav-links {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            margin-top: 2rem;
            padding-top: 1rem;
            border-top: 1px solid #e0d6c8;
        }
        .nav-links a {
            color: #2a6b4f;
            text-decoration: none;
            font-size: 0.9rem;
            padding: 0.3rem 0.8rem;
            border-radius: 30px;
            background-color: #f0ede6;
            transition: background-color 0.2s;
        }
        .nav-links a:hover:not(.disabled) { background-color: #d4cab8; }
        .nav-links .disabled {
            color: #b0a89a;
            pointer-events: none;
            background-color: #f5f3ef;
        }

        /* ========== RESPONSIVE ========== */
        @media (max-width: 640px) {
            .container { padding: 1.2rem; }
            h1 { font-size: 1.4rem; }
            .step-block { padding: 1rem 1.2rem; }
            .question-box { padding: 1rem; }
            .question-box .qoptions { flex-direction: column; gap: 0.2rem; }
            .formula-box { font-size: 0.9rem; padding: 0.6rem 0.8rem; }
            .nav-links { flex-direction: column; gap: 0.6rem; align-items: stretch; text-align: center; }
        }

        /* ========== HELPER ========== */
        .symbol {
            font-family: 'Courier New', monospace;
            background-color: #f0ede6;
            padding: 0.05rem 0.4rem;
            border-radius: 4px;
            font-size: 0.95rem;
        }
        .boxed {
            border: 1px solid #c4a86b;
            padding: 0.3rem 0.8rem;
            border-radius: 6px;
            display: inline-block;
            background-color: #faf8f3;
            font-weight: bold;
        }
    </style>
</head>
<body>

<div class="container" id="app">

    <!-- ===== HEADER ===== -->
    <h1>πŸ“ The Limit of the Formal <span class="version-badge">Bundle 4 – Modules 15–17</span></h1>
    <div class="subhead">
        An interactive tutorial – Step by step<br>
        <a href="modal.html?lang=en">← Back to the entry page</a> |
        <a href="bundle4eng.pdf">πŸ“„ PDF of the bundle</a>
    </div>

    <!-- ===== PROGRESS ===== -->
    <div class="progress-bar" id="progressBar">
        <div class="fill" id="progressFill" style="width: 0%;"></div>
    </div>
    <div class="progress-text" id="progressText">Step 0 of 27</div>

    <!-- ===== STEPS ===== -->
    <div id="stepContainer"></div>

    <!-- ===== NAVIGATION ===== -->
    <div class="nav-links" id="navLinks">
        <a href="#" id="prevBtn" class="disabled">← Back</a>
        <span id="stepIndicator" style="font-size:0.85rem; color:#8b8b8b;">0 / 27</span>
        <a href="#" id="nextBtn">Next β†’</a>
    </div>

    <!-- ===== FOOTER ===== -->
    <div style="margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid #e0d6c8; font-size: 0.75rem; color: #8b8b8b; text-align: center;">
        <p>Β© Paul Koop – <a href="modal.html?lang=en" style="color: #2a6b4f;">the-last-freedom.org/Projekt_Pompeji</a></p>
        <p style="margin-top:0.2rem;">Bundle 4 guides through Modules 15, 16, and 17 – the limit of the formal.</p>
    </div>

</div>

<script>
    // ================================================================
    //  DATA: 27 steps for Bundle 4 – Modules 15, 16, 17
    // ================================================================

    const steps = [
        // ============================================================
        //  INTRODUCTION (Steps 0–2)
        // ============================================================
        {
            id: 0,
            title: "What is Bundle 4?",
            part: "Introduction",
            explanation: `
                <p><strong>Bundle 4</strong> guides through the three modules that mark the <strong>limit of the formal</strong>:</p>
                <ul>
                    <li><strong>Module 15:</strong> The Limit of the Formal.</li>
                    <li><strong>Module 16:</strong> Paths without Omega Point.</li>
                    <li><strong>Module 17:</strong> The Whole in One Thought.</li>
                </ul>
                <p>These three modules answer the question: <strong>Where does formal work end, and what remains?</strong></p>
                <p>They conclude the modal-logical series β€” at least the formal series.</p>
            `,
            question_html: `
                <p><strong>What is the goal of Bundle 4?</strong></p>
                <div class="qoptions">
                    <label><input type="radio" name="q0" value="0"> To refute the Trinity.</label>
                    <label><input type="radio" name="q0" value="1"> To mark the limit of the formal.</label>
                    <label><input type="radio" name="q0" value="2"> To prove the existence of God.</label>
                    <label><input type="radio" name="q0" value="3"> To expose the Trinity as an illusion.</label>
                    <label><input type="radio" name="q0" value="4"> To replace physics.</label>
                    <label><input type="radio" name="q0" value="5"> To ground theology.</label>
                </div>
            `,
            answer: 1
        },
        {
            id: 1,
            title: "Recap: What Bundles 1–3 have shown",
            part: "Introduction",
            explanation: `
                <p>In Bundles 1–3 it was shown:</p>
                <ol>
                    <li><strong>Modules 6–8:</strong> The axiomatic structure of the Trinity.</li>
                    <li><strong>Modules 9–11:</strong> The Trinity in different approaches.</li>
                    <li><strong>Modules 12–14:</strong> The consequences of the Trinity.</li>
                </ol>
                <p>Bundle 4 marks the <strong>conclusion</strong>: It shows the limit of the formal and draws the sum.</p>
            `,
            question_html: `
                <p><strong>What have Bundles 1–3 shown?</strong></p>
                <div class="qoptions">
                    <label><input type="radio" name="q1" value="0"> That the Trinity is impossible.</label>
                    <label><input type="radio" name="q1" value="1"> The axiomatic structure, the approaches, and the consequences of the Trinity.</label>
                    <label><input type="radio" name="q1" value="2"> That S5 is contradictory.</label>
                    <label><input type="radio" name="q1" value="3"> That physics is irrelevant.</label>
                    <label><input type="radio" name="q1" value="4"> That God does not exist.</label>
                    <label><input type="radio" name="q1" value="5"> That the Trinity is an illusion.</label>
                </div>
            `,
            answer: 1
        },
        {
            id: 2,
            title: "The Three Concluding Movements",
            part: "Introduction",
            explanation: `
                <p>Bundle 4 performs three concluding movements:</p>
                <ol>
                    <li><strong>The Limit of the Formal</strong> (Module 15): What modal logic proves, suggests, and does not reach.</li>
                    <li><strong>Paths without Omega Point</strong> (Module 16): What happens to paths that do not reach the Omega Point.</li>
                    <li><strong>The Whole in One Thought</strong> (Module 17): The sum from 17 modules.</li>
                </ol>
                <p>All three movements are <strong>metalogical</strong>: They speak about formal work, not within it.</p>
            `,
            question_html: `
                <p><strong>Which three concluding movements does Bundle 4 perform?</strong></p>
                <div class="qoptions">
                    <label><input type="radio" name="q2" value="0"> Logical, physical, theological</label>
                    <label><input type="radio" name="q2" value="1"> Limit, paths, sum</label>
                    <label><input type="radio" name="q2" value="2"> Monistic, dualistic, trialistic</label>
                    <label><input type="radio" name="q2" value="3"> Formal, informal, practical</label>
                    <label><input type="radio" name="q2" value="4"> Old, middle, new</label>
                    <label><input type="radio" name="q2" value="5"> Theoretical, practical, aesthetic</label>
                </div>
            `,
            answer: 1
        },

        // ============================================================
        //  PART A: LIMIT OF THE FORMAL (Module 15) – Steps 3–11
        // ============================================================
        {
            id: 3,
            title: "PART A – Module 15: The Limit of the Formal",
            part: "Part A",
            explanation: `
                <div style="background:#f5e8d0; padding:0.5rem 1rem; border-radius:6px; margin-bottom:1rem;">
                    <span class="part-tag pA">PART A</span>
                    <strong>Module 15</strong>
                </div>
                <p><strong>Question:</strong> What can modal logic prove, what can it suggest, what can it not reach?</p>
                <p><strong>Answer:</strong> It can prove the necessity of the Trinity under assumptions, but it cannot justify the <strong>choice of assumptions</strong>.</p>
                <p><strong>Consequence:</strong> Formal work has done its work β€” what remains is the acknowledgment of the limit.</p>
            `,
            question_html: `
                <p><strong>What is the main question of Module 15?</strong></p>
                <div class="qoptions">
                    <label><input type="radio" name="q3" value="0"> Whether the Trinity is true.</label>
                    <label><input type="radio" name="q3" value="1"> What modal logic can prove, suggest, and not reach.</label>
                    <label><input type="radio" name="q3" value="2"> Whether S5 is contradictory.</label>
                    <label><input type="radio" name="q3" value="3"> Whether physics is relevant.</label>
                    <label><input type="radio" name="q3" value="4"> Whether God exists.</label>
                    <label><input type="radio" name="q3" value="5"> Whether the Trinity is an illusion.</label>
                </div>
            `,
            answer: 1
        },
        {
            id: 4,
            title: "The Question of the Limit",
            part: "Part A",
            explanation: `
                <p>The treatises Modules 5–14 have shown the Trinity as a <strong>formal structure</strong>. But they have also shown:</p>
                <p><strong>The formal structure remains indeterminate in several respects.</strong></p>
                <p>Module 15 draws the consequence. It distinguishes strictly between <strong>three levels</strong>:</p>
                <ol>
                    <li>What modal logic <strong>proves</strong>.</li>
                    <li>What it <strong>suggests</strong>.</li>
                    <li>What it <strong>does not reach</strong>.</li>
                </ol>
            `,
            question_html: `
                <p><strong>How many levels does Module 15 distinguish?</strong></p>
                <div class="qoptions">
                    <label><input type="radio" name="q4" value="0"> Two</label>
                    <label><input type="radio" name="q4" value="1"> Three</label>
                    <label><input type="radio" name="q4" value="2"> Four</label>
                    <label><input type="radio" name="q4" value="3"> Five</label>
                    <label><input type="radio" name="q4" value="4"> Six</label>
                    <label><input type="radio" name="q4" value="5"> Seven</label>
                </div>
            `,
            answer: 1
        },
        {
            id: 5,
            title: "Three Levels: Proving, Suggesting, Not Reaching",
            part: "Part A",
            explanation: `
                <p>The three levels in detail:</p>
                <table style="width:100%; border-collapse:collapse; margin:1rem 0; font-size:0.9rem;">
                    <tr style="background:#e0d6c8;">
                        <th style="border:1px solid #d4cab8; padding:0.4rem; text-align:left;">Level</th>
                        <th style="border:1px solid #d4cab8; padding:0.4rem; text-align:left;">What</th>
                        <th style="border:1px solid #d4cab8; padding:0.4rem; text-align:left;">Status</th>
                    </tr>
                    <tr>
                        <td style="border:1px solid #d4cab8; padding:0.4rem;"><strong>Proving</strong></td>
                        <td style="border:1px solid #d4cab8; padding:0.4rem;">Derivable results</td>
                        <td style="border:1px solid #d4cab8; padding:0.4rem;">Certain</td>
                    </tr>
                    <tr>
                        <td style="border:1px solid #d4cab8; padding:0.4rem;"><strong>Suggesting</strong></td>
                        <td style="border:1px solid #d4cab8; padding:0.4rem;">Plausible interpretations</td>
                        <td style="border:1px solid #d4cab8; padding:0.4rem;">Probable</td>
                    </tr>
                    <tr>
                        <td style="border:1px solid #d4cab8; padding:0.4rem;"><strong>Not Reaching</strong></td>
                        <td style="border:1px solid #d4cab8; padding:0.4rem;">External questions</td>
                        <td style="border:1px solid #d4cab8; padding:0.4rem;">Open</td>
                    </tr>
                </table>
                <p><strong>Important:</strong> The three levels are <strong>hierarchical</strong>. What is shown on Level 1 can be suggested on Level 2. What lies on Level 3 <strong>cannot</strong> be reached by formal work.</p>
            `,
            question_html: `
                <p><strong>What is the status of the "Proving" level?</strong></p>
                <div class="qoptions">
                    <label><input type="radio" name="q5" value="0"> Probable</label>
                    <label><input type="radio" name="q5" value="1"> Certain</label>
                    <label><input type="radio" name="q5" value="2"> Open</label>
                    <label><input type="radio" name="q5" value="3"> Contradictory</label>
                    <label><input type="radio" name="q5" value="4"> Impossible</label>
                    <label><input type="radio" name="q5" value="5"> Arbitrary</label>
                </div>
            `,
            answer: 1
        },
        {
            id: 6,
            title: "What Modal Logic Proves",
            part: "Part A",
            explanation: `
                <p>The metalogical results from Modules 5–14:</p>
                <ul>
                    <li><strong>Module 5:</strong> S5 ⊬ β–‘βˆ€xTr(x); S5+SP ⊒ β–‘βˆ€xTr(x).</li>
                    <li><strong>Module 6:</strong> {ASP2} ⊒ ASP1; {ASP3, ASP4, ASP5} minimal.</li>
                    <li><strong>Module 7:</strong> Axiom invariance.</li>
                    <li><strong>Module 8:</strong> S5+SP+L ⊒ β–‘(U ∧ T ∧ S).</li>
                    <li><strong>Module 9:</strong> Consistent bimodal models with Ξ© β‰  βˆ….</li>
                    <li><strong>Module 10:</strong> S5+U1+U2+U3 ⊒ resurrection.</li>
                    <li><strong>Module 11:</strong> S5+T1+T2+T3+T4 ⊒ β–‘(Z(U ∧ T ∧ S) ∧ N(U ∧ T ∧ S)).</li>
                    <li><strong>Module 12:</strong> S5+A1 ⊒ evil is not a limit.</li>
                    <li><strong>Module 13:</strong> S5+SP+B1+B2+B3+B4 ⊒ β–‘(U ∧ T ∧ S).</li>
                    <li><strong>Module 14:</strong> S5+A1 ⊒ β–‘K(U, T, S).</li>
                </ul>
            `,
            question_html: `
                <p><strong>What is the status of the metalogical results?</strong></p>
                <div class="qoptions">
                    <label><input type="radio" name="q6" value="0"> They are probable.</label>
                    <label><input type="radio" name="q6" value="1"> They are certain β€” within the formal system.</label>
                    <label><input type="radio" name="q6" value="2"> They are open.</label>
                    <label><input type="radio" name="q6" value="3"> They are contradictory.</label>
                    <label><input type="radio" name="q6" value="4"> They are impossible.</label>
                    <label><input type="radio" name="q6" value="5"> They are arbitrary.</label>
                </div>
            `,
            answer: 1
        },
        {
            id: 7,
            title: "What Modal Logic Suggests",
            part: "Part A",
            explanation: `
                <p>The metalogical results <strong>suggest</strong> certain metaphysical interpretations:</p>
                <ul>
                    <li><strong>The Trinity is a structure, not an object.</strong> (suggested by Module 8)</li>
                    <li><strong>The Trinity is the only limit structure.</strong> (suggested by Module 12)</li>
                    <li><strong>The Trinity is observer-conception-invariant.</strong> (suggested by Module 13)</li>
                    <li><strong>The unity of perspectives is constitutive.</strong> (suggested by Module 14)</li>
                </ul>
                <p><strong>Important:</strong> "Suggesting" is <strong>not</strong> "proving". What is suggested is <strong>plausible</strong>, but not <strong>compelling</strong>.</p>
            `,
            question_html: `
                <p><strong>What does "suggesting" mean in Module 15?</strong></p>
                <div class="qoptions">
                    <label><input type="radio" name="q7" value="0"> It is the same as "proving".</label>
                    <label><input type="radio" name="q7" value="1"> It is plausible, but not compelling.</label>
                    <label><input type="radio" name="q7" value="2"> It is unimportant.</label>
                    <label><input type="radio" name="q7" value="3"> It is contradictory.</label>
                    <label><input type="radio" name="q7" value="4"> It is impossible.</label>
                    <label><input type="radio" name="q7" value="5"> It is arbitrary.</label>
                </div>
            `,
            answer: 1
        },
        {
            id: 8,
            title: "What Modal Logic Does Not Reach",
            part: "Part A",
            explanation: `
                <p>The central limit of modal logic: It cannot justify the <strong>choice of axioms</strong>.</p>
                <div class="formula-box partA important">The metalogical results show only: If one accepts certain axioms, then the Trinity follows. They do not show: That one should accept these axioms.</div>
                <p><strong>Consequence:</strong> The choice of axioms is <strong>not</strong> a metalogical question. It is a <strong>metaphysical</strong>, <strong>physical</strong>, or <strong>hermeneutic</strong> question.</p>
            `,
            question_html: `
                <p><strong>What can modal logic not justify?</strong></p>
                <div class="qoptions">
                    <label><input type="radio" name="q8" value="0"> The Trinity itself.</label>
                    <label><input type="radio" name="q8" value="1"> The choice of axioms.</label>
                    <label><input type="radio" name="q8" value="2"> The consistency of S5.</label>
                    <label><input type="radio" name="q8" value="3"> The existence of worlds.</label>
                    <label><input type="radio" name="q8" value="4"> The validity of logic.</label>
                    <label><input type="radio" name="q8" value="5"> The meaning of symbols.</label>
                </div>
            `,
            answer: 1
        },
        {
            id: 9,
            title: "Comparison with Wittgenstein, GΓΆdel, Carnap",
            part: "Part A",
            explanation: `
                <p>Our conception takes up elements from three philosophers:</p>
                <table style="width:100%; border-collapse:collapse; margin:1rem 0; font-size:0.9rem;">
                    <tr style="background:#e0d6c8;">
                        <th style="border:1px solid #d4cab8; padding:0.4rem; text-align:left;">Philosopher</th>
                        <th style="border:1px solid #d4cab8; padding:0.4rem; text-align:left;">Limit of the Formal</th>
                    </tr>
                    <tr>
                        <td style="border:1px solid #d4cab8; padding:0.4rem;"><strong>Wittgenstein</strong></td>
                        <td style="border:1px solid #d4cab8; padding:0.4rem;">Language β€” the unsayable</td>
                    </tr>
                    <tr>
                        <td style="border:1px solid #d4cab8; padding:0.4rem;"><strong>GΓΆdel</strong></td>
                        <td style="border:1px solid #d4cab8; padding:0.4rem;">System β€” incompleteness</td>
                    </tr>
                    <tr>
                        <td style="border:1px solid #d4cab8; padding:0.4rem;"><strong>Carnap</strong></td>
                        <td style="border:1px solid #d4cab8; padding:0.4rem;">Framework β€” the external question</td>
                    </tr>
                    <tr>
                        <td style="border:1px solid #d4cab8; padding:0.4rem;"><strong>This treatise</strong></td>
                        <td style="border:1px solid #d4cab8; padding:0.4rem;">Structure β€” the choice of axioms</td>
                    </tr>
                </table>
                <p><strong>Important:</strong> The limit is <strong>structurally related</strong> to GΓΆdel, but <strong>not identical</strong>. S5 is complete; the incompleteness lies in the <strong>application</strong>, not in the system.</p>
            `,
            question_html: `
                <p><strong>How does our conception relate to GΓΆdel?</strong></p>
                <div class="qoptions">
                    <label><input type="radio" name="q9" value="0"> It is identical to GΓΆdel.</label>
                    <label><input type="radio" name="q9" value="1"> It is structurally related to GΓΆdel, but not identical.</label>
                    <label><input type="radio" name="q9" value="2"> It contradicts GΓΆdel.</label>
                    <label><input type="radio" name="q9" value="3"> It has nothing to do with GΓΆdel.</label>
                    <label><input type="radio" name="q9" value="4"> It is more important than GΓΆdel.</label>
                    <label><input type="radio" name="q9" value="5"> It is less important than GΓΆdel.</label>
                </div>
            `,
            answer: 1
        },
        {
            id: 10,
            title: "What Follows? The Form Has Done Its Work",
            part: "Part A",
            explanation: `
                <p>The central insight of Module 15:</p>
                <div class="formula-box partA important">Formal work has done its work. It has shown what is showable. What remains is the acknowledgment of the limit.</div>
                <p><strong>What this means:</strong></p>
                <ul>
                    <li>Formal work is <strong>not</strong> the last instance.</li>
                    <li>It is a <strong>preparation</strong> for metaphysics, physics, and hermeneutics.</li>
                    <li>It is <strong>not</strong> the truth β€” it is a <strong>form</strong> of truth.</li>
                </ul>
            `,
            question_html: `
                <p><strong>What is the main result of Module 15?</strong></p>
                <div class="qoptions">
                    <label><input type="radio" name="q10" value="0"> The Trinity is impossible.</label>
                    <label><input type="radio" name="q10" value="1"> Formal work has done its work β€” what remains is the acknowledgment of the limit.</label>
                    <label><input type="radio" name="q10" value="2"> S5 is contradictory.</label>
                    <label><input type="radio" name="q10" value="3"> Physics is irrelevant.</label>
                    <label><input type="radio" name="q10" value="4"> God does not exist.</label>
                    <label><input type="radio" name="q10" value="5"> The Trinity is an illusion.</label>
                </div>
            `,
            answer: 1
        },
        {
            id: 11,
            title: "Transition to Part B",
            part: "Part A",
            explanation: `
                <p>Module 15 has shown: Formal work has its limit. The question remained open:</p>
                <p><strong>What happens to paths that do not reach the Omega Point?</strong></p>
                <p>This question is treated in <strong>Module 16</strong>.</p>
            `,
            question_html: `
                <p><strong>Which question does Module 16 treat?</strong></p>
                <div class="qoptions">
                    <label><input type="radio" name="q11" value="0"> Whether the Trinity is true.</label>
                    <label><input type="radio" name="q11" value="1"> What happens to paths that do not reach the Omega Point.</label>
                    <label><input type="radio" name="q11" value="2"> Whether S5 is contradictory.</label>
                    <label><input type="radio" name="q11" value="3"> Whether physics is relevant.</label>
                    <label><input type="radio" name="q11" value="4"> Whether God exists.</label>
                    <label><input type="radio" name="q11" value="5"> Whether the Trinity is an illusion.</label>
                </div>
            `,
            answer: 1
        },

        // ============================================================
        //  PART B: PATHS WITHOUT OMEGA POINT (Module 16) – Steps 12–19
        // ============================================================
        {
            id: 12,
            title: "PART B – Module 16: Paths without Omega Point",
            part: "Part B",
            explanation: `
                <div style="background:#e8e0f0; padding:0.5rem 1rem; border-radius:6px; margin-bottom:1rem;">
                    <span class="part-tag pB">PART B</span>
                    <strong>Module 16</strong>
                </div>
                <p><strong>Question:</strong> What happens to paths that do not reach the Omega Point?</p>
                <p><strong>Answer:</strong> They are not excluded, but they are not lost. The Omega Point integrates them <strong>structurally</strong>, not temporally.</p>
                <p><strong>Consequence:</strong> Unitarity is strong enough to encompass even paths without Omega Point.</p>
            `,
            question_html: `
                <p><strong>What is the main question of Module 16?</strong></p>
                <div class="qoptions">
                    <label><input type="radio" name="q12" value="0"> Whether the Trinity is true.</label>
                    <label><input type="radio" name="q12" value="1"> What happens to paths that do not reach the Omega Point.</label>
                    <label><input type="radio" name="q12" value="2"> Whether S5 is contradictory.</label>
                    <label><input type="radio" name="q12" value="3"> Whether physics is relevant.</label>
                    <label><input type="radio" name="q12" value="4"> Whether God exists.</label>
                    <label><input type="radio" name="q12" value="5"> Whether the Trinity is an illusion.</label>
                </div>
            `,
            answer: 1
        },
        {
            id: 13,
            title: "The Open Question",
            part: "Part B",
            explanation: `
                <p>In Module 10 it was shown: Unitarity is the structure of T: <span class="symbol">βˆ€Ξ³ βŠ† T : Ξ³ ∈ T</span>.</p>
                <p>In Module 12 it was shown: Evil is the totality of paths that lead to the Good, insofar as they contain suffering.</p>
                <p><strong>This raises an open question:</strong> What happens to paths that <strong>do not reach the Omega Point</strong>?</p>
            `,
            question_html: `
                <p><strong>Which open question does Module 16 raise?</strong></p>
                <div class="qoptions">
                    <label><input type="radio" name="q13" value="0"> Whether the Trinity is true.</label>
                    <label><input type="radio" name="q13" value="1"> What happens to paths that do not reach the Omega Point.</label>
                    <label><input type="radio" name="q13" value="2"> Whether S5 is contradictory.</label>
                    <label><input type="radio" name="q13" value="3"> Whether physics is relevant.</label>
                    <label><input type="radio" name="q13" value="4"> Whether God exists.</label>
                    <label><input type="radio" name="q13" value="5"> Whether the Trinity is an illusion.</label>
                </div>
            `,
            answer: 1
        },
        {
            id: 14,
            title: "The Three Cases",
            part: "Part B",
            explanation: `
                <p>We distinguish <strong>three cases</strong> of paths:</p>
                <ol>
                    <li><strong>Case A:</strong> Paths <strong>without participation in Conscientia</strong>. They are "blind".</li>
                    <li><strong>Case B:</strong> Paths <strong>with participation in Conscientia</strong>, reaching the Omega Point. The normal case.</li>
                    <li><strong>Case C:</strong> Paths <strong>with participation in Conscientia</strong>, <strong>not</strong> reaching the Omega Point. The central question.</li>
                </ol>
            `,
            question_html: `
                <p><strong>Which case is the central question of Module 16?</strong></p>
                <div class="qoptions">
                    <label><input type="radio" name="q14" value="0"> Case A: Paths without Conscientia.</label>
                    <label><input type="radio" name="q14" value="1"> Case C: Paths with Conscientia, not reaching the Omega Point.</label>
                    <label><input type="radio" name="q14" value="2"> Case B: Paths with Conscientia, reaching the Omega Point.</label>
                    <label><input type="radio" name="q14" value="3"> All three cases equally.</label>
                    <label><input type="radio" name="q14" value="4"> None of the cases.</label>
                    <label><input type="radio" name="q14" value="5"> Only Case A.</label>
                </div>
            `,
            answer: 1
        },
        {
            id: 15,
            title: "Case A and Case B",
            part: "Part B",
            explanation: `
                <p><strong>Case A: Paths without participation in Conscientia.</strong> These paths would be fundamentally separated β€” which A1 prohibits. Hence they are <strong>not a distinct case</strong>, but a <strong>limit case</strong> of Case C.</p>
                <p><strong>Case B: Paths with Conscientia, reaching the Omega Point.</strong> In these paths, S is recognized but never fully reached. The normal case.</p>
            `,
            question_html: `
                <p><strong>Why is Case A not a distinct case?</strong></p>
                <div class="qoptions">
                    <label><input type="radio" name="q15" value="0"> Because A1 prohibits it.</label>
                    <label><input type="radio" name="q15" value="1"> Because it would be fundamentally separated β€” which A1 prohibits. It is a limit case of Case C.</label>
                    <label><input type="radio" name="q15" value="2"> Because it does not exist.</label>
                    <label><input type="radio" name="q15" value="3"> Because it is too complex.</label>
                    <label><input type="radio" name="q15" value="4"> Because it is irrelevant.</label>
                    <label><input type="radio" name="q15" value="5"> Because it is the same as Case B.</label>
                </div>
            `,
            answer: 1
        },
        {
            id: 16,
            title: "Structural Integration",
            part: "Part B",
            explanation: `
                <p>For paths of Case C: Integration is <strong>structural</strong>, not <strong>temporal</strong>.</p>
                <p><strong>Structural means:</strong></p>
                <ul>
                    <li>There is <strong>no point in time</strong> at which integration takes place.</li>
                    <li>There is <strong>no event</strong> that happens "subsequently".</li>
                    <li>Totality T <strong>contains</strong> all paths β€” including those that do not reach the Omega Point.</li>
                </ul>
                <div class="formula-box partB important">βˆ€Ξ³ βŠ† T : Ξ³ ∈ T</div>
            `,
            question_html: `
                <p><strong>What does "structural integration" mean?</strong></p>
                <div class="qoptions">
                    <label><input type="radio" name="q16" value="0"> A temporal event.</label>
                    <label><input type="radio" name="q16" value="1"> No point in time, no event β€” Totality contains all paths.</label>
                    <label><input type="radio" name="q16" value="2"> An illusion.</label>
                    <label><input type="radio" name="q16" value="3"> A contradiction.</label>
                    <label><input type="radio" name="q16" value="4"> A time.</label>
                    <label><input type="radio" name="q16" value="5"> An axiom.</label>
                </div>
            `,
            answer: 1
        },
        {
            id: 17,
            title: "The Two Perspectives",
            part: "Part B",
            explanation: `
                <p>Integration appears in <strong>two perspectives</strong>:</p>
                <p><strong>From the perspective of the path Ξ³:</strong></p>
                <ul>
                    <li>Integration appears as <strong>future</strong>.</li>
                    <li>Integration appears as <strong>intervention</strong>.</li>
                    <li>Integration appears as <strong>grace</strong>.</li>
                </ul>
                <p><strong>From the perspective of S:</strong></p>
                <ul>
                    <li>Integration has <strong>always already</strong> happened.</li>
                    <li>Integration is <strong>structure</strong>.</li>
                    <li>Integration is <strong>necessity</strong>.</li>
                </ul>
                <p><strong>Consequence:</strong> Both perspectives are <strong>true</strong>. They are not identical, but simultaneously valid.</p>
            `,
            question_html: `
                <p><strong>How does integration appear from the perspective of the path?</strong></p>
                <div class="qoptions">
                    <label><input type="radio" name="q17" value="0"> As always already happened.</label>
                    <label><input type="radio" name="q17" value="1"> As future, as intervention, as grace.</label>
                    <label><input type="radio" name="q17" value="2"> As structure.</label>
                    <label><input type="radio" name="q17" value="3"> As necessity.</label>
                    <label><input type="radio" name="q17" value="4"> As contradiction.</label>
                    <label><input type="radio" name="q17" value="5"> As illusion.</label>
                </div>
            `,
            answer: 1
        },
        {
            id: 18,
            title: "The Hawking Radiation of Meaning",
            part: "Part B",
            explanation: `
                <p>In <code>Unitaritaet.md</code> it was formulated:</p>
                <div class="formula-box partB">"The black hole of death is transformed through resurrection into the Hawking radiation of meaning."</div>
                <p><strong>Refinement in Module 16:</strong> This Hawking radiation is <strong>structural</strong>, not <strong>temporal</strong>.</p>
                <p><strong>What this means:</strong> What appears from the perspective of a path as <strong>loss</strong> is, from the perspective of S, <strong>integration</strong>.</p>
            `,
            question_html: `
                <p><strong>What is the Hawking radiation of meaning in Module 16?</strong></p>
                <div class="qoptions">
                    <label><input type="radio" name="q18" value="0"> A temporal event.</label>
                    <label><input type="radio" name="q18" value="1"> Structural: What appears from the perspective of the path as loss is, from the perspective of S, integration.</label>
                    <label><input type="radio" name="q18" value="2"> An illusion.</label>
                    <label><input type="radio" name="q18" value="3"> A contradiction.</label>
                    <label><input type="radio" name="q18" value="4"> A time.</label>
                    <label><input type="radio" name="q18" value="5"> An axiom.</label>
                </div>
            `,
            answer: 1
        },
        {
            id: 19,
            title: "Transition to Part C",
            part: "Part B",
            explanation: `
                <p>Module 16 has shown: Unitarity is strong enough to encompass even paths without Omega Point. The question remained open:</p>
                <p><strong>What is the sum of the entire series?</strong></p>
                <p>This question is treated in <strong>Module 17</strong>.</p>
            `,
            question_html: `
                <p><strong>Which question does Module 17 treat?</strong></p>
                <div class="qoptions">
                    <label><input type="radio" name="q19" value="0"> Whether the Trinity is true.</label>
                    <label><input type="radio" name="q19" value="1"> What the sum of the entire series is.</label>
                    <label><input type="radio" name="q19" value="2"> Whether S5 is contradictory.</label>
                    <label><input type="radio" name="q19" value="3"> Whether physics is relevant.</label>
                    <label><input type="radio" name="q19" value="4"> Whether God exists.</label>
                    <label><input type="radio" name="q19" value="5"> Whether the Trinity is an illusion.</label>
                </div>
            `,
            answer: 1
        },

        // ============================================================
        //  PART C: THE WHOLE IN ONE THOUGHT (Module 17) – Steps 20–26
        // ============================================================
        {
            id: 20,
            title: "PART C – Module 17: The Whole in One Thought",
            part: "Part C",
            explanation: `
                <div style="background:#d4e8dd; padding:0.5rem 1rem; border-radius:6px; margin-bottom:1rem;">
                    <span class="part-tag pC">PART C</span>
                    <strong>Module 17</strong>
                </div>
                <p><strong>Question:</strong> What is the sum of 17 modules?</p>
                <p><strong>Answer:</strong> The Trinity is the structure that encompasses all paths β€” including those that do not arrive. We stand at the beginning of infinity.</p>
                <p><strong>Consequence:</strong> The series provides a map, not a proof.</p>
            `,
            question_html: `
                <p><strong>What is the main question of Module 17?</strong></p>
                <div class="qoptions">
                    <label><input type="radio" name="q20" value="0"> Whether the Trinity is true.</label>
                    <label><input type="radio" name="q20" value="1"> What the sum of 17 modules is.</label>
                    <label><input type="radio" name="q20" value="2"> Whether S5 is contradictory.</label>
                    <label><input type="radio" name="q20" value="3"> Whether physics is relevant.</label>
                    <label><input type="radio" name="q20" value="4"> Whether God exists.</label>
                    <label><input type="radio" name="q20" value="5"> Whether the Trinity is an illusion.</label>
                </div>
            `,
            answer: 1
        },
        {
            id: 21,
            title: "What the Series Has Shown",
            part: "Part C",
            explanation: `
                <p>The 17 modules in overview:</p>
                <ul>
                    <li><strong>Module 5:</strong> The metalogical core.</li>
                    <li><strong>Module 6:</strong> The minimality of the ASP.</li>
                    <li><strong>Module 7:</strong> Non-uniqueness.</li>
                    <li><strong>Module 8:</strong> The limit.</li>
                    <li><strong>Module 9:</strong> Bimodal non-compatibility.</li>
                    <li><strong>Module 10:</strong> Unitarity as theorem.</li>
                    <li><strong>Module 11:</strong> Temporal modal logic.</li>
                    <li><strong>Module 12:</strong> Evil as path.</li>
                    <li><strong>Module 13:</strong> The observer.</li>
                    <li><strong>Module 14:</strong> The unity of perspectives.</li>
                    <li><strong>Module 15:</strong> The limit of the formal.</li>
                    <li><strong>Module 16:</strong> Paths without Omega Point.</li>
                </ul>
            `,
            question_html: `
                <p><strong>What does Module 5 show?</strong></p>
                <div class="qoptions">
                    <label><input type="radio" name="q21" value="0"> The minimality of the ASP.</label>
                    <label><input type="radio" name="q21" value="1"> The metalogical core: In pure S5, the Trinity is not derivable.</label>
                    <label><input type="radio" name="q21" value="2"> The unity of perspectives.</label>
                    <label><input type="radio" name="q21" value="3"> The limit of the formal.</label>
                    <label><input type="radio" name="q21" value="4"> Paths without Omega Point.</label>
                    <label><input type="radio" name="q21" value="5"> Evil as path.</label>
                </div>
            `,
            answer: 1
        },
        {
            id: 22,
            title: "What the Series Has Not Shown",
            part: "Part C",
            explanation: `
                <p>The series has <strong>not</strong> shown:</p>
                <ul>
                    <li><strong>That the Trinity exists.</strong> It only shows: Under certain assumptions, it follows.</li>
                    <li><strong>That the axioms are true.</strong> It only shows: They are consistent and independent.</li>
                    <li><strong>That the choice of axioms is justified.</strong> The choice is metaphysical, physical, or hermeneutic.</li>
                    <li><strong>That formal work is the only mode of access.</strong> It is one among several.</li>
                </ul>
                <p><strong>Consequence:</strong> The series is <strong>modest</strong>. It does not claim to be the truth.</p>
            `,
            question_html: `
                <p><strong>What has the series not shown?</strong></p>
                <div class="qoptions">
                    <label><input type="radio" name="q22" value="0"> That the Trinity follows under assumptions.</label>
                    <label><input type="radio" name="q22" value="1"> That the Trinity exists, that the axioms are true, that the axiom choice is justified.</label>
                    <label><input type="radio" name="q22" value="2"> That the axioms are consistent.</label>
                    <label><input type="radio" name="q22" value="3"> That the axioms are independent.</label>
                    <label><input type="radio" name="q22" value="4"> That S5 is complete.</label>
                    <label><input type="radio" name="q22" value="5"> That metalogic is possible.</label>
                </div>
            `,
            answer: 1
        },
        {
            id: 23,
            title: "The One Thought",
            part: "Part C",
            explanation: `
                <p>All 17 modules carry <strong>one</strong> thought:</p>
                <div class="formula-box partC important">The Trinity is the structure that encompasses all paths β€” including those that do not arrive.</div>
                <p><strong>Formal version:</strong></p>
                <div class="formula-box partC">βˆ€Ξ³ βŠ† T : Ξ³ ∈ T ∧ Tr(Ξ³)</div>
                <p><strong>Three aspects:</strong></p>
                <ul>
                    <li><strong>Universality:</strong> The Trinity encompasses all paths.</li>
                    <li><strong>Structurality:</strong> The Trinity is not an object, but a structure.</li>
                    <li><strong>Necessity:</strong> The Trinity follows from A1.</li>
                </ul>
            `,
            question_html: `
                <p><strong>What is the one thought that carries all 17 modules?</strong></p>
                <div class="qoptions">
                    <label><input type="radio" name="q23" value="0"> The Trinity is an illusion.</label>
                    <label><input type="radio" name="q23" value="1"> The Trinity is the structure that encompasses all paths β€” including those that do not arrive.</label>
                    <label><input type="radio" name="q23" value="2"> The Trinity is impossible.</label>
                    <label><input type="radio" name="q23" value="3"> The Trinity is a state.</label>
                    <label><input type="radio" name="q23" value="4"> The Trinity is an axiom.</label>
                    <label><input type="radio" name="q23" value="5"> The Trinity is a time.</label>
                </div>
            `,
            answer: 1
        },
        {
            id: 24,
            title: "The Four Images",
            part: "Part C",
            explanation: `
                <p>The series is carried by <strong>four images</strong>:</p>
                <table style="width:100%; border-collapse:collapse; margin:1rem 0; font-size:0.9rem;">
                    <tr style="background:#e0d6c8;">
                        <th style="border:1px solid #d4cab8; padding:0.4rem; text-align:left;">Image</th>
                        <th style="border:1px solid #d4cab8; padding:0.4rem; text-align:left;">Formal version</th>
                    </tr>
                    <tr>
                        <td style="border:1px solid #d4cab8; padding:0.4rem;"><strong>Beginning of infinity</strong></td>
                        <td style="border:1px solid #d4cab8; padding:0.4rem;">No last axiom</td>
                    </tr>
                    <tr>
                        <td style="border:1px solid #d4cab8; padding:0.4rem;"><strong>Good as limit</strong></td>
                        <td style="border:1px solid #d4cab8; padding:0.4rem;">Good := S</td>
                    </tr>
                    <tr>
                        <td style="border:1px solid #d4cab8; padding:0.4rem;"><strong>Evil as path</strong></td>
                        <td style="border:1px solid #d4cab8; padding:0.4rem;">Evil := {γ : lim γ = S ∧ Suffering(γ)}</td>
                    </tr>
                    <tr>
                        <td style="border:1px solid #d4cab8; padding:0.4rem;"><strong>Structural integration</strong></td>
                        <td style="border:1px solid #d4cab8; padding:0.4rem;">βˆ€Ξ³ βŠ† T : Ξ³ ∈ T</td>
                    </tr>
                </table>
            `,
            question_html: `
                <p><strong>What is the formal version of the image "Good as limit"?</strong></p>
                <div class="qoptions">
                    <label><input type="radio" name="q24" value="0"> No last axiom</label>
                    <label><input type="radio" name="q24" value="1"> Good := S</label>
                    <label><input type="radio" name="q24" value="2"> Evil := {γ : lim γ = S ∧ Suffering(γ)}</label>
                    <label><input type="radio" name="q24" value="3"> βˆ€Ξ³ βŠ† T : Ξ³ ∈ T</label>
                    <label><input type="radio" name="q24" value="4"> β–‘(U ∧ T ∧ S)</label>
                    <label><input type="radio" name="q24" value="5"> Z(U ∧ T ∧ S)</label>
                </div>
            `,
            answer: 1
        },
        {
            id: 25,
            title: "The Ten Open Questions",
            part: "Part C",
            explanation: `
                <p>The series has left <strong>ten open questions</strong>:</p>
                <ol>
                    <li>Is there a canonical extension of S5?</li>
                    <li>Are there paths without Omega Point? How many?</li>
                    <li>What is suffering? How is Suffering(Ξ³) defined?</li>
                    <li>Is there a third observer conception?</li>
                    <li>Is K(U, T, S) minimal?</li>
                    <li>How does Z relate to β–‘?</li>
                    <li>Are there perspectives that do not converge?</li>
                    <li>Is unitarity physical or metaphysical?</li>
                    <li>How does the formal structure relate to empirical reality?</li>
                    <li>What does it mean to recognize the Trinity β€” as distinguished from formal proof?</li>
                </ol>
            `,
            question_html: `
                <p><strong>How many open questions does the series leave?</strong></p>
                <div class="qoptions">
                    <label><input type="radio" name="q25" value="0"> Five</label>
                    <label><input type="radio" name="q25" value="1"> Ten</label>
                    <label><input type="radio" name="q25" value="2"> Fifteen</label>
                    <label><input type="radio" name="q25" value="3"> Twenty</label>
                    <label><input type="radio" name="q25" value="4"> None</label>
                    <label><input type="radio" name="q25" value="5"> Infinitely many</label>
                </div>
            `,
            answer: 1
        },
        {
            id: 26,
            title: "Bundle 4 – Conclusion: The Limit of the Formal",
            part: "Part C",
            explanation: `
                <p><strong>Summary of Bundle 4:</strong></p>
                <ol>
                    <li><strong>Module 15:</strong> Formal work has three levels β€” proving, suggesting, not reaching.</li>
                    <li><strong>Module 16:</strong> Unitarity is strong enough to encompass even paths without Omega Point.</li>
                    <li><strong>Module 17:</strong> The Trinity is the structure that encompasses all paths β€” including those that do not arrive.</li>
                </ol>
                <div class="formula-box important" style="font-size:1.1rem;">
                    We stand at the beginning of infinity. What remains is the map β€” not the territory.
                </div>
                <p style="margin-top:1rem; text-align:center; font-style:italic; color:#555;">
                    Formal work has done its work. It has shown what is showable. What remains is the acknowledgment of the limit β€” and the transition to hermeneutics.
                </p>
            `,
            question_html: `
                <p><strong>What is the conclusion of Bundle 4?</strong></p>
                <div class="qoptions">
                    <label><input type="radio" name="q26" value="0"> The Trinity is impossible.</label>
                    <label><input type="radio" name="q26" value="1"> We stand at the beginning of infinity. What remains is the map β€” not the territory.</label>
                    <label><input type="radio" name="q26" value="2"> S5 is contradictory.</label>
                    <label><input type="radio" name="q26" value="3"> Physics is irrelevant.</label>
                    <label><input type="radio" name="q26" value="4"> God does not exist.</label>
                    <label><input type="radio" name="q26" value="5"> The Trinity is an illusion.</label>
                </div>
            `,
            answer: 1
        }
    ];

    // ================================================================
    //  LOGIC
    // ================================================================

    let currentStep = 0;
    const totalSteps = steps.length;
    const stepContainer = document.getElementById('stepContainer');
    const prevBtn = document.getElementById('prevBtn');
    const nextBtn = document.getElementById('nextBtn');
    const stepIndicator = document.getElementById('stepIndicator');
    const progressFill = document.getElementById('progressFill');
    const progressText = document.getElementById('progressText');

    let stepCompleted = new Array(totalSteps).fill(false);

    function renderStep(index) {
        const step = steps[index];
        if (!step) return;

        const partClass = step.part === 'Part A' ? 'partA' :
                         step.part === 'Part B' ? 'partB' :
                         step.part === 'Part C' ? 'partC' : '';

        let html = `
            <div class="step-block ${partClass}">
                <div class="step-number ${partClass}">Step ${index} of ${totalSteps-1} – ${step.part}</div>
                <div class="step-title">${step.title}</div>
                <div class="step-explanation">${step.explanation}</div>
                <div class="question-box" id="questionBox${index}">
                    ${step.question_html}
                    <button class="qsubmit" data-step="${index}">Check answer</button>
                    <div class="qfeedback" id="feedback${index}"></div>
                </div>
            </div>
        `;

        stepContainer.innerHTML = html;

        const submitBtn = document.querySelector(`.qsubmit[data-step="${index}"]`);
        if (submitBtn) {
            submitBtn.addEventListener('click', function(e) {
                checkAnswer(index);
            });
        }

        const questionBox = document.getElementById(`questionBox${index}`);
        if (questionBox) {
            const radioInputs = questionBox.querySelectorAll('input[type="radio"]');
            radioInputs.forEach(input => {
                input.addEventListener('keydown', function(e) {
                    if (e.key === 'Enter') {
                        e.preventDefault();
                        checkAnswer(index);
                    }
                });
            });
        }

        updateNav(index);
        updateProgress(index);

        if (stepCompleted[index]) {
            const feedback = document.getElementById(`feedback${index}`);
            if (feedback) {
                feedback.className = 'qfeedback correct';
                feedback.textContent = 'βœ… Correct! You have already completed this step.';
                feedback.style.display = 'block';
            }
            const submitBtn2 = document.querySelector(`.qsubmit[data-step="${index}"]`);
            if (submitBtn2) submitBtn2.disabled = true;
        }

        document.querySelector('.step-block').scrollIntoView({ behavior: 'smooth', block: 'start' });
    }

    function checkAnswer(index) {
        if (stepCompleted[index]) return;

        const step = steps[index];
        const questionBox = document.getElementById(`questionBox${index}`);
        const feedback = document.getElementById(`feedback${index}`);

        const selected = questionBox.querySelector('input[type="radio"]:checked');
        if (!selected) {
            feedback.className = 'qfeedback wrong';
            feedback.textContent = '❌ Please select an answer.';
            feedback.style.display = 'block';
            return;
        }

        const userAnswer = parseInt(selected.value);
        const isCorrect = (userAnswer === step.answer);

        if (isCorrect) {
            feedback.className = 'qfeedback correct';
            feedback.textContent = 'βœ… Correct! You may proceed to the next step.';
            feedback.style.display = 'block';
            stepCompleted[index] = true;

            const submitBtn = questionBox.querySelector('.qsubmit');
            if (submitBtn) submitBtn.disabled = true;

            const radios = questionBox.querySelectorAll('input[type="radio"]');
            radios.forEach(r => r.disabled = true);

            updateNav(index);
            updateProgress(index);

            if (stepCompleted.every(v => v === true)) {
                setTimeout(() => {
                    alert('πŸŽ‰ Congratulations! You have successfully completed Bundle 4!');
                }, 400);
            }

        } else {
            feedback.className = 'qfeedback wrong';
            feedback.textContent = '❌ Incorrect. Please read the step again and try again.';
            feedback.style.display = 'block';
        }
    }

    function updateNav(index) {
        if (index > 0) {
            prevBtn.className = '';
            prevBtn.style.pointerEvents = 'auto';
            prevBtn.style.opacity = '1';
        } else {
            prevBtn.className = 'disabled';
            prevBtn.style.pointerEvents = 'none';
            prevBtn.style.opacity = '0.5';
        }

        if (index < totalSteps - 1 && stepCompleted[index]) {
            nextBtn.className = '';
            nextBtn.style.pointerEvents = 'auto';
            nextBtn.style.opacity = '1';
            nextBtn.textContent = 'Next β†’';
        } else if (index === totalSteps - 1 && stepCompleted[index]) {
            nextBtn.className = '';
            nextBtn.style.pointerEvents = 'auto';
            nextBtn.style.opacity = '1';
            nextBtn.textContent = 'πŸŽ‰ Done – back to the entry page';
            nextBtn.href = 'modal.html?lang=en';
        } else {
            nextBtn.className = 'disabled';
            nextBtn.style.pointerEvents = 'none';
            nextBtn.style.opacity = '0.5';
            if (index === totalSteps - 1) {
                nextBtn.textContent = 'πŸŽ‰ Final step – complete all steps';
            } else {
                nextBtn.textContent = 'Next β†’ (please answer the question first)';
            }
        }

        stepIndicator.textContent = `${index} / ${totalSteps-1}`;
    }

    function updateProgress(index) {
        const completedCount = stepCompleted.filter(v => v === true).length;
        const percent = (completedCount / totalSteps) * 100;
        progressFill.style.width = `${percent}%`;
        progressText.textContent = `Step ${index} of ${totalSteps-1} – ${completedCount}/${totalSteps} completed`;
    }

    prevBtn.addEventListener('click', function(e) {
        e.preventDefault();
        if (currentStep > 0) {
            currentStep--;
            renderStep(currentStep);
        }
    });

    nextBtn.addEventListener('click', function(e) {
        e.preventDefault();
        if (currentStep < totalSteps - 1 && stepCompleted[currentStep]) {
            currentStep++;
            renderStep(currentStep);
        } else if (currentStep === totalSteps - 1 && stepCompleted[currentStep]) {
            window.location.href = 'modal.html?lang=en';
        }
    });

    renderStep(0);
</script>

</body>
</html>