/* Lesson Layout Styles */
.lesson-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 40px 20px;
    color: white;
    font-family: "Manrope", sans-serif;
}

.lesson-header {
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #3c266e;
}

.lesson-number {
    display: inline-block;
    background: #3c266e;
    color: white;
    font-weight: bold;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 25px;
    margin-bottom: 15px;
}

.lesson-section {
    margin-bottom: 40px;
    background: #100a1f;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #3c266e;
    box-shadow: 0 0 20px rgba(60, 38, 110, 0.3);
    font-family: "Manrope", sans-serif;
}

.lesson-section h3 {
    color: #3c266e;
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Manrope", sans-serif;
}

.lesson-section p, .lesson-section li {
    line-height: 1.8;
    font-size: 16px;
    color: #ccc;
    margin-bottom: 15px;
    font-family: "Manrope", sans-serif;
}

.lesson-section ul {
    padding-left: 20px;
}

.lesson-section strong {
    color: white;
}

.lesson-intro {
    font-size: 18px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 40px;
    margin-top: 30px;
}

.lesson-intro h1 {
    color: #3c266e;
    margin-bottom: 15px;
}

.highlight-box {
    background: linear-gradient(135deg, #2a2a3e, #1a1a2e);
    border-left: 4px solid #3c266e;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.danger-box {
    background: linear-gradient(135deg, #3e2a2a, #2e1a1a);
    border-left: 4px solid #e74c3c;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.comparison-table {
    background: #0f1419;
    border: 2px solid #3c266e;
    border-radius: 10px;
    overflow: hidden;
    margin: 25px 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: #3c266e;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #2a2a3e;
    color: #ccc;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.key-takeaway {
    background: #0f1419;
    border: 2px solid #3c266e;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding: 20px 0;
    border-top: 2px solid #3c266e;
    gap: 15px;
}

@media (max-width: 768px) {
    .navigation {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .navigation span {
        order: 2;
        margin: 10px 0;
    }

    .nav-btn:first-child {
        order: 1;
    }

    .nav-btn:last-child {
        order: 3;
    }
}

.nav-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #3c266e;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #5a3f8f;
    transform: translateY(-2px);
}

        /* Globale Body-Schriftart */
        body {
            font-family: "Manrope", sans-serif !important;
        }

        /* Mobile Optimierung für deutsche Lektionen */
        .trading-style-grid {
            display: grid;
            gap: 25px;
            margin: 30px 0;
        }

        .style-card {
            background: #0f1419;
            border: 2px solid #3c266e;
            border-radius: 12px;
            padding: 25px;
            transition: all 0.3s ease;
        }

        .style-card:hover {
            border-color: #5a3f8f;
            transform: translateY(-2px);
        }

        .style-card h4 {
            color: #3c266e;
            font-size: 1.3rem;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .style-details {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-top: 20px;
        }

        .detail-item {
            background: #1a1a2e;
            padding: 15px;
            border-radius: 8px;
            border-left: 3px solid #3c266e;
        }

        .detail-item h5 {
            color: #3c266e;
            margin-bottom: 8px;
            font-size: 0.9rem;
        }

        .detail-item p {
            margin: 0;
            font-size: 14px;
        }

        .pros-cons {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-top: 20px;
        }

        .pros, .cons {
            padding: 15px;
            border-radius: 8px;
        }

        .pros {
            background: rgba(76, 175, 80, 0.1);
            border-left: 4px solid #4CAF50;        }

        .cons {
            background: rgba(244, 67, 54, 0.1);
            border-left: 4px solid #F44336;
        }

        .pros h5, .cons h5 {
            margin-bottom: 10px;
            font-size: 0.9rem;
        }

        .comparison-table {
            width: 100%;
            border-collapse: collapse;
            margin: 25px 0;
            background: #0f1419;
            border-radius: 8px;
            overflow: hidden;
        }

        .comparison-table th {
            background: #3c266e;
            color: white;
            padding: 15px;
            text-align: left;
            font-weight: bold;
        }

        .comparison-table td {
            padding: 15px;
            border-bottom: 1px solid #3c266e;
            color: #ccc;
        }

        .comparison-table tr:hover {
            background: #1a1a2e;
        }

        .analysis-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin: 30px 0;
        }

        .analysis-card {
            background: #0f1419;
            border: 2px solid #3c266e;
            border-radius: 12px;
            padding: 25px;
            transition: all 0.3s ease;
        }

        .analysis-card:hover {
            border-color: #5a3f8f;
            transform: translateY(-2px);
        }

        .analysis-card h4 {
            color: #3c266e;
            font-size: 1.3rem;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .indicator-list {
            display: grid;
            gap: 15px;
            margin: 20px 0;
        }

        .indicator-item {
            background: #1a1a2e;
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid #3c266e;
        }

        .indicator-item h5 {
            color: #3c266e;
            margin-bottom: 8px;
            font-size: 1rem;
        }

        .indicator-item p {
            margin: 0;
            font-size: 14px;
        }

        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin: 25px 0;
        }

        .calendar-item {
            background: #1a1a2e;
            padding: 20px;
            border-radius: 8px;
            border-left: 4px solid #3c266e;
        }

        .calendar-item h5 {
            color: #3c266e;
            margin-bottom: 10px;
        }

        .impact-high {
            border-left-color: #F44336;
        }

        .impact-medium {
            border-left-color: #FF9800;
        }

        .impact-low {
            border-left-color: #4CAF50;
        }

        .instrument-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin: 25px 0;
        }

        .instrument-card {
            background: #0f1419;
            border: 2px solid #3c266e;
            border-radius: 10px;
            padding: 20px;
            transition: transform 0.3s ease, border-color 0.3s ease;
        }

        .instrument-card:hover {
            transform: translateY(-5px);
            border-color: #5a3f8f;
        }

        .instrument-card h4 {
            color: #3c266e;
            margin-bottom: 10px;
            font-size: 1.2rem;
        }

        /* Instrument-Grid spezifische Styles */
        .instrument-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 25px;
            margin: 30px 0;
        }

        .instrument-card {
            background: #1a1a2e;
            border: 2px solid #3c266e;
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 4px 15px rgba(60, 38, 110, 0.2);
        }

        .instrument-card h4 {
            color: #3c266e;
            margin-bottom: 15px;
            font-size: 1.3rem;
        }

        .pros-cons {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-top: 20px;
        }

        .pros, .cons {
            padding: 15px;
            border-radius: 8px;
        }

        .pros {
            background: rgba(34, 197, 94, 0.1);
            border: 1px solid rgba(34, 197, 94, 0.3);
        }

        .cons {
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.3);
        }

        .pros h5 {
            color: #22c55e;
            margin-bottom: 10px;
            font-size: 0.9rem;
        }

        .cons h5 {
            color: #ef4444;
            margin-bottom: 10px;
            font-size: 0.9rem;
        }

        /* Mobile Optimierung - Komplette Überarbeitung */
        @media (max-width: 768px) {
            body {
                overflow-x: hidden;
                font-family: "Manrope", sans-serif;
            }

            .container-full {
                padding: 0;
                margin: 0;
            }

            .lesson-content {
                padding: 15px;
                max-width: 100vw;
                box-sizing: border-box;
                margin: 0;
            }

            .lesson-header {
                margin-bottom: 25px;
                padding: 20px 15px;
                text-align: center;
            }

            .lesson-section {
                margin: 0 0 20px 0;
                padding: 20px 15px;
                box-sizing: border-box;
            }

            .lesson-section h3 {
                font-size: 1.2rem;
                margin-bottom: 15px;
            }

            /* Instrument Grid Mobile */
            .instrument-grid {
                grid-template-columns: 1fr;
                gap: 20px;
                margin: 20px 0;
                padding: 0;
            }

            .instrument-card {
                margin: 0;
                padding: 20px 15px;
                box-sizing: border-box;
                width: 100%;
            }

            .instrument-card h4 {
                font-size: 1.1rem;
                text-align: center;
                margin-bottom: 12px;
            }

            .instrument-card p {
                font-size: 14px;
                margin-bottom: 15px;
                text-align: center;
            }

            /* Pros/Cons Mobile - Vertikal gestapelt */
            .pros-cons {
                display: flex !important;
                flex-direction: column !important;
                gap: 15px !important;
                margin-top: 15px !important;
                width: 100% !important;
            }

            .pros, .cons {
                padding: 15px;
                margin: 0;
                box-sizing: border-box;
            }

            .pros h5, .cons h5 {
                font-size: 0.9rem;
                margin-bottom: 8px;
                text-align: center;
            }

            .pros ul, .cons ul {
                padding-left: 18px;
                margin: 0;
            }

            .pros li, .cons li {
                font-size: 13px;
                line-height: 1.5;
                margin-bottom: 5px;
            }

            /* Navigation Mobile */
            .navigation {
                padding: 20px 0;
                margin-top: 30px;
            }

            .nav-btn {
                padding: 12px 16px;
                font-size: 14px;
            }

            /* Highlight Boxes Mobile */
            .highlight-box, .warning-box {
                padding: 15px;
                margin: 15px 0;
                font-size: 14px;
            }
        }

        .market-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin: 25px 0;
        }

        .market-card {
            background: #0f1419;
            border: 2px solid #3c266e;
            border-radius: 10px;
            padding: 20px;
            transition: transform 0.3s ease, border-color 0.3s ease;
        }

        .market-card:hover {
            transform: translateY(-5px);
            border-color: #5a3f8f;
        }

        .market-card h4 {
            color: #3c266e;
            margin-bottom: 10px;
            font-size: 1.2rem;
        }

        .market-features {
            background: #0f1419;
            border: 2px solid #3c266e;
            border-radius: 10px;
            padding: 20px;
            margin: 20px 0;
        }

        .market-features h5 {
            color: white;
            margin-bottom: 10px;
        }

        .danger-box {
            background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(244, 67, 54, 0.1));
            border-left: 4px solid #F44336;
            padding: 20px;
            margin: 25px 0;
            border-radius: 0 8px 8px 0;
        }

        .success-box {
            background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
            border-left: 4px solid #4CAF50;
            padding: 20px;
            margin: 25px 0;
            border-radius: 0 8px 8px 0;
        }

        .calculation-box {
            background: #0f1419;
            border: 2px solid #3c266e;
            border-radius: 10px;
            padding: 25px;
            margin: 25px 0;
        }

        .calculation-box h4 {
            color: #3c266e;
            margin-bottom: 15px;
        }

        .formula {
            background: #1a1a2e;
            padding: 15px;
            border-radius: 8px;
            font-family: monospace;
            font-size: 16px;
            color: #4CAF50;
            margin: 15px 0;
            text-align: center;
        }

        .example-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin: 30px 0;
        }

        .example-card {
            background: #0f1419;
            border: 2px solid #3c266e;
            border-radius: 12px;
            padding: 25px;
            transition: all 0.3s ease;
        }

        .example-card h4 {
            color: #3c266e;
            font-size: 1.2rem;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .rule-grid {
            display: grid;
            gap: 20px;
            margin: 30px 0;
        }

        .rule-item {
            background: #1a1a2e;
            padding: 20px;
            border-radius: 8px;
            border-left: 4px solid #3c266e;
        }

        .rule-item h5 {
            color: #3c266e;
            margin-bottom: 10px;
        }

        /* Mobile Optimierung für Risk-Reward Tabelle in Lektion 8 */
        .scenario-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            background: #0f1419;
            border: 2px solid #3c266e;
            border-radius: 10px;
            overflow: hidden;
        }

        .scenario-table th,
        .scenario-table td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid rgba(60, 38, 110, 0.3);
        }

        .scenario-table th {
            background: #3c266e;
            color: white;
            font-weight: 600;
        }

        .scenario-table td {
            color: #ccc;
        }

        .scenario-table .profit {
            color: #4CAF50;
            font-weight: 600;
        }

        .scenario-table .loss {
            color: #f44336;
            font-weight: 600;
        }

        /* Mobile Alternative für Tabellen */
        .scenario-cards {
            display: none;
        }

        @media (max-width: 768px) {
            .scenario-table {
                display: none;
            }

            .scenario-cards {
                display: block;
                margin: 20px 0;
            }

            .scenario-card {
                background: #0f1419;
                border: 2px solid #3c266e;
                border-radius: 10px;
                padding: 20px;
                margin-bottom: 15px;
            }

            .scenario-card h4 {
                color: #3c266e;
                margin: 0 0 15px 0;
                font-size: 1.1rem;
                border-bottom: 1px solid rgba(60, 38, 110, 0.3);
                padding-bottom: 10px;
            }

            .scenario-details {
                display: grid;
                gap: 8px;
            }

            .scenario-detail {
                display: flex;
                justify-content: space-between;
                align-items: center;
                color: #ccc;
                font-size: 14px;
            }

            .scenario-detail strong {
                color: #3c266e;
            }

            .scenario-detail .profit {
                color: #4CAF50;
                font-weight: 600;
            }

            .scenario-detail .loss {
                color: #f44336;
                font-weight: 600;
            }
        }

        .profit {
            color: #4CAF50;
            font-weight: bold;
        }

        .loss {
            color: #F44336;
            font-weight: bold;
        }

        .comparison-table table {
            width: 100%;
            border-collapse: collapse;
        }

        .comparison-table tr:last-child td {
            border-bottom: none;
        }

        /* Mobile Tabellen-Scroll */
        @media (max-width: 768px) {
            .comparison-table, .data-table, table {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                display: block;
                width: 100%;
            }

            .comparison-table table, .data-table table {
                min-width: 600px;
                width: auto;
                display: table;
            }

            .comparison-table th:first-child,
            .comparison-table td:first-child {
                position: sticky;
                left: 0;
                background: #3c266e;
                z-index: 2;
            }

            .comparison-table td:first-child {
                background: #0f1419;
                font-weight: bold;
            }

            /* Generelle Tabellen-Scroll-Regel */
            table {
                min-width: 100%;
                max-width: none;
            }

            /* Container für Tabellen */
            .table-container {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
        }

.nav-btn.disabled {
    background: #2a2a3e;
    color: #666;
    cursor: not-allowed;
}

.completion-box {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin: 40px 0;
}

.completion-box h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.lesson-section ol {
    padding-left: 25px;
    margin: 15px 0;
    margin-left: 0;
}

.lesson-section ol li {
    margin-bottom: 8px;
    line-height: 1.6;
    padding-left: 5px;
}
/* This CSS adjusts the padding and margin of ordered lists within lesson sections to improve their alignment. */

/* Anfängerfehler Grid Layout */
.mistake-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.mistake-card {
    background: #0f1419;
    border: 2px solid #3c266e;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(60, 38, 110, 0.2);
}

.mistake-card:hover {
    border-color: #5a3f8f;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(60, 38, 110, 0.3);
}

.mistake-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #3c266e;
}

.mistake-icon {
    background: #3c266e;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.mistake-header h4 {
    color: #3c266e;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.mistake-description {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #ccc;
    font-size: 15px;
}

.solution-box {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.solution-box h5 {
    color: #4CAF50;
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.solution-box ul {
    margin: 0;
    padding-left: 20px;
}

.solution-box li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #ddd;
    font-size: 14px;
}

/* Psychology Grid */
.psychology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.psychology-card {
    background: #1a1a2e;
    border: 2px solid #3c266e;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.psychology-card:hover {
    border-color: #5a3f8f;
    transform: translateY(-2px);
}

.psychology-card h5 {
    color: #3c266e;
    margin-bottom: 12px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.psychology-card p {
    margin: 8px 0;
    line-height: 1.6;
    font-size: 14px;
}

.psychology-card p strong {
    color: white;
}

/* Mobile Optimierung für Anfängerfehler */
@media (max-width: 768px) {
    .mistake-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 0;
    }

    .mistake-card {
        padding: 20px;
    }

    .mistake-header {
        gap: 12px;
        margin-bottom: 15px;
    }

    .mistake-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .mistake-header h4 {
        font-size: 1.2rem;
    }

    .mistake-description {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .solution-box {
        padding: 15px;
        margin-top: 15px;
    Ensuring the font consistency by setting the font-family on the body.    }

    .solution-box h5 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .solution-box li {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .psychology-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .psychology-card {
        padding: 15px;
    }
}

/* Tools & Resources Layout - Lektion 14 */
.category-section {
    margin: 40px 0;
}

.category-title {
    font-size: 1.5rem;
    color: #3c266e;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 10px;
    border: 2px solid #3c266e;
    text-align: center;
    font-weight: 600;
}

/* Glossar Grid Layout */
.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.term-card {
    background: #0f1419;
    border: 2px solid #3c266e;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(60, 38, 110, 0.2);
    margin-bottom: 20px;
}

.term-card:hover {
    border-color: #5a3f8f;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(60, 38, 110, 0.3);
}

.term-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(60, 38, 110, 0.3);
}

.term-name {
    color: #3c266e;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.term-definition {
    color: #ccc;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.term-example {
    background: rgba(60, 38, 110, 0.1);
    border: 1px solid rgba(60, 38, 110, 0.3);
    border-radius: 8px;
    padding: 15px;
    color: #ddd;
    font-size: 14px;
    font-style: italic;
    line-height: 1.5;
}

.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 30px 0;
    padding: 20px;
    background: #0f1419;
    border: 2px solid #3c266e;
    border-radius: 10px;
}

.alphabet-nav a {
    display: inline-block;
    padding: 8px 12px;
    background: #1a1a2e;
    border: 1px solid #3c266e;
    border-radius: 6px;
    color: #3c266e;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.alphabet-nav a:hover {
    background: #3c266e;
    color: white;
    transform: translateY(-2px);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.tool-card {
    background: #0f1419;
    border: 2px solid #3c266e;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(60, 38, 110, 0.2);
}

.tool-card:hover {
    border-color: #5a3f8f;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(60, 38, 110, 0.3);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(60, 38, 110, 0.3);
}

.tool-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(60, 38, 110, 0.2);
    border-radius: 10px;
    flex-shrink: 0;
}

.tool-header h4 {
    color: #3c266e;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.tool-type {
    display: inline-block;
    background: rgba(60, 38, 110, 0.3);
    color: #ffd700;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-card > p {
    color: #ccc;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tool-features {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tool-features li {
    color: #ddd;
    font-size: 14px;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.tool-features li::before {
    content: "✓";
    color: #4CAF50;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.tool-features li:last-child {
    margin-bottom: 0;
}

/* Warning und Success Boxes für Tools */
.warning-box {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.15), rgba(244, 67, 54, 0.05));
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-left: 4px solid #F44336;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.warning-box h5 {
    color: #F44336;
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-box p, .warning-box ul {
    margin: 0;
    color: #ddd;
    line-height: 1.6;
}

.warning-box ul {
    padding-left: 20px;
    margin-top: 10px;
}

.warning-box li {
    margin-bottom: 6px;
    font-size: 14px;
}

/* Mobile Optimierung für Tools Grid */
@media (max-width: 768px) {
    .category-section {
        margin: 25px 0;
    }

    .category-title {
        font-size: 1.3rem;
        padding: 12px 15px;
        margin-bottom: 20px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 0;
    }

    /* Glossar Mobile */
    .glossary-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin: 20px 0;
    }

    .term-card {
        padding: 20px;
        margin-bottom: 15px;
    }

    .term-header {
        gap: 12px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .term-name {
        font-size: 1.1rem;
    }

    .term-definition {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .term-example {
        padding: 12px;
        font-size: 13px;
    }

    .alphabet-nav {
        gap: 8px;
        padding: 15px;
        margin: 20px 0;
    }

    .alphabet-nav a {
        padding: 6px 10px;
        font-size: 14px;
    }

    /* Kapital-Darstellung Mobile */
    .capital-overview {
        display: grid !important;
    }

    .desktop-only {
        display: none !important;
    }

    .capital-card {
        padding: 18px;
    }

    .capital-amount {
        font-size: 1.2rem;
        margin-bottom: 12px;
        padding: 8px;
    }

    .capital-details {
        gap: 10px;
    }

    .capital-detail {
        padding: 6px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .detail-label {
        font-size: 13px;
    }

    .detail-value {
        font-size: 13px;
        text-align: left;
    }

    .tool-card {
        padding: 20px;
    }

    .tool-header {
        gap: 12px;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }

    .tool-icon {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }

    .tool-header h4 {
        font-size: 1.2rem;
    }

    .tool-type {
        font-size: 10px;
        padding: 3px 10px;
    }

    .tool-card > p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .tool-features li {
        font-size: 13px;
        margin-bottom: 6px;
        padding-left: 18px;
    }

    .warning-box, .success-box {
        padding: 15px;
        margin: 20px 0;
    }

    .warning-box h5, .success-box h5 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .warning-box li, .success-box li {
        font-size: 13px;
        margin-bottom: 5px;
    }
}

/* Search Field Styles für Glossar */
.search-field {
    position: relative;
    margin: 20px 0;
}

.search-field input {
    width: 100%;
    padding: 15px 20px;
    background: #1a1a2e;
    border: 2px solid #3c266e;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-field input:focus {
    outline: none;
    border-color: #5a3f8f;
    box-shadow: 0 0 20px rgba(60, 38, 110, 0.4);
    background: #2a2a3e;
}

.search-field input::placeholder {
    color: #888;
    font-style: italic;
}

/* Mobile Optimierung für Suchfeld */
@media (max-width: 768px) {
    .search-field {
        margin: 15px 0;
    }

    .search-field input {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* Kapital-Übersicht Cards */
.capital-overview {
    display: none;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 25px 0;
}

.capital-card {
    background: #0f1419;
    border: 2px solid #3c266e;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.capital-card:hover {
    border-color: #5a3f8f;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(60, 38, 110, 0.3);
}

.capital-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #3c266e;
    margin-bottom: 15px;
    text-align: center;
    padding: 10px;
    background: rgba(60, 38, 110, 0.1);
    border-radius: 8px;
}

.capital-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.capital-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(60, 38, 110, 0.2);
}

.capital-detail:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #ccc;
    font-size: 14px;
}

.detail-value {
    font-weight: 500;
    color: #fff;
    text-align: right;
    font-size: 14px;
}

.highlight-learning {
    color: #ffa500 !important;
    font-weight: 600;
}

.highlight-beginner {
    color: #4CAF50 !important;
    font-weight: 600;
}

.highlight-good {
    color: #2196F3 !important;
    font-weight: 600;
}

.highlight-professional {
    color: #9C27B0 !important;
    font-weight: 600;
}

.desktop-only {
    display: table;
}

/* ------------ ZURÜCK NACH OBEN BUTTON ------------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3c266e, #5a3f8f);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(60, 38, 110, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #5a3f8f, #7a5fa0);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(60, 38, 110, 0.6);
}

.back-to-top:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}
/* Corrected CSS syntax and closing brace for improved header layout and mobile optimization in lesson.css */