/* Office Trainingsplaner Stylesheet V1.8.1 */
.otp-container {
    max-width: 900px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    overflow: hidden;
    border: 1px solid #eaeaea;
}

.otp-header {
    background: #f1f5f9;
    color: #1e293b;
    padding: 24px 30px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.otp-header h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.otp-header p {
    margin: 0;
    font-size: 15px;
    color: #475569;
}

/* Tabs Navigation */
.otp-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px;
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
}

.otp-tab-btn {
    flex: 1 1 calc(20% - 6px);
    min-width: 130px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
}

.otp-tab-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.otp-tab-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.otp-tab-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

.otp-tab-btn.active .otp-tab-num {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.otp-tab-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tabs Content Panels */
.otp-tabs-content {
    padding: 30px;
    background: #ffffff;
}

.otp-panel {
    display: none;
}

.otp-panel.active {
    display: block;
    animation: otpFadeIn 0.3s ease-in-out;
}

@keyframes otpFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.otp-exercise-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.otp-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.otp-exercise-info h3 {
    margin: 0 0 12px 0;
    font-size: 22px;
    color: #1e293b;
}

.otp-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 24px;
}

/* Sprechblase mit vergrößertem Icon */
.otp-speech-bubble {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #2563eb;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 24px;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.otp-bubble-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #e0f2fe;
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

.otp-bubble-content {
    flex-grow: 1;
}

.otp-bubble-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.otp-bubble-text {
    margin: 0;
    font-size: 15px;
    color: #334155;
    font-style: italic;
    line-height: 1.5;
}

/* Actions */
.otp-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.otp-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.1s;
}

.otp-btn:active {
    transform: scale(0.98);
}

.otp-btn-primary {
    background: #10b981;
    color: #ffffff;
}

.otp-btn-primary:hover {
    background: #059669;
}

.otp-btn-primary.completed {
    background: #64748b;
}

.otp-btn-secondary {
    background: #e2e8f0;
    color: #334155;
}

.otp-btn-secondary:hover {
    background: #cbd5e1;
}

.otp-btn-success {
    background: #2563eb;
    color: #ffffff;
}

.otp-btn-success:hover {
    background: #1d4ed8;
}

/* Footer Notice */
.otp-footer-notice {
    background: #fdf2f8;
    border-top: 1px solid #fce7f3;
    padding: 16px 30px;
    font-size: 13px;
    color: #831843;
    line-height: 1.5;
}

@media(max-width: 768px) {
    .otp-tab-btn {
        flex: 1 1 calc(50% - 6px);
    }
}
