/* eltern_training.css */

.wwm-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', sans-serif;
    color: white;
}

.wwm-header {
    text-align: center;
    margin-bottom: 30px;
}

.wwm-header h2 {
    color: #fca5a5;
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

.wwm-header p {
    color: #cbd5e1;
    font-size: 1.1rem;
}

.wwm-scenario-box {
    background: rgba(15, 23, 42, 0.85);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    margin-bottom: 40px;
    position: relative;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.wwm-image-container {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 2px solid #3b82f6;
    transition: background-image 0.5s ease;
}

.wwm-question-area {
    padding: 30px;
    text-align: center;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wwm-question-text {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 600;
}

.wwm-tts-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wwm-tts-btn:hover {
    transform: scale(1.1);
    background: #2563eb;
}

.wwm-tts-btn.playing {
    animation: pulse 1.5s infinite;
    background: #f59e0b;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.wwm-answers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0 20px 20px;
}

.wwm-answer-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
    border: 2px solid #3b82f6;
    color: white;
    padding: 15px 20px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.wwm-answer-btn span.letter {
    color: #fbbf24;
    font-weight: bold;
    margin-right: 15px;
    font-size: 1.2rem;
}

.wwm-answer-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-color: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.wwm-answer-btn.selected {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    border-color: #f97316;
}

/* Modal for Explanations */
.wwm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.wwm-modal.active {
    display: flex;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wwm-modal-content {
    background: #1e293b;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    position: relative;
    border-top: 5px solid #3b82f6;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    text-align: center;
}

.wwm-modal-content.good { border-top-color: #10b981; }
.wwm-modal-content.bad { border-top-color: #ef4444; }
.wwm-modal-content.neutral { border-top-color: #f59e0b; }

.wwm-modal-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.good .wwm-modal-icon { color: #10b981; }
.bad .wwm-modal-icon { color: #ef4444; }
.neutral .wwm-modal-icon { color: #f59e0b; }

.wwm-modal-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.wwm-modal-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 25px;
}

.wwm-modal-close {
    background: #334155;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.wwm-modal-close:hover {
    background: #475569;
}

.wwm-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.wwm-nav-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.wwm-nav-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
}

.wwm-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Bestell Sektion */
.order-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 15px;
    padding: 40px;
    margin-top: 50px;
    text-align: center;
}

@media (max-width: 768px) {
    .wwm-answers-grid {
        grid-template-columns: 1fr;
    }
    .wwm-question-text {
        font-size: 1.2rem;
    }
    .wwm-image-container {
        height: 200px;
    }
}
