/* Lesson-spezifische Styles für KI-Kurs im latein-lernen.com Design */

/* Globale Schrift-Verbesserungen */
.ki-kurs-module-content,
.ki-kurs-module-content * {
    font-weight: 500 !important;
    color: #2d3436 !important;
}

.ki-kurs-module-content p {
    font-weight: 600 !important;
    font-size: 1.1em !important;
    line-height: 1.6 !important;
}

.ki-kurs-module-content h3,
.ki-kurs-module-content h4,
.ki-kurs-module-content h5 {
    font-weight: 700 !important;
    color: #1c2045 !important;
}

.ki-kurs-module-content li {
    font-weight: 600 !important;
    color: #2d3436 !important;
}

/* Weiße Überschriften für blaue Hintergründe */
.intro-box h3,
.intro-box h4,
.intro-box h5,
.intro-box * {
    color: white !important;
}

.lesson-summary h3,
.lesson-summary h4,
.lesson-summary h5,
.lesson-summary * {
    color: white !important;
}

/* Weiße Schrift für alle blauen Container */
.lesson-summary,
.lesson-summary p,
.lesson-summary li,
.lesson-summary ul,
.lesson-summary div,
.next-lesson-teaser,
.next-lesson-teaser h4,
.next-lesson-teaser p,
.next-lesson-teaser * {
    color: white !important;
}

/* Lesson Intro */
.lesson-intro {
    margin-bottom: 30px;
}

.intro-box {
    background: var(--primary-color);
    color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
}

.intro-box h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.5em;
}

/* Lesson Sections */
.lesson-section {
    margin-bottom: 40px;
    padding: 25px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--secondary-color);
}

.lesson-section h3 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Definition Box */
.definition-box {
    background: #f8f9fa;
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: var(--border-radius);
}

.definition-box h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

/* Activity Box */
.activity-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 25px 0;
}

.activity-box h4 {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
}

.activity-box p {
    margin-bottom: 15px;
}

/* Checklist */
.checklist {
    margin: 20px 0;
}

.check-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
}

.check-item input[type="checkbox"] {
    margin-right: 15px;
    margin-top: 3px;
    transform: scale(1.2);
    accent-color: var(--secondary-color);
}

.check-item label {
    flex: 1;
    cursor: pointer;
    line-height: 1.5;
}

/* Result Box */
.result-box {
    background: white;
    border: 2px solid var(--success-gradient);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.result-box p {
    margin-bottom: 10px;
}

.result-box em {
    color: var(--text-light);
    font-size: 0.9em;
}

/* Timeline */
.timeline {
    position: relative;
    margin: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--secondary-color);
}

.timeline-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.timeline-year {
    background: var(--secondary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9em;
    margin-right: 25px;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    flex: 1;
    border-left: 4px solid var(--primary-color);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

/* Comparison Container */
.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 25px 0;
}

.comparison-item {
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.weak-ai {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
}

.strong-ai {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    border-left: 4px solid #e91e63;
}

.comparison-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 1.2em;
}

.comparison-item p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 15px;
}

.feature-list {
    margin: 15px 0;
}

.feature {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-weight: 500;
}

.examples {
    margin-top: 20px;
}

.examples h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.examples ul {
    padding-left: 0;
    list-style: none;
}

.examples li {
    padding: 5px 0;
    padding-left: 25px;
    position: relative;
}

/* Classification Game */
.classification-game {
    margin: 25px 0;
}

.classification-instructions {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.classification-instructions h5 {
    color: #856404;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.classification-instructions p {
    color: #856404 !important;
    font-weight: 600 !important;
    margin-bottom: 10px;
}

.classification-instructions .mobile-hint {
    color: #856404 !important;
    font-size: 0.9em;
    font-style: italic;
}

.classification-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.classification-item {
    background: white;
    padding: 15px;
    border-radius: var(--border-radius);
    border: 2px solid #dee2e6;
    text-align: center;
    cursor: grab;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #2d3436;
    user-select: none;
    position: relative;
}

.classification-item:active {
    cursor: grabbing;
}

.classification-item:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.classification-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.classification-zones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.drop-zone {
    text-align: center;
}

.drop-zone h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.drop-zone p {
    color: var(--text-light) !important;
    font-weight: 600 !important;
    margin-bottom: 15px;
}

.drop-area {
    min-height: 250px;
    border: 3px dashed #dee2e6;
    border-radius: var(--border-radius);
    padding: 20px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
}

.drop-area:empty::after {
    content: "Hier hinziehen";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6c757d;
    font-style: italic;
    font-weight: 500;
}

.drop-area.drag-over {
    border-style: solid;
    background: rgba(255,255,255,0.9);
    transform: scale(1.02);
}

.weak-zone .drop-area {
    border-color: #2196f3;
    background: #e3f2fd;
}

.weak-zone .drop-area.drag-over {
    background: rgba(33,150,243,0.1);
    border-color: #1976d2;
}

.strong-zone .drop-area {
    border-color: #e91e63;
    background: #fce4ec;
}

.strong-zone .drop-area.drag-over {
    background: rgba(233,30,99,0.1);
    border-color: #c2185b;
}

.dropped-item {
    background: white;
    padding: 12px;
    margin: 8px;
    border-radius: var(--border-radius);
    border: 2px solid #28a745;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropped-item:hover {
    background: #f8f9fa;
    transform: scale(1.02);
}

/* Click-Alternative für Mobile */
.classification-item.clickable {
    border: 2px solid var(--secondary-color);
    background: #fff8e1;
}

.classification-item.clickable::after {
    content: "👆 Tippen für Schwache KI";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8em;
    color: var(--secondary-color);
    font-weight: 600;
}

.mobile-buttons {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.assign-weak-btn, .assign-strong-btn {
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.assign-weak-btn {
    background: #2196f3;
    color: white;
}

.assign-strong-btn {
    background: #e91e63;
    color: white;
}

@media (max-width: 768px) {
    .mobile-buttons {
        display: grid;
    }
    
    .classification-zones {
        grid-template-columns: 1fr;
    }
}

/* Solution Box */
.solution-box {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
}

.solution-box h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.show-solution-btn {
    background: var(--secondary-gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.show-solution-btn:hover {
    background: var(--primary-gradient);
}

/* Diary Template */
.diary-template {
    background: white;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 20px 0;
}

.diary-template h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.diary-entries {
    margin-bottom: 25px;
}

.diary-entry {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
}

.diary-entry strong {
    color: var(--primary-color);
}

.diary-reflection {
    background: #e3f2fd;
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid #2196f3;
}

.diary-reflection h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Quiz Box */
.quiz-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 25px 0;
}

.quiz-box h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
}

.quiz-question {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary-color);
}

.quiz-question p {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.quiz-options label:hover {
    background-color: #f8f9fa;
}

.quiz-options input[type="radio"] {
    margin-right: 10px;
    accent-color: var(--secondary-color);
}

.check-quiz-btn {
    background: var(--secondary-gradient);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.check-quiz-btn:hover {
    background: var(--primary-gradient);
}

/* Quiz Result */
.quiz-result {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    text-align: center;
}

.quiz-result.correct {
    border-left: 4px solid #28a745;
    background: #d4edda;
}

.quiz-result.incorrect {
    border-left: 4px solid #dc3545;
    background: #f8d7da;
}

/* Lesson Summary */
.lesson-summary {
    background: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 40px 0;
}

.lesson-summary h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.lesson-summary ul {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 30px auto;
    list-style: none;
    padding: 0;
}

.lesson-summary li {
    padding: 8px 0;
    font-size: 1.1em;
}

/* Next Lesson Teaser */
.next-lesson-teaser {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 2px solid rgba(255,255,255,0.2);
}

.next-lesson-teaser h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.next-lesson-teaser p {
    font-size: 1.1em;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .comparison-container {
        grid-template-columns: 1fr;
    }
    
    .classification-zones {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-year {
        margin-bottom: 15px;
        margin-right: 0;
        align-self: flex-start;
    }
    
    .timeline::before {
        display: none;
    }
}